
  :root{
    --ink:        #404040;
    --ink-2:      #3a3f46;
    --green:      #1c3f78;
    --green-2:    #0867CC;
    --mint:       #92c0ff;
    --sand:       #edf2fb;
    --paper:      #f3f8ff;
    --line:       #d0daea;
    --muted:      #6b7280;
    --white:      #ffffff;
    --accent:     #0867CC; /* niebieski CTA */


  }

  html, body { background: var(--paper); color: var(--ink); font-family: 'DM Serif', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

  /* Typography */
  .display-serif { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; letter-spacing: -.01em; line-height: 1; }
  /* .display-serif em { font-style: italic; color: var(--green-2); } */
  .eyebrow { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--green-2); }
  .lede { font-size: 1.18rem; line-height: 1.55; color: #1d2d42; max-width: 62ch; }
  .text-muted-2 { color: var(--muted) !important; }
  .h-num { font-family: 'DM Serif Display', serif; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; }

  /* Buttons */
  .btn { border-radius: 999px; padding: .85rem 1.5rem; font-weight: 600; letter-spacing: .01em; }
  .btn-ink { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
  .btn-ink:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-1px); }
  .btn-outline-ink { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
  .btn-outline-ink:hover { background: var(--ink); color: #fff; }
  .btn-accent { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
  .btn-accent:hover { background: #1a42b8; border-color: #1a42b8; color: #fff; }
  .btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
  .btn-ghost-light:hover { background: #fff; color: var(--ink); }
  .arrow-link { color: var(--ink); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; transition: gap .2s ease; }
  .arrow-link:hover { gap: .9rem; color: var(--green-2); }
  .arrow-link svg { transition: transform .2s ease; }

  /* Navbar */
  .topbar { background: var(--ink); color: #b0c4dd; font-size: .82rem; }
  .topbar a { color: #b0c4dd; text-decoration: none; }
  .topbar a:hover { color: #fff; }
  .navbar-mc {
    background: rgba(245,248,255,.92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 1000;
  }
  .brand-mark {
    font-family: 'Instrument Serif', serif;
    font-size: 1.7rem; letter-spacing: -.01em; color: var(--ink);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: .55rem;
  }
  .brand-mark .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--accent); display: inline-block; }
  .nav-mc .nav-link {
    color: var(--ink); font-weight: 500; font-size: 1.2rem; padding: .5rem .9rem !important;font-family: DM Serif;
    position: relative;
  }
  .nav-mc .nav-link.active { color: var(--green); }
  .nav-mc .nav-link.active::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: -2px; height: 2px; background: var(--green-2);
  }
  .nav-mc .nav-link:hover { color: var(--green-2); }

  /* Sections */
  .section { padding: clamp(60px, 8vw, 120px) 0; }
  .section-tight { padding: clamp(48px, 6vw, 90px) 0; }
  .bg-paper { background: var(--paper); }
  .bg-sand { background: var(--sand); }
  .bg-ink { background: var(--ink); color: #e0e8f5; }
  .bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #fff; }
  .bg-green { background: var(--green); color: #e0e8f5; }
  .bg-green h1, .bg-green h2, .bg-green h3 { color: #fff; }

  /* Hero */
  .hero {
    position: relative;
    padding: clamp(48px, 70vw, 296px) 0 clamp(40px, 70vw, 80px);
    overflow: hidden;
  }
  .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(35deg, rgba(45,50,56,0.5) 30%, rgba(45,50,56,0.0) 50%, rgba(45,50,56,0.0) 90%);;
  }
  .hero-content { position: relative; z-index: 2; }
  .hero-grid { display: grid; grid-template-columns: 1.1fr 1.2fr; gap: 48px; align-items: end; }
  @media (max-width: 991px) { .hero-grid { grid-template-columns: 1fr; } }
  .hero h1 { font-size: clamp(1.6rem, 5vw, 5rem); }
  .hero-img-wrap {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 8px;
    overflow: hidden;
    background: #ddd;
  }
  .hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .hero-stamp {
    position: absolute; bottom: 16px; left: 16px; right: 16px;
    background: rgba(28,63,120,.78); color: #fff;
    backdrop-filter: blur(6px);
    padding: 14px 18px; border-radius: 4px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: .85rem;
  }
  .hero-meta { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); margin-top: 36px; }
  .hero-meta .item { display: flex; flex-direction: column; }
  .hero-meta .item b { font-family: 'Instrument Serif', serif; font-size: 2rem; font-weight: 400; line-height: 1; color: var(--ink); }
  .hero-meta .item span { font-size: .8rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }

  /* Marquee */
  .marquee { overflow: hidden; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
  .marquee-track { display: flex; gap: 64px; animation: scroll 38s linear infinite; white-space: nowrap; font-family: 'Instrument Serif', serif; font-size: 1.6rem; color: var(--ink-2); }
  .marquee-track span { display: inline-flex; align-items: center; gap: 64px; }
  .marquee-track .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 999px; display: inline-block; }
  @keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* Service cards */
  .service-card {
    background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
    display: flex; flex-direction: column;
  }
  .service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(28,63,120,.25); }
  .service-card .img { aspect-ratio: 4/3; overflow: hidden; }
  .service-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
  .service-card:hover .img img { transform: scale(1.04); }
  .service-card .body { padding: 28px 26px; flex: 1; display: flex; flex-direction: column; }
  .service-card h3 { font-family: 'Instrument Serif', serif; font-size: 1.7rem; font-weight: 400; margin-bottom: 12px; }
  .service-card .num {
    font-family: 'Instrument Serif', serif; color: var(--green-2);
    font-size: 1rem; letter-spacing: .15em;
  }

  /* Process */
  .process-step {
    border-top: 1px solid rgba(255,255,255,.18);
    padding: 28px 0;
    display: grid; grid-template-columns: 80px 1fr 1.6fr; gap: 24px;
    align-items: start;
  }
  @media (max-width: 767px) { .process-step { grid-template-columns: 60px 1fr; } .process-step p.lede-light { grid-column: 1 / -1; } }
  .process-step:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
  .process-step .step-num { font-family: 'Instrument Serif', serif; font-size: 2.2rem; color: var(--mint); }
  .process-step h4 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.55rem; color: #fff; margin: 0; }
  .process-step .lede-light { color: #92c0ff; line-height: 1.55; }

  /* Realizacje (project tiles) */
  .project {
    display: block; text-decoration: none; color: inherit;
    border-radius: 6px; overflow: hidden; position: relative;
    background: #ddd;
    aspect-ratio: 3/4;
  }
  .project img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
  .project:hover img { transform: scale(1.05); }
  .project::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(28,63,120,.85) 0%, rgba(28,63,120,.05) 45%, rgba(28,63,120,0) 100%);
  }
  .project .meta {
    position: absolute; left: 22px; right: 22px; bottom: 20px;
    color: #fff; z-index: 2;
  }
  .project .meta .tag { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
  .project .meta h3 { font-family: 'Instrument Serif', serif; font-size: 1.6rem; font-weight: 400; margin: 4px 0 8px; }
  .project .meta .specs { font-size: .82rem; opacity: .85; display: flex; gap: 16px; flex-wrap: wrap; }
  .project.wide { aspect-ratio: 16/10; }

  /* Why differentiators */
  .diff-row { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 80px 1.1fr 1.4fr; gap: 24px; align-items: start; }
  @media (max-width: 767px) { .diff-row { grid-template-columns: 60px 1fr; } .diff-row p { grid-column: 1 / -1; } }
  .diff-row:last-child { border-bottom: 1px solid var(--line); }
  .diff-row .num { font-family: 'Instrument Serif', serif; font-size: 1.8rem; color: var(--green-2); }
  .diff-row h4 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.6rem; margin: 0; }
  .diff-row p { color: #1d2d42; max-width: 60ch; margin: 0; line-height: 1.55; }

  /* Testimonials */
  .quote-card {
    background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 36px 32px;
    height: 100%;
    display: flex; flex-direction: column; gap: 22px;
  }
  .quote-card blockquote {
    font-family: 'Instrument Serif', serif; font-size: 1.55rem; line-height: 1.35;
    color: var(--ink); margin: 0; flex: 1;
  }
  .quote-card .who { display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
  .quote-card .who .avatar { width: 48px; height: 48px; border-radius: 999px; overflow: hidden; flex-shrink: 0; }
  .quote-card .who .avatar img { width: 100%; height: 100%; object-fit: cover; }
  .quote-card .who b { display: block; font-weight: 600; font-size: .95rem; }
  .quote-card .who span { font-size: .82rem; color: var(--muted); }

  /* CTA banner */
  .cta-band {
    border-radius: 8px;
    padding: clamp(40px, 6vw, 70px) clamp(28px, 5vw, 64px);
    position: relative; overflow: hidden;
  }
  .cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }

  /* Form */
  .form-mc .form-control, .form-mc .form-select {
    border-radius: 4px; border: 1px solid var(--line); background: #fff;
    padding: .85rem 1rem; font-size: .98rem;
  }
  .form-mc .form-control:focus, .form-mc .form-select:focus {
    border-color: var(--green-2); box-shadow: 0 0 0 .2rem rgba(37,99,235,.12);
  }
  .form-mc label { font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }

  /* Footer */
  footer.foot { background: var(--ink); color: #9baec4; padding: 70px 0 28px; }
  footer.foot a { color: #c5d4e8; text-decoration: none; }
  footer.foot a:hover { color: #fff; }
  footer.foot h5 { color: #fff; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
  footer.foot ul { list-style: none; padding: 0; margin: 0; }
  footer.foot li { margin-bottom: 10px; font-size: .95rem; }
  footer.foot .bottombar {
    border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: .82rem; color: #7a8fa8;
  }

  /* Page switch */
  .page { display: none; }
  .page.active { display: block; animation: fade .35s ease; }
  @keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

  /* About / inner page hero */
  .page-hero { padding: 80px 0 40px; }
  .page-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }

  /* Realizacje filter chips */
  .chip {
    display: inline-block; padding: .55rem 1.05rem; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    font-weight: 500; font-size: .9rem; cursor: pointer; transition: all .2s ease;
  }
  .chip:hover { border-color: var(--ink); }
  .chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

  /* Contact card */
  .contact-card {
    background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 28px 26px;
    height: 100%;
  }
  .contact-card .ic {
    width: 44px; height: 44px; border-radius: 999px; background: var(--mint);
    display: inline-flex; align-items: center; justify-content: center; color: var(--green); margin-bottom: 16px;
  }
  .contact-card h4 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.4rem; margin-bottom: 6px; }
  .contact-card a { color: var(--ink); font-weight: 600; text-decoration: none; }
  .contact-card a:hover { color: var(--green-2); }

  /* Stats strip */
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  @media (max-width: 767px) { .stats { grid-template-columns: repeat(2, 1fr); } }
  .stats .stat { padding: 36px 24px; border-right: 1px solid var(--line); }
  .stats .stat:last-child { border-right: 0; }
  @media (max-width: 767px) { .stats .stat:nth-child(2n) { border-right: 0; } .stats .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
  .stats b { display: block; font-family: 'Instrument Serif', serif; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1; color: var(--ink); }
  .stats span { display: block; margin-top: 10px; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

  /* About team grid */
  .person { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
  .person .ph { aspect-ratio: 4/5; background: #ddd; }
  .person .ph img { width: 100%; height: 100%; object-fit: cover; }
  .person .info { padding: 20px 22px; }
  .person h4 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.35rem; margin-bottom: 4px; }
  .person span { color: var(--muted); font-size: .9rem; }

  /* Utility */
  .ratio-portrait { aspect-ratio: 4/5; }
  .img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
  .rounded-mc { border-radius: 6px; overflow: hidden; }

  /* ==================== MODERN EFFECTS ==================== */

  /* Smooth scrolling globalnie */
  html { scroll-behavior: smooth; }

  /* Custom selection */
  ::selection { background: var(--accent); color: #fff; }
  ::-moz-selection { background: var(--accent); color: #fff; }

  /* Custom scrollbar */
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--paper); }
  ::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 999px; border: 2px solid var(--paper); }
  ::-webkit-scrollbar-thumb:hover { background: var(--green-2); }

  /* Page loader */
  .page-loader {
    position: fixed; inset: 0; background: var(--ink); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .6s ease, visibility .6s ease;
  }
  .page-loader.is-hidden { opacity: 0; visibility: hidden; }
  .page-loader .pl-bar {
    width: 220px; height: 2px; background: rgba(255,255,255,.12); position: relative; overflow: hidden;
  }
  .page-loader .pl-bar::after {
    content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 30%;
    background: var(--accent);
    animation: plSlide 1.1s ease-in-out infinite;
  }
  @keyframes plSlide {
    0% { left: -30%; }
    100% { left: 100%; }
  }

  /* Reveal on scroll */
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  .reveal.is-in { opacity: 1; transform: none; }
  .reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  .reveal-left.is-in { opacity: 1; transform: none; }
  .reveal-right { opacity: 0; transform: translateX(32px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  .reveal-right.is-in { opacity: 1; transform: none; }
  .reveal-scale { opacity: 0; transform: scale(.96); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  .reveal-scale.is-in { opacity: 1; transform: none; }
  /* Stagger: dzieci pojawiają się sekwencyjnie po wejściu rodzica */
  .reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
  .reveal-stagger.is-in > *:nth-child(1) { opacity: 1; transform: none; transition-delay: .05s; }
  .reveal-stagger.is-in > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .15s; }
  .reveal-stagger.is-in > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .25s; }
  .reveal-stagger.is-in > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .35s; }
  .reveal-stagger.is-in > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .45s; }
  .reveal-stagger.is-in > *:nth-child(6) { opacity: 1; transform: none; transition-delay: .55s; }

  /* Hero parallax warstwa */
  .hero { will-change: transform; }
  .hero-bg-parallax {
    position: absolute; inset: -10% 0 0 0;
    background-size: cover; background-position: center;
    will-change: transform;
    z-index: 0;
  }

  /* Animowany gradient mesh w tle hero (subtelny) */
  .hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background:
      radial-gradient(circle at 20% 30%, rgba(29,78,216,.18), transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(37,99,235,.22), transparent 45%);
    animation: meshFloat 14s ease-in-out infinite alternate;
    pointer-events: none;
  }
  @keyframes meshFloat {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(-2%, 1%) scale(1.05); }
    100% { transform: translate(2%, -1%) scale(1); }
  }

  /* Hero — typografia z animacją wejścia (split lines) */
  .hero h1 .line {
    display: block; overflow: hidden;
  }
  .hero h1 .line > span {
    display: inline-block;
    transform: translateY(110%);
    animation: heroLineUp 1.05s cubic-bezier(.2,.75,.2,1) forwards;
  }
  .hero h1 .line:nth-child(1) > span { animation-delay: .25s; }
  .hero h1 .line:nth-child(2) > span { animation-delay: .4s; }
  .hero h1 .line:nth-child(3) > span { animation-delay: .55s; }
  @keyframes heroLineUp {
    to { transform: translateY(0); }
  }
  .hero .eyebrow,
  .hero .lede,
  .hero .hero-cta-row {
    opacity: 0; transform: translateY(16px);
    animation: heroFadeUp .9s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .hero .eyebrow { animation-delay: .1s; }
  .hero .lede { animation-delay: .8s; }
  .hero .hero-cta-row { animation-delay: .95s; }
  @keyframes heroFadeUp {
    to { opacity: 1; transform: none; }
  }

  /* Scroll indicator w hero */
  .hero-scroll-cue {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
    z-index: 5; color: rgba(255,255,255,.7);
    font-family: 'DM Sans', sans-serif; font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    opacity: 0; animation: heroFadeUp .9s ease 1.2s forwards;
  }
  .hero-scroll-cue .line {
    width: 1px; height: 38px; background: rgba(255,255,255,.4); position: relative; overflow: hidden;
  }
  .hero-scroll-cue .line::after {
    content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
    background: var(--accent);
    animation: scrollCue 2.2s ease-in-out infinite;
  }
  @keyframes scrollCue {
    0% { top: -100%; }
    100% { top: 100%; }
  }

  /* Buttons — magnetic + shimmer */
  .btn-ink, .btn-accent, .btn-outline-ink, .btn-ghost-light {
    position: relative; overflow: hidden;
    transition: transform .25s cubic-bezier(.2,.7,.2,1), background .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
  }
  .btn-accent { box-shadow: 0 6px 18px -8px rgba(29,78,216,.55); }
  .btn-accent:hover { box-shadow: 0 14px 30px -10px rgba(29,78,216,.7); transform: translateY(-2px); }
  .btn-ink:hover { box-shadow: 0 14px 30px -12px rgba(45,50,56,.5); }
  /* Shimmer */
  .btn-accent::before, .btn-ink::before {
    content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.22) 50%, transparent 100%);
    transition: left .8s ease;
    pointer-events: none;
  }
  .btn-accent:hover::before, .btn-ink:hover::before { left: 130%; }

  /* Arrow link – animowane podkreślenie */
  .arrow-link {
    position: relative; padding-bottom: 2px;
  }
  .arrow-link::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: currentColor;
    transform: scaleX(0); transform-origin: right;
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
  }
  .arrow-link:hover::after {
    transform: scaleX(1); transform-origin: left;
  }

  /* Nav link – animowany podkreślnik */
  .nav-mc .nav-link::before {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: -2px; height: 2px;
    background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
  }
  .nav-mc .nav-link:hover::before { transform: scaleX(1); }

  /* Navbar — kurczy się przy scrollu */
  .navbar-mc { transition: padding .3s ease, background .3s ease, box-shadow .3s ease; }
  .navbar-mc.is-scrolled {
    background: rgba(245,248,255,.97);
    box-shadow: 0 6px 20px -12px rgba(45,50,56,.18);
  }
  .navbar-mc.is-scrolled .container { padding-top: .5rem !important; padding-bottom: .5rem !important; }

  /* Service cards — bardziej dynamiczny hover + lekka rotacja 3D */
  .service-card {
    transform-style: preserve-3d;
    transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease, border-color .3s ease;
  }
  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -28px rgba(45,50,56,.35);
    border-color: rgba(37,99,235,.3);
  }
  .service-card .img { position: relative; }
  .service-card .img::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(45,50,56,.35));
    opacity: 0; transition: opacity .4s ease;
  }
  .service-card:hover .img::after { opacity: 1; }
  .service-card:hover .img img { transform: scale(1.08); }

  /* Project tiles — ulepszenia */
  .project { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .project:hover { transform: translateY(-4px); }
  .project .meta {
    transform: translateY(8px); opacity: .92;
    transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .35s ease;
  }
  .project:hover .meta { transform: none; opacity: 1; }

  /* Stat counters — subtelny kreseczka pod licznikiem */
  .stats .stat { position: relative; transition: background .3s ease; }
  .stats .stat:hover { background: rgba(45,50,56,.02); }
  .stats .stat::after {
    content: ""; position: absolute; left: 24px; bottom: 18px; height: 2px; width: 0;
    background: var(--accent);
    transition: width .5s cubic-bezier(.2,.7,.2,1);
  }
  .stats .stat:hover::after { width: 36px; }

  /* Process steps — accent line po lewej przy hoverze */
  .process-step { position: relative; transition: padding-left .35s cubic-bezier(.2,.7,.2,1); }
  .process-step::before {
    content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 2px;
    background: var(--accent);
    transform: scaleY(0); transform-origin: top;
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
  }
  .process-step:hover { padding-left: 14px; }
  .process-step:hover::before { transform: scaleY(1); }

  /* Diff rows — bardzo lekkie podświetlenie */
  .diff-row { transition: background .3s ease, padding-left .3s ease; }
  .diff-row:hover { background: rgba(37,99,235,.04); padding-left: 12px; }

  /* CTA band — animowany gradient w tle */
  .cta-band {
    background: linear-gradient(135deg, var(--green) 0%, var(--ink) 60%, #12171f 100%);
    color: #e0e8f5;
    background-size: 200% 200%;
    animation: ctaGradient 12s ease-in-out infinite alternate;
  }
  .cta-band h2 { color: #fff; }
  .cta-band .lede { color: #c5d8f5; }
  .cta-band::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(circle at 15% 20%, rgba(29,78,216,.25), transparent 35%),
      radial-gradient(circle at 90% 80%, rgba(191,215,248,.18), transparent 35%);
    animation: meshFloat 14s ease-in-out infinite alternate;
  }
  @keyframes ctaGradient {
    0%   { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
  }

  /* Form focus glow */
  .form-mc .form-control, .form-mc .form-select {
    transition: border-color .3s ease, box-shadow .3s ease, transform .2s ease;
  }
  .form-mc .form-control:focus, .form-mc .form-select:focus {
    box-shadow: 0 0 0 4px rgba(37,99,235,.14);
  }

  /* Marquee — pauza on hover */
  .marquee:hover .marquee-track { animation-play-state: paused; }

  /* Chip — pulsująca aktywna */
  .chip { position: relative; overflow: hidden; }
  .chip.is-active::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,.2), transparent);
    animation: chipShine 2.5s ease-in-out infinite;
  }
  @keyframes chipShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
  }

  /* Scroll progress bar */
  .scroll-progress {
    position: fixed; left: 0; top: 0; height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--green-2));
    z-index: 1100; transition: width .1s linear;
  }

  /* Back to top */
  .back-to-top {
    position: fixed; right: 24px; bottom: 24px;
    width: 46px; height: 46px; border-radius: 999px;
    background: var(--ink); color: #fff;
    display: flex; align-items: center; justify-content: center;
    border: none;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .3s ease;
    z-index: 999;
    box-shadow: 0 10px 25px -10px rgba(45,50,56,.5);
  }
  .back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
  .back-to-top:hover { background: var(--accent); }

  /* Image hover lift dla rounded-mc */
  .rounded-mc { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease; }
  .rounded-mc:hover { box-shadow: 0 24px 50px -25px rgba(45,50,56,.3); }

  /* Reduced motion respect */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
  }

  /* ==================== GALERIA ZDJĘĆ Z BUDOWY ==================== */
  .gallery-grid {
    columns: 4 220px;
    column-gap: 12px;
  }
  @media (max-width: 991px) { .gallery-grid { columns: 3 180px; } }
  @media (max-width: 575px)  { .gallery-grid { columns: 2 140px; } }

  .gallery-item {
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--line);
  }
  .gallery-item img {
    width: 100%; display: block;
    transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s ease;
  }
  .gallery-item:hover img { transform: scale(1.05); filter: brightness(1.08); }
  .gallery-item::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(28,63,120,.55));
    opacity: 0; transition: opacity .35s ease;
    pointer-events: none;
  }
  .gallery-item:hover::after { opacity: 1; }
  .gallery-item .zoom-ic {
    position: absolute; right: 10px; bottom: 10px;
    width: 32px; height: 32px; border-radius: 999px;
    background: rgba(255,255,255,.85); color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(.7);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 2;
  }
  .gallery-item:hover .zoom-ic { opacity: 1; transform: scale(1); }

  /* Gallery skeleton loader */
  .gallery-skeleton {
    background: linear-gradient(90deg, var(--line) 0%, #e8eef8 50%, var(--line) 100%);
    background-size: 200% 100%;
    animation: skelPulse 1.4s ease-in-out infinite;
    border-radius: 6px; height: 180px;
    margin-bottom: 12px;
  }
  @keyframes skelPulse {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  /* Lightbox */
  .lb-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(10,14,20,.92);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
  }
  .lb-overlay.is-open { opacity: 1; visibility: visible; }
  .lb-inner {
    position: relative; max-width: 90vw; max-height: 90vh;
    display: flex; align-items: center; gap: 16px;
  }
  .lb-img-wrap {
    max-width: calc(90vw - 100px); max-height: 90vh;
    border-radius: 6px; overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
  }
  .lb-img-wrap img {
    display: block;
    max-width: 100%; max-height: 90vh;
    object-fit: contain;
  }
  .lb-btn {
    width: 44px; height: 44px; border-radius: 999px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .2s ease;
    flex-shrink: 0;
  }
  .lb-btn:hover { background: rgba(255,255,255,.25); }
  .lb-close {
    position: absolute; top: -50px; right: 0;
    width: 38px; height: 38px; border-radius: 999px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .2s ease;
  }
  .lb-close:hover { background: rgba(255,255,255,.3); }
  .lb-counter {
    position: absolute; bottom: -38px; left: 50%; transform: translateX(-50%);
    font-size: .8rem; color: rgba(255,255,255,.55); font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
  }

  /* ==================== PODSTRONY REALIZACJI ==================== */
  .breadcrumb-back {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--green-2); text-decoration: none; font-family: 'DM Sans', sans-serif;
    font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
    margin-bottom: 1rem;
    transition: gap .2s ease, color .2s ease;
  }
  .breadcrumb-back:hover { gap: .7rem; color: var(--green); }

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