:root {
  --bg: #ffffff;
  --bg-soft: #f4f8fd;
  --bg-blue: #eaf2fc;
  --surface: #ffffff;
  --border: #e3eaf3;
  --border-strong: #cfdbeb;
  --text: #0f1e35;
  --text-2: #3b4a63;
  --muted: #6b7a93;
  --primary: #0b5fd9;
  --primary-dark: #0846a6;
  --primary-light: #3b82f6;
  --sky: #38bdf8;
  --ok: #10b981;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 53, 0.04), 0 2px 8px rgba(15, 30, 53, 0.04);
  --shadow: 0 10px 30px rgba(11, 95, 217, 0.08), 0 2px 6px rgba(15, 30, 53, 0.04);
  --shadow-lg: 0 30px 70px rgba(11, 95, 217, 0.14), 0 8px 20px rgba(15, 30, 53, 0.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.section-head { max-width: 700px; margin-bottom: 3.5rem; }
.section-head p { color: var(--text-2); font-size: 1.15rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--sky)); border-radius: 2px; }
.grad {
  background: linear-gradient(90deg, var(--primary), var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Tło: subtelna siatka + miękkie plamy błękitu */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background-image: linear-gradient(rgba(11, 95, 217, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 95, 217, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 70vh); mask-image: linear-gradient(180deg, #000 0, transparent 70vh);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; animation: drift 24s ease-in-out infinite alternate; }
.orb-1 { width: 560px; height: 560px; background: #c7ddfb; top: -200px; right: -120px; }
.orb-2 { width: 420px; height: 420px; background: #dbeafe; top: 45%; left: -180px; animation-delay: -9s; }
.orb-3 { width: 380px; height: 380px; background: #e0f2fe; bottom: -160px; right: 20%; animation-delay: -16s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-50px, 40px) scale(1.1); } }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem; border-radius: 12px; font-weight: 600; font-size: .98rem;
  color: #fff; border: 0; cursor: pointer; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 8px 22px rgba(11, 95, 217, 0.28);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11, 95, 217, 0.35); }
.btn:hover::after { transform: translateX(120%); }
.btn-ghost { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); border: 1px solid var(--border-strong); }
.btn-ghost:hover { box-shadow: var(--shadow); background: var(--bg-soft); }
.btn-ghost::after { display: none; }
.btn-sm { padding: .6rem 1.2rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* Nagłówek */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: 0 6px 24px rgba(15, 30, 53, 0.05); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; }
.logo b { font-weight: 800; color: var(--primary); }
.nav { display: flex; align-items: center; gap: 2rem; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn) { color: var(--text-2); position: relative; padding: .3rem 0; transition: color .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--primary); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:not(.btn):hover { color: var(--primary); }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .25s, opacity .25s; }

/* Hero */
.hero { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.lead { font-size: 1.2rem; color: var(--text-2); max-width: 560px; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin: 2.2rem 0 2.8rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, max-content); border-top: 1px solid var(--border); padding-top: 1.6rem; }
.hero-stats li { display: flex; flex-direction: column; padding-right: 2rem; margin-right: 2rem; border-right: 1px solid var(--border); }
.hero-stats li:last-child { border: 0; margin: 0; padding: 0; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.hero-stats span { color: var(--muted); font-size: .88rem; }

/* Wizualizacja hero — panel typu dashboard */
.hero-visual { position: relative; }
.dash {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transition: transform .6s var(--ease);
}
.hero-visual:hover .dash { transform: perspective(1400px) rotateY(-2deg) rotateX(0deg); }
.dash-bar { display: flex; align-items: center; gap: 7px; padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); font-size: .8rem; color: var(--muted); background: var(--bg-soft); }
.dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.dash-bar span { margin-left: .5rem; font-weight: 500; }
.dash-body { padding: 1.4rem; display: grid; gap: 1.1rem; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.kpi { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: .8rem .8rem; min-width: 0; }
.kpi span { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--text); white-space: nowrap; }
.kpi em { font-style: normal; font-size: .75rem; color: var(--ok); font-weight: 600; margin-left: .3rem; }
.chart { display: flex; align-items: flex-end; gap: 7px; height: 110px; padding: .6rem .3rem 0; border-bottom: 1px solid var(--border); }
.chart b { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--primary-light), var(--primary)); opacity: .9; transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.chart b:nth-child(even) { background: linear-gradient(180deg, #93c5fd, #60a5fa); }
.chart b:nth-child(1) { height: 35%; animation-delay: .2s; } .chart b:nth-child(2) { height: 48%; animation-delay: .3s; } .chart b:nth-child(3) { height: 42%; animation-delay: .4s; }
.chart b:nth-child(4) { height: 60%; animation-delay: .5s; } .chart b:nth-child(5) { height: 55%; animation-delay: .6s; } .chart b:nth-child(6) { height: 72%; animation-delay: .7s; }
.chart b:nth-child(7) { height: 68%; animation-delay: .8s; } .chart b:nth-child(8) { height: 85%; animation-delay: .9s; } .chart b:nth-child(9) { height: 78%; animation-delay: 1s; } .chart b:nth-child(10) { height: 100%; animation-delay: 1.1s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.dash-rows { display: grid; gap: .55rem; }
.dash-rows div { display: flex; align-items: center; gap: .7rem; font-size: .85rem; color: var(--text-2); }
.dash-rows div::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
.dash-rows div span { margin-left: auto; color: var(--muted); font-size: .78rem; }

.float-card {
  position: absolute; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: .8rem 1.1rem; font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .6rem;
  animation: floaty 6s ease-in-out infinite;
}
.fc-1 { top: -22px; right: -14px; }
.fc-2 { bottom: -26px; left: -22px; animation-delay: -3s; }
.float-card strong { color: var(--primary); font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); animation: pulse 2s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); } 50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.06); } }

/* Zaufali nam */
.logos { padding: 2.5rem 0 1.5rem; }
.logos-title { text-align: center; color: var(--muted); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.4rem; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 3.2rem; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: #b6c2d3; letter-spacing: -0.01em; }
.logos-row span { transition: color .3s; }
.logos-row span:hover { color: var(--primary); }

/* Karty usług */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.1rem; position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, 0.10), transparent 45%);
}
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #bfd4f5; }
.card:hover::before, .card:hover::after { opacity: 1; transform: none; }
.card p { color: var(--text-2); margin: 0; font-size: .97rem; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.4rem;
  background: linear-gradient(135deg, #e4efff, #eef6ff); border: 1px solid #d4e3fa;
  transition: transform .4s var(--ease);
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Proces */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 3.4rem; height: 2px; background: linear-gradient(90deg, transparent, #bfd4f5 15%, #bfd4f5 85%, transparent); }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; position: relative; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.steps li:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.steps li p { color: var(--text-2); margin: 0; font-size: .95rem; }
.step-no {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 1.1rem;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary)); box-shadow: 0 6px 16px rgba(11, 95, 217, 0.3);
}

/* Technologie */
.tech-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.tech-grid .section-head { margin-bottom: 0; }
.tech-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tech-cols > div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.3rem 1.2rem; box-shadow: var(--shadow-sm); }
.tech-cols h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: .9rem; }
.tech-cols li { padding: .45rem 0; border-top: 1px solid var(--border); font-size: .93rem; color: var(--text-2); font-weight: 500; }

