/* =====================================================
   Procesy.biz – "Blueprint automatyzacji"
   Papier + atrament + limonkowy akcent
   ===================================================== */
:root {
  --paper: #faf7f0;
  --paper-2: #f2eee2;
  --ink: #12222e;
  --ink-soft: #3d5364;
  --green: #0d5c46;
  --green-deep: #083b2e;
  --accent: #d9f65c;
  --accent-ink: #2c3a00;
  --amber: #f5a524;
  --red: #d64545;
  --line: #d8d2c2;
  --card: #ffffff;
  --panel: #12222e;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 2px 6px rgba(18,34,46,.06), 0 14px 34px rgba(18,34,46,.08);
  --shadow-lift: 0 4px 10px rgba(18,34,46,.10), 0 22px 48px rgba(18,34,46,.14);
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Figtree", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(18,34,46,.055) 1px, transparent 0);
  background-size: 26px 26px;
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.015em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .02em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,247,240,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo em { font-style: normal; color: var(--green); }
.main-nav { display: flex; gap: 22px; flex: 1; }
.main-nav a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--ink); border-color: var(--accent); text-decoration: none; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 7px 14px; font-weight: 600; font-size: .88rem; color: var(--ink);
  background: var(--card); transition: .18s;
}
.pill-btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.badge { background: var(--accent); color: var(--accent-ink); border-radius: 999px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; padding: 0 5px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: 8px; font-size: 1.1rem; padding: 4px 10px; cursor: pointer; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 650; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--ink);
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none !important;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--green); border-color: var(--green); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 60px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--panel); color: var(--accent); border-radius: 999px; padding: 7px 16px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 750; margin-bottom: 18px; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 6%; height: 36%;
  background: var(--accent); z-index: -1; transform: skew(-6deg) rotate(-1deg);
}
[data-theme="dark"] .hero h1 .hl { color: #12222e; }
[data-theme="dark"] .hero h1 .hl::after { bottom: 4%; height: 44%; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; }
.hero-stats b { font-family: var(--font-display); font-size: 1.6rem; display: block; }
.hero-stats span { color: var(--ink-soft); font-size: .85rem; }

/* Diagram animowany */
.hero-diagram {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px 22px 18px;
  box-shadow: var(--shadow-lift);
  position: relative;
}
.hero-diagram .diagram-title {
  font-family: var(--font-mono); color: #9db4c4; font-size: .74rem; letter-spacing: .06em;
  display: flex; justify-content: space-between; margin-bottom: 10px;
}
.hero-diagram .dot { color: var(--accent); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.flow-svg text { font-family: var(--font-mono); }
.flow-node { animation: nodeGlow 6s infinite; }
.flow-node:nth-child(2) { animation-delay: 1s; }
@keyframes nodeGlow { 0%,100% { filter: none; } 50% { filter: drop-shadow(0 0 6px rgba(217,246,92,.8)); } }
.flow-edge { stroke-dasharray: 6 6; animation: flowDash 1.2s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: -12; } }
.flow-token { animation-timing-function: linear; animation-iteration-count: infinite; }

/* ---------- Sekcje ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 720; }
.section-head .sub { color: var(--ink-soft); max-width: 34rem; margin-top: 6px; }
.kicker { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green); display: block; margin-bottom: 8px; }

/* ---------- Karty obszarów ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.area-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 16px; transition: .18s; display: block; color: var(--ink);
}
.area-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.area-card .icon { font-size: 1.5rem; }
.area-card h3 { font-size: 1.02rem; margin: 8px 0 4px; }
.area-card span { font-size: .8rem; color: var(--ink-soft); }

/* ---------- Karty procesów ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.process-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .2s; position: relative;
}
.process-card:hover { border-color: var(--ink); box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.pc-top { padding: 20px 20px 0; }
.pc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .03em;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: var(--paper);
  color: var(--ink-soft); white-space: nowrap;
}
.chip.area { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.ai { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-ink); font-weight: 600; }
.process-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.process-card h3 a { color: var(--ink); }
.process-card p { color: var(--ink-soft); font-size: .92rem; flex: 1; padding: 0 20px; }
.pc-tools { display: flex; gap: 6px; padding: 14px 20px 0; flex-wrap: wrap; }
.tool-dot { font-size: .78rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 18px; margin-top: 10px; border-top: 1px dashed var(--line); }
.pc-price { font-family: var(--font-display); font-weight: 700; }
.pc-price small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); font-size: .72rem; }
.pc-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--ink);
  background: var(--card); cursor: pointer; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center;
  transition: .15s;
}
.icon-btn:hover { background: var(--accent); }
.icon-btn.active { background: var(--accent); border-color: var(--accent-ink); }
.featured-flag { position: absolute; top: 14px; right: -34px; transform: rotate(38deg); background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: .62rem; padding: 4px 40px; letter-spacing: .08em; }

/* ---------- Lista procesów ---------- */
.list-rows { display: flex; flex-direction: column; gap: 10px; }
.process-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px; align-items: center;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px;
  transition: .15s;
}
.process-row:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.process-row .icon { font-size: 1.4rem; }
.process-row h3 { font-size: 1.05rem; }
.process-row .desc { color: var(--ink-soft); font-size: .85rem; }

