/* SOGREN Solutions — strona główna (szkielet)
   Tokeny marki: ../SOGREN_Solutions/tokens/sogren.css */

/* ---------- font (hostowany lokalnie, bez zapytań do Google) ---------- */
@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../assets/fonts/jbm-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../assets/fonts/jbm-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokeny: motyw jasny (domyślny) ---------- */
:root {
  color-scheme: light;

  --bg: #FFFFFF;
  --surface: #FFFFFF;          /* karty, pola, okna */
  --soft: #F4F7FB;             /* tło sekcji „tint" */
  --soft-2: #EDF2F9;
  --text: #2B3647;
  --heading: #08111D;
  --muted: #6C7687;
  --line: #DCE4EF;
  --line-2: #B8C6DC;
  --ph-line: #BFCBDD;
  --ph-ico: #A9B8CC;
  --stripe-a: #FFFFFF;
  --stripe-b: #F1F5FA;

  --accent: #365FF3;           /* tła przycisków */
  --accent-hover: #2549D7;
  --accent-text: #365FF3;      /* linki i akcenty tekstowe */
  --accent-soft: rgba(54,95,243,.09);
  --accent-ring: rgba(54,95,243,.18);
  --spot: rgba(54,95,243,.07);

  --inv-bg: #08111D;           /* ciemne sekcje: liczby, kontakt, baner */
  --inv-text: #C9D4E3;
  --inv-muted: #9FB0C6;
  --inv-line: rgba(255,255,255,.12);
  --foot-bg: #050B14;
  --btn-dark: #08111D;
  --btn-dark-hover: #1B2A3F;

  --header-bg: rgba(255,255,255,.88);
  --shadow-lg: rgba(8,17,29,.28);

  --ink: #08111D;
  --ocean: #04C3F7;
  --iris: #5167F5;
  --violet: #8744EF;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gradient: linear-gradient(135deg, #04C3F7 0%, #229BFB 36%, #5167F5 70%, #8744EF 100%);

  --r-sm: 12px;
  --r-lg: 20px;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --font: Inter, Arial, sans-serif;
}

/* ---------- tokeny: motyw ciemny ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060D17; --surface: #0C1624; --soft: #08111D; --soft-2: #101C2E;
  --text: #B7C4D6; --heading: #F2F6FB; --muted: #8798AF;
  --line: #1C2A3E; --line-2: #2D4060; --ph-line: #2A3B55; --ph-ico: #3A4F6E;
  --stripe-a: #0C1624; --stripe-b: #0F1B2D;
  --accent: #3E67F5; --accent-hover: #5B80FF; --accent-text: #7C9BFF;
  --accent-soft: rgba(124,155,255,.12); --accent-ring: rgba(124,155,255,.28); --spot: rgba(124,155,255,.09);
  --inv-bg: #0A1524; --inv-text: #B7C4D6; --inv-muted: #8798AF; --inv-line: rgba(255,255,255,.1);
  --foot-bg: #040910; --btn-dark: #1B2A3F; --btn-dark-hover: #26385A;
  --header-bg: rgba(6,13,23,.82); --shadow-lg: rgba(0,0,0,.6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #060D17; --surface: #0C1624; --soft: #08111D; --soft-2: #101C2E;
    --text: #B7C4D6; --heading: #F2F6FB; --muted: #8798AF;
    --line: #1C2A3E; --line-2: #2D4060; --ph-line: #2A3B55; --ph-ico: #3A4F6E;
    --stripe-a: #0C1624; --stripe-b: #0F1B2D;
    --accent: #3E67F5; --accent-hover: #5B80FF; --accent-text: #7C9BFF;
    --accent-soft: rgba(124,155,255,.12); --accent-ring: rgba(124,155,255,.28); --spot: rgba(124,155,255,.09);
    --inv-bg: #0A1524; --inv-text: #B7C4D6; --inv-muted: #8798AF; --inv-line: rgba(255,255,255,.1);
    --foot-bg: #040910; --btn-dark: #1B2A3F; --btn-dark-hover: #26385A;
    --header-bg: rgba(6,13,23,.82); --shadow-lg: rgba(0,0,0,.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.65 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.ic { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- typografia ---------- */
