/* =====================================================================
   Nowe Integracje — design system
   Editorial / refined: warm cream + crimson, General Sans + Manrope.
   Rebuilt 1:1 from the Premium editorial handoff.
   ===================================================================== */

:root {
  --bg: #FFFFFF;
  --panel: #F1F1F2;
  --img: #E7E7E9;
  --ink: #191712;
  --ink-soft: #2a251e;
  --ink-mute: #413c33;
  --dark: #16130E;
  --crimson: #E0114A;
  --crimson-dark: #A50E3A;
  --pink: #F03A6E;
  --muted: #6E675C;
  --muted-2: #8f897d;
  --muted-3: #B8B1A4;
  --line: rgba(25, 23, 18, 0.12);
  --line-strong: rgba(25, 23, 18, 0.20);
  --cream: #F5F1EA;
  --cream-line: rgba(245, 241, 234, 0.14);
  --shadow-hero: 0 22px 34px -20px rgba(15, 27, 45, 0.35);
  --shadow-card: 0 14px 30px -14px rgba(15, 27, 45, 0.20);
  --wrap: 1280px;
  --pad: 28px;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-display: 'Satoshi', system-ui, -apple-system, sans-serif;
  --radius: 2px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--crimson); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--crimson-dark); }
::selection { background: var(--crimson); color: #fff; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--dark); color: var(--cream);
  padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; color: var(--cream); }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.wrap--narrow { max-width: 1080px; }
.wrap--slim { max-width: 960px; }
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.eyebrow {
  margin: 0 0 14px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--crimson);
}
.eyebrow--light { color: var(--pink); }
.lede { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; color: var(--ink-mute); }
.muted { color: var(--muted); }
.h-xl { font-size: clamp(40px, 6.6vw, 88px); line-height: 0.98; letter-spacing: -0.028em; }
.h-lg { font-size: clamp(36px, 5.6vw, 78px); line-height: 0.99; letter-spacing: -0.028em; }
.h-md { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.03; }
.h-sm { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.05; }
.h-xs { font-size: clamp(24px, 3vw, 36px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius); cursor: pointer;
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
  padding: 17px 26px; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--crimson); color: #fff; }