/* ---------- Filtry katalogu ---------- */
.catalog-bar {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  box-shadow: var(--shadow);
}
.search-box { flex: 1; min-width: 240px; position: relative; }
.search-box input {
  width: 100%; padding: 12px 16px 12px 42px; border: 1.5px solid var(--line); border-radius: 999px;
  font-family: var(--font-body); font-size: .95rem; background: var(--paper);
}
.search-box input:focus { outline: none; border-color: var(--green); }
.search-box::before { content: "🔍"; position: absolute; left: 15px; top: 11px; }
.catalog-bar select {
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
  font-family: var(--font-body); font-size: .9rem; cursor: pointer;
}
.view-toggle { display: flex; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.view-toggle button { border: none; background: var(--card); padding: 9px 13px; cursor: pointer; font-size: 1rem; }
.view-toggle button.active { background: var(--ink); color: var(--paper); }

/* ---------- Kroki pracy ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative;
}
.step-card::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: .78rem; color: var(--accent-ink);
  background: var(--accent); border-radius: 999px; padding: 4px 12px; display: inline-block; margin-bottom: 14px;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step-card p { color: var(--ink-soft); font-size: .9rem; }
.step-card:not(:last-child)::after {
  content: "→"; position: absolute; right: -17px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--green); z-index: 2;
}

/* ---------- Karta procesu ---------- */
.process-hero { padding: 54px 0 34px; }
.breadcrumbs { font-size: .82rem; color: var(--ink-soft); margin-bottom: 18px; }
.process-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 52rem; margin: 12px 0 14px; }
.process-hero .lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 46rem; }
.process-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.process-layout > * { min-width: 0; } /* zapobiega rozpychaniu kolumn przez szerokie diagramy */
.process-content h2 { font-size: 1.5rem; margin: 34px 0 14px; }
.process-content h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.process-content p, .process-content li { color: var(--ink-soft); }
.process-content ul { padding-left: 22px; margin: 10px 0; }
.side-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); position: sticky; top: 88px;
}
.side-card .price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 750; }
.side-card .price small { font-size: .8rem; font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); display: block; }
.side-card .btn { width: 100%; justify-content: center; margin-top: 12px; }
.side-meta { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; font-size: .86rem; }
.side-meta div { display: flex; justify-content: space-between; padding: 5px 0; }
.side-meta dt { color: var(--ink-soft); }
.side-meta dd { font-weight: 600; }

