/* =====================================================================
   StockGuardian — arkusz stylów
   Paleta:  Granat #0B1F3A · Blue #1D4ED8 · Emerald #059669 · Amber #D97706 · Red #DC2626
   Tekst:   Inter (body) · Space Grotesk (nagłówki) · Space Mono (dane)
   Motyw przewodni: sygnalizacja stanu zapasu (emerald → amber → red)
   ===================================================================== */

:root {
  --ink:        #0B1F3A;
  --ink-2:      #13294A;
  --ink-3:      #1E3A5F;
  --paper:      #F6F8FC;
  --card:       #FFFFFF;
  --line:       #E3E9F3;
  --line-2:     #D5DEEE;

  --brand:      #1D4ED8;
  --brand-700:  #1E40AF;
  --brand-900:  #1E3A8A;
  --brand-tint: #EDF2FE;

  --safe:       #059669;
  --safe-600:   #0E7C57;
  --warn:       #D97706;
  --alert:      #DC2626;

  --text:       #15233B;
  --muted:      #56678A;
  --muted-2:    #7C8AA8;
  --on-dark:    #EAF0FB;
  --on-dark-mut:#A9BAD8;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --shadow:    0 1px 2px rgba(11,31,58,.06), 0 10px 30px rgba(11,31,58,.07);
  --shadow-lg: 0 30px 70px rgba(11,31,58,.16);

  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 40px);

  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:    "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
