/* ============================================================
   Jacek Jarkiewicz – PEX DEFENCE POLSKA
   Premium personal site · self-contained, no external deps
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --navy-900: #0a1e33;
  --navy-800: #0e2740;
  --navy-700: #143352;
  --navy-600: #1c4066;
  --accent:   #e6a23c;   /* energy / power amber-gold */
  --accent-600: #d18f28;
  --accent-100: #fbeed6;

  /* Neutrals */
  --ink:      #10202e;
  --ink-soft: #46586a;
  --ink-mut:  #6b7c8c;
  --line:     #e4e9ee;
  --bg:       #ffffff;
  --bg-alt:   #f5f8fb;
  --white:    #ffffff;

  /* System */
  --radius:   16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16,32,46,.06), 0 2px 8px rgba(16,32,46,.05);
  --shadow-md: 0 8px 24px rgba(16,32,46,.09);
  --shadow-lg: 0 20px 50px rgba(10,30,51,.18);
  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.02em; font-family: var(--font-display); }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 10px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Focus visibility ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .82em 1.5em; border-radius: 999px; font-weight: 700; font-size: .98rem;
  cursor: pointer; border: 1.5px solid transparent; transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--navy-900); box-shadow: 0 6px 18px rgba(230,162,60,.35); }
.btn-primary:hover { background: var(--accent-600); box-shadow: 0 10px 26px rgba(230,162,60,.45); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900));
  color: var(--accent); font-weight: 800; font-size: 1.05rem;
  display: grid; place-items: center; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.02rem; color: var(--ink); letter-spacing: -.01em; }