/* Przeglądarka diagramu */
.diagram-viewer {
  background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.dv-toolbar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--panel); color: #f2f6f8;
}
.dv-toolbar .title { font-family: var(--font-mono); font-size: .74rem; flex: 1; color: #9db4c4; }
.dv-toolbar button {
  background: rgba(255,255,255,.1); color: #f2f6f8; border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: .9rem;
}
.dv-toolbar button:hover { background: var(--accent); color: var(--accent-ink); }
.dv-canvas { height: 420px; overflow: hidden; cursor: grab; position: relative; background:
  radial-gradient(circle at 1px 1px, rgba(18,34,46,.07) 1px, transparent 0); background-size: 22px 22px; }
.dv-canvas:active { cursor: grabbing; }
.dv-inner { transform-origin: 0 0; padding: 30px; width: max-content; }
.diagram-viewer.fullscreen {
  position: fixed; inset: 0; z-index: 100; border-radius: 0; margin: 0;
  display: flex; flex-direction: column; background: var(--paper);
}
.diagram-viewer.fullscreen .dv-canvas { flex: 1; height: auto; }
.dv-close { display: none; }
.diagram-viewer.fullscreen .dv-close { display: inline-block; }
.diagram-viewer.fullscreen [data-fullscreen] { display: none; }

/* Galeria / wideo */
.shots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.shot { border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); }
.shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.shot figcaption { padding: 8px 12px; font-size: .8rem; color: var(--ink-soft); }
.video-embed { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--ink); box-shadow: var(--shadow); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Wersje branżowe */
.versions-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.versions-tabs button {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px;
  font-family: var(--font-body); font-size: .88rem; cursor: pointer;
}
.versions-tabs button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.version-pane { display: none; background: var(--paper-2); border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 20px; }
.version-pane.active { display: block; }

/* Nagrywanie głosu */
.voice-box {
  background: linear-gradient(135deg, var(--panel) 0%, #1a3a4a 100%);
  color: #f2f6f8; border-radius: var(--radius); padding: 30px; margin-top: 40px;
}
.voice-box h2 { color: #f2f6f8; margin-top: 0 !important; }
.voice-box p { color: #b7c8d4 !important; }
.rec-controls { display: flex; align-items: center; gap: 14px; margin: 18px 0; flex-wrap: wrap; }
.rec-btn {
  width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--accent);
  background: transparent; color: var(--accent); font-size: 1.5rem; cursor: pointer; transition: .2s;
}
.rec-btn.recording { background: var(--red); border-color: var(--red); color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(214,69,69,.15); } }
.rec-timer { font-family: var(--font-mono); font-size: 1.3rem; }
.voice-box input, .voice-box textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: var(--paper); font-family: var(--font-body); margin-bottom: 10px;
}
.voice-box input::placeholder, .voice-box textarea::placeholder { color: #8fa5b3; }
audio { width: 100%; margin: 10px 0; }

/* ---------- Formularze ---------- */
.form-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); max-width: 640px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .95rem; background: var(--paper);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--green); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .92rem; }
.alert-ok { background: #e5f5d9; border: 1.5px solid var(--green); color: var(--green); }
.alert-err { background: #fde8e8; border: 1.5px solid var(--red); color: var(--red); }

/* ---------- Koszyk ---------- */
.cart-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--line); }
.cart-table th { text-align: left; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 14px 16px; background: var(--ink); color: var(--paper); }
.cart-table td { padding: 14px 16px; border-top: 1px solid var(--line); }
.cart-summary { margin-top: 22px; display: flex; justify-content: flex-end; }
.cart-summary .box { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 22px; min-width: 300px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.post-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .18s; }
.post-card:hover { border-color: var(--ink); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.post-card h3 { font-size: 1.25rem; margin: 10px 0; }
.post-card h3 a { color: var(--ink); }
.post-card time { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft); }
.post-body { max-width: 720px; }
.post-body h2 { margin: 30px 0 12px; }
.post-body p { margin-bottom: 14px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--panel); color: #f2f6f8; border-radius: var(--radius);
  padding: 46px 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(217,246,92,.14) 1px, transparent 0);
  background-size: 22px 22px;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); position: relative; }