.btn--primary:hover { background: var(--crimson-dark); color: #fff; }
.btn--invert { background: var(--crimson); color: #fff; }
.btn--invert:hover { background: #fff; color: var(--dark); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #fff; color: var(--dark); }
.btn--ghost { background: transparent; color: var(--cream); border: 1px solid rgba(245,241,234,0.4); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(245,241,234,0.08); color: var(--cream); }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn--outline:hover { border-color: var(--crimson); color: var(--crimson); }
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn--block { width: 100%; }

.arrow-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 16px; font-weight: 700; color: var(--crimson);
  display: inline-flex; align-items: center; gap: 8px;
}
.arrow-link span { transition: transform .2s ease; }
.arrow-link:hover span { transform: translateX(5px); }
.arrow-link--ink { color: var(--ink); }
.arrow-link--ink:hover { color: var(--crimson); }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding: 14px clamp(12px, 3vw, 28px) 0;
  pointer-events: none;
}
.site-header__inner {
  pointer-events: auto;
  position: relative; max-width: 1500px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: clamp(10px, 1.6vw, 22px);
  padding: 9px 12px 9px 20px;
  background: rgba(18, 15, 11, 0.5);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  color: #fff;
  transition: background .3s ease;
}
.site-header.is-scrolled .site-header__inner { background: rgba(18, 15, 11, 0.74); }
.brand { flex: none; display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.site-nav { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 2px; }
.site-nav a {
  position: relative; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 8px clamp(6px, 0.8vw, 13px);
  font-size: clamp(13px, 1vw, 14.5px); font-weight: 500; color: rgba(255, 255, 255, 0.82); letter-spacing: -0.01em;
}
.site-nav a:hover { color: #fff; }
.site-nav a.is-active { color: var(--crimson); font-weight: 600; }
.nav-home {
  position: relative; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.nav-home svg { width: 15px; height: 15px; display: block; }
.nav-home::after { content: ""; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--crimson); }
.site-header__right { display: flex; align-items: center; gap: 16px; flex: none; }
.header-divider { width: 1px; height: 24px; background: rgba(255, 255, 255, 0.16); flex: none; }
.site-header__right .gtranslate_wrapper { display: flex; align-items: center; }
.mobile-menu__top-right { display: flex; align-items: center; gap: 14px; }
.mobile-menu__top-right .gtranslate_wrapper { display: flex; align-items: center; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; }
.header-phone svg { width: 16px; height: 16px; opacity: 0.75; }
.header-phone:hover { color: var(--crimson); }
.header-cta { flex: none; border-radius: 9px; gap: 9px; padding: 11px 18px; }
.header-cta svg { width: 15px; height: 15px; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 6px; flex: none;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 85; color: var(--cream);
  display: flex; flex-direction: column;
  padding: 16px clamp(22px, 6vw, 34px) clamp(30px, 8vw, 48px);
  overflow-y: auto;
  background: rgba(16, 13, 9, 0.72);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  transform: translateX(100%); visibility: hidden;
  transition: transform .6s cubic-bezier(.76, 0, .24, 1), visibility 0s linear .6s;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .mobile-menu { background: rgba(16, 13, 9, 0.96); } }
.mobile-menu.is-open { transform: translateX(0); visibility: visible; transition: transform .6s cubic-bezier(.76, 0, .24, 1); }
html.ni-menu-open, html.ni-menu-open body { overflow: hidden; overscroll-behavior: none; }
html.ni-menu-open body { touch-action: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 42px; flex: none; }
.mobile-menu__logo { height: 34px; width: auto; }
.mobile-menu__close { position: relative; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; flex: none; padding: 0; }
.mobile-menu__close span { position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; background: var(--cream); transform-origin: center; }
.mobile-menu__close span:nth-child(1) { transform: rotate(45deg) scaleX(0); transition: transform .4s cubic-bezier(.76, 0, .24, 1) .28s; }
.mobile-menu__close span:nth-child(2) { transform: rotate(-45deg) scaleX(0); transition: transform .4s cubic-bezier(.76, 0, .24, 1) .34s; }
.mobile-menu.is-open .mobile-menu__close span:nth-child(1) { transform: rotate(45deg) scaleX(1); }
.mobile-menu.is-open .mobile-menu__close span:nth-child(2) { transform: rotate(-45deg) scaleX(1); }
.mobile-menu__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(28px, 7vw, 52px); padding-top: clamp(20px, 6vw, 40px); }
.mobile-menu__caption { margin: 0 0 clamp(12px, 3vw, 18px); font-size: 14px; font-weight: 500; color: rgba(245, 241, 234, 0.5); }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__nav-link { display: flex; align-items: center; gap: 16px; padding: 4px 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(25px, 8vw, 42px); line-height: 1.1; color: var(--cream); }
.mobile-menu__nav-link .mm-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(245, 241, 234, 0.28); display: flex; align-items: center; justify-content: center; color: var(--cream); opacity: 0; transform: scale(.5); }
.mobile-menu__nav-link .mm-ic svg { width: 22px; height: 22px; }
.mobile-menu__nav-link .mm-txt { display: block; overflow: hidden; }
.mobile-menu__nav-link .mm-txt span { display: block; padding-bottom: 0.06em; transform: translateY(115%); }
.mobile-menu.is-open .mobile-menu__nav-link .mm-ic { opacity: 1; transform: scale(1); transition: opacity .4s ease, transform .5s cubic-bezier(.22, .61, .36, 1); transition-delay: calc(.28s + var(--i) * .05s); }
.mobile-menu.is-open .mobile-menu__nav-link .mm-txt span { transform: translateY(0); transition: transform .6s cubic-bezier(.76, 0, .24, 1); transition-delay: calc(.24s + var(--i) * .05s); }
.mobile-menu__nav-link.is-active { color: var(--crimson); }
.mobile-menu__nav-link.is-active .mm-ic { border-color: var(--crimson); color: var(--crimson); }
.mobile-menu__links { display: flex; flex-wrap: wrap; gap: 8px clamp(24px, 8vw, 46px); }
.mobile-menu__link { font-size: clamp(15px, 4.6vw, 18px); font-weight: 600; color: var(--cream); opacity: 0; transform: translateY(12px); }
.mobile-menu__link.-underline { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: none; transition: opacity .5s ease .55s, transform .5s ease .55s; }
.mobile-menu__link:hover { color: var(--crimson); }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu.is-open { transition: none; }
  .mobile-menu__nav-link .mm-txt span, .mobile-menu.is-open .mobile-menu__nav-link .mm-txt span { transition: none; transform: none; }
  .mobile-menu__nav-link .mm-ic, .mobile-menu.is-open .mobile-menu__nav-link .mm-ic { transition: none; opacity: 1; transform: none; }
  .mobile-menu__link, .mobile-menu.is-open .mobile-menu__link { transition: none; opacity: 1; transform: none; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #C9C3B7; padding: 72px 0 34px; }
.site-footer__grid {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
}
.site-footer__logo { height: 44px; filter: brightness(0) invert(1); }
.site-footer p.about { margin: 20px 0 0; max-width: 340px; font-size: 15px; line-height: 1.6; color: var(--muted-2); }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: #C9C3B7;
}
.socials a:hover { border-color: var(--crimson); color: var(--crimson); }
.footer-col__title { margin: 0 0 6px; color: var(--cream); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-body); }
.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a { color: #C9C3B7; font-size: 15px; }
.footer-nav a:hover { color: var(--crimson); }
.footer-note { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: #6f6a5f; }
.footer-note--dim { margin: 2px 0 0; font-size: 12px; color: #57534a; font-style: italic; }
.site-footer__bar {
  max-width: var(--wrap); margin: 40px auto 0; padding: 22px var(--pad) 0;
  border-top: 1px solid rgba(255,255,255,0.09);
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between;
}
.site-footer__bar p { margin: 0; font-size: 13px; color: #6f6a5f; }
.site-footer__bar .legal { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer__bar .legal a { font-size: 13px; color: var(--muted-2); }
.site-footer__bar .legal a:hover { color: var(--crimson); }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1; background: var(--dark); color: var(--cream); overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  box-shadow: var(--shadow-hero);
}
body:not(.home) #content { padding-top: clamp(88px, 12vw, 104px); }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg video, .hero__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.62;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,19,14,0.55) 0%, rgba(22,19,14,0.25) 38%, rgba(22,19,14,0.82) 100%);
}
.hero__inner {
  position: relative; max-width: var(--wrap); margin: 0 auto; width: 100%;
  padding: 0 var(--pad) clamp(56px, 7vw, 96px);
}
.hero h1 { max-width: 960px; color: var(--cream); }
.hero h1 em { font-style: normal; color: var(--pink); }
.hero__row { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; margin-top: 34px; }
.hero__row p { margin: 0; max-width: 520px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; color: #D8D2C6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- stat / count ---------- */
.stat { border-bottom: 1px solid var(--line); }
.stat__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.stat__num { display: flex; align-items: baseline; gap: 4px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 0.9; }
.stat__num b { font-weight: 600; font-size: clamp(64px, 11vw, 140px); }
.stat__num span { font-size: clamp(40px, 6vw, 80px); color: var(--crimson); }
.stat__text { max-width: 460px; padding-bottom: 14px; }
.stat__text h2 { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.15; }
.stat__text p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.footer-firm { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.footer-firm .footer-note { margin: 0; }

/* ---------- services (editorial splits) ---------- */
.svc-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.svc-row {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 4vw, 64px);
  align-items: center; padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line);
}
.svc-row:first-of-type { padding-top: 0; }
.svc-row:last-of-type { border-bottom: 0; }
.svc-row--rev .svc-media { order: 2; }
.svc-media { position: relative; aspect-ratio: 4/3; background: var(--img); overflow: hidden; }
.svc-media--dark { background: var(--dark); }
.svc-media__num {
  position: absolute; top: 18px; font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px); font-weight: 600; line-height: 1;
  color: rgba(245,241,234,0.9); mix-blend-mode: difference;
}
.svc-media__num--l { left: 18px; }
.svc-media__num--r { right: 18px; }
.svc-body h3 { font-size: clamp(26px, 3vw, 38px); }
.svc-body .lead { margin: 16px 0 0; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55; color: var(--ink-soft); }
.svc-body p.sub { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.svc-body .arrow-link { margin-top: 24px; }

/* placeholder image slot */
.img-slot {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--img); color: var(--muted-2); text-align: center; padding: 20px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.img-slot::before {
  content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(25,23,18,0.18);
}
.media-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- program explorer ---------- */
.program-section { background: var(--panel); }
.program-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.program-head > div { max-width: 640px; }
.program-head p.note { margin: 0; max-width: 320px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-chip {
  border: 1px solid var(--line-strong); background: transparent; color: #3a352d;
  border-radius: var(--radius); padding: 10px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s ease;
}
.filter-chip:hover { border-color: var(--crimson); color: var(--crimson); }
.filter-chip.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prog-card {
  background: var(--bg); border: 1px solid rgba(25,23,18,0.1);
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.prog-card.is-hidden { display: none; }
.prog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.prog-card--white { background: #fff; }
.prog-card__media { position: relative; aspect-ratio: 3/2; background: var(--img); overflow: hidden; }
.prog-card__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; padding: 6px 11px; background: var(--dark); color: var(--cream); border-radius: var(--radius);
}
.prog-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.prog-card__kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--crimson); }
.prog-card__title {
  margin: 9px 0 0; background: none; border: 0; padding: 0; text-align: left; cursor: pointer;
  font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
}
.prog-card__title:hover { color: var(--crimson); }
.prog-card__short { margin: 10px 0 20px; font-size: 14.5px; line-height: 1.55; color: #5c564c; flex: 1; }
.prog-card__cta {
  background: none; border: 0; padding: 0; cursor: pointer; font-size: 14.5px; font-weight: 700;
  color: var(--ink); display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
}
.prog-card__cta span { transition: transform .2s ease; }
.prog-card__cta:hover { color: var(--crimson); }
.prog-card__cta:hover span { transform: translateX(5px); }
.empty-filter { text-align: center; padding: 56px 20px; border: 1px dashed var(--line-strong); display: none; }
.empty-filter.is-shown { display: block; }
.empty-filter h3 { font-size: 22px; margin: 0 0 8px; }
.empty-filter p { margin: 0 0 20px; font-size: 15px; color: var(--muted); }

/* program detail drawer */
.drawer { position: fixed; inset: 0; z-index: 90; display: none; justify-content: flex-end; }
.drawer.is-open { display: flex; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(22,19,14,0.55); backdrop-filter: blur(2px); }
.drawer__panel {
  position: relative; width: min(560px, 100%); height: 100%; background: var(--bg);
  overflow-y: auto; box-shadow: -30px 0 80px rgba(0,0,0,0.25);
}
.drawer.is-open .drawer__panel { animation: niPanelIn .32s cubic-bezier(.22,.61,.36,1); }
.drawer__media { position: relative; height: 270px; background: var(--img); }
.drawer__close {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  background: var(--dark); color: #fff; border: 0; font-size: 22px; line-height: 1; cursor: pointer;
}
.drawer__body { padding: 34px 38px 44px; }
.drawer__body h2 { margin: 10px 0 0; font-size: 38px; line-height: 1.02; }
.drawer__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.chip-solid { font-size: 13px; font-weight: 600; padding: 7px 13px; background: var(--dark); color: var(--cream); border-radius: var(--radius); }
.chip-outline { font-size: 13px; font-weight: 600; padding: 7px 13px; border: 1px solid rgba(25,23,18,0.18); border-radius: var(--radius); color: #3a352d; }
.drawer__long { margin: 0 0 26px; font-size: 16.5px; line-height: 1.65; color: var(--ink-mute); }
.drawer__label { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bullets { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.bullets li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); margin-top: 8px; }

/* ---------- why grid ---------- */
.why { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 72px); }
.why__intro p { margin: 20px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); }
.cell { background: var(--bg); padding: 28px 26px; }
.cell--panel { background: var(--panel); }
.cell__num { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--crimson); }
.cell h3 { margin: 12px 0 8px; font-size: 18px; font-weight: 700; font-family: var(--font-body); }
.cell p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.cell--lg h3 { font-family: var(--font-display); font-size: 20px; }

/* ---------- process (dark band) ---------- */
.band-dark { background: var(--dark); color: var(--cream); }
.process-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(36px, 5vw, 56px); }
.process-head h2 { max-width: 640px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(245,241,234,0.14); }
.process-cell { background: var(--dark); padding: 32px 24px 40px; }
.process-cell__num { font-family: var(--font-display); font-size: clamp(40px, 4vw, 56px); font-weight: 600; color: var(--pink); line-height: 1; }
.process-cell h3 { margin: 20px 0 10px; font-size: 20px; font-weight: 700; font-family: var(--font-body); }
.process-cell p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #A9A396; }

/* ---------- workshops teaser / generic split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.split--rev > *:first-child { order: 2; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; }
.ticks li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); margin-top: 8px; }
.ratio-1 { position: relative; aspect-ratio: 1/1; background: var(--img); overflow: hidden; }
.ratio-45 { position: relative; aspect-ratio: 4/5; background: var(--img); overflow: hidden; }
.ratio-219 { position: relative; aspect-ratio: 21/9; background: var(--img); overflow: hidden; }
.ratio-32 { position: relative; aspect-ratio: 3/2; background: var(--img); overflow: hidden; }

/* ---------- csr band ---------- */
.band-crimson { background: var(--crimson); color: #fff; }
.band-crimson .eyebrow { color: rgba(255,255,255,0.72); }
.band-crimson h2 { color: #fff; }
.band-crimson p { color: rgba(255,255,255,0.9); }
.band-crimson__inner { max-width: 840px; }

/* ---------- testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); margin-top: clamp(36px, 4vw, 52px); }
.testi { margin: 0; background: var(--bg); padding: clamp(28px, 3vw, 40px) clamp(26px, 3vw, 38px); display: flex; flex-direction: column; gap: 22px; }
.testi__quote { position: relative; margin: 0; font-family: var(--font-display); font-size: clamp(18px, 2vw, 23px); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); }
.testi__quote::before { content: "“"; color: var(--crimson); font-size: 1.4em; line-height: 0; vertical-align: -0.35em; margin-right: 2px; }
.testi__meta { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.testi__name { font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--ink); }
.testi__role { font-size: 13px; color: var(--muted); }

/* ---------- clients (auto marquee) ---------- */
.clients { text-align: center; }
.marquee {
  overflow: hidden; margin-top: clamp(36px, 4vw, 52px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: clamp(36px, 5vw, 72px); width: max-content; animation: marquee-ltr 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: clamp(40px, 5vw, 58px); width: auto; opacity: 0.9; flex: none; transition: opacity .2s ease; }
.marquee__track img:hover { opacity: 1; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: 0.02em; color: #9a9488; flex: none; }
@keyframes marquee-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }

/* ---------- faq (details) ---------- */
.faq-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(32px, 4vw, 48px); }
.faq-list { border-top: 1px solid rgba(25,23,18,0.14); }
details.faq { border-bottom: 1px solid rgba(25,23,18,0.14); }
details.faq > summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer;
  padding: 22px 2px; font-family: var(--font-display); font-size: clamp(17px, 2.1vw, 23px);
  font-weight: 600; letter-spacing: -0.01em; list-style: none;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }
.faq-plus { flex: none; font-size: 26px; font-weight: 400; color: var(--crimson); line-height: 1; transition: transform .22s ease; }
details.faq[open] .faq-plus { transform: rotate(45deg); }
details.faq > p { margin: 0 0 24px; font-size: 16px; line-height: 1.65; color: var(--ink-mute); max-width: 720px; }
/* faq teaser 2-col */
.faq-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.faq-teaser .cell h3 { font-family: var(--font-body); font-size: 17.5px; line-height: 1.3; margin: 0 0 10px; }
.faq-teaser .cell p { font-size: 15px; line-height: 1.6; }

/* ---------- final cta ---------- */
.final-cta { text-align: center; }
.final-cta h2 { margin: 0 auto; max-width: 820px; font-size: clamp(32px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.025em; }
.final-cta p { margin: 22px auto 0; max-width: 520px; font-size: 17px; line-height: 1.6; color: #A9A396; }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.cta-split { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-split h2 { margin: 0; font-size: clamp(26px, 3.6vw, 44px); max-width: 560px; line-height: 1.05; }

/* ---------- subpage bits ---------- */
.page-head { max-width: 900px; }
.chip-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip-nav a {
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 16px;
  font-size: 14px; font-weight: 600; color: #3a352d;
}
.chip-nav a:hover { border-color: var(--crimson); color: var(--crimson); }

.rank-list { border-top: 1px solid rgba(25,23,18,0.14); }
.rank-list__row { display: flex; gap: 24px; align-items: baseline; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.rank-list__row:last-child { border-bottom: 0; }
.rank-list__num { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--crimson); flex: none; width: 44px; }
.rank-list__row p { margin: 0; font-size: clamp(18px, 2.2vw, 26px); font-weight: 600; font-family: var(--font-display); letter-spacing: -0.01em; }

.flow-row { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid rgba(25,23,18,0.14); }
.flow-row:last-child { border-bottom: 1px solid rgba(25,23,18,0.14); }
.flow-row__num { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--ink); }
.flow-row h3 { margin: 0 0 4px; font-size: 19px; font-weight: 700; font-family: var(--font-body); }
.flow-row p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* big numbered steps (jak pracujemy) */
.step-row { display: grid; grid-template-columns: 160px 1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 4vw, 52px) 0; border-top: 1px solid rgba(25,23,18,0.14); scroll-margin-top: 90px; }
.step-row:last-of-type { border-bottom: 1px solid rgba(25,23,18,0.14); }
.step-row__num { font-family: var(--font-display); font-size: clamp(56px, 7vw, 104px); font-weight: 600; color: var(--crimson); line-height: 0.85; }
.step-row__body { max-width: 640px; }
.step-row__body h2 { font-size: clamp(24px, 3vw, 36px); }
.step-row__body p { margin: 14px 0 0; font-size: 17px; line-height: 1.65; color: var(--ink-mute); }

/* two-line list (integracje "organizujemy tez") */
.line-list { border-top: 1px solid rgba(25,23,18,0.14); }
.line-list__row { display: flex; justify-content: space-between; padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: clamp(17px, 2vw, 22px); font-weight: 600; font-family: var(--font-display); }
.line-list__row:last-child { border-bottom: 0; }

/* case study (realizacje) */
.cms-badge { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 15px; background: var(--panel); border: 1px solid rgba(25,23,18,0.14); border-radius: var(--radius); }
.cms-badge span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); }
.cms-badge span.txt { font-size: 13px; font-weight: 600; color: #3a352d; }
.case { border: 1px solid rgba(25,23,18,0.14); background: #fff; }
.case__body { padding: clamp(28px, 4vw, 52px); }
.case__top { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 4vw, 56px); }
.case__meta { border-top: 1px solid var(--line); }
.case__meta-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(25,23,18,0.1); }
.case__meta-row:last-child { border-bottom: 0; }
.case__meta-row .k { font-size: 13px; font-weight: 700; color: #3a352d; }
.case__meta-row .v { font-size: 13px; color: var(--muted-3); }
.placeholder-ink { color: var(--muted-3); }

/* ---------- gallery (realizacje) — uniform grid + pagination ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 20vw, 240px), 1fr)); gap: 10px; }
.gallery-grid figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; background: var(--img); }
.gallery-grid figure.is-hidden { display: none; }
.gallery-grid a { display: block; width: 100%; height: 100%; cursor: pointer; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery-grid a:hover img { transform: scale(1.05); }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pager button { min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); border-radius: var(--radius); font-family: var(--font-body); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .18s ease; }
.pager button:hover:not([disabled]):not(.is-active) { border-color: var(--crimson); color: var(--crimson); }
.pager button.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pager button[disabled] { opacity: .35; cursor: default; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 40px; background: rgba(22,19,14,0.93); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; max-width: min(1100px, 92vw); max-height: 84vh; display: flex; }
.lightbox__stage img { max-width: 100%; max-height: 84vh; width: auto; height: auto; object-fit: contain; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(245,241,234,0.12); color: #fff; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .18s ease; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--crimson); }
.lightbox__close { top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%; font-size: 26px; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; font-size: 30px; line-height: 1; }
.lightbox__nav--prev { left: 24px; } .lightbox__nav--next { right: 24px; }
.lightbox__counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--cream); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
@media (max-width: 680px) { .lightbox { padding: 16px; } .lightbox__nav { width: 44px; height: 44px; font-size: 26px; } .lightbox__nav--prev { left: 8px; } .lightbox__nav--next { right: 8px; } }

/* ---------- contact form ---------- */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.contact__info-block { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.contact__label { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact__value { font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; color: var(--ink); }
.contact__value:hover { color: var(--crimson); }
.contact-card { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3vw, 44px); }
.brief-form { display: flex; flex-direction: column; gap: 18px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.brief-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: #3a352d; }
.brief-form input, .brief-form select, .brief-form textarea {
  width: 100%; padding: 14px 15px; border: 1px solid rgba(25,23,18,0.22); border-radius: var(--radius);
  background: #fff; font-size: 15px; color: var(--ink); font-weight: 400;
}
.brief-form textarea { resize: vertical; }
.brief-form input:focus, .brief-form select:focus, .brief-form textarea:focus { border-color: var(--crimson); outline: none; }
.brief-form input[aria-invalid="true"] { border-color: var(--crimson); }
.field-error { color: var(--crimson); font-size: 12.5px; font-weight: 600; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--crimson); cursor: pointer; }
.form-success { text-align: center; padding: clamp(24px, 4vw, 56px) 12px; }
.form-success__check { width: 64px; height: 64px; border-radius: 50%; background: var(--crimson); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; font-size: 32px; }
.form-success p { margin: 14px auto 0; max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.is-hidden { display: none !important; }
.ni-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error-banner { margin: 0 0 18px; padding: 12px 16px; background: rgba(224, 17, 74, 0.08); border: 1px solid rgba(224, 17, 74, 0.3); border-radius: var(--radius); color: var(--crimson-dark); font-size: 14px; font-weight: 600; line-height: 1.4; }

/* ---------- preloader: logo flies into the header (page stays scrollable) ---------- */
.preloader { display: none; }
html.ni-preload .preloader {
  display: flex; position: fixed; inset: 0; z-index: 999;
  align-items: center; justify-content: center;
  pointer-events: none; /* page stays scrollable/clickable during the intro */
  animation: pl-safety 0s linear 5s forwards; /* fail-safe hide if JS never runs */
}
html.ni-preload .brand img { opacity: 0; }
.preloader__bg { position: absolute; inset: 0; background: var(--bg); will-change: opacity; }
.preloader__logo {
  position: relative; height: clamp(96px, 16vw, 180px); width: auto;
  transform-origin: center center; will-change: transform, opacity;
  opacity: 0; transform: scale(.82);
  animation: pl-in .6s cubic-bezier(.22, .61, .36, 1) forwards .1s;
}
.preloader__logo.is-flying { animation: none; opacity: 1; }
@keyframes pl-in { to { opacity: 1; transform: scale(1); } }
@keyframes pl-safety { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { html.ni-preload .preloader { display: none; } }

/* ---------- reveal animation ---------- */
[data-reveal] { will-change: opacity, transform; }
.reveal-init { opacity: 0; transform: translateY(24px); }
.reveal-in { opacity: 1 !important; transform: none !important; transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }

@keyframes niPanelIn { from { transform: translateX(40px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }

/* ---------- basic prose (fallback pages) ---------- */
.prose { max-width: 760px; }
.prose h1, .prose h2, .prose h3 { margin: 1.4em 0 .5em; }
.prose p { margin: 0 0 1em; line-height: 1.7; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .card-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1160px) {
  .site-nav, .header-phone, .header-divider, .header-cta { display: none; }
  .nav-toggle { display: block; margin-right: -4px; }
}
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .split, .svc-row, .why, .contact, .case__top, .step-row { grid-template-columns: 1fr; gap: 32px; }
  .split--rev > *:first-child, .svc-row--rev .svc-media { order: 0; }
  .step-row__num { font-size: clamp(48px, 12vw, 72px); }
}
@media (max-width: 680px) {
  .card-grid, .grid-2, .grid-3, .process-grid, .form-2, .faq-teaser, .testi-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid figure { aspect-ratio: auto; }
  .gallery-grid img { height: auto; }
  .stat__row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .drawer__body { padding: 28px 24px 40px; }
  .hero { align-items: flex-start; }
  .hero__inner { padding-top: clamp(88px, 24vw, 140px); padding-bottom: clamp(40px, 9vw, 60px); }
  .hero h1 { font-size: clamp(45px, 12.5vw, 62px); }
  .hero__row p { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
  .reveal-init { opacity: 1; transform: none; }
  .reveal-in { transition: none; }
  .hero__bg video { display: none; }
}