/* Realizacje */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.work { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-thumb { height: 200px; position: relative; overflow: hidden; }
.work-thumb::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); background-size: 28px 28px; }
.work-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.35), transparent 55%); transition: transform .6s var(--ease); }
.work:hover .work-thumb::after { transform: scale(1.15); }
.w1 { background: linear-gradient(135deg, #3b82f6, #0846a6); }
.w2 { background: linear-gradient(135deg, #38bdf8, #0b5fd9); }
.w3 { background: linear-gradient(135deg, #60a5fa, #1e3a8a); }
.work-body { padding: 1.6rem; }
.work-body h3 { transition: color .2s; }
.work:hover .work-body h3 { color: var(--primary); }
.work-body p { color: var(--text-2); margin: 0; font-size: .95rem; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; background: var(--bg-blue); color: var(--primary); margin-bottom: .9rem; }

/* Opinie */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
blockquote { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm); position: relative; }
blockquote::before { content: "”"; position: absolute; top: .4rem; right: 1.4rem; font-family: Georgia, serif; font-size: 6rem; line-height: 1; color: var(--bg-blue); }
blockquote p { font-size: 1.1rem; font-family: var(--font-head); font-weight: 500; color: var(--text); position: relative; }
blockquote footer { display: flex; flex-direction: column; font-size: .9rem; }
blockquote footer strong { color: var(--text); }
blockquote footer span { color: var(--muted); }

/* Kontakt */
.contact { background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-grid > div > p { color: var(--text-2); font-size: 1.1rem; }
.contact-list { margin-top: 2rem; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; gap: .1rem; padding-left: 1rem; border-left: 2px solid var(--primary); }
.contact-list span { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list a { color: var(--primary); font-weight: 600; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 2.2rem; display: grid; gap: 1.1rem; box-shadow: var(--shadow-lg); }
.field { display: grid; gap: .4rem; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text-2); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-soft);
  border: 1px solid var(--border-strong); border-radius: 12px; padding: .85rem 1rem; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(11, 95, 217, 0.12); }
.field input.err, .field textarea.err { border-color: #ef4444; }
.form-note { margin: 0; font-size: .9rem; color: var(--ok); min-height: 1.4em; font-weight: 500; }
.form-note.err { color: #ef4444; }

/* Stopka */
.site-footer { background: #0f1e35; color: #c5d0e0; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.site-footer .logo { color: #fff; }
.site-footer .logo b { color: var(--sky); }
.footer-grid p { color: #8fa0ba; max-width: 320px; margin-top: .8rem; font-size: .95rem; }
.footer-grid h4 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; color: #fff; }
.footer-grid a:not(.logo) { display: block; color: #8fa0ba; padding: .25rem 0; font-size: .95rem; transition: color .2s, transform .2s; }
.footer-grid a:not(.logo):hover { color: #fff; transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: #8fa0ba; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem; }

/* Animacje pojawiania */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .float-card, .chart b, .dot.ok { animation: none; }
}

/* RWD */
@media (max-width: 1000px) {
  .cards, .works { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .tech-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .tech-cols { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: .5rem 4%; box-shadow: var(--shadow);
    /* -110% własnej wysokości NIE wystarczy: menu startuje 76 px od góry,
       więc jego dolna krawędź (z przyciskiem CTA) wystawała w widok. */
    transform: translateY(calc(-100% - 80px)); visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s linear .35s; z-index: 40;
  }
  .nav.open { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--border); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 1rem 0; }
  .burger { display: flex; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cards, .works, .steps, .quotes, .contact-grid, .tech-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats li { padding-right: 1rem; margin-right: 1rem; }
  .hero-stats strong { font-size: 1.4rem; }
  .hero-stats span { font-size: .78rem; }
  .fc-1 { right: 0; top: -16px; }
  .fc-2 { left: 0; bottom: -18px; }
  .dash { transform: none; }
}

/* Logo */
.logo-mark { flex: none; filter: drop-shadow(0 4px 10px rgba(11, 95, 217, 0.22)); transition: transform .5s var(--ease); }
.logo:hover .logo-mark { transform: translateY(-2px) rotate(-4deg); }

/* Szkice serwerowni w tle */
.sketch {
  position: absolute; z-index: 0; pointer-events: none;
  fill: none; stroke: var(--primary); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transition: opacity 1.2s ease;
  filter: url(#sketchy);
}
.sketch use { stroke-dasharray: 900; stroke-dashoffset: 900; }
.sketch.in { opacity: .22; }
.sketch.in use { animation: draw 3.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sketch-hero { right: -5%; top: -1%; width: min(56vw, 760px); }
.sketch-tech { left: 0; bottom: 1.5rem; width: 440px; }
.sketch-tech.in { opacity: .16; }
.sketch-contact { left: 27%; bottom: 4rem; height: 250px; width: auto; }
.sketch-contact.in { opacity: .18; }
.hero, #technologie, .contact { position: relative; overflow: hidden; }
.hero .container, #technologie .container, .contact .container { position: relative; z-index: 1; }
@media (max-width: 1000px) {
  .sketch-hero { right: -10%; top: auto; bottom: 0; width: 70vw; }
  .sketch-hero.in { opacity: .12; }
  .sketch-tech, .sketch-contact { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sketch use { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}

/* Logo — wordmark z tagline */
.logo-text { display: flex; flex-direction: column; line-height: 1; letter-spacing: -0.02em; }
.logo-text i { font-style: normal; color: var(--muted); font-weight: 500; }
.logo-text b, .logo-text i { display: inline; }
.logo-text small { display: block; font-family: var(--font); font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.logo-text { display: block; }
.site-footer .logo-text i, .site-footer .logo-text small { color: #8fa0ba; }

/* Dlaczego SkySoft */
.why { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.why::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--primary), var(--sky)); }
.why h3 { font-size: 1.3rem; }
.why p { color: var(--text-2); margin: 0; }

/* ===== Hero slider ===== */
.slider { position: relative; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .8s var(--ease), visibility 0s linear .8s;
}
.slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .8s var(--ease), visibility 0s; }

/* tekst wjeżdża kaskadowo */
.slide .hero-copy > * { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.slide.is-active .hero-copy > *:nth-child(1) { transition-delay: .1s; }
.slide.is-active .hero-copy > *:nth-child(2) { transition-delay: .2s; }
.slide.is-active .hero-copy > *:nth-child(3) { transition-delay: .32s; }
.slide.is-active .hero-copy > *:nth-child(4) { transition-delay: .44s; }
.slide.is-active .hero-copy > * { opacity: 1; transform: none; }
.slide.is-leaving .hero-copy > * { transition-delay: 0s; opacity: 0; transform: translateY(-16px); }

/* wizualizacja slajdu */
.slide-visual { position: relative; min-height: 320px; display: grid; align-items: center; }
.sketch-slide { position: relative; width: 100%; height: auto; filter: url(#sketchy); stroke-width: 1.35; }
.sketch-slide.in { opacity: .5; }
.slide-visual .float-card { opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .6s var(--ease) .7s, transform .6s var(--ease) .7s; animation: none; }
.slide.is-active .slide-visual .float-card { opacity: 1; transform: none; animation: floaty 6s ease-in-out 1.3s infinite; }
.slide-visual .fc-1 { top: 6%; right: -6px; }
.slide-visual .fc-2 { bottom: 4%; left: -6px; }
.slide-visual.has-dash .sketch-slide { position: absolute; right: -10%; top: -22%; width: 118%; }
.slide-visual.has-dash .sketch-slide.in { opacity: .24; }
.slide-visual.has-dash .dash { position: relative; z-index: 1; opacity: 0; transform: perspective(1400px) rotateY(-7deg) rotateX(2deg) translateY(20px); transition: opacity .8s var(--ease) .3s, transform .8s var(--ease) .3s; }
.slide.is-active .slide-visual.has-dash .dash { opacity: 1; transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); }
.slide.is-active .slide-visual.has-dash .dash:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(0); }
.slide-visual.has-dash .fc-1 { top: -22px; right: -14px; z-index: 2; }

/* nawigacja slidera */
.slider-nav { display: flex; align-items: center; gap: 1rem; margin-top: 2.6rem; }
.slider-arrow {
  width: 44px; height: 44px; border-radius: 50%; flex: none; cursor: pointer;
  background: #fff; border: 1px solid var(--border-strong); color: var(--text-2); display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, color .2s, border-color .2s;
}
.slider-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider-arrow:hover { color: var(--primary); border-color: #bfd4f5; transform: translateY(-2px); box-shadow: var(--shadow); }
.slider-tabs { display: flex; gap: .4rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.slider-tabs::-webkit-scrollbar { display: none; }
.slider-tab {
  position: relative; flex: 1; min-width: 120px; padding: .7rem 1rem .85rem; border: 0; background: transparent; cursor: pointer;
  font: 600 .85rem/1 var(--font); color: var(--muted); text-align: left; letter-spacing: .02em; border-radius: 10px;
  transition: color .2s, background .2s;
}
.slider-tab i { font-style: normal; font-family: var(--font-head); font-weight: 800; color: #b6c2d3; margin-right: .5rem; transition: color .2s; }
.slider-tab::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .35rem; height: 2px; background: var(--border-strong); border-radius: 2px; }
.slider-tab b { position: absolute; left: 1rem; bottom: .35rem; height: 2px; width: 0; background: linear-gradient(90deg, var(--primary), var(--sky)); border-radius: 2px; z-index: 1; }
.slider-tab:hover { color: var(--text); background: var(--bg-soft); }
.slider-tab.is-active { color: var(--primary); }
.slider-tab.is-active i { color: var(--primary); }
.slider-tab.is-active b { animation: tabprogress var(--slide-ms, 7000ms) linear forwards; }
.slider.is-paused .slider-tab.is-active b { animation-play-state: paused; }
@keyframes tabprogress { from { width: 0; } to { width: calc(100% - 2rem); } }

.hero .hero-stats { margin-top: 2.4rem; }

@media (max-width: 1000px) {
  .slide { grid-template-columns: 1fr; gap: 2rem; }
  .slide-visual { max-width: 560px; margin: 0 auto; width: 100%; min-height: 0; }
  .slide-visual.has-dash { padding-top: 1.5rem; }
  .slide-visual.has-dash .sketch-slide { top: -6%; }
}
@media (max-width: 720px) {
  .slider-tab { min-width: 0; padding: .6rem .6rem .8rem; font-size: .78rem; }
  .slider-tab i { display: none; }
  .slider-tab::after, .slider-tab b { left: .6rem; right: .6rem; }
  @keyframes tabprogress { from { width: 0; } to { width: calc(100% - 1.2rem); } }
  .slider-arrow { width: 38px; height: 38px; }
  .slide-visual .fc-1, .slide-visual .fc-2 { font-size: .8rem; padding: .6rem .8rem; }
  .slide-visual.has-dash .fc-1 { right: 0; top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide .hero-copy > *, .slide-visual .float-card, .slide-visual.has-dash .dash { transition: none; }
  .slider-tab.is-active b { animation: none; width: calc(100% - 2rem); }
}

/* Ilustracje w kartach "Dla kogo" */
.work-thumb { display: grid; place-items: center; }
.work-sketch {
  position: relative; z-index: 1; width: 86%; height: 84%;
  fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .92;
  filter: drop-shadow(0 6px 14px rgba(8, 47, 130, 0.35));
  transition: transform .6s var(--ease);
}
.work:hover .work-sketch { transform: translateY(-4px) scale(1.03); }

/* ===== Intro przy ładowaniu ===== */
html.intro-active { overflow: hidden; }
html.intro-active .site-header .logo-mark { opacity: 0; }
.site-header .logo-mark { transition: opacity .2s; }

.intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: none; }
.intro-bg {
  position: absolute; inset: 0; background: #fff;
  background-image: linear-gradient(rgba(11, 95, 217, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 95, 217, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.intro-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 50%, rgba(191, 219, 254, 0.55), transparent 70%); }
.intro-inner { position: relative; display: grid; justify-items: center; gap: .9rem; }
.intro-mark { width: clamp(96px, 14vw, 132px); height: auto; will-change: transform; filter: drop-shadow(0 12px 28px rgba(11, 95, 217, 0.25)); }

/* węzły wskakują */
.im-nodes circle { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: nodepop .6s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.im-nodes circle:nth-child(1) { animation-delay: .05s; }
.im-nodes circle:nth-child(2) { animation-delay: .2s; }
.im-nodes circle:nth-child(3) { animation-delay: .35s; }
.im-nodes circle:nth-child(4) { animation-delay: .5s; }
.im-hole { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: nodepop .5s cubic-bezier(.34, 1.56, .64, 1) .8s forwards; }
@keyframes nodepop { to { transform: scale(1); } }

/* linie się rysują */
.im-lines path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: linedraw .5s var(--ease) forwards; }
.im-lines path:nth-child(1) { animation-delay: .3s; }
.im-lines path:nth-child(2) { animation-delay: .42s; }
.im-lines path:nth-child(3) { animation-delay: .54s; }
.im-lines path:nth-child(4) { animation-delay: .66s; }
.im-lines path:nth-child(5) { animation-delay: .78s; }
@keyframes linedraw { to { stroke-dashoffset: 0; } }

/* nazwa wyjeżdża spod linii */
.intro-word { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; color: var(--text); display: flex; }
.intro-word span { display: inline-block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.intro-word em { display: inline-block; font-style: normal; transform: translateY(110%); animation: rise .8s var(--ease) forwards; }
.intro-word span:nth-child(1) em { animation-delay: .95s; }
.intro-word span:nth-child(2) em { animation-delay: 1.05s; }
.intro-word span:nth-child(3) em { animation-delay: 1.15s; }
.intro-word .w-soft { color: var(--primary); }
.intro-word .w-pl { color: var(--muted); font-weight: 600; }
@keyframes rise { to { transform: translateY(0); } }

.intro-tag { font-size: .8rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: tagin .9s var(--ease) 1.35s forwards; }
@keyframes tagin { from { opacity: 0; letter-spacing: .5em; transform: translateY(6px); } to { opacity: 1; letter-spacing: .28em; transform: none; } }

/* pasek postępu */
.intro-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--border); }
.intro-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--sky)); animation: introbar 2s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes introbar { 60% { width: 72%; } to { width: 100%; } }

/* wyjście: tekst znika, tło zwija się w górę, znak leci do nagłówka (JS) */
.intro.is-done .intro-word, .intro.is-done .intro-tag, .intro.is-done .intro-bar { transition: opacity .3s ease; opacity: 0; }
.intro.is-done .intro-bg { transition: clip-path .75s cubic-bezier(.76, 0, .24, 1); clip-path: inset(0 0 100% 0); }
.intro.is-done .intro-mark { filter: none; transition: filter .4s; }

@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ===== Podstrona: realizacje ===== */
.nav a.is-current { color: var(--primary); }
.nav a.is-current::after { transform: scaleX(1); }

.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); position: relative; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 60ch; }
.crumbs { display: flex; gap: .5rem; font-size: .85rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { color: var(--primary); font-weight: 500; }

/* filtry */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.6rem; }
.filter {
  padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
  font: 600 .88rem/1 var(--font); color: var(--text-2);
  background: #fff; border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
  transition: color .2s, border-color .2s, background .2s, transform .3s var(--ease);
}
.filter:hover { color: var(--primary); border-color: #bfd4f5; transform: translateY(-2px); }
.filter.is-active { color: #fff; background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-color: transparent; box-shadow: 0 8px 20px rgba(11, 95, 217, .28); }

/* siatka realizacji */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.case {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s, opacity .4s;
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #bfd4f5; }
.case.is-hidden { display: none; }

/* ramka przeglądarki ze zrzutem */
.case-shot { display: block; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: .6rem .9rem; font-size: .76rem; color: var(--muted); border-bottom: 1px solid var(--border); background: #fff; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; flex: none; }
.shot-bar em { font-style: normal; margin-left: .5rem; padding: .18rem .7rem; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); font-weight: 500; letter-spacing: .01em; }
.shot-view { display: block; position: relative; height: 270px; overflow: hidden; background: var(--bg-soft); }
.shot-view img { position: absolute; left: 0; top: 0; width: 100%; height: auto; display: block; transition: transform 3.2s cubic-bezier(.33, 0, .2, 1); }
.case:hover .shot-view img { transform: translateY(calc(-100% + 270px)); }
.shot-view::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -40px 40px -40px rgba(15, 30, 53, .12); pointer-events: none; }

.case-body { padding: 1.8rem; display: flex; flex-direction: column; flex: 1; }
.case-tags { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .9rem; }
.case-tags .tag { margin: 0; }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; }
.case-meta { color: var(--muted); font-size: .9rem; margin: -.3rem 0 .9rem; }
.case-body > p:not(.case-meta) { color: var(--text-2); font-size: .97rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 1.3rem; }
.chips li { font-size: .78rem; font-weight: 600; color: var(--primary); background: var(--bg-blue); padding: .3rem .7rem; border-radius: 8px; }
.case-link { margin-top: auto; align-self: flex-start; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: .4rem; }
.case-link::after { content: "↗"; transition: transform .3s var(--ease); }
.case-link:hover::after { transform: translate(3px, -3px); }
.cases-empty { text-align: center; color: var(--muted); padding: 3rem 0; }

/* wezwanie na dole */
.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: linear-gradient(135deg, #0f1e35, #0b3f8f); color: #fff;
  border-radius: 24px; padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { color: #fff; margin-bottom: .4rem; }
.cta-box p { color: #c5d6f0; margin: 0; max-width: 52ch; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cta-box .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta-box .btn-ghost:hover { background: rgba(255, 255, 255, .18); }

@media (max-width: 900px) {
  .cases { grid-template-columns: 1fr; }
  .shot-view { height: 230px; }
  .case:hover .shot-view img { transform: translateY(calc(-100% + 230px)); }
}
@media (prefers-reduced-motion: reduce) {
  .case:hover .shot-view img { transform: none; }
}

/* Dwie karty w rzędzie (systemy wewnętrzne) */
.cards.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cards-2 .case-meta { margin: -.4rem 0 .8rem; }
.cards.cards-2 .chips { margin: 1rem 0 0; }
@media (max-width: 900px) { .cards.cards-2 { grid-template-columns: 1fr; } }

/* Karty systemów wewnętrznych (bez linku, z miejscem na zrzut) */
.cases-apps { grid-template-columns: repeat(2, 1fr); }
.case-shot.is-static { cursor: default; }
.badge-demo { background: var(--bg-blue); color: var(--primary); border-color: #cfe0fa; }
/* zastępnik, dopóki nie ma pliku ze zrzutem */
.shot-view.no-shot { display: grid; place-items: center; background:
  linear-gradient(135deg, #eef5ff, #e2ecfb);
  background-image: linear-gradient(rgba(11, 95, 217, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 95, 217, .06) 1px, transparent 1px);
  background-size: 28px 28px; }
.shot-view.no-shot img { opacity: 0; }  /* nie display:none — inaczej lazy-loading nigdy nie pobierze pliku */
.shot-view.no-shot::before {
  content: "Zrzut panelu — do uzupełnienia"; position: static;
  font: 600 .85rem/1.4 var(--font); color: var(--muted); letter-spacing: .02em;
  padding: .6rem 1.1rem; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px dashed var(--border-strong);
}

/* ===== Oferta dla klienta (/oferta#TOKEN) ===== */
.offer { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
.offer-loading { color: var(--muted); text-align: center; padding: 4rem 0; }
.offer-doc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: clamp(1.6rem, 4vw, 3.4rem); box-shadow: var(--shadow-lg); max-width: 920px; margin: 0 auto;
}

.offer-head { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.8rem; border-bottom: 1px solid var(--border); }
.offer-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .4rem; }
.offer-for { color: var(--text-2); margin: 0; }
.offer-meta { text-align: right; display: grid; gap: .3rem; justify-items: end; }
.offer-meta p { margin: 0; font-size: .92rem; color: var(--text); }
.offer-meta span { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.badge-ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.badge-stop { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.offer-expired { margin: 1.4rem 0 0; padding: .9rem 1.1rem; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: .95rem; }
.offer-intro { margin: 1.8rem 0 0; font-size: 1.08rem; color: var(--text-2); }

.offer-sec { margin-top: 2.6rem; }
.offer-sec h2 { font-size: 1.25rem; margin-bottom: .9rem; }
.offer-sec-lead { color: var(--text-2); margin-bottom: 1rem; }

.offer-table { width: 100%; border-collapse: collapse; }
.offer-table td { padding: .95rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; font-size: .97rem; }
.offer-table tr:first-child td { border-top: 1px solid var(--border); }
.offer-table td.num { text-align: right; white-space: nowrap; color: var(--text-2); }
.offer-table td.num:last-child { font-weight: 700; color: var(--text); font-family: var(--font-head); }
.pos-opis { display: block; color: var(--muted); font-size: .9rem; margin-top: .25rem; }

.offer-sum { margin-top: 1.2rem; margin-left: auto; max-width: 340px; display: grid; gap: .45rem; }
.sum-row { display: flex; justify-content: space-between; gap: 1.5rem; font-size: .97rem; color: var(--text-2); }
.sum-row strong { font-family: var(--font-head); color: var(--text); }
.sum-total { border-top: 2px solid var(--border-strong); padding-top: .5rem; margin-top: .25rem; font-size: 1.1rem; }
.sum-total strong { color: var(--primary); font-size: 1.3rem; }
.sum-note { margin: .6rem 0 0; font-size: .85rem; color: var(--muted); }

.offer-steps { display: grid; gap: .9rem; }
.offer-steps li { position: relative; padding: 1.1rem 1.2rem 1.1rem 4.2rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; }
.offer-steps .step-no { position: absolute; left: 1.1rem; top: 1.1rem; width: 34px; height: 34px; font-size: .85rem; margin: 0; }
.offer-steps h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.offer-steps p { margin: 0; color: var(--text-2); font-size: .94rem; }
.offer-steps .step-time { color: var(--primary); font-weight: 600; font-size: .85rem; margin-top: .3rem; }

.offer-terms { display: grid; gap: .6rem; }
.offer-terms li { position: relative; padding-left: 1.6rem; color: var(--text-2); font-size: .97rem; }
.offer-terms li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

.offer-cta { margin-top: 3rem; padding: clamp(1.4rem, 3vw, 2rem); border-radius: 18px; background: linear-gradient(135deg, #0f1e35, #0b3f8f); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.offer-cta h2 { color: #fff; margin-bottom: .2rem; }
.offer-cta p { margin: 0; color: #c5d6f0; }
.offer-cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.offer-cta .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.offer-cta .btn-ghost:hover { background: rgba(255,255,255,.18); }

.offer-foot { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: .9rem; color: var(--text-2); }
.offer-foot p { margin: 0 0 .3rem; }
.offer-priv { color: var(--muted); font-size: .82rem; }

.offer-error { max-width: 560px; margin: 2rem auto; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(2rem, 5vw, 3rem); box-shadow: var(--shadow); }
.offer-error h1 { font-size: 1.7rem; }
.offer-error p { color: var(--text-2); }
.offer-error-contact { font-size: .95rem; }

@media (max-width: 700px) {
  .offer-meta { text-align: left; justify-items: start; }
  .offer-table td.num { font-size: .9rem; }
  .offer-sum { max-width: none; }
}

/* wydruk / zapis do PDF */
@media print {
  .site-header, .site-footer, .bg-orbs, .offer-cta-actions, .burger { display: none !important; }
  body { background: #fff; }
  .offer { padding: 0; }
  .offer-doc { border: 0; box-shadow: none; border-radius: 0; padding: 0; max-width: none; }
  .offer-cta { background: none; color: var(--text); border: 1px solid var(--border); }
  .offer-cta h2 { color: var(--text); }
  .offer-cta p { color: var(--text-2); }
  .offer-sec, .offer-steps li { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}

/* Oferta wrzucona jako gotowy plik HTML */
.offer-doc-html { overflow-wrap: anywhere; }
.offer-doc-html img, .offer-doc-html table { max-width: 100%; }
.offer-doc-html table { border-collapse: collapse; }
.offer-doc-html h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.offer-doc-tools { margin-top: 1.4rem; padding-top: 0; }
.offer-doc-tools .offer-cta { margin-top: 0; }
@media print { .offer-doc-tools { border: 0; box-shadow: none; padding: 0; } }

/* Nagłówki slajdów 2-4 to h2 (jeden h1 na stronę), ale wyglądają jak h1 */
.slide .hero-copy h2 { font-size: clamp(2.5rem, 5.5vw, 4.1rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }

/* ===== Sekcja lokalna + FAQ ===== */
.local-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.local-grid p { color: var(--text-2); font-size: 1.05rem; }
.chips-lg { margin-top: 1.6rem; gap: .5rem; }
.chips-lg li { font-size: .88rem; padding: .45rem .9rem; }
.local-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 2rem; box-shadow: var(--shadow); }
.local-card h3 { margin-bottom: 1.1rem; }
.local-list { display: grid; gap: .9rem; }
.local-list li { color: var(--text-2); font-size: .97rem; padding-left: 1.5rem; position: relative; }
.local-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary)); }
.local-list strong { color: var(--text); }
.local-cta { margin: 1.6rem 0 0; }

.faq { display: grid; gap: .8rem; max-width: 860px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.1rem 1.4rem; box-shadow: var(--shadow-sm); transition: border-color .25s, box-shadow .25s;
}
.faq details[open] { border-color: #bfd4f5; box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--text);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--primary); }
.faq details p { margin: .9rem 0 0; color: var(--text-2); font-size: .98rem; }
.faq details a { color: var(--primary); font-weight: 600; }

@media (max-width: 1000px) { .local-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Dane firmy (NAP) w stopkach */
.nap { font-style: normal; margin-top: .9rem; font-size: .88rem; line-height: 1.7; color: #8fa0ba; }
.nap strong { display: block; color: #c5d0e0; font-weight: 600; }
.offer-nap { margin: .2rem 0 .6rem; font-size: .85rem; color: var(--muted); }
@media print { .offer-nap { color: #444; } }

/* ===== Strona w abonamencie ===== */
.plan-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.6rem; align-items: start; }
.plan { background: var(--surface); border: 2px solid var(--primary); border-radius: 20px; padding: 2.2rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.plan::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--primary), var(--sky)); }
.plan-head { padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); margin-bottom: 1.4rem; }
.plan-head h3 { font-size: 1.4rem; margin: .7rem 0 .9rem; }
.plan-price { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .5rem; }
.plan-price strong { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; }
.plan-price span { color: var(--muted); font-weight: 500; }
.plan-note { margin: 0; font-size: .88rem; color: var(--muted); }
.plan-list { display: grid; gap: .7rem; margin-bottom: 1.8rem; }
.plan-list li { position: relative; padding-left: 1.9rem; color: var(--text-2); font-size: .97rem; }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: .18em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5fd9' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.plan-side { display: grid; gap: 1.4rem; }
.plan-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 18px; padding: 1.8rem; }
.plan-box h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.plan-box p { color: var(--text-2); font-size: .97rem; }
.plan-box p:last-child { margin-bottom: 0; }
.plan-small { font-size: .88rem; color: var(--muted); margin-top: .8rem; }
@media (max-width: 1000px) { .plan-grid { grid-template-columns: 1fr; } }

/* ===== Cennik: trzy warianty ===== */
.cennik-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
.cennik-grid .plan { border: 1px solid var(--border); padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.cennik-grid .plan::before { display: none; }
.cennik-grid .plan .plan-list { flex: 1; }
.plan-best { border: 2px solid var(--primary) !important; box-shadow: var(--shadow-lg) !important; position: relative; }
.plan-best::before { content: "" !important; display: block !important; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--primary), var(--sky)); }
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary)); padding: .35rem .9rem; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(11, 95, 217, .3);
}
.cennik-grid .plan-price strong { font-size: 2.1rem; }
.plan-list li.minus { color: var(--muted); }
.plan-list li.minus::before {
  background: #f1f5f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%236b7a93' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center/11px no-repeat;
}
.cennik-info { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.cennik-info h3 { font-size: 1.1rem; margin-bottom: 1rem; }
@media (max-width: 1000px) {
  .cennik-grid { grid-template-columns: 1fr; }
  .cennik-info { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* Termin realizacji jako argument */
.plan-fast { color: var(--primary) !important; font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.plan-fast::before {
  content: ""; flex: none; width: 15px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230b5fd9'%3E%3Cpath d='M13 2L4.5 13H11l-1 9 8.5-11H12z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Przełącznik netto / brutto */
.vat-switch { display: inline-flex; gap: .25rem; margin-top: 1.4rem; padding: .3rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; }
.vat-switch button {
  display: inline-flex; align-items: baseline; gap: .35rem; cursor: pointer; border: 0; background: transparent;
  font: 600 .9rem/1 var(--font); color: var(--text-2); padding: .55rem 1.1rem; border-radius: 999px;
  transition: background .25s, color .25s, box-shadow .25s;
}
.vat-switch button small { font-size: .72rem; font-weight: 500; opacity: .75; }
.vat-switch button:hover { color: var(--primary); }
.vat-switch button.is-active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.plan-price strong { transition: color .2s; }

/* ===== Porównanie: CMS vs strona dedykowana ===== */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.compare-col { border-radius: 18px; padding: 2rem; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.compare-col h3 { font-size: 1.15rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1.3rem; }
.compare-col h3::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background-size: 14px; background-position: center; background-repeat: no-repeat; }
.compare-col ul { display: grid; gap: .9rem; }
.compare-col li { position: relative; padding-left: 1.7rem; color: var(--text-2); font-size: .97rem; }
.compare-col li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; background-size: 11px; background-position: center; background-repeat: no-repeat; border-radius: 50%; }
.compare-col code { font-size: .88em; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 5px; padding: .05em .35em; color: var(--text); }

.compare-bad { background: #fffbfa; border-color: #fbdcd6; }
.compare-bad h3::before { background-color: #fee2e2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23dc2626' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.compare-bad li::before { background-color: #fee2e2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23dc2626' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }

.compare-good { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.compare-good h3::before { background-color: var(--bg-blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5fd9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.compare-good li::before { background-color: var(--bg-blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5fd9' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }

.compare-note { margin: 2rem auto 0; max-width: 820px; text-align: center; color: var(--text-2); font-size: .97rem; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 14px; padding: 1.2rem 1.6rem; }
.compare-note strong { color: var(--text); }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }
