/* Biuro Projektów Kapitałowych — arkusz stylów */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.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;
}

:root {
  --navy: #00237e;
  --night: #060c22;
  --green: #289728;
  --green-light: #a3c9a3;
  --paper: #ffffff;
  --mist: #f3f5fa;
  --line: #e2e6f0;
  --text: #1c2540;
  --muted: #5b6480;
  --on-dark: rgba(255, 255, 255, .78);
  --glass-line: rgba(255, 255, 255, .14);
  --radius: 20px;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--night); }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  z-index: 1;
}

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 20; }
.skip:focus { left: 16px; top: 16px; }

:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { letter-spacing: -.025em; line-height: 1.08; margin: 0; text-wrap: balance; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green); margin: 0 0 24px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.dark .eyebrow { color: var(--green-light); }

/* ---------- Rozmyte światła ---------- */

.glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glow i {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: .32;
  animation: drift 22s ease-in-out infinite alternate;
}
.glow .g1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; background: #1b3a8c; left: -12%; top: -18%; }
.glow .g2 { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; background: #2a6b35; right: -6%; top: 22%; opacity: .2; animation-duration: 28s; animation-delay: -6s; }
.glow .g3 { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; background: #24448f; left: 38%; bottom: -26%; opacity: .22; animation-duration: 32s; animation-delay: -12s; }

.glow--light i { opacity: .1; filter: blur(120px); }
.glow--light .g2 { opacity: .07; }

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(4%, 6%, 0) scale(1.08); }
  100% { transform: translate3d(-3%, -4%, 0) scale(.96); }
}

.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nagłówek ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
}
.site-header.is-scrolled {
  background: rgba(5, 13, 43, .62);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
.nav a { font-size: 15px; font-weight: 600; text-decoration: none; color: rgba(255, 255, 255, .86); transition: color .2s; }
.nav a:hover { color: #fff; }

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  padding: 15px 26px; border-radius: 999px;
  color: #fff; background: #23802a;
  border: 1px solid transparent;
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .6);
  transition: transform .25s ease, box-shadow .25s ease, background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .7); background: #268c2e; }
.btn--glass {
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); box-shadow: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .16); box-shadow: none; }
.nav a.btn { padding: 10px 20px; font-size: 14px; color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */

.dark { background: var(--night); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.dark h1, .dark h2 { color: #fff; }

.hero { padding: clamp(150px, 20vw, 210px) 0 clamp(90px, 12vw, 150px); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.hero h1 { font-size: clamp(42px, 6.4vw, 80px); font-weight: 800; }
.hero h1 span {
  display: block;
  background: linear-gradient(100deg, #ffffff 0%, #dbe6dc 50%, #b3cdb4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--on-dark); max-width: 34em; margin: 28px 0 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03));
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.since { border-radius: 28px; padding: clamp(30px, 4vw, 44px); max-width: 100%; }
.since__label { font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green-light); }
.since__num { font-size: clamp(110px, 14vw, 180px); font-weight: 800; line-height: .9; letter-spacing: -.06em; margin: 28px 0 14px; }
.since__num small { font-size: .26em; letter-spacing: -.01em; font-weight: 700; color: var(--on-dark); margin-left: .3em; }
.since__text { font-size: 16.5px; line-height: 1.55; color: var(--on-dark); margin: 0; max-width: 20em; }

/* ---------- Motto ---------- */

.motto { position: relative; overflow: hidden; isolation: isolate; background: #f5f6f9; padding: clamp(90px, 12vw, 150px) 0; text-align: center; }
.motto h2 { font-size: clamp(34px, 5.4vw, 68px); font-weight: 800; color: var(--night); }
.motto h2 em { font-style: normal; color: var(--navy); }
.motto p { margin: 26px auto 0; max-width: 34em; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.motto .rule { width: 56px; height: 3px; border-radius: 2px; background: var(--green); margin: 0 auto 34px; }

/* ---------- Kontakt ---------- */

.contact { padding: clamp(90px, 12vw, 140px) 0; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.contact h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; }
.contact .intro { color: var(--on-dark); margin: 22px 0 0; font-size: 18px; max-width: 26em; }

.cards { display: grid; gap: 16px; min-width: 0; }
.card {
  display: flex; align-items: center; gap: 20px;
  padding: 26px 28px; border-radius: var(--radius);
  text-decoration: none; color: #fff; min-width: 0;
  transition: transform .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .3); }
.card__icon {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--green-light);
}
.card__icon svg { width: 22px; height: 22px; }
.card__body { min-width: 0; }
.card__label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.card__value { display: block; font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.card__arrow { margin-left: auto; color: var(--green-light); flex: none; transition: transform .25s; }
.card:hover .card__arrow { transform: translateX(5px); }

/* Światła sekcji kontakt trzymane z dala od dolnej krawędzi */
.contact .glow .g2 { top: -10%; right: -8%; }
.contact .glow .g3 { bottom: auto; top: 5%; left: 25%; }

/* ---------- Stopka ---------- */

.site-footer { background: var(--night); color: rgba(255, 255, 255, .6); padding: 0 0 36px; font-size: 14.5px; }
.site-footer .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer .logo { height: 44px; width: auto; }
.site-footer .legal { line-height: 1.7; }
.site-footer strong { color: rgba(255, 255, 255, .9); font-weight: 700; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Polityka prywatności ---------- */

.doc-hero { padding: clamp(150px, 18vw, 190px) 0 clamp(60px, 8vw, 90px); }
.doc-hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; }
.doc-hero p.sub { color: var(--on-dark); margin: 18px 0 0; }

.doc { padding: clamp(56px, 7vw, 88px) 0 clamp(72px, 9vw, 112px); }
.doc .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.toc { position: sticky; top: 120px; font-size: 14px; }
.toc p { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; color: var(--muted); font-weight: 600; }
.toc a:hover { color: var(--navy); border-left-color: var(--green); }

.prose { max-width: 720px; min-width: 0; }
.prose > p:first-child { font-size: 18px; color: var(--muted); margin-bottom: 40px; }
.prose section { scroll-margin-top: 110px; }
.prose section + section { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.prose h2 { font-size: 24px; font-weight: 800; color: var(--night); margin-bottom: 16px; display: flex; gap: 14px; align-items: baseline; }
.prose h2 .n { color: var(--green); font-size: 15px; font-weight: 800; min-width: 1.6em; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--green); }
.prose a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }
.prose .box { background: var(--mist); border-radius: 16px; padding: 22px 24px; margin: 0 0 16px; line-height: 1.8; }

/* ---------- Animacje wejścia ---------- */

.reveal { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.reveal.d1 { animation-delay: .12s; }
.reveal.d2 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .glow i { animation: none; }
  * { transition: none !important; }
}


/* =========================================================
   Detale premium
   ========================================================= */

::selection { background: rgba(163, 201, 163, .35); color: inherit; }

/* Delikatna siatka finansowa w tle hero, wygaszana ku krawędziom */
.gridlines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

/* Światło podążające za kursorem */
.spot {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 40%), rgba(160, 180, 230, .08), transparent 60%);
  transition: opacity .6s ease;
}
.hero:hover .spot { opacity: 1; }

/* Nagłówek zmniejsza się przy przewijaniu */
.site-header .wrap { transition: height .35s ease; }
.brand img { transition: height .35s ease; }
.site-header.is-scrolled .wrap { height: 70px; }
.site-header.is-scrolled .brand img { height: 46px; }

/* Podkreślenie linków menu */
.nav a:not(.btn) { position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--green-light); transform: scaleX(0); transform-origin: right; transition: transform .35s ease;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

/* Połysk przesuwający się po przycisku */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .7s ease;
}
.btn:hover::after { left: 130%; }

/* Gradient w nagłówku delikatnie się przelewa */
.hero h1 span { background-size: 200% 100%; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both, shimmer 9s ease-in-out 1.2s infinite alternate; }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero h1.reveal { animation: none; }
.hero h1 { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .12s both; }

/* Szklana karta: obramowanie gradientowe, przechył 3D i odblask */
.since { position: relative; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .7, .2, 1); will-change: transform; overflow: hidden; }
.since::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .03) 45%, rgba(163, 201, 163, .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.since .sheen {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 255, 255, .09), transparent 55%);
}
.since:hover .sheen { opacity: 1; }
.since__num { font-variant-numeric: tabular-nums; }
.since__num span { background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .72)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Wskaźnik przewijania */
.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; z-index: 2; margin-left: -13px;
  width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .42);
  animation: rise 1s ease 1s both;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--green-light); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

