  :root {
    --bg: #ffffff;
    --bg-alt: #f5f7fb;
    --ink: #0f172a;
    --ink-2: #47536b;
    --ink-3: #6b7688;
    --line: #e6eaf1;

    --dark: #0b1220;
    --dark-2: #101a2f;
    --on-dark: #eef2fb;
    --on-dark-2: #9aa7bd;
    --dark-line: rgba(255,255,255,.10);
    --dark-card: rgba(255,255,255,.045);

    --blue: #3b82f6;
    --blue-600: #2563eb;
    --violet: #8b5cf6;
    --grad: linear-gradient(135deg, #2f6ef0 0%, #7c3aed 100%);

    --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.05);
    --shadow-md: 0 2px 8px rgba(15,23,42,.05), 0 20px 48px rgba(15,23,42,.09);

    --radius: 16px;
    --radius-lg: 22px;
    /* desktop 1200-1599: fluid up to 1400, never full-bleed */
    --container: min(1400px, 94vw);
    --section-pad: clamp(72px, 8vw, 128px);
    --hero-gap: clamp(56px, 7vw, 120px);
    --nav-h: 68px;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
  }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; overflow-wrap: break-word; text-wrap: balance; }
  a { color: inherit; text-decoration: none; }
  ul { list-style: none; }
  img, svg { display: block; max-width: 100%; }
  strong { font-weight: 650; }
  p { overflow-wrap: break-word; }

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

  .section { padding: var(--section-pad) 0; }
  .section--alt { background: var(--bg-alt); }
  .section--dark { background: var(--dark); color: var(--on-dark); }

  .eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue-600);
    margin-bottom: 18px;
  }
  .section--dark .eyebrow { color: #93b4fb; }

  .section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
  .section-head h2 { font-size: clamp(1.8rem, 0.9rem + 2.5vw, 2.95rem); margin-bottom: 16px; }
  .section-head p { font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
  .section--dark .section-head p { color: var(--on-dark-2); }

  /* ---------- buttons ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.3;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    white-space: normal;
    text-wrap: balance;
  }
  .btn svg { width: 18px; height: 18px; flex: none; }
  .btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(59,110,246,.32); }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(59,110,246,.42); }
  .btn-secondary { background: rgba(255,255,255,.06); color: var(--on-dark); border-color: var(--dark-line); }
  .btn-secondary:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
  .btn-light { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
  .btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  .btn-ghost:hover { border-color: var(--blue); color: var(--blue-600); }

  /* ---------- nav ---------- */
  .nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(11,18,32,.72);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease;
  }
  .nav.solid {
    background: rgba(255,255,255,.86);
    border-bottom-color: var(--line);
  }
  .nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

  .brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.01em; color: #fff; transition: color .25s ease; }
  .nav.solid .brand { color: var(--ink); }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); flex: none; }
  .brand small { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .04em; opacity: .62; }

  .nav-menu { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); }
  .nav-menu a.nav-link { font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.82); transition: color .18s ease; white-space: nowrap; }
  .nav.solid .nav-menu a.nav-link { color: var(--ink-2); }
  .nav-menu a.nav-link:hover { color: #fff; }
  .nav.solid .nav-menu a.nav-link:hover { color: var(--blue-600); }
  .nav-menu .btn { padding: 10px 18px; font-size: .9rem; }

  .nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--dark-line); border-radius: 10px; background: rgba(255,255,255,.06); cursor: pointer; }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; margin: 3px auto; border-radius: 2px; transition: .2s ease; }
  .nav.solid .nav-toggle span { background: var(--ink); }
  .nav.solid .nav-toggle { border-color: var(--line); background: #fff; }

  .skip {
    position: absolute; left: -9999px; top: 8px; z-index: 200;
    background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-md);
  }
  .skip:focus { left: 16px; }

  /* ---------- hero ---------- */
  .hero {
    position: relative;
    background:
      radial-gradient(1300px 660px at 76% 0%, rgba(139,92,246,.20), transparent 60%),
      radial-gradient(1100px 600px at 2% 14%, rgba(59,130,246,.18), transparent 55%),
      var(--dark);
    color: var(--on-dark);
    overflow: hidden;
    padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 116px);
  }
  .hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--dark-line) 1px, transparent 1px), linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(1400px 1000px at 60% 40%, #000 26%, transparent 82%);
    mask-image: radial-gradient(1400px 1000px at 60% 40%, #000 26%, transparent 82%);
    opacity: .4;
    pointer-events: none;
  }
  .hero .container {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    gap: var(--hero-gap);
    align-items: center;
  }
  .hero .container > * { min-width: 0; max-width: 100%; }

  .hero h1 { font-size: clamp(2rem, 1rem + 2.2vw, 3.15rem); font-weight: 800; letter-spacing: -0.033em; line-height: 1.1; text-wrap: balance; }
  .hero .subhead { margin-top: 20px; font-size: clamp(1.04rem, 0.9rem + 0.7vw, 1.38rem); font-weight: 600; color: #cdd8ee; }
  .hero .lede { margin-top: 18px; font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); color: var(--on-dark-2); max-width: min(48ch, 100%); }
  .hero .cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

  .hero-benefits { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-benefit {
    background: var(--dark-card);
    border: 1px solid var(--dark-line);
    border-radius: 14px;
    padding: 16px 14px;
  }
  .hero-benefit .n { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 9px; background: rgba(59,130,246,.16); color: #93b4fb; margin-bottom: 10px; }
  .hero-benefit .n svg { width: 18px; height: 18px; }
  .hero-benefit p { font-size: .9rem; font-weight: 600; color: #e2e9f7; line-height: 1.4; }

  /* hero visual — "system window" */
  .flow {
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
    border: 1px solid var(--dark-line);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    max-width: 520px;
    margin-left: auto;
    width: 100%;
  }
  .flow-bar { display: flex; gap: 7px; padding: 4px 6px 14px; }
  .flow-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
  .flow-list { position: relative; display: grid; gap: 12px; }
  .flow-step {
    position: relative;
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--dark-line);
    border-radius: 13px;
    padding: 14px 16px;
  }
  .flow-step .ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; }
  .flow-step .ic svg { width: 19px; height: 19px; }
  .flow-step .tx { min-width: 0; }
  .flow-step .tx b { display: block; font-size: .95rem; font-weight: 600; color: #eef2fb; }
  .flow-step .tx span { font-size: .8rem; color: var(--on-dark-2); }
  .flow-connector { position: absolute; left: 34px; top: 52px; bottom: 52px; width: 2px; background: linear-gradient(180deg, rgba(59,130,246,.5), rgba(139,92,246,.5)); }

  @media (prefers-reduced-motion: no-preference) {
    .flow-pulse { position: absolute; left: 33px; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(147,180,251,.9); animation: flow 3.4s ease-in-out infinite; }
    @keyframes flow { 0% { top: 48px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - 48px); opacity: 0; } }
  }

  /* ---------- generic card grid ---------- */
  .grid { display: grid; gap: 22px; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d8deea; }
  .card .ic {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(139,92,246,.12));
    color: var(--blue-600);
    margin-bottom: 16px;
  }
  .card .ic svg { width: 22px; height: 22px; }
  .card h3 { font-size: 1.12rem; margin-bottom: 8px; }
  .card p { color: var(--ink-2); font-size: .98rem; }

  /* problem cards */
  .problem-card { padding: 24px; }
  .problem-card h3 { font-size: 1.05rem; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; }
  .problem-card h3::before { content: ""; flex: none; margin-top: 7px; width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, #f97362, #f5a04b); }
  .problem-card .cons { display: flex; gap: 9px; color: var(--ink-2); font-size: .96rem; }
  .problem-card .cons svg { flex: none; width: 17px; height: 17px; margin-top: 4px; color: var(--ink-3); }

  /* transformation */
  .ba { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; }
  .ba-card { border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--line); }
  .ba-card.before { background: #fff; }
  .ba-card.after { background: linear-gradient(180deg, #0b1220, #101a2f); color: var(--on-dark); border-color: var(--dark-line); }
  .ba-card h3 { font-size: 1.25rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
  .ba-card .badge { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
  .ba-card.before .badge { background: #f1f4f9; color: var(--ink-3); }
  .ba-card.after .badge { background: rgba(126,224,179,.16); color: #7ee0b3; }
  .ba-card li { display: flex; gap: 11px; padding: 9px 0; font-size: .99rem; }
  .ba-card li + li { border-top: 1px solid var(--line); }
  .ba-card.after li + li { border-top-color: var(--dark-line); }
  .ba-card li svg { flex: none; width: 18px; height: 18px; margin-top: 4px; }
  .ba-card.before li svg { color: var(--ink-3); }
  .ba-card.after li svg { color: #7ee0b3; }
  .ba-card.after li span { color: #dce4f2; }
  .ba-note { margin-top: 26px; text-align: center; font-size: 1.08rem; font-weight: 600; color: var(--ink); }
  .ba-note span { background: linear-gradient(135deg, #1d4ed8, #6d28d9); -webkit-background-clip: text; background-clip: text; color: transparent; }

  /* cases */
  .case-card { padding: 28px; display: flex; flex-direction: column; }
  .demo-badge { align-self: flex-start; font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: #eef1f6; color: var(--ink-3); margin-bottom: 14px; }
  .case-card .kicker { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-600); }
  .case-card h3 { font-size: 1.2rem; margin: 8px 0 18px; }
  .case-row { margin-bottom: 14px; }
  .case-row .lbl { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
  .case-row p { font-size: .96rem; color: var(--ink-2); }
  .chain { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .chain .pill { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: .82rem; font-weight: 500; color: var(--ink); }
  .chain .arr { color: var(--ink-3); font-size: .8rem; }
  .case-tools { display: flex; flex-wrap: wrap; gap: 6px; }
  .case-tools .tool { font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
  .case-cta { margin-top: auto; padding-top: 20px; }
  .case-cta a { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; color: var(--blue-600); text-decoration: none; }
  .case-cta a svg { width: 15px; height: 15px; transition: transform .15s ease; }
  .case-cta a:hover svg { transform: translateX(3px); }
  .disclaimer { margin-top: 24px; font-size: .88rem; color: var(--ink-3); text-align: center; }
  .portfolio-link { margin-top: clamp(36px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; font-size: .96rem; color: var(--ink-2); }

  /* ---- rozszerzone case study ---- */
  .case-study { margin-top: clamp(44px, 6vw, 80px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
  .cs-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 44px); }
  .cs-badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: rgba(59,130,246,.1); color: var(--blue-600); border: 1px solid rgba(59,130,246,.2); margin-bottom: 14px; }
  .case-study h3 { font-size: clamp(1.5rem, 1rem + 1.5vw, 2.05rem); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 14px; }
  .cs-head p { font-size: clamp(1.02rem, 1rem + 0.25vw, 1.14rem); color: var(--ink-2); }

  .cs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 2.5vw, 26px); }
  .cs-panel { border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); }
  .cs-panel.is-before { background: #fff; }
  .cs-panel.is-after { background: linear-gradient(180deg, #0b1220, #101a2f); border-color: rgba(255,255,255,.1); color: var(--on-dark); }
  .cs-panel h4 { font-size: 1.14rem; color: var(--ink); margin-bottom: 16px; }
  .cs-panel.is-after h4 { color: #fff; }
  .cs-steps { display: grid; gap: 10px; }
  .cs-steps li { display: flex; gap: 11px; align-items: flex-start; font-size: .97rem; color: var(--ink-2); }
  .cs-steps li svg { flex: none; width: 17px; height: 17px; margin-top: 4px; }
  .cs-panel.is-before .cs-steps li svg { color: var(--ink-3); }
  .cs-panel.is-after .cs-steps li { color: #dce4f2; }
  .cs-panel.is-after .cs-steps li svg { color: #7ee0b3; }
  .cs-desc { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-3); }
  .cs-workflow { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .cs-workflow .node { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 5px 10px; font-size: .8rem; font-weight: 500; color: #eef2fb; }
  .cs-workflow .sep { color: #7c8aa3; font-size: .78rem; }

  .cs-block { margin-top: clamp(36px, 5vw, 60px); }
  .cs-block > h4 { font-size: clamp(1.2rem, 1rem + 0.7vw, 1.45rem); letter-spacing: -0.01em; color: var(--ink); margin-bottom: 20px; }
  .cs-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
  .cs-checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; color: var(--ink-2); }
  .cs-checklist li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--blue-600); }
  .cs-gains { display: flex; flex-wrap: wrap; gap: 16px; }
  .cs-gains li { flex: 1 1 230px; display: flex; gap: 11px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); font-size: .96rem; font-weight: 500; color: var(--ink); }
  .cs-gains li svg { flex: none; width: 19px; height: 19px; margin-top: 2px; color: var(--blue-600); }

  .cs-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .cs-shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
  .cs-frame { aspect-ratio: 4 / 3; background: var(--bg-alt); padding: 14px; display: flex; flex-direction: column; gap: 9px; }
  .cs-dots { display: flex; gap: 5px; margin-bottom: 4px; }
  .cs-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d5dbe6; }
  .cs-ln { height: 9px; border-radius: 4px; background: #e4e9f1; }
  .cs-ln.s { width: 42%; } .cs-ln.m { width: 68%; } .cs-ln.l { width: 90%; }
  .cs-shot figcaption { padding: 11px 15px; font-size: .85rem; font-weight: 500; color: var(--ink-2); border-top: 1px solid var(--line); }

  .cs-final-cta { margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--line); text-align: center; }
  .cs-final-cta p { font-size: clamp(1.1rem, 1rem + 0.7vw, 1.4rem); font-weight: 650; color: var(--ink); margin-bottom: 18px; letter-spacing: -0.01em; }

  /* ---- case study: scenariusz + problem + narzędzia + dowód wizualny ---- */
  .cs-scenario { margin-top: 4px; }
  .cs-problem {
    margin: clamp(22px, 3vw, 32px) 0 0;
    padding: 18px 20px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-left: 3px solid #f5a04b;
    border-radius: 12px;
    max-width: 820px;
  }
  .cs-problem .lbl { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
  .cs-problem p { font-size: 1rem; color: var(--ink-2); }

  .cs-tools-block { margin-top: clamp(28px, 4vw, 44px); }
  .cs-tools-block > h4 { font-size: clamp(1.2rem, 1rem + 0.7vw, 1.45rem); letter-spacing: -0.01em; color: var(--ink); margin-bottom: 14px; }
  .cs-tools { display: flex; flex-wrap: wrap; gap: 8px; }
  .cs-tools .tool { font-size: .82rem; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; box-shadow: var(--shadow-sm); }

  .cs-shots.is-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* poglądowe miniatury 2x2 — klik otwiera pełny obraz */
  .cs-shots.cs-shots--photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .cs-shots--photos .cs-shot a { display: block; aspect-ratio: 16 / 10; overflow: hidden; cursor: zoom-in; background: var(--bg-alt); }
  .cs-shots--photos .cs-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .3s ease; }
  .cs-shots--photos .cs-shot a:hover img { transform: scale(1.03); }
  .cs-shots--photos .cs-shot figcaption { font-size: .82rem; }

  /* gdy przepływ jest pierwszym elementem panelu „po", bez górnej kreski */
  .cs-panel.is-after h4 + .cs-workflow { margin-top: 0; padding-top: 0; border-top: 0; }

  /* process timeline */
  .timeline { position: relative; display: grid; gap: 6px; }
  .tl-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 18px 0; align-items: start; }
  .tl-step + .tl-step { border-top: 1px solid var(--dark-line); }
  .tl-num {
    width: 46px; height: 46px; border-radius: 12px; flex: none;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.05rem;
    background: rgba(255,255,255,.05); border: 1px solid var(--dark-line); color: #93b4fb;
  }
  .tl-step h3 { font-size: 1.12rem; color: #fff; margin-bottom: 5px; }
  .tl-step p { color: var(--on-dark-2); font-size: .99rem; }

  /* approach */
  .approach-card { padding: 26px; }
  .approach-card .ic { background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(139,92,246,.14)); }
  .approach-card h3 { font-size: 1.08rem; }

  /* engagement */
  .eng-card { padding: 26px; display: flex; flex-direction: column; gap: 8px; }
  .eng-card h3 { font-size: 1.1rem; }
  .eng-card p { color: var(--ink-2); font-size: .96rem; flex: 1; }
  .eng-cta { margin-top: 34px; text-align: center; }

  /* faq */
  .faq-list { max-width: 800px; margin: 0 auto; }
  .faq-item { border-bottom: 1px solid var(--line); }
  .faq-item summary {
    list-style: none; cursor: pointer;
    padding: 22px 44px 22px 0; position: relative;
    font-size: 1.08rem; font-weight: 600; color: var(--ink);
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after {
    content: ""; position: absolute; right: 6px; top: 27px;
    width: 11px; height: 11px;
    border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
    transform: rotate(45deg); transition: transform .2s ease;
  }
  .faq-item[open] summary::after { transform: rotate(-135deg); }
  .faq-item .faq-a { padding: 0 44px 22px 0; color: var(--ink-2); font-size: 1rem; }

  /* contact */
  .contact-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 48px; align-items: start; }
  .contact-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
  .contact-info p { color: var(--on-dark-2); font-size: 1.08rem; }
  .contact-steps { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--dark-line); display: grid; gap: 14px; }
  .contact-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; color: #dce4f2; }
  .contact-steps li span {
    flex: none; width: 26px; height: 26px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem; font-weight: 700;
    background: rgba(59,130,246,.16); color: #93b4fb;
  }

  form.lead {
    background: #fff; color: var(--ink);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
  }
  .field { margin-bottom: 16px; }
  .field-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
  .field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
  .field label .opt { font-weight: 400; color: var(--ink-3); }
  .field input, .field textarea {
    width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
    background: var(--bg-alt);
    border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 14px;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
  }
  .field input:focus, .field textarea:focus {
    outline: none; background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(59,130,246,.12);
  }
  .field textarea { resize: vertical; min-height: 84px; }
  form.lead .btn { width: 100%; justify-content: center; margin-top: 4px; }
  .form-note { margin-top: 12px; font-size: .84rem; color: var(--ink-3); text-align: center; }
  .form-help { margin: 2px 0 16px; font-size: .84rem; line-height: 1.55; color: var(--ink-3); }
  .hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
  .form-legal { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; line-height: 1.6; color: var(--ink-3); }
  .form-legal a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
  .form-legal a:hover { color: var(--violet); }
  .form-status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: .92rem; display: none; }
  .form-status.ok { display: block; background: #eaf7ef; color: #15803d; border: 1px solid #bbe3c9; }
  .form-status.err { display: block; background: #fdeceb; color: #b91c1c; border: 1px solid #f3c9c6; }

  /* footer */
  .footer { background: var(--dark); color: var(--on-dark-2); padding: 54px 0 40px; border-top: 1px solid var(--dark-line); }
  .footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
  .footer .brand { color: #fff; }
  .footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
  .footer nav a { font-size: .92rem; color: var(--on-dark-2); }
  .footer nav a:hover { color: #fff; }
  .footer .copy { width: 100%; padding-top: 22px; border-top: 1px solid var(--dark-line); font-size: .85rem; }

  /* reveal */
  .js .reveal { opacity: 0; transform: translateY(18px); }
  .js .reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
  @media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1 !important; transform: none !important; }
    html { scroll-behavior: auto; }
  }

  /* ===================== RESPONSIVE =====================
     mobile   : <= 767px          (base = desktop, this steps down)
     tablet   : 768px – 1199px
     desktop  : 1200px – 1599px   (base rules above)
     wide     : >= 1600px
     Layout changes at breakpoints; type & spacing flex with clamp(). */

  /* ---------------- WIDE DESKTOP : >= 1600px ---------------- */
  @media (min-width: 1600px) {
    :root {
      --container: min(1440px, 90vw);
      --section-pad: clamp(100px, 7vw, 144px);
      --hero-gap: clamp(104px, 8vw, 156px);
    }
    .hero h1 { font-size: clamp(2.9rem, 1rem + 2vw, 3.4rem); }
    .flow { max-width: 540px; }
    /* four-card rows use the extra width instead of stretching */
    #podejscie .grid-2,
    #wspolpraca-formy .grid-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }

  /* ---------------- LAPTOP DESKTOP : 1200px – 1599px ----------------
     Skala dopasowana do 100% zoom na typowym laptopie (1366–1536 px).
     Zakres domknięty z obu stron — nie wpływa na mobile ani na >=1600. */
  @media (min-width: 1200px) and (max-width: 1599px) {
    :root {
      --container: min(1320px, 92vw);
      --section-pad: clamp(64px, 7vw, 112px);
      --hero-gap: clamp(44px, 5.5vw, 100px);
    }

    /* hero: niższe paddingi, mniejszy H1, ciaśniejszy rytm pionowy */
    .hero { padding: clamp(48px, 5.5vw, 84px) 0 clamp(52px, 6vw, 92px); }
    .hero h1 { font-size: clamp(2rem, 0.9rem + 1.85vw, 2.72rem); }
    .hero .subhead { margin-top: 15px; font-size: clamp(1rem, 0.85rem + 0.55vw, 1.22rem); }
    .hero .lede { margin-top: 13px; }
    .hero .cta-row { margin-top: 24px; }
    .hero-benefits { margin-top: 24px; gap: 10px; }
    .hero-benefit { padding: 13px 12px; }
    .hero-benefit p { font-size: .86rem; }

    /* prawy mockup hero ~10% mniejszy */
    .flow { max-width: 468px; }

    /* duże H2 lekko w dół, ciaśniejszy odstęp pod nagłówkiem sekcji */
    .section-head { margin-bottom: clamp(30px, 4vw, 52px); }
    .section-head h2 { font-size: clamp(1.7rem, 0.85rem + 1.95vw, 2.5rem); }
    .contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
  }

  /* ---------------- TABLET : 768px – 1199px ---------------- */
  @media (max-width: 1199px) {
    :root {
      --container: min(1060px, 91vw);
      --section-pad: clamp(60px, 8vw, 104px);
      --hero-gap: clamp(36px, 6vw, 56px);
    }

    /* nav collapses to hamburger */
    .nav-menu {
      position: absolute; top: var(--nav-h); left: 0; right: 0;
      flex-direction: column; align-items: stretch; gap: 4px;
      background: #fff; border-bottom: 1px solid var(--line);
      padding: 14px 24px 20px;
      box-shadow: var(--shadow-md);
      display: none;
    }
    .nav.open .nav-menu { display: flex; }
    .nav-menu a.nav-link { color: var(--ink-2); padding: 11px 0; white-space: normal; }
    .nav-menu .btn { justify-content: center; margin-top: 6px; }
    .nav-toggle { display: block; }
    .nav { background: rgba(11,18,32,.92); }
    .nav.solid { background: rgba(255,255,255,.96); }

    /* hero stacks; visual moves below, kept compact */
    .hero .container { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .hero-text { max-width: 760px; }
    .hero-visual { max-width: 460px; margin: 0; }
    .flow { margin: 0; max-width: 100%; }

    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .cs-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  /* ---------------- MOBILE : <= 767px ---------------- */
  @media (max-width: 767px) {
    :root {
      --container: 100%;
      --section-pad: clamp(52px, 12vw, 72px);
    }
    .container { padding: 0 24px; }

    .hero { padding: clamp(40px, 10vw, 64px) 0 clamp(48px, 12vw, 72px); }
    .hero h1 { font-size: clamp(1.9rem, 7.2vw, 2.45rem); line-height: 1.14; }
    .hero .subhead { margin-top: 16px; font-size: 1.08rem; }
    .hero .lede { margin-top: 14px; }
    .hero-visual { display: none; }
    .hero .cta-row { margin-top: 24px; width: 100%; gap: 10px; }
    .hero .cta-row .btn { flex: 1 1 100%; justify-content: center; }
    .hero-benefits { margin-top: 26px; grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .hero-benefit { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
    .hero-benefit .n { margin-bottom: 0; }

    .grid-2, .grid-3, .ba, .field-row, .cs-grid, .cs-checklist, .cs-shots,
    #podejscie .grid-2, #wspolpraca-formy .grid-2 { grid-template-columns: minmax(0, 1fr); }
    .cs-shots.is-quad, .cs-shots.cs-shots--photos { grid-template-columns: minmax(0, 1fr); }
    .tl-step { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
    .faq-item summary { font-size: 1.02rem; padding-right: 36px; }
    /* section CTAs go full-width so long labels never clip */
    .eng-cta { display: flex; }
    .eng-cta .btn { width: 100%; padding-left: 18px; padding-right: 18px; }
  }

  /* ---------------- SMALL PHONE : <= 400px ---------------- */
  @media (max-width: 400px) {
    body { font-size: 16px; }
    .container { padding: 0 20px; }
    .card, .problem-card, .case-card, .approach-card, .eng-card, form.lead { padding: 20px; }
    .ba-card { padding: 22px; }
    .chain { font-size: .95em; }
  }