.cta-band p { color: #b7c8d4; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Paginacja ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-weight: 600;
}
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--paper); border-radius: 999px; padding: 12px 24px;
  font-weight: 600; font-size: .9rem; opacity: 0; transition: .3s; z-index: 200; box-shadow: var(--shadow-lift);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Animacje wejścia ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsywność ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .process-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card::after { display: none; }
}
@media (max-width: 720px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1.5px solid var(--line);
    flex-direction: column; padding: 16px 24px; gap: 14px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .steps-grid { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ---------- Stopka ---------- */
.site-footer { background: var(--panel); color: #b7c8d4; margin-top: 80px; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; }
.footer-logo { color: var(--paper); font-size: 1.4rem; margin-bottom: 10px; }
.site-footer h4 { color: var(--paper); font-size: .95rem; margin-bottom: 12px; }
.site-footer a { display: block; color: #b7c8d4; font-size: .88rem; padding: 3px 0; }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.footer-contact a { display: inline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; }

/* =====================================================
   TRYB CIEMNY
   ===================================================== */
[data-theme="dark"] {
  --paper: #0f1a22;
  --paper-2: #16242e;
  --ink: #e8eef2;
  --ink-soft: #9db2c0;
  --green: #3ecf9a;
  --green-deep: #2aa87c;
  --accent: #d9f65c;
  --accent-ink: #2c3a00;
  --line: #2a3b47;
  --card: #17262f;
  --panel: #0c161d;
  --shadow: 0 2px 6px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.35);
  --shadow-lift: 0 4px 10px rgba(0,0,0,.45), 0 22px 48px rgba(0,0,0,.5);
}
[data-theme="dark"] body {
  background-image: radial-gradient(circle at 1px 1px, rgba(232,238,242,.05) 1px, transparent 0);
}
[data-theme="dark"] .site-header { background: rgba(15,26,34,.85); }
[data-theme="dark"] .btn-primary { color: var(--accent-ink); }
[data-theme="dark"] .chip.ai { background: rgba(217,246,92,.14); color: var(--accent); }
[data-theme="dark"] .alert-ok { background: rgba(62,207,154,.12); color: var(--green); }
[data-theme="dark"] .alert-err { background: rgba(214,69,69,.14); }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea {
  background: var(--paper-2); color: var(--ink); border-color: var(--line);
}
.theme-toggle { font-size: 1rem; cursor: pointer; }

/* =====================================================
   POŁĄCZONY WSKAŹNIK KOSZYK+ZESTAW (mobile)
   ===================================================== */
.pill-combined-wrap { position: relative; display: none; }
.combined-menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: var(--card);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lift);
  min-width: 180px; display: none; z-index: 60; overflow: hidden;
}
.combined-menu.open { display: block; }
.combined-menu a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; color: var(--ink); font-weight: 600; font-size: .92rem; }
.combined-menu a:hover { background: var(--paper-2); text-decoration: none; }
@media (max-width: 760px) {
  .pill-set, .pill-cart { display: none; }
  .pill-combined-wrap { display: block; }
}

/* =====================================================
   KLIKALNE KARTY I WIERSZE
   ===================================================== */
[data-href] { cursor: pointer; }
[data-href]:hover { box-shadow: var(--shadow-lift); }

/* =====================================================
   DIAGRAM NA PEŁNĄ SZEROKOŚĆ
   ===================================================== */
.diagram-full { margin: 26px auto 34px; }
.diagram-full .dv-canvas { height: 300px; }
@media (max-width: 760px) { .diagram-full .dv-canvas { height: 300px; } }

/* =====================================================
   WIDOK LISTY PRODUKTÓW/USŁUG
   ===================================================== */
.product-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; transition: box-shadow .18s, transform .18s;
}
.product-row:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.product-row .icon { font-size: 1.4rem; }
.product-row h3 { font-size: 1.02rem; margin-bottom: 2px; }
.product-row .desc { color: var(--ink-soft); font-size: .86rem; }
.product-row .pc-price { white-space: nowrap; }
@media (max-width: 700px) {
  .product-row { grid-template-columns: auto 1fr; }
  .product-row .pc-price, .product-row .row-actions { grid-column: 2; justify-self: start; }
}

/* Zwijana sekcja (details/summary) */
.collapse-section { margin: 34px 0 10px; }
.collapse-section summary {
  display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
  user-select: none; padding: 6px 0;
}
.collapse-section summary::-webkit-details-marker { display: none; }
.collapse-section summary h2 { margin: 0; }
.collapse-icon { font-size: 1.2rem; color: var(--green); transition: transform .2s; }
.collapse-section[open] .collapse-icon { transform: rotate(180deg); }
.collapse-section summary:hover .collapse-icon { color: var(--accent-ink); }
.collapse-section > .steps-grid { margin-top: 18px; }


/* Przeglądarka diagramu wersji branżowej (w wąskiej kolumnie treści) */
.diagram-version { width: 100%; max-width: 100%; }
.diagram-version .dv-canvas { height: 300px; }
.diagram-version.fullscreen .dv-canvas { height: auto; }