.reveal.d3 { animation-delay: .36s; }

/* Odsłanianie przy przewijaniu (tylko gdy działa JS; bez JS treść jest widoczna) */
.js .sr { opacity: 0; transform: translateY(26px); filter: blur(8px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1), filter 1s ease; transition-delay: var(--d, 0s); }
.js .sr.in { opacity: 1; transform: none; filter: none; }
.js .card.sr.in:hover { transform: translateY(-3px); }

/* Motto: linia rośnie przy odsłonięciu */
.js .motto .rule.sr { transform: scaleX(0); filter: none; }
.js .motto .rule.sr.in { transform: scaleX(1); }

/* Karty kontaktowe: światło pod kursorem */
.card { position: relative; overflow: hidden; }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(300px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .06), transparent 60%);
}
.card:hover::after { opacity: 1; }

@media (hover: none) { .spot, .since .sheen, .card::after { display: none; } }
@media (max-width: 640px) { .scroll-cue { display: none; } .gridlines { background-size: 48px 48px; } }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero h1 span, .scroll-cue, .scroll-cue span { animation: none; }
  .js .sr { opacity: 1; transform: none; filter: none; }
  .since { transform: none !important; }
}

/* ---------- Responsywność ---------- */

@media (max-width: 900px) {
  .hero .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .since { max-width: 460px; }
  .doc .wrap { grid-template-columns: 1fr; }
  .toc { display: none; }
  .glow i { filter: blur(70px); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 72px; }
  .brand img { height: 44px; }
  .nav a:not(.btn) { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .card { padding: 20px; gap: 16px; }
  .card__arrow { display: none; }
  .site-footer .inner { flex-direction: column; align-items: flex-start; }
  .glow .g1 { width: 110vw; height: 110vw; left: -40%; top: -10%; }
  .glow .g2 { width: 80vw; height: 80vw; right: -30%; top: 40%; }
  .glow .g3 { width: 80vw; height: 80vw; left: 10%; }
}

@media print {
  .site-header, .toc, .actions, .glow { display: none; }
  .dark { background: #fff; color: #000; }
  .dark h1, .dark h2 { color: #000; }
}

/* ---------- Wydajność (2026-11-18) ----------
   Rozmycia (filter/backdrop-filter) i ciągłe animacje mocno obciążały
   słabsze laptopy. Ten sam wygląd uzyskany lżejszymi środkami. */
.glow i {
  filter: none !important; animation: none !important; opacity: .55;
  background: radial-gradient(closest-side, var(--c), transparent) !important;
  transform: scale(1.6);
}
.glow .g1 { --c: #1b3a8c; }
.glow .g2 { --c: #2a6b35; opacity: .35; }
.glow .g3 { --c: #24448f; opacity: .4; }
.glow--light i, .glow--light .g1, .glow--light .g3 { opacity: .07; }
.glow--light .g2 { opacity: .04; }
.grain::after { display: none; }
.site-header.is-scrolled { background: rgba(5, 13, 43, .94); -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn--glass { -webkit-backdrop-filter: none; backdrop-filter: none; }
.glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(160deg, rgba(40, 60, 120, .55), rgba(20, 30, 70, .45)); }
.js .sr { filter: none; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero h1 span { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.since { will-change: auto; }