strong { font-weight: 700; color: var(--ink); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid #5B8DEF; outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ── Sekcje / rytm pionowy ─────────────────────────────────────── */
.section { padding-block: clamp(38px, 5vw, 68px); }
.section--tight { padding-block: clamp(26px, 3.5vw, 44px); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--tint { background: linear-gradient(180deg, #fff, var(--paper)); }

.eyebrow {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 12px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700;
}
.section--ink .eyebrow { color: #7FB0FF; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block; }

.lede { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 60ch; }
.section--ink .lede { color: var(--on-dark-mut); }

.head-block { max-width: 760px; margin-bottom: clamp(20px, 2.8vw, 34px); }
.head-block h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }

/* ── Sygnał stanu (element przewodni) ──────────────────────────── */
.signal {
  display: block; width: 52px; height: 5px; border-radius: 99px; margin-bottom: 14px;
  background: linear-gradient(90deg, var(--safe) 0 38%, var(--warn) 38% 70%, var(--alert) 70% 100%);
}
.signal--full { width: 100%; height: 3px; margin: 0; opacity: .9; }
.signal-divider { height: 3px; background: linear-gradient(90deg, var(--safe), var(--warn) 55%, var(--alert)); opacity: .85; }

/* ── Przyciski ─────────────────────────────────────────────────── */
.btn {
  --bg: var(--brand); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: .98rem; letter-spacing: -.01em;
  padding: 13px 22px; border-radius: 99px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s; text-decoration: none;
  box-shadow: 0 6px 18px rgba(29,78,216,.22);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(29,78,216,.3); }
.btn .ic { width: 18px; height: 18px; }
.btn--primary { --bg: var(--brand); }
.btn--primary:hover { --bg: var(--brand-700); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); box-shadow: none; }
.btn--ghost:hover { --bd: var(--brand); --fg: var(--brand); box-shadow: none; }
.section--ink .btn--ghost, .ctaband .btn--ghost { --fg: #fff; --bd: rgba(255,255,255,.34); }
.section--ink .btn--ghost:hover, .ctaband .btn--ghost:hover { --bd: #fff; background: rgba(255,255,255,.08); }
.hero .btn--ghost { --fg: var(--on-dark-mut); --bd: rgba(255,255,255,.38); }
.hero .btn--ghost:hover { --fg: #fff; --bd: #fff; background: rgba(255,255,255,.08); }
.btn--sm { padding: 9px 16px; font-size: .9rem; box-shadow: none; }
.btn--sm:hover { box-shadow: 0 8px 18px rgba(29,78,216,.24); }
.btn--lg { padding: 15px 28px; font-size: 1.04rem; }

.linkarrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 600; }
.linkarrow .ic { width: 17px; height: 17px; transition: transform .18s; }
.linkarrow:hover { text-decoration: none; }
.linkarrow:hover .ic { transform: translateX(4px); }

/* ── Nawigacja ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,248,252,.82); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark svg { width: 32px; height: 32px; display: block; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.16rem; letter-spacing: -.02em; }
.brand__name span { color: var(--brand); }

.nav__links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__links > a { color: var(--text); padding: 9px 13px; border-radius: 9px; font-weight: 500; font-size: .96rem; }
.nav__links > a:hover { background: var(--brand-tint); color: var(--brand-700); text-decoration: none; }
.nav__links > a.is-active { color: var(--brand-700); font-weight: 600; }
.nav__cta { margin-left: 8px; }

.nav__toggle, .nav__burger { display: none; }
.nav__burger { cursor: pointer; color: var(--ink); padding: 8px; border-radius: 9px; }
.nav__burger .ic { width: 26px; height: 26px; }
.nav__burger .ic:last-child { display: none; }

@media (max-width: 980px) {
  .nav__burger { display: inline-flex; margin-left: auto; }
  .nav__links {
    position: fixed; inset: 70px 0 auto 0; margin: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px var(--pad) 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s ease;
    box-shadow: var(--shadow);
  }
  .nav__toggle:checked ~ .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__toggle:checked ~ .nav__burger .ic:first-child { display: none; }
  .nav__toggle:checked ~ .nav__burger .ic:last-child { display: inline; }
  .nav__links > a { padding: 12px 12px; border-radius: 10px; font-size: 1.02rem; }
  .nav__cta { margin: 8px 0 0; }
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { position: relative; color: var(--on-dark); overflow: hidden; background: linear-gradient(165deg, #0B1F3A 0%, #0E2649 55%, #122B52 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(60% 50% at 88% 0%, rgba(29,78,216,.28), transparent 60%),
    radial-gradient(40% 40% at 8% 100%, rgba(16,185,129,.12), transparent 60%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 5.5vw, 76px); }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 4.4vw, 2.7rem); font-weight: 700; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #7FB0FF; }
.hero__sub { font-size: clamp(1.06rem, 1.5vw, 1.24rem); color: var(--on-dark-mut); max-width: 52ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--on-dark-mut); font-size: .92rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .ic { width: 17px; height: 17px; color: var(--safe); }

/* karta „prognozy wyczerpania" — sygnaturowy element */
.depletion {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(127,176,255,.22); border-radius: var(--r-lg);
  padding: 18px 18px 14px; box-shadow: var(--shadow-lg); backdrop-filter: blur(4px);
}
.depletion__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.depletion__sku { font-family: var(--mono); font-size: .92rem; color: #fff; font-weight: 700; letter-spacing: .02em; }
.depletion__badge { font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--alert); padding: 4px 9px; border-radius: 99px; }
.depletion__name { color: var(--on-dark-mut); font-size: .86rem; margin: 0 0 12px; }
.depletion__chart { width: 100%; height: auto; display: block; }
.depletion__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.dstat { background: rgba(8,18,38,.5); border: 1px solid rgba(127,176,255,.14); border-radius: var(--r-sm); padding: 10px 12px; }
.dstat__k { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-mut); display: block; margin-bottom: 3px; }
.dstat__v { font-family: var(--mono); font-weight: 700; font-size: 1.02rem; color: #fff; }
.dstat__v.is-alert { color: #FCA5A5; }
.dstat__v.is-warn { color: #FCD9A0; }
.depletion__verdict { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #fff; background: rgba(5,150,105,.14); border: 1px solid rgba(5,150,105,.4); padding: 10px 12px; border-radius: var(--r-sm); }
.depletion__verdict .ic { width: 18px; height: 18px; color: #6EE7B7; flex: none; }
.depletion__verdict strong { color: #BBF7D0; }

/* rysowanie linii na wejściu */
.spark-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.5s ease .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .spark-line { animation: none; stroke-dashoffset: 0; } }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .depletion { max-width: 460px; }
}

/* ── Pasek zaufania (logos / fakty) ────────────────────────────── */
.trustrow { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; justify-content: center; color: var(--muted); font-size: .92rem; }
.trustrow span { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; }
.trustrow .ic { width: 18px; height: 18px; color: var(--safe-600); }

/* ── Dwie straty (problem) ─────────────────────────────────────── */
.losses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.loss { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.loss::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.loss--out::before { background: var(--alert); }
.loss--over::before { background: var(--warn); }
.loss__tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.loss--out .loss__tag { color: var(--alert); }
.loss--over .loss__tag { color: var(--warn); }
.loss h3 { font-size: 1.28rem; margin: 8px 0 8px; }
.loss p { color: var(--muted); margin: 0; }
.loss__big { font-family: var(--mono); font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-top: 14px; display: block; }

/* ── Jak to działa (proces 3 kroki) ───────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.step__no { counter-increment: step; font-family: var(--mono); font-weight: 700; color: var(--brand); font-size: .9rem; letter-spacing: .04em; }
.step__no::before { content: "0" counter(step) " / "; }
.step h3 { font-size: 1.18rem; margin: 12px 0 8px; }
.step p { color: var(--muted); margin: 0; }
.step__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-700); margin-bottom: 4px; }
.step__ic .ic { width: 22px; height: 22px; }

/* ── Siatka możliwości (kafelki) ───────────────────────────────── */
.grid-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .2s ease, border-color .2s; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.fcard__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(160deg, var(--brand-tint), #fff); color: var(--brand-700); margin-bottom: 16px; border: 1px solid var(--line); }
.fcard__ic .ic { width: 24px; height: 24px; }
.fcard h3 { font-size: 1.12rem; margin-bottom: 8px; }
.fcard__lead { font-weight: 600; color: var(--ink); margin: 0 0 8px; font-size: .98rem; }
.fcard p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ── Wiersze funkcja + zrzut ekranu (naprzemiennie) ───────────── */
.feat-rows { display: flex; flex-direction: column; gap: clamp(30px, 4.5vw, 54px); }
.frow { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.frow:nth-child(even) .frow__media { order: -1; }
.frow__no { font-family: var(--mono); color: var(--brand); font-weight: 700; font-size: .82rem; letter-spacing: .1em; }
.frow h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 10px 0 12px; }
.frow__lead { font-weight: 600; color: var(--ink); font-size: 1.05rem; margin-bottom: 10px; }
.frow p { color: var(--muted); margin: 0; }
.frow__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-700); }
.frow__ic .ic { width: 23px; height: 23px; }

/* ── Zrzuty ekranu / placeholdery ─────────────────────────────── */
.shot { margin: 0; }
.shot__frame {
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2);
  background: #fff; box-shadow: var(--shadow-lg); position: relative;
}
.shot__frame img { width: 100%; height: auto; display: block; }
.shot__frame--ph { aspect-ratio: 16 / 10; display: grid; place-items: center; background:
  linear-gradient(180deg, #fff, var(--paper)),
  repeating-linear-gradient(135deg, transparent 0 14px, rgba(29,78,216,.04) 14px 15px); }
.shot__ph { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 24px; color: var(--muted); }
.shot__ph-mark { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-tint); position: relative; }
.shot__ph-mark::before, .shot__ph-mark::after { content: ""; position: absolute; border-radius: 99px; }
.shot__ph-mark::before { width: 18px; height: 18px; border: 2.5px solid var(--brand); border-radius: 6px; left: 9px; top: 9px; }
.shot__ph-mark::after { width: 8px; height: 8px; background: var(--safe); right: 9px; top: 9px; }
.shot__ph-title { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1rem; }
.shot__ph-hint { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.shot__cap { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.shot__cap strong { color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 26px); }

/* Podgląd produktu na stronie głównej */
.preview { max-width: 1020px; margin-inline: auto; }
.preview .shot__frame { box-shadow: var(--shadow-lg); }
.preview__cap { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 16px; }
.preview__cap .linkarrow { vertical-align: middle; }

/* ── Porównanie kosztów (etat vs program) ─────────────────────── */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cpanel { border-radius: var(--r); padding: 20px 24px; border: 1px solid var(--line); }
.cpanel--human { background: #fff; }
.cpanel--app { background: linear-gradient(165deg, var(--ink), var(--ink-3)); color: var(--on-dark); border-color: transparent; box-shadow: var(--shadow-lg); }
.cpanel__kicker { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.cpanel--human .cpanel__kicker { color: var(--muted-2); }
.cpanel--app .cpanel__kicker { color: #7FB0FF; }
.cpanel h3 { font-size: 1.42rem; margin: 6px 0 12px; }
.cpanel--app h3 { color: #fff; }
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.clist li { display: flex; gap: 11px; align-items: flex-start; font-size: .98rem; }
.clist .ic { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.cpanel--human .clist .ic { color: var(--muted-2); }
.cpanel--app .clist .ic { color: #6EE7B7; }
.cpanel--app .clist li { color: var(--on-dark); }
.cpanel--human .clist li { color: var(--muted); }
.cnote { margin: 14px 0 0; font-size: .82rem; }
.cpanel--human .cnote { color: var(--muted-2); }
.cpanel--app .cnote { color: var(--on-dark-mut); }

.example {
  margin-top: 20px; background: var(--brand-tint); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 20px;
}
.example__k { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700); font-weight: 700; }
.example p { margin: 8px 0 0; color: var(--ink-3); }
.example b { font-family: var(--mono); }

/* ── Segmenty „dla kogo" ──────────────────────────────────────── */
.seg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.seg { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.seg h3 { font-size: 1.16rem; margin-bottom: 7px; }
.seg p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ── Pas „bezpieczeństwo" ─────────────────────────────────────── */
.safegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.safe { background: rgba(255,255,255,.04); border: 1px solid rgba(127,176,255,.16); border-radius: var(--r); padding: 20px 22px; }
.safe__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(5,150,105,.16); color: #6EE7B7; margin-bottom: 14px; }
.safe__ic .ic { width: 24px; height: 24px; }
.safe h3 { color: #fff; font-size: 1.14rem; margin-bottom: 8px; }
.safe p { color: var(--on-dark-mut); margin: 0; font-size: .95rem; }

/* ── Pas CTA ───────────────────────────────────────────────────── */
.ctaband { background: linear-gradient(120deg, var(--brand-900), var(--brand) 120%); color: #fff; }
.ctaband__inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; padding-block: clamp(30px, 4vw, 50px); }
.ctaband h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.ctaband p { color: #DCE6FF; margin: 0; max-width: 52ch; }
.ctaband .signal { width: 52px; }
.ctaband__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.ctaband__actions .btn { background: #fff; color: var(--brand-900); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.ctaband__actions .btn:hover { background: #F0F4FF; }
.ctaband__actions .btn--ghost { background: transparent; color: #fff; }

/* ── Stopka ────────────────────────────────────────────────────── */
.foot { background: var(--ink); color: var(--on-dark-mut); padding-top: clamp(32px, 4.5vw, 52px); }
.foot__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-bottom: 28px; }
.brand--foot .brand__name { color: #fff; }
.foot__tag { margin: 16px 0 0; max-width: 38ch; color: var(--on-dark-mut); font-size: .94rem; }
.foot__col h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); margin-bottom: 14px; }
.foot__col a { display: block; color: var(--on-dark-mut); padding: 4px 0; font-size: .95rem; }
.foot__col a:hover { color: #fff; }
.foot__line { display: block; }
.foot__col a.foot__cta { margin-top: 14px; display: inline-flex; width: auto; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: var(--muted-2); }
.foot__note { color: var(--muted-2); }

/* ── Nagłówek podstrony ───────────────────────────────────────── */
.pagehead { background: linear-gradient(165deg, #0B1F3A, #122B52); color: #fff; padding-block: clamp(36px, 4.5vw, 58px); position: relative; overflow: hidden; }
.pagehead::before { content: ""; position: absolute; inset: 0; opacity: .45; background: radial-gradient(50% 60% at 90% 0%, rgba(29,78,216,.3), transparent 60%); }
.pagehead__inner { position: relative; max-width: 760px; }
.pagehead h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.pagehead p { color: var(--on-dark-mut); font-size: clamp(1.04rem, 1.4vw, 1.2rem); margin: 0; max-width: 60ch; }
.crumbs { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: #7FB0FF; margin-bottom: 18px; }
.crumbs a { color: #7FB0FF; }
.crumbs span { color: var(--on-dark-mut); }

/* ── Formularz kontaktowy ─────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.5vw, 28px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: .94rem; }
.field .req { color: var(--alert); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--paper);
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.form__consent input { margin-top: 3px; }
.form .btn { width: 100%; }

.alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm);
  margin-bottom: 22px; font-size: .96rem; border: 1px solid;
}
.alert .ic { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert--ok { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.alert--ok .ic { color: var(--safe); }
.alert--err { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert--err .ic { color: var(--alert); }

.contact-aside { display: grid; gap: 16px; }
.cinfo { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); }
.cinfo h3 { font-size: 1.1rem; margin-bottom: 10px; }
.cinfo__row { display: flex; gap: 12px; align-items: center; color: var(--muted); padding: 6px 0; }
.cinfo__row .ic { width: 19px; height: 19px; color: var(--brand); flex: none; }
.cinfo__row a { color: var(--ink); font-weight: 500; }

/* ── Lista wartości / wypunktowania ozdobne ────────────────────── */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.ticks .ic { width: 20px; height: 20px; color: var(--safe-600); flex: none; margin-top: 2px; }
.ticks strong { color: var(--ink); }

.note-box { background: var(--brand-tint); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; color: var(--ink-3); font-size: .94rem; }
.note-box strong { color: var(--ink); }

/* ── Kroki pobrania (wersja testowa) ───────────────────────────── */
.dl-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: dl; }
.dl { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start; }
.dl__no { counter-increment: dl; font-family: var(--display); font-weight: 700; color: #fff; background: var(--brand); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.dl__no::before { content: counter(dl); }
.dl h3 { font-size: 1.06rem; margin-bottom: 5px; }
.dl p { color: var(--muted); margin: 0; font-size: .94rem; }

/* ── Responsywność ─────────────────────────────────────────────── */
@media (max-width: 980px) {
  .grid-feat, .steps, .safegrid { grid-template-columns: 1fr 1fr; }
  .frow { grid-template-columns: 1fr; }
  .frow:nth-child(even) .frow__media { order: 0; }
  .compare, .contact-grid, .ctaband__inner, .foot__inner { grid-template-columns: 1fr; }
  .ctaband__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .losses, .grid-feat, .steps, .safegrid, .seg-grid, .gallery, .dl-steps, .compare { grid-template-columns: 1fr; }
  .depletion__grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot__bottom { flex-direction: column; }
}

/* ── Lightbox: powiększenie zrzutów ekranu ─────────────────────── */
.shot__frame img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(14px, 4vw, 48px);
  background: rgba(7, 16, 33, .93);
  cursor: zoom-out;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox__img {
  max-width: 100%; max-height: 100%;
  border-radius: 10px; box-shadow: 0 30px 90px rgba(0,0,0,.55);
  cursor: default;
}
.lightbox__close {
  position: absolute; top: clamp(12px, 2vw, 22px); right: clamp(12px, 2vw, 24px);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.28); cursor: pointer;
  transition: background .15s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,.24); }
.lightbox__close .ic { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .lightbox { transition: none; } }