h1, h2, h3, h4 { color: var(--heading); font-weight: 650; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.6; max-width: 58ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.inline { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn-lg { padding: 15px 24px; font-size: 1rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 20px -10px var(--accent); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--heading); background: var(--surface); }
.btn-ghost:hover { border-color: var(--heading); }
.btn-light { background: #fff; color: #08111D; }
.btn-light:hover { background: #E8EEF7; }
.btn-dark { background: var(--btn-dark); color: #fff; }
.btn-dark:hover { background: var(--btn-dark-hover); }
.btn .ic { transition: transform .18s; }
.btn:hover .ic { transform: translateX(3px); }
.block { width: 100%; }

.link { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-weight: 600; color: var(--accent-text); font-size: .95rem; }
.link:hover .ic { transform: translateX(3px); }
.link .ic { width: 18px; height: 18px; transition: transform .18s; }

/* ---------- nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background-color .3s;
}
.site-header.scrolled { border-color: var(--line); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gradient); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; pointer-events: none; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 37px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}
.bar-right { display: flex; align-items: center; gap: 8px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 8px 14px; font-size: .94rem; font-weight: 500; color: var(--text); border-radius: 8px; }
.nav a:not(.btn):hover { color: var(--accent-text); background: var(--soft); }
.nav-cta { margin-left: 12px; padding: 10px 18px; }

.theme-btn, .menu-btn { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--heading); cursor: pointer; display: grid; place-items: center; transition: border-color .15s, background-color .3s; }
.theme-btn:hover, .menu-btn:hover { border-color: var(--line-2); }
.theme-btn .ic { width: 19px; height: 19px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.menu-btn { display: none; }
.menu-btn .bars { position: relative; width: 20px; height: 14px; display: block; }
.menu-btn .bars i { position: absolute; left: 0; width: 100%; height: 1.6px; border-radius: 2px; background: var(--heading); transition: transform .35s cubic-bezier(.7,0,.2,1), top .35s cubic-bezier(.7,0,.2,1), opacity .2s; }
.menu-btn .bars i:nth-child(1) { top: 1px; }
.menu-btn .bars i:nth-child(2) { top: 6px; }
.menu-btn .bars i:nth-child(3) { top: 11px; width: 60%; left: 40%; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.menu-btn[aria-expanded="true"] .bars i:nth-child(3) { top: 6px; width: 100%; left: 0; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 104px) clamp(56px, 7vw, 96px); background: var(--bg); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 40% at 70% 30%, rgba(4,195,247,.16), transparent 70%),
    radial-gradient(45% 45% at 85% 55%, rgba(135,68,239,.14), transparent 70%),
    radial-gradient(40% 40% at 55% 60%, rgba(81,103,245,.12), transparent 70%);
  filter: blur(20px);
}
.hero::after { /* delikatna siatka, gasnąca ku dołowi */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  -webkit-mask-image: radial-gradient(70% 70% at 80% 20%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 80% 20%, #000, transparent 75%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: .92rem; color: var(--text); font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ic { color: var(--accent-text); width: 18px; height: 18px; }

.hero-visual { position: relative; perspective: 1400px; }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.window { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 40px 80px -36px var(--shadow-lg), 0 2px 6px rgba(8,17,29,.05); overflow: hidden; }
.hero-visual .window { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; will-change: transform; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--soft); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); opacity: .6; }
.window-bar span { margin-left: 14px; font-size: .75rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 3px 14px; border-radius: 99px; }
.window-body { display: grid; grid-template-columns: 56px 1fr; min-height: 340px; }
.mock-side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0; border-right: 1px solid var(--line); }
.mock-side b { width: 24px; height: 24px; border-radius: 50%; border: 5px solid var(--accent); border-bottom-color: transparent; transform: rotate(-30deg); margin-bottom: 8px; }
.mock-side u { width: 22px; height: 22px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); }
.mock-side u.on { background: var(--accent-soft); border-color: var(--accent); }
.mock-main { padding: 20px; display: grid; gap: 16px; align-content: start; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.mock-kpis small { display: block; font-size: .7rem; color: var(--muted); margin-bottom: 4px; }
.mock-kpis strong { font-size: 1.05rem; color: var(--heading); letter-spacing: .1em; }
.mock-chart { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.mock-chart svg { width: 100%; height: 120px; overflow: visible; }
.mock-chart .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s cubic-bezier(.3,.6,.2,1) .5s forwards; }
.mock-chart .area { opacity: 0; animation: fade .9s ease 1.6s forwards; }
.mock-chart .base { stroke: var(--line-2); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.mock-rows { display: grid; gap: 8px; }
.mock-rows span { height: 34px; border-radius: 8px; background: var(--soft); }
.mock-rows span:nth-child(2) { width: 88%; }
.mock-rows span:nth-child(3) { width: 72%; }

.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 36px -18px var(--shadow-lg); font-size: .8rem; color: var(--heading); font-weight: 600; animation: float 6s ease-in-out infinite; }
.chip small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.chip .dot { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.chip .dot .ic { width: 18px; height: 18px; }
.chip-a { left: -28px; bottom: 56px; animation-delay: -2s; }
.chip-b { right: -18px; top: 74px; animation-delay: -4s; }

/* ---------- zaufali ---------- */
.trust { border-block: 1px solid var(--line); background: var(--soft); padding-block: 36px; }
.trust-title { text-align: center; font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.trust-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.trust-logos li { height: 52px; display: grid; place-items: center; border: 1px dashed var(--ph-line); border-radius: 10px; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }

/* ---------- sekcje ---------- */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--soft); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-bottom: 18px; }
.section-head.left { margin-bottom: 0; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.sticky { position: sticky; top: 112px; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background-color: var(--surface);
  background-image: radial-gradient(280px circle at var(--mx, -400px) var(--my, -400px), var(--spot), transparent 70%);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px;
  transition: border-color .2s, box-shadow .2s, transform .2s, background-color .3s;
}
.case:hover { border-color: var(--line-2); box-shadow: 0 18px 40px -24px var(--shadow-lg); transform: translateY(-3px); }

.icon-box { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 24px; flex: none; }
.icon-box .ic { width: 24px; height: 24px; }
.icon-box.sm { width: 44px; height: 44px; margin: 0; }

.ticks { display: grid; gap: 10px; margin-bottom: 28px; font-size: .94rem; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { width: 18px; height: 18px; color: var(--accent-text); margin-top: 3px; }

/* ---------- produkty: zakładki ---------- */
.products { display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.ptabs { display: grid; gap: 10px; }
.ptab {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; cursor: pointer;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.ptab:hover { border-color: var(--line-2); }
.ptab .icon-box { transition: background-color .2s, color .2s; }
.ptab-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ptab-text strong { color: var(--heading); font-size: 1.02rem; letter-spacing: -0.01em; }
.ptab-text small { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.ptab > .ic { color: var(--muted); transition: transform .2s, color .2s; }
.ptab[aria-selected="true"] { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 1px var(--accent), 0 20px 40px -28px var(--accent); }
.ptab[aria-selected="true"] .icon-box { background: var(--accent); color: #fff; }
.ptab[aria-selected="true"] > .ic { color: var(--accent-text); transform: translateX(3px); }

.ppanels { position: relative; }
.ppanel[hidden] { display: none; }
.ppanel { animation: panelIn .5s cubic-bezier(.2,.7,.2,1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.shot { margin-bottom: 24px; }
.shot .window-body { min-height: 300px; }
.shot-img { width: 100%; height: auto; display: block; } /* po podmianie makiety: <img class="shot-img" …> */
.pdetail { display: grid; gap: 4px; padding-inline: 4px; }
.pdetail > p { color: var(--muted); margin-bottom: 18px; max-width: 56ch; }
.pdetail .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 22px; }

.mock-bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.mock-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--accent-soft); border: 1px solid var(--accent); border-bottom: 0; }
.mock-bars i:nth-child(odd) { background: var(--accent); opacity: .85; }
.mock-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mock-cal b { height: 10px; border-radius: 4px; background: var(--soft-2); }
.mock-cal i { aspect-ratio: 1.7; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); }
.mock-cal i.on { background: var(--accent-soft); border-color: var(--accent); }
.mock-cal i.hot { background: var(--accent); border-color: var(--accent); }
.mock-search { height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.mock-table { display: grid; gap: 8px; }
.mock-table div { display: grid; grid-template-columns: 30px 1fr 54px; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.mock-table i { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent); }
.mock-table span { height: 8px; border-radius: 4px; background: var(--soft-2); }
.mock-table em { height: 18px; border-radius: 99px; background: var(--accent-soft); }

.custom-banner { position: relative; margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 40px; border-radius: var(--r-lg); background: var(--inv-bg); color: #fff; overflow: hidden; }
.custom-banner::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; background: url(../assets/brand-mark.svg) no-repeat center / contain; opacity: .06; pointer-events: none; }
.custom-banner > * { position: relative; z-index: 1; }
.custom-banner h3 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.custom-banner p { color: var(--inv-muted); }

/* ---------- przewagi ---------- */
.features { display: grid; }
.feature { display: flex; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); }

/* ---------- liczby ---------- */
.stats { background: var(--inv-bg); color: #fff; padding-block: 64px; position: relative; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-row > div { padding: 4px 32px; border-left: 1px solid var(--inv-line); display: flex; flex-direction: column-reverse; gap: 8px; }
.stat-row > div:first-child { border-left: 0; padding-left: 0; }
.stat-row dd { font-family: var(--mono); font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stat-row dt { font-size: .9rem; color: var(--inv-muted); }

/* ---------- proces ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps li { padding: 0 28px 0 0; position: relative; }
.steps li::before { content: ""; position: absolute; top: 14px; left: 54px; right: 12px; height: 1px; background: var(--line); }
.steps li:last-child::before { display: none; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--mono); font-size: .72rem; font-weight: 500; margin-bottom: 24px; position: relative; letter-spacing: 0; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: .95rem; }

/* ---------- cennik ---------- */
.pricing { align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 1.15rem; }
.plan-for { color: var(--muted); font-size: .92rem; margin: 6px 0 24px; }
.price { color: var(--heading); font-size: 1rem; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.price span { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; }
.price small { color: var(--muted); font-size: .9rem; }
.plan .ticks { flex: 1; }
.plan.featured {
  border: 1.5px solid var(--accent);
  box-shadow: 0 40px 70px -44px rgba(54,95,243,.45);
}
.badge { position: absolute; top: -13px; left: 32px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; }

/* ---------- realizacje ---------- */
.case { padding: 20px 20px 28px; display: flex; flex-direction: column; }
.case-img { aspect-ratio: 16/10; border-radius: 12px; background: repeating-linear-gradient(135deg, var(--stripe-a) 0 12px, var(--stripe-b) 12px 24px); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 22px; font-size: .78rem; color: var(--muted); }
.case > :not(.case-img) { padding-inline: 8px; }
.tag { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); margin-bottom: 8px; }
.case h3 { margin-bottom: 10px; }
.case p:not(.tag) { color: var(--muted); font-size: .95rem; margin-bottom: 20px; flex: 1; }

/* ---------- zespół ---------- */
.team-section { padding-top: 0; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.member { display: flex; flex-direction: column; }
.team-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 20px; background: var(--line); }
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: repeating-linear-gradient(135deg, var(--stripe-a) 0 12px, var(--stripe-b) 12px 24px);
  border: 1px dashed var(--ph-line); color: var(--muted); font-size: .78rem; letter-spacing: .04em;
}
.ph svg { width: 56px; height: 56px; color: var(--ph-ico); }
.member h3 { font-size: 1.1rem; margin-bottom: 2px; }
.role { color: var(--accent-text); font-size: .88rem; font-weight: 600; margin-bottom: 10px; }
.bio { color: var(--muted); font-size: .93rem; flex: 1; margin-bottom: 14px; }
.social { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); transition: color .15s, border-color .15s; }
.social:hover { color: var(--accent-text); border-color: var(--accent-text); }

/* ---------- cytat ---------- */
.quote-band { background: var(--soft); border-block: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px); }
.quote-band figure { max-width: 860px; margin-inline: auto; text-align: center; }
.quote-band blockquote { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.4; letter-spacing: -0.02em; color: var(--heading); font-weight: 500; margin-bottom: 32px; }
.quote-band figcaption { display: grid; gap: 2px; font-size: .92rem; }
.quote-band figcaption strong { color: var(--heading); }
.quote-band figcaption span { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-weight: 600; font-size: 1.05rem; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--accent-text); transition: transform .25s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 48px 26px 0; color: var(--muted); }

/* ---------- kontakt ---------- */
.contact { background: var(--inv-bg); color: var(--inv-text); position: relative; }
.contact { overflow: hidden; }
.contact > .wrap { position: relative; z-index: 1; }
.contact::before { content: ""; position: absolute; right: -6vw; bottom: -12%; width: min(46vw, 560px); aspect-ratio: 1; background: url(../assets/brand-mark.svg) no-repeat center / contain; opacity: .045; pointer-events: none; }
.contact h2 { color: #fff; margin-bottom: 18px; }
.contact .eyebrow { color: var(--ocean); }
.contact .lead { color: var(--inv-muted); margin-bottom: 44px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-list { display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ic { width: 22px; height: 22px; color: var(--ocean); margin-top: 3px; }
.contact-list small { display: block; font-size: .78rem; color: #7E8FA6; letter-spacing: .04em; margin-bottom: 2px; }
.contact-list a, .contact-list span { color: #fff; font-weight: 500; }
.contact-list a { display: inline-block; padding-block: 5px; margin-block: -5px; }
.contact-list a:hover { color: var(--ocean); }

.form { display: grid; gap: 20px; padding: clamp(24px, 3.5vw, 40px); color: var(--text); position: relative; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { font-size: .88rem; font-weight: 600; color: var(--heading); }
.form label em { font-style: normal; font-weight: 400; color: var(--muted); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.select { position: relative; }
.select-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.select-btn:hover { border-color: var(--line-2); }
.select-btn:focus-visible, .select.open .select-btn { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.select-btn .ic { color: var(--muted); transition: transform .2s; }
.select.open .select-btn .ic { transform: rotate(180deg); }
.select-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 260px; overflow: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 20px 40px -18px var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; outline: none;
}
.select.open .select-list { opacity: 1; visibility: visible; transform: none; }
.select-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--text); font-size: .95rem; }
.select-list li.active { background: var(--soft); color: var(--heading); }
.select-list li .ic { width: 18px; height: 18px; color: var(--accent-text); opacity: 0; }
.select-list li[aria-selected="true"] { color: var(--heading); font-weight: 600; }
.select-list li[aria-selected="true"] .ic { opacity: 1; }
.form textarea { resize: vertical; min-height: 128px; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--line-2); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.form .invalid { border-color: #D93F3F !important; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .84rem !important; color: var(--muted) !important; line-height: 1.5; }
.check input { margin-top: 1px; width: 24px; height: 24px; accent-color: var(--accent); flex: none; }
.check a { color: var(--accent-text); text-decoration: underline; }
.form-status { font-size: .9rem; min-height: 1.4em; }
.form-status.ok { color: #137A4B; }
.form-status.err { color: #E25555; }

.form-success { display: none; justify-items: center; text-align: center; gap: 14px; padding: clamp(16px, 4vw, 40px) 8px; }
.form.sent > :not(.form-success) { display: none; }
.form.sent .form-success { display: grid; animation: panelIn .5s cubic-bezier(.2,.7,.2,1); }
.success-mark { width: 72px; height: 72px; }
.success-mark circle { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s ease .1s forwards; }
.success-mark path { fill: none; stroke: var(--accent-text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .5s ease .7s forwards; }
.form-success h3 { font-size: 1.4rem; }
.form-success p { color: var(--muted); max-width: 40ch; }

/* ---------- stopka ---------- */
.site-footer { background: var(--foot-bg); color: #8798AF; padding-top: 72px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.foot-brand img { height: 37px; width: auto; margin-bottom: 20px; }
.foot-brand p { max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.site-footer nav { display: grid; align-content: start; gap: 2px; }
.site-footer nav a, .site-footer nav .foot-link { display: inline-block; padding-block: 5px; }
.site-footer nav a:hover, .site-footer .foot-link:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem; }
.foot-link { background: none; border: 0; padding: 0; text-align: left; color: inherit; cursor: pointer; font: inherit; }

/* ---------- cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 90; left: 20px; bottom: 20px; width: min(560px, calc(100% - 40px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px;
  box-shadow: 0 30px 70px -20px var(--shadow-lg), 0 2px 8px rgba(8,17,29,.06);
  opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .25s;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.show { opacity: 1; transform: none; }
.cb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cb-head .ic { width: 24px; height: 24px; color: var(--accent-text); }
.cb-head h2 { font-size: 1.1rem; letter-spacing: -0.01em; }
.cookie-banner > p { font-size: .88rem; line-height: 1.6; color: var(--muted); margin-bottom: 20px; }
.cookie-banner a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.cb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cb-actions .btn { flex: 1 1 auto; padding: 12px 14px; font-size: .9rem; }
.cb-settings { flex: 1 1 100%; background: none; border: 0; padding: 8px; font-weight: 600; font-size: .9rem; color: var(--heading); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cb-settings:hover { color: var(--accent-text); }

.cookie-dialog { width: min(680px, calc(100% - 32px)); max-height: min(86vh, 760px); padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: 0 40px 100px -20px rgba(0,0,0,.5); overflow: hidden; }
.cookie-dialog[open] { display: flex; flex-direction: column; }
.cookie-dialog::backdrop { background: rgba(8,17,29,.55); backdrop-filter: blur(2px); }
.cd-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.cd-head h2 { font-size: 1.25rem; }
.cd-x { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; color: var(--heading); }
.cd-x:hover { border-color: var(--heading); }
.cd-body { padding: 24px 28px; overflow: auto; display: grid; gap: 14px; }
.cd-intro { font-size: .88rem; color: var(--muted); line-height: 1.6; margin-bottom: 6px; }
.cd-cat { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px 20px; }
.cd-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.cd-row h3 { font-size: 1rem; margin-bottom: 4px; }
.cd-row p { font-size: .86rem; color: var(--muted); line-height: 1.55; }
.cd-cat details { margin-top: 12px; font-size: .84rem; }
.cd-cat summary { cursor: pointer; color: var(--accent-text); font-weight: 600; width: fit-content; }
.cd-cat table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.cd-cat th, .cd-cat td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cd-cat th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cd-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 28px; border-top: 1px solid var(--line); background: var(--soft); }
.cd-foot .btn { flex: 1 1 auto; padding: 12px 14px; font-size: .9rem; }

.switch { position: relative; flex: none; width: 46px; height: 26px; display: block; cursor: pointer; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(8,17,29,.3); transition: transform .2s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid var(--ocean); outline-offset: 2px; }
.switch.is-locked { cursor: not-allowed; opacity: .55; }

/* ---------- ruch ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float, .chip, .ppanel { animation: none; }
  .mock-chart .draw { animation: none; stroke-dashoffset: 0; }
  .mock-chart .area { animation: none; opacity: 1; }
  .success-mark circle, .success-mark path { animation: none; stroke-dashoffset: 0; }
  .hero-visual .window { transform: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- responsywność ---------- */
@media (max-width: 1020px) {
  .hero-grid, .split, .contact-grid, .products { grid-template-columns: 1fr; }
  .sticky { position: static; margin-bottom: 40px; }
  .section-head.left { margin-bottom: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps li:nth-child(2)::before { display: none; }
  .stat-row { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .stat-row > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .ptabs { grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .ptab { scroll-snap-align: start; }
  .chip-a { left: -8px; } .chip-b { right: -4px; }
}
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 28px;
    box-shadow: 0 30px 50px -30px var(--shadow-lg);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .45s cubic-bezier(.7,0,.2,1), visibility 0s .45s;
  }
  .nav.open { clip-path: inset(0 0 -60px 0); visibility: visible; transition: clip-path .45s cubic-bezier(.7,0,.2,1), visibility 0s; }
  .nav a:not(.btn) { padding: 15px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav > * { opacity: 0; transform: translateY(-10px); transition: opacity .25s, transform .25s; }
  .nav.open > * { opacity: 1; transform: none; transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
  .nav.open > :nth-child(1) { transition-delay: .12s; }
  .nav.open > :nth-child(2) { transition-delay: .17s; }
  .nav.open > :nth-child(3) { transition-delay: .22s; }
  .nav.open > :nth-child(4) { transition-delay: .27s; }
  .nav.open > :nth-child(5) { transition-delay: .32s; }
  .nav.open > :nth-child(6) { transition-delay: .38s; }
  .nav-cta { margin: 20px 0 0; padding: 14px 18px; }
  body::after {
    content: ""; position: fixed; inset: 72px 0 0; z-index: 40; background: rgba(8,17,29,.45);
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open::after { opacity: 1; pointer-events: auto; }
}
@media (max-width: 640px) {
  .grid-3, .field-row, .steps { grid-template-columns: 1fr; }
  .steps li::before { display: none; }
  .trust-logos { grid-template-columns: repeat(2, 1fr); }
  .team { gap: 28px 14px; }
  .custom-banner { flex-direction: column; align-items: flex-start; padding: 28px; }
  .actions .btn { width: 100%; }
  .window-body { grid-template-columns: 44px 1fr; }
  .mock-kpis strong { font-size: .85rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 20px; }
  .cd-head, .cd-body, .cd-foot { padding-inline: 20px; }
  .cd-cat th:nth-child(3), .cd-cat td:nth-child(3) { white-space: nowrap; }
  .chip { display: none; }
  .pdetail .ticks { grid-template-columns: 1fr; }
}


/* =====================================================================
   Rozszerzenia: ikony dwutonowe, kalkulator, paleta poleceń, stany
   ===================================================================== */

/* ---------- ikony: główny kontur + detal akcentowy ---------- */
.ia { stroke: var(--ic-2, currentColor); }
.ia-f { fill: var(--ic-2, currentColor); stroke: none; }
.icon-box { color: var(--heading); --ic-2: var(--accent-text); }
.ptab[aria-selected="true"] .icon-box { color: #fff; --ic-2: rgba(255,255,255,.62); }
.contact-list .ic { --ic-2: #8FA8FF; }
.opt .ic { color: var(--heading); --ic-2: var(--accent-text); }

/* ---------- błędy formularza, honeypot, ładowanie ---------- */
:root { --err: #C23030; --skel-hi: rgba(255,255,255,.7); }
:root[data-theme="dark"] { --err: #FF8F8F; --skel-hi: rgba(124,155,255,.12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --err: #FF8F8F; --skel-hi: rgba(124,155,255,.12); } }
.field-error { color: var(--err); font-size: .84rem; line-height: 1.45; margin: 0; }
.check .field-error { flex-basis: 100%; }
.check:has(.field-error:not([hidden])) { flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.err { color: var(--err); }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading .spinner { display: inline-block; }
.btn.loading > .ic { display: none; }
.btn:disabled { cursor: progress; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- szkielet ładowania obrazów ---------- */
.skel { position: relative; overflow: hidden; background: var(--soft-2, var(--soft)); }
.skel > img { opacity: 0; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, var(--skel-hi) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 1.3s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- kalkulator wyceny ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.calc-form { display: grid; gap: 36px; }
.calc-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.calc-step legend { display: flex; align-items: center; gap: 12px; font-size: 1.12rem; font-weight: 600; color: var(--heading); letter-spacing: -0.01em; margin-bottom: 16px; padding: 0; }
.calc-step legend em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .9rem; }
.calc-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2, var(--line)); font-family: var(--mono); font-size: .78rem; font-weight: 500; color: var(--accent-text); }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.opts-3 { grid-template-columns: repeat(3, 1fr); }
.opts-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt-body { display: grid; gap: 4px; align-content: start; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); transition: border-color .18s, background-color .18s, box-shadow .18s; }
.opt-body .ic { width: 24px; height: 24px; margin-bottom: 8px; }
.opt-body strong { color: var(--heading); font-size: 1rem; letter-spacing: -0.01em; }
.opt-body small { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.opt:hover .opt-body { border-color: var(--line-2, var(--muted)); }
.opt input:checked + .opt-body { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--ocean); outline-offset: 2px; }
.chip .opt-body { display: inline-flex; align-items: center; gap: 10px; height: auto; padding: 10px 16px 10px 12px; border-radius: 99px; font-size: .92rem; color: var(--heading); }
.chip .opt-body .ic { width: 20px; height: 20px; margin: 0; }
.chip .opt-body::after { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2, var(--muted)); transition: background .18s, border-color .18s; }
.chip input:checked + .opt-body::after { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.3 2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.calc-result { position: sticky; top: 96px; display: grid; gap: 18px; padding: 28px; }
.calc-result h3 { font-size: 1.05rem; }
.calc-out { display: grid; gap: 4px; }
.calc-label { font-size: .8rem; color: var(--muted); margin: 0; }
.calc-price { font-family: var(--mono); font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 500; letter-spacing: -0.04em; color: var(--heading); margin: 0 0 10px; line-height: 1.25; white-space: nowrap; }
.calc-time { font-family: var(--mono); font-size: 1.15rem; font-weight: 500; color: var(--heading); margin: 0; }
.calc-list { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--text); }
.calc-list li { display: flex; gap: 10px; align-items: baseline; }
.calc-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.calc-note { font-size: .8rem; color: var(--muted); line-height: 1.55; margin: 0; }
.calc-note mark { background: #FFF3C4; color: #5B4500; padding: 1px 6px; border-radius: 4px; font-weight: 500; }
:root[data-theme="dark"] .calc-note mark { background: rgba(255,208,70,.16); color: #FFD966; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc-note mark { background: rgba(255,208,70,.16); color: #FFD966; } }
@media (max-width: 1020px) {
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: static; }
}
@media (max-width: 640px) {
  .opts, .opts-3 { grid-template-columns: 1fr; }
  .opt-body { padding: 14px 16px; }
}

/* ---------- paleta poleceń ---------- */
.palette-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--heading); cursor: pointer; font: inherit; justify-content: center; transition: border-color .18s, background-color .18s; }
.palette-btn:hover { border-color: var(--line-2, var(--muted)); background: var(--soft); }
.palette-btn kbd { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
@media (max-width: 1020px) { .palette-btn kbd { display: none; } .palette-btn { padding: 0; width: 42px; } }
dialog.palette { border: 0; padding: 0; background: transparent; color: var(--text); width: min(640px, calc(100vw - 24px)); max-width: none; margin: 12vh auto auto; overflow: visible; }
dialog.palette::backdrop { background: rgba(5,10,18,.55); backdrop-filter: blur(5px); }
dialog.palette[open] .pal-box { animation: palIn .18s cubic-bezier(.2,.7,.2,1); }
@keyframes palIn { from { opacity: 0; transform: translateY(-8px) scale(.985); } }
.pal-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 40px 90px -30px rgba(5,10,18,.7); overflow: hidden; }
.pal-search { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.pal-search .ic { color: var(--muted); width: 20px; height: 20px; }
.pal-search input { flex: 1; min-width: 0; height: 58px; border: 0; outline: 0; background: transparent; color: var(--heading); font: inherit; font-size: 1.02rem; }
.pal-search input::placeholder { color: var(--muted); }
kbd { font-family: var(--mono); font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; background: var(--soft); }
.pal-list { max-height: min(52vh, 420px); overflow: auto; padding: 8px; list-style: none; margin: 0; }
.pal-group { padding: 12px 12px 6px; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pal-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; color: var(--heading); font-weight: 500; }
.pal-item .ic { width: 18px; height: 18px; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; color: var(--accent-text); }
.pal-item.on { background: var(--accent-soft); }
.pal-item.on .ic { opacity: 1; transform: none; }
.pal-empty { padding: 28px 20px; margin: 0; color: var(--muted); text-align: center; font-size: .92rem; }
.pal-foot { display: flex; gap: 18px; margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); background: var(--soft); }
.pal-foot kbd { margin-right: 4px; }
@media (max-width: 640px) { .pal-foot { display: none; } dialog.palette { margin-top: 8vh; } }

/* ---------- efekt magnetyczny przycisków ---------- */
.btn-primary.btn-lg, .nav-cta { transition: translate .25s cubic-bezier(.2,.7,.2,1), background-color .18s, transform .18s; }

/* ---------- płynne przejścia między stronami (Chrome, Edge, Safari 18+) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vtOut .16s ease both; }
  ::view-transition-new(root) { animation: vtIn .26s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes vtOut { to { opacity: 0; } }
  @keyframes vtIn { from { opacity: 0; transform: translateY(6px); } }
}

@media (prefers-reduced-motion: reduce) {
  .skel::after, .spinner { animation: none; }
  dialog.palette[open] .pal-box { animation: none; }
}