.brand-role { font-size: .72rem; color: var(--ink-mut); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Nav ---------- */
.nav-menu { list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; }
.nav-menu a {
  display: inline-block; padding: .5rem .85rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem; color: var(--ink-soft);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-menu a:hover { color: var(--ink); background: var(--bg-alt); }
.nav-menu a.active { color: var(--navy-800); }
.nav-cta { background: var(--navy-800); color: #fff !important; }
.nav-cta:hover { background: var(--navy-700) !important; color: #fff !important; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--white); border-radius: 10px; cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px;
  background: var(--ink); transform: translate(-50%,-50%); transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bar::before { transform: translate(-50%,-8px); }
.nav-toggle-bar::after  { transform: translate(-50%,6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translate(-50%,0) rotate(45deg); background: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translate(-50%,0) rotate(-45deg); background: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(230,162,60,.20), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(28,64,102,.55), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 30%, #000 40%, transparent 100%);
          mask-image: radial-gradient(80% 80% at 50% 30%, #000 40%, transparent 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.35fr .9fr; gap: 48px; align-items: center;
  padding: clamp(64px, 10vw, 120px) 24px clamp(72px, 10vw, 120px);
}
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 1rem;
  padding-bottom: .5rem; border-bottom: 1px solid rgba(230,162,60,.35);
}
.hero-copy h1 { color: #fff; margin-bottom: .1em; }
.hero-title-role { font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 600; color: var(--accent-100); margin: 0 0 1.1rem; }
.hero-lead { font-size: 1.14rem; color: rgba(255,255,255,.82); max-width: 46ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero-contacts { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; margin: 0; padding: 0; }
.hero-contacts a { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.9); font-weight: 600; font-size: .96rem; padding: .3rem 0; transition: color .18s var(--ease); }
.hero-contacts a:hover { color: var(--accent); }
.ico { width: 18px; height: 18px; fill: currentColor; flex: 0 0 18px; }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px; padding: 34px 30px; text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.avatar {
  width: 132px; height: 132px; margin: 0 auto 18px; border-radius: 50%;
  overflow: hidden; background: var(--navy-700);
  box-shadow: 0 14px 34px rgba(8,20,34,.5), 0 0 0 4px var(--accent), 0 0 0 9px rgba(255,255,255,.14);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.avatar-initials { font-size: 2.6rem; font-weight: 800; color: var(--navy-900); letter-spacing: .02em; }
.hero-card-name { font-size: 1.3rem; font-weight: 800; margin: 0; color: #fff; }
.hero-card-sub { color: var(--accent-100); font-weight: 600; margin: .1rem 0 1.2rem; font-size: .96rem; }
.hero-card-facts { margin: 0; text-align: left; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1rem; }
.hero-card-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.hero-card-facts > div:last-child { border-bottom: 0; }
.hero-card-facts dt { color: rgba(255,255,255,.6); font-size: .82rem; margin: 0; }
.hero-card-facts dd { margin: 0; font-weight: 700; font-size: .9rem; color: #fff; text-align: right; }

/* ---------- Trust bar ---------- */
.trust { background: var(--navy-800); border-top: 1px solid rgba(255,255,255,.06); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 26px 24px; }
.trust-item { text-align: center; color: #fff; padding: 8px; }
.trust-num { display: block; font-size: 1.55rem; font-weight: 800; color: var(--accent); letter-spacing: -.01em; }
.trust-lab { display: block; font-size: .84rem; color: rgba(255,255,255,.7); margin-top: .2rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-900); color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-sub { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }
.section-dark .section-sub { color: rgba(255,255,255,.75); }

.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--accent-600); margin: 0 0 .7rem; }
.kicker-light { color: var(--accent); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.lead { font-size: 1.18rem; color: var(--ink); font-weight: 500; }
p .link-arrow, .link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--navy-800);
  margin-top: .5rem; transition: gap .2s var(--ease), color .2s var(--ease);
}
.link-arrow:hover { gap: .8rem; color: var(--accent-600); }

/* ---------- Feature list (O mnie) ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li {
  display: flex; gap: 16px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.feature-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d7e0e8; }
.feature-ico { color: var(--accent); font-size: 1rem; margin-top: .25rem; }
.feature-list strong { display: block; font-size: 1.04rem; }
.feature-list p { margin: .2rem 0 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Cards (Oferta) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-600));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d7e0e8; }
.card:hover::before { transform: scaleX(1); }
.card-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-100); margin-bottom: 18px;
}
.card-ico svg { width: 26px; height: 26px; fill: var(--accent-600); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.card.is-link { cursor: pointer; }
.card-more {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: 16px; color: var(--accent-600); font-weight: 600; font-size: .95rem;
}
.card-more span { transition: transform .2s var(--ease); }
.card.is-link:hover .card-more span { transform: translateX(4px); }
.card-link { position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }
.card-link:focus-visible { outline: 3px solid var(--accent-600); outline-offset: 3px; }

/* ---------- Linie produktowe ---------- */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.line {
  position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  display: flex; flex-direction: column;
}
.line:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.line-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.line-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.line:hover .line-media img { transform: scale(1.05); }
.line-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.line-new { border-color: rgba(230,162,60,.55); box-shadow: 0 0 0 1px rgba(230,162,60,.35), var(--shadow-sm); }
.line-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800;
  color: var(--navy-900); background: var(--accent); padding: .3em .7em; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(230,162,60,.4);
}
.line-feature .line-badge { color: var(--navy-900); background: var(--accent); }
.line-feature { background: linear-gradient(155deg, var(--navy-800), var(--navy-900)); color: #fff; border-color: transparent; }
.line-tag {
  display: inline-block; align-self: flex-start; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; color: var(--accent-600); background: var(--accent-100); padding: .28em .7em; border-radius: 999px; margin: 0 0 1rem;
}
.line-feature .line-tag { color: var(--navy-900); background: var(--accent); }
.line-name { font-size: 1.35rem; margin: 0 0 .1rem; }
.line-feature .line-name { color: #fff; }
.line-power { font-size: 1.05rem; font-weight: 800; color: var(--accent-600); margin: 0 0 .8rem; }
.line.is-link { cursor: pointer; }
.line-link { position: absolute; inset: 0; z-index: 3; border-radius: var(--radius); }
.line-link:focus-visible { outline: 3px solid var(--accent-600); outline-offset: 3px; }
.line-more {
  margin-top: auto; padding-top: .7rem;
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--accent-600); font-weight: 700; font-size: .9rem;
}
.line-more span { transition: transform .2s var(--ease); }
.line.is-link:hover .line-more span { transform: translateX(4px); }
.line-feature .line-power { color: var(--accent); }
.line-desc { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.line-feature .line-desc { color: rgba(255,255,255,.8); }
.lines-note { text-align: center; color: var(--ink-mut); font-size: .92rem; margin: 28px auto 0; max-width: 760px; }

/* ---------- Chips (Dla kogo) ---------- */
.chips-grid {
  list-style: none; margin: 0 auto; padding: 0; max-width: 900px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.chips-grid li {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: .75em 1.4em; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.chips-grid li:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent-600); }

/* ---------- Steps (Proces) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--navy-800); color: var(--accent); font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.faq-item[open] { border-color: #d7e0e8; box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-weight: 700; font-size: 1.05rem; color: var(--ink);
  transition: color .18s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-600); }
.faq-item summary::after {
  content: ""; flex: 0 0 12px; width: 12px; height: 12px; margin-top: 2px;
  border-right: 2.5px solid var(--accent-600); border-bottom: 2.5px solid var(--accent-600);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-answer { padding: 0 24px 22px; }
.faq-answer p { margin: 0; color: var(--ink-soft); }
.faq-answer strong { color: var(--ink); }
.faq-item[open] summary { color: var(--accent-600); }
.faq-cta { text-align: center; margin: 32px auto 0; color: var(--ink-soft); font-weight: 500; }
.faq-cta a { color: var(--accent-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.faq-cta a:hover { color: var(--ink); }

/* ---------- Kontakt ---------- */
.contact-grid { align-items: start; }
.contact-lead { color: rgba(255,255,255,.8); font-size: 1.08rem; max-width: 44ch; }
.contact-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-ico {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(230,162,60,.14); border: 1px solid rgba(230,162,60,.3);
}
.contact-ico svg { width: 22px; height: 22px; fill: var(--accent); }
.contact-lab { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); }
.contact-list a { font-weight: 700; color: #fff; transition: color .18s var(--ease); }
.contact-list a:hover { color: var(--accent); }

/* ---------- Form ---------- */
.contact-form {
  background: var(--white); color: var(--ink); border-radius: 20px; padding: 30px;
  box-shadow: var(--shadow-lg);
}
.form-intro { font-weight: 800; font-size: 1.15rem; margin: 0 0 1.2rem; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.req { color: var(--accent-600); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  padding: .72em .9em; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfd;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.field input:hover, .field textarea:hover { border-color: #cdd6de; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 4px rgba(230,162,60,.18);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #d64545; box-shadow: 0 0 0 4px rgba(214,69,69,.14);
}
.field-error { display: block; color: #c02f2f; font-size: .84rem; margin-top: .35rem; font-weight: 600; }
.field-consent { margin-top: 4px; }
.consent { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; font-size: .92rem; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; accent-color: var(--accent-600); cursor: pointer; }
.form-status { margin: 1rem 0 0; font-weight: 700; font-size: .96rem; }
.form-status.ok { color: #1f8a4c; }
.form-status.err { color: #c02f2f; }
.form-note { font-size: .82rem; color: var(--ink-mut); margin: .9rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: #08182a; color: rgba(255,255,255,.78); padding: 56px 0 26px; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-weight: 800; color: #fff; margin: 0; font-size: 1.05rem; }
.footer-role { margin: .15rem 0 0; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-nav { display: flex; flex-direction: column; gap: .55rem; }
.footer-nav a { color: rgba(255,255,255,.78); font-weight: 500; transition: color .18s var(--ease); width: fit-content; }
.footer-nav a:hover { color: var(--accent); }
.footer-company p { margin: 0 0 .3rem; line-height: 1.5; }
.footer-company strong { color: #fff; }
.footer-company a { color: var(--accent); text-decoration: none; font-weight: 500; }
.footer-company a:hover { text-decoration: underline; }
.contact-disclaimer { margin: 1.4rem 0 0; font-size: .82rem; line-height: 1.5; color: rgba(255,255,255,.55); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; }
.footer-bottom p { margin: 0; font-size: .86rem; color: rgba(255,255,255,.55); }
.to-top { font-weight: 700; color: var(--accent); transition: color .18s var(--ease); }
.to-top:hover { color: #fff; }

/* ---------- Reveal on scroll (only when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Blog – index + articles
   ============================================================ */
.page-hero {
  position: relative; background: var(--navy-900); color: #fff; overflow: hidden;
  padding: clamp(56px, 8vw, 92px) 0 clamp(48px, 7vw, 72px);
}
.page-hero .hero-bg { position: absolute; inset: 0; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .kicker { color: var(--accent); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); max-width: 20ch; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 1.12rem; max-width: 60ch; margin: 0; }

.breadcrumb { font-size: .9rem; margin: 0 0 1.2rem; color: rgba(255,255,255,.6); }
.breadcrumb a { color: rgba(255,255,255,.85); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 .4rem; }
.article .breadcrumb { color: var(--ink-mut); }
.article .breadcrumb a { color: var(--ink-soft); }
.article .breadcrumb a:hover { color: var(--accent-600); }

/* Blog index grid */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.post-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d7e0e8; }
.post-thumb { aspect-ratio: 16 / 8; display: grid; place-items: center; position: relative; overflow: hidden; background: var(--bg-alt); }
.post-thumb svg { width: 64px; height: 64px; opacity: .95; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--accent-600); margin: 0 0 .6rem; }
.post-card h2 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 .5rem; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--accent-600); }
.post-excerpt { color: var(--ink-soft); font-size: .96rem; margin: 0 0 1.1rem; flex: 1; }
.post-more { font-weight: 700; color: var(--accent-600); align-self: flex-start; display: inline-flex; gap: .4rem; transition: gap .2s var(--ease); }
.post-card:hover .post-more { gap: .7rem; }
.post-read { font-size: .82rem; color: var(--ink-mut); margin: 0 0 .7rem; }

/* Article page */
.article { padding: clamp(40px, 6vw, 64px) 0 clamp(56px, 8vw, 88px); }
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--ink-mut); font-size: .9rem; margin: 0 0 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.article-meta .tag { color: var(--accent-600); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.prose { color: var(--ink); font-size: 1.08rem; line-height: 1.75; }
.prose > p:first-of-type { font-size: 1.2rem; color: var(--ink); }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
.prose p { margin: 0 0 1.1rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.3rem; color: var(--ink-soft); }
.prose li { margin: .4rem 0; }
.prose a { color: var(--accent-600); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 1.6rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--accent);
  background: var(--bg-alt); border-radius: 0 12px 12px 0; color: var(--ink); font-weight: 500;
}
.prose .callout {
  margin: 1.6rem 0; padding: 1.1rem 1.4rem; background: var(--accent-100);
  border: 1px solid rgba(230,162,60,.4); border-radius: 12px; color: var(--ink); font-size: .98rem;
}
.prose .callout strong { color: var(--navy-800); }
.article-note { font-size: .86rem; color: var(--ink-mut); font-style: italic; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

.article-cta {
  margin: 2.6rem auto 0; max-width: 760px; text-align: center;
  background: linear-gradient(155deg, var(--navy-800), var(--navy-900)); color: #fff;
  padding: 32px 28px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.article-cta h2 { color: #fff; font-size: 1.35rem; margin: 0 0 .5rem; }
.article-cta p { color: rgba(255,255,255,.82); margin: 0 0 1.4rem; }
.article-cta .btn { margin: 0 .3rem; }

.post-nav { max-width: 760px; margin: 2.4rem auto 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--accent-600); }
.back-link:hover { color: var(--ink); }

/* Gallery (Zdjęcia) */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 26px; }
.gallery-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.gallery-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d7e0e8; }
.gallery-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.gallery-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.gallery-card:hover .gallery-media img { transform: scale(1.05); }
.gallery-cat {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800;
  color: var(--navy-900); background: var(--accent); padding: .32em .75em; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(8,20,34,.28);
}
.gallery-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.gallery-body h2 { font-size: 1.12rem; line-height: 1.25; margin: 0 0 .5rem; }
.gallery-body p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.gallery-media { cursor: zoom-in; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 400; display: none; background: rgba(8,16,26,.93); }
.lightbox.open { display: grid; place-items: center; }
body.lb-lock { overflow: hidden; }
.lightbox-fig { margin: 0; max-width: min(1120px, 92vw); display: flex; flex-direction: column; align-items: center; }
.lightbox-img { max-width: 92vw; max-height: 76vh; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.lightbox-cap { color: #fff; text-align: center; padding: 16px 8px 0; max-width: 720px; }
.lightbox-cap strong { display: block; font-size: 1.08rem; }
.lightbox-cap span { display: block; color: rgba(255,255,255,.75); font-size: .92rem; margin-top: .3rem; line-height: 1.5; }
.lightbox-btn {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%; width: 50px; height: 50px; cursor: pointer; display: grid; place-items: center;
  transition: background .2s var(--ease); line-height: 1;
}
.lightbox-btn svg { width: 22px; height: 22px; fill: #fff; }
.lightbox-btn:hover { background: rgba(255,255,255,.26); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .85rem; letter-spacing: .04em; }
@media (max-width: 560px) {
  .lightbox-btn { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* Article lead image */
.article-figure { margin: .5rem 0 2rem; }
.article-figure img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); display: block; box-shadow: var(--shadow-md);
}
.article-figure figcaption {
  margin-top: .7rem; font-size: .85rem; color: var(--ink-mut);
  font-style: italic; text-align: center; line-height: 1.5;
}

/* Author box (E-E-A-T) */
.author-box {
  max-width: 760px; margin: 2.6rem auto 0; display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.author-avatar {
  width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; object-fit: cover; object-position: 50% 22%;
  box-shadow: 0 0 0 3px var(--accent);
}
.author-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; color: var(--accent-600); margin: 0 0 .2rem; }
.author-name { font-weight: 800; font-size: 1.1rem; margin: 0; }
.author-role { color: var(--ink-soft); font-size: .9rem; margin: .1rem 0 .5rem; }
.author-desc { color: var(--ink-soft); font-size: .95rem; margin: 0; line-height: 1.6; }
.author-desc a { color: var(--accent-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .author-box { flex-direction: column; } }

/* Thumb color variants */
.thumb-1 { background: linear-gradient(150deg, #143352, #0a1e33); }
.thumb-2 { background: linear-gradient(150deg, #1c4066, #0e2740); }
.thumb-3 { background: linear-gradient(150deg, #2a3d2f, #10202e); }
.thumb-4 { background: linear-gradient(150deg, #3a2f1c, #10202e); }
.thumb-5 { background: linear-gradient(150deg, #1f3a3a, #0a1e33); }
.thumb-6 { background: linear-gradient(150deg, #2e2440, #0e2740); }
.thumb-7 { background: linear-gradient(150deg, #143352, #241a2e); }
.thumb-8 { background: linear-gradient(150deg, #0e2740, #2a1f14); }
.post-thumb svg { fill: var(--accent); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--navy-900); color: #fff;
  border-top: 3px solid var(--accent);
  box-shadow: 0 -10px 30px rgba(8,20,34,.35);
  animation: cookieUp .35s var(--ease);
}
@keyframes cookieUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }
.cookie-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-text { flex: 1 1 420px; }
.cookie-text strong { display: block; font-size: 1.02rem; margin-bottom: .25rem; }
.cookie-text p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.8); line-height: 1.55; }
.cookie-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: .7rem; flex: 0 0 auto; }
.cookie-actions .btn { padding: .65em 1.3em; font-size: .92rem; }
@media (max-width: 620px) {
  .cookie-inner { padding: 12px 14px; gap: 10px; }
  .cookie-text strong { font-size: .95rem; margin-bottom: .15rem; }
  .cookie-text p { font-size: .8rem; line-height: 1.45; }
  .cookie-actions { width: 100%; gap: .5rem; }
  .cookie-actions .btn { flex: 1 1 auto; padding: .6em 1em; font-size: .85rem; }
}

/* Cookie policy page helpers */
.legal { padding: clamp(36px, 6vw, 64px) 0 clamp(48px, 8vw, 80px); }
.legal-wrap { max-width: 800px; margin: 0 auto; }
.legal .prose h2 { font-size: 1.4rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--bg-alt); font-weight: 700; }
.legal-actions { margin-top: 1.8rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 400px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .lines { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; z-index: 120; }
  .nav-menu {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px 20px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: .8rem 1rem; font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; gap: 20px 8px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .cards { grid-template-columns: 1fr; }
  .lines { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .brand-role { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .contact-form { padding: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav, .hero-actions, .contact-form, .to-top, .hero-bg { display: none !important; }
  body { color: #000; }
  .hero, .section-dark, .trust { background: #fff !important; color: #000 !important; }
}
