/*
  global.css - reset, layout, komponenty. Tokeny (kolory, cienie, layout) są w style.css.
  System komponentów wzorowany na personal website Olgi (hero z blobem, fale między sekcjami,
  siatka programów, naprzemienne teasery, pas kontaktowy) - paleta własna, błękitno-fioletowa.
*/

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink-700);
  background: var(--paper-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--violet-500); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--brand-600); color: #fff;
  padding: 10px 18px; border-radius: 8px;
  transition: top var(--duration) var(--ease);
}
.skip-link:focus { top: 16px; }

.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;
}

/* ── Container ── */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  cursor: pointer; padding: 16px 32px;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease),
              border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.btn--primary { background: var(--brand-600); color: #fff; }
.btn--primary:hover { background: var(--brand-800); }
.btn--outline { background: transparent; color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--paper-300); }
.btn--outline:hover { background: var(--paper-100); }
.btn--sm { padding: 10px 24px; font-size: 0.875rem; }

/* ── Header ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 0;
  transition: background var(--duration) var(--ease), padding var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.header.is-scrolled {
  background: var(--paper-50); padding: 12px 0; box-shadow: 0 1px 0 var(--paper-200);
}
.header__inner { display: flex; align-items: center; gap: 32px; }

.header__logo { flex-shrink: 0; display: inline-flex; align-items: center; gap: 12px; }
.header__logo img { height: 42px; width: 42px; }
.header__logo-name { font-weight: 700; font-size: 1.0625rem; color: var(--ink-900); line-height: 1.1; }

.header__nav { flex: 1; display: flex; justify-content: flex-end; }
.header__nav-list { display: flex; align-items: center; gap: 22px; }
.header__nav-list li a {
  font-size: 0.9rem; font-weight: 500; color: var(--ink-700); position: relative;
  transition: color var(--duration) var(--ease);
}
.header__nav-list li a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px;
  background: var(--brand-600); border-radius: 1px; transition: width 0.28s var(--ease);
}
.header__nav-list li a:hover { color: var(--ink-900); }
.header__nav-list li a:hover::after { width: 100%; }

/* Desktop dropdown */
.header__nav-list .menu-item-has-children { position: relative; }
.header__nav-list .menu-item-has-children::after {
  content: ''; position: absolute; left: -12px; right: -12px; top: 100%; height: 16px; pointer-events: none;
}
.header__nav-list .menu-item-has-children:hover::after,
.header__nav-list .menu-item-has-children:focus-within::after { pointer-events: auto; }
.header__nav-list .menu-item-has-children > a { display: inline-flex; align-items: center; gap: 8px; }
.header__nav-list .menu-item-has-children > a::before {
  content: ''; display: inline-block; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--duration) var(--ease);
  opacity: 0.7; order: 2;
}
.header__nav-list .menu-item-has-children:hover > a::before,
.header__nav-list .menu-item-has-children:focus-within > a::before { transform: translateY(0) rotate(225deg); }
.header__nav-list .sub-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-4px); min-width: 240px;
  background: var(--paper-50); border: 1px solid var(--paper-200); border-radius: 14px;
  padding: 10px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 18px 40px -18px rgba(22, 32, 58, 0.28);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease), visibility var(--duration) var(--ease);
  z-index: 50; margin: 0;
}
.header__nav-list .menu-item-has-children:hover > .sub-menu,
.header__nav-list .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.header__nav-list .sub-menu li a { display: block; padding: 10px 14px; border-radius: 10px; white-space: nowrap; font-weight: 500; color: var(--ink-700); }
.header__nav-list .sub-menu li a::after { display: none; }
.header__nav-list .sub-menu li a:hover,
.header__nav-list .sub-menu li.current-menu-item a { background: var(--brand-200); color: var(--ink-900); }

.header__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header__nav-list .current-menu-item > a,
.header__nav-list .current-page-ancestor > a { color: var(--ink-900); }
.header__nav-list .current-menu-item > a::after,
.header__nav-list .current-page-ancestor > a::after { width: 100%; }

/* Hamburger + mobile menu */
.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--ink-900); padding: 4px; }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99; background: var(--paper-50);
  padding: 96px var(--gutter) 48px; flex-direction: column; justify-content: center; align-items: center;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__list { display: flex; flex-direction: column; gap: 24px; text-align: center; margin-bottom: 40px; }
.mobile-menu__list li a { font-size: 1.5rem; font-weight: 600; color: var(--ink-900); transition: color var(--duration) var(--ease); }
.mobile-menu__list li a:hover { color: var(--brand-600); }
.mobile-menu__list .sub-menu { margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mobile-menu__list .sub-menu li a { font-size: 1.125rem; font-weight: 500; color: var(--ink-700); }
.mobile-menu__cta { width: 100%; max-width: 320px; }

@media (max-width: 1160px) {
  .header__nav, .header__actions .btn { display: none; }
  .hamburger { display: block; }
  .header__inner { justify-content: space-between; }
}

/* ── Eyebrow ── */
.eyebrow {
  display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  line-height: 1.4; text-transform: uppercase; color: var(--ink-600); margin-bottom: 16px;
}

/* ── Hero ── */
.hero { position: relative; background: var(--paper-50); padding-top: 128px; padding-bottom: 96px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 768px) { .hero__inner { grid-template-columns: 1.5fr 1fr; gap: 64px; } }

.hero__text { max-width: 620px; }
.hero__h1 {
  font-size: clamp(2.5rem, 4vw + 1.5rem, 4.75rem); font-weight: 800; line-height: 1.02;
  letter-spacing: -0.03em; color: var(--ink-900); margin-bottom: 20px;
}
.hero__accent { color: var(--violet-500); font-weight: 800; }
.hero__sub { font-size: 1.1875rem; line-height: 1.6; color: var(--ink-700); max-width: 48ch; margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }

/* Social proof - nakładające się awatary osób, które się angażują */
.hero__social { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars li { margin-left: -14px; }
.avatars li:first-child { margin-left: 0; }
.avatars img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--paper-50); box-shadow: var(--shadow-card); background: var(--paper-100);
}
.hero__social-text { font-size: 0.9375rem; line-height: 1.4; color: var(--ink-700); max-width: 26ch; }
.hero__social-text strong { color: var(--ink-900); font-weight: 700; }

/* Figura hero - redakcyjny panel ze zdjęciem + pływająca plakietka (bez bloba) */
.hero__figure { position: relative; }
.hero__figure .ph {
  width: 100%; aspect-ratio: 4 / 5; border-radius: 28px;
  box-shadow: var(--shadow-portrait);
}
.hero__badge {
  position: absolute; left: -20px; bottom: 28px; z-index: 3;
  display: flex; align-items: center; gap: 12px; max-width: 230px;
  background: var(--paper-50); border: 1px solid var(--paper-200); border-radius: 16px;
  padding: 14px 18px; box-shadow: var(--shadow-hover);
}
.hero__badge-text { font-size: 0.8125rem; line-height: 1.3; color: var(--ink-500); }
.hero__badge-text strong { display: block; font-size: 0.9375rem; color: var(--ink-900); font-weight: 700; }

@media (max-width: 767px) {
  .hero { padding-top: 104px; padding-bottom: 64px; }
  .hero__inner { display: flex; flex-direction: column; }
  .hero__figure { max-width: 380px; align-self: center; width: 100%; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1; }
  .hero__badge { left: 12px; }
}

/* ── Stat band ── */
.stat-band { background: var(--brand-600); padding: 56px 0; text-align: center; position: relative; overflow: hidden; }
.stat-band__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stat-band__number { font-size: clamp(2.4rem, 1.5rem + 4vw, 4rem); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.stat-band__label { color: var(--brand-200); font-size: 1.0625rem; max-width: 46ch; }

/* ── Quick-nav: kotwice po sekcjach (kompaktowy pasek pigułek) ── */
.quicknav { background: var(--paper-100); padding: 40px 0; border-block: 1px solid var(--paper-200); }
.quicknav__heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 24px; }
.quicknav__heading .eyebrow { margin-bottom: 0; }
.quicknav__title { font-size: 1.375rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink-900); }

.quicknav__list { display: flex; flex-wrap: wrap; gap: 10px; }
.quicknav__link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  background: var(--paper-50); border: 1px solid var(--paper-200); border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600; line-height: 1; color: var(--ink-700);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease),
              border-color var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.quicknav__link svg { width: 17px; height: 17px; flex-shrink: 0; stroke: var(--brand-600); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--duration) var(--ease); }
/* .quicknav przed :hover - bije .reveal.is-visible (równa specyficzność, ale reveal jest niżej w pliku), żeby lift na hover działał mimo reveal */
.quicknav .quicknav__link:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-card); }
.quicknav__link:hover svg { stroke: #fff; }
.quicknav__link:focus-visible { transform: translateY(-2px); }

/* Kotwice: odsłona nagłówka spod przyklejonego, fixed headera */
section[id] { scroll-margin-top: 96px; }

/* ── Misja i wizja ── */
.mission { background: var(--violet-50); padding: 96px 0; }
.mission__intro { max-width: 760px; margin-bottom: 40px; }
.mission__intro h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink-900); margin-bottom: 16px; }
.mission__intro p { font-size: 1.0625rem; color: var(--ink-700); max-width: 64ch; }
.mission__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .mission__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.mission__card { position: relative; overflow: hidden; background: var(--paper-50); border: 1px solid var(--paper-200); border-radius: 20px; box-shadow: var(--shadow-card); }
.mission__card .ph { border-radius: 0; border: 0; border-bottom: 1px solid var(--paper-200); }
.mission__card-body { position: relative; padding: 28px 28px 28px 34px; }
.mission__card-body::before { content: ''; position: absolute; left: 0; top: 26px; bottom: 26px; width: 4px; border-radius: 2px; background: var(--violet-500); }
.mission__card:nth-child(2) .mission__card-body::before { background: var(--brand-600); }
.mission__card-body h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink-900); margin-bottom: 10px; }
.mission__card-body p { color: var(--ink-700); }

/* ── Teaser sections ── */
.teaser { padding: 96px 0; position: relative; overflow: hidden; }
.teaser--white  { background: var(--paper-50); }
.teaser--blue   { background: var(--brand-200); }
.teaser--violet { background: var(--violet-50); }

.teaser__inner { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 768px) {
  .teaser__inner { grid-template-columns: 1fr 1fr; gap: 64px; }
  .teaser__inner--reverse { direction: rtl; }
  .teaser__inner--reverse > * { direction: ltr; }
}
.teaser__index { display: block; font-size: 0.9375rem; font-weight: 800; letter-spacing: 0.08em; color: var(--brand-600); margin-bottom: 12px; }
.teaser__index::after { content: ''; display: inline-block; width: 40px; height: 2px; background: var(--brand-400); vertical-align: middle; margin-left: 12px; }
.teaser__text h2 { font-size: clamp(1.875rem, 3vw + 1rem, 2.75rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink-900); margin-bottom: 16px; }
.teaser__text p { margin-bottom: 24px; max-width: 52ch; }
.teaser__media { position: relative; }
.teaser__media .ph { aspect-ratio: 5 / 4; border-radius: 24px; box-shadow: var(--shadow-card); }

/* Stats inline (in teaser) */
.stats { display: flex; flex-wrap: wrap; gap: 32px; margin-bottom: 28px; }
.stat { text-align: center; }
.stat__number { display: block; font-size: 2rem; font-weight: 800; color: var(--brand-600); line-height: 1.1; }
.stat__label { font-size: 0.8125rem; font-weight: 500; color: var(--ink-500); }

@media (max-width: 767px) { .teaser { padding: 64px 0; } }

/* ── Zdjęcia (.ph - ramka na obraz, na teraz losowe z Picsum) ── */
.ph {
  position: relative; overflow: hidden; border-radius: 24px;
  background: var(--paper-100); border: 1px solid var(--paper-200);
}
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph--media, .ph--wide { aspect-ratio: 4 / 3; }
.ph--portrait { aspect-ratio: 3 / 4; }
.ph--fill { aspect-ratio: 4 / 5; }

/* ── Awards (Wyróżnienia) ── */
.awards { background: var(--violet-50); padding: 96px 0; position: relative; overflow: hidden; }
.awards__heading { text-align: center; margin-bottom: 48px; }
.awards__heading h2 { font-size: clamp(2rem, 3vw + 1rem, 3rem); font-weight: 700; color: var(--ink-900); letter-spacing: -0.015em; }
.awards__strip {
  list-style: none; margin: 0; padding: 40px 32px;
  background: var(--paper-50); border: 1px solid var(--paper-200);
  border-radius: 24px; box-shadow: var(--shadow-card);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  column-gap: 56px; row-gap: 32px;
}
.award {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; flex: 0 1 auto;
}
.award__logo { display: block; height: 36px; width: auto; object-fit: contain; }
.award__name { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-900); line-height: 1.1; }
.award__title { font-size: 0.8125rem; font-weight: 500; color: var(--ink-500); line-height: 1.2; }
@media (max-width: 560px) {
  .awards__strip { padding: 28px 20px; column-gap: 28px; row-gap: 24px; }
  .award { flex-basis: calc(50% - 14px); }
  .award__name { font-size: 1.0625rem; }
}
.awards__cta { text-align: center; margin-top: 40px; }

/* ── Contact / CTA band ── */
.contact { background: var(--brand-600); padding: 96px 0; text-align: center; position: relative; overflow: hidden; }
.contact h2 { font-size: clamp(2rem, 3vw + 1rem, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; color: #fff; margin-bottom: 12px; }
.contact__sub { color: var(--brand-200); margin-bottom: 20px; max-width: 52ch; margin-inline: auto; }
.contact__account { display: inline-block; margin-bottom: 40px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); border-radius: 16px; padding: 16px 24px; }
.contact__account-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-200); margin-bottom: 4px; }
.contact__account-number { font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.contact__grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 760px; margin-inline: auto; }
@media (min-width: 640px) { .contact__grid { grid-template-columns: repeat(3, 1fr); } }
.contact__tile {
  background: var(--paper-50); border: 1px solid var(--paper-200); border-radius: 24px;
  padding: 32px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.contact__tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--paper-300); }
.contact__tile svg { width: 36px; height: 36px; stroke: var(--brand-600); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact__tile-label { font-size: 1rem; font-weight: 700; color: var(--ink-900); }
.contact__tile-value { font-size: 0.875rem; color: var(--ink-500); }

/* ── Founder badge (O nas / Zespół) ── */
.founder-badge {
  position: absolute; left: -20px; bottom: 24px; z-index: 3;
  display: flex; align-items: center; gap: 12px; max-width: 270px;
  background: var(--paper-50); border: 1px solid var(--paper-200); border-radius: 16px;
  padding: 14px 18px; box-shadow: var(--shadow-hover);
}
.founder-badge__text { font-size: 0.8125rem; line-height: 1.35; color: var(--ink-500); }
.founder-badge__text strong { display: block; font-size: 0.9375rem; color: var(--ink-900); font-weight: 700; }
@media (max-width: 767px) { .founder-badge { left: 12px; right: 12px; max-width: none; } }

/* ── Współpraca (collab) ── */
.collab { background: var(--brand-200); padding: 96px 0; }
.collab__heading { max-width: 720px; margin-bottom: 48px; }
.collab__heading h2 { font-size: clamp(2rem, 3vw + 1rem, 3rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink-900); margin-bottom: 16px; }
.collab__heading p { font-size: 1.0625rem; color: var(--ink-700); max-width: 64ch; }
.collab__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .collab__grid { grid-template-columns: repeat(3, 1fr); } }
.collab-card { display: flex; flex-direction: column; gap: 14px; background: var(--paper-50); border: 1px solid var(--paper-200); border-radius: 20px; padding: 30px 28px; box-shadow: var(--shadow-card); }
.collab-card__thumb { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-200); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.collab-card__thumb svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.collab-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink-900); line-height: 1.3; }
.collab-card p { font-size: 0.9375rem; color: var(--ink-700); line-height: 1.55; }
.collab-card p:not(.collab-card__contact) { flex: 1; }
.collab-card__link { font-size: 0.9375rem; font-weight: 600; color: var(--brand-600); display: inline-flex; align-items: center; gap: 6px; }
.collab-card__link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform var(--duration) var(--ease); }
.collab-card__link:hover svg { transform: translateX(3px); }
.collab-card__contact { font-size: 0.875rem; color: var(--ink-500); line-height: 1.7; }
.collab-card__contact a { color: var(--brand-600); }
.collab-card__contact a:hover { text-decoration: underline; }
/* Stat-strip w nagłówku Współpracy: lewo, jak reszta tekstu; odstęp od akapitu, nie od gridu (ten daje heading). */
.collab__heading .stats { margin-top: 28px; margin-bottom: 0; gap: 40px; }
.collab__heading .stat { text-align: left; }
/* Akcje w kartach jako buttony w rzędzie; description ma flex:1, więc rząd ląduje na dole i wyrównuje się między kartami. */
.collab-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* ── Blog teaser ── */
.blog-teaser { background: var(--paper-50); padding: 96px 0; }
.blog-teaser__heading { max-width: 720px; margin-bottom: 44px; }
.blog-teaser__heading h2 { font-size: clamp(2rem, 3vw + 1rem, 3rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink-900); margin-bottom: 16px; }
.blog-teaser__heading p { font-size: 1.0625rem; color: var(--ink-700); max-width: 64ch; }
.blog-teaser__cta { margin-top: 40px; }

/* ── Footer ── */
/* Układ ze stopki produkcji: trzy kolumny (kontakt, menu użytkownika, sociale),
   pod nimi pasek dokumentów z ikonami, na dole copyright. Skóra zostaje theme'owa
   (ciemna), bo stopka domyka stronę - na produkcji jest jasna. */
.footer { background: var(--ink-900); color: #fff; padding: 64px 0 28px; }
.footer__top { display: grid; gap: 40px; }
.footer__title { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 20px; }

.footer-contact { display: grid; gap: 14px; font-size: 0.9375rem; line-height: 1.6; color: rgba(255,255,255,0.82); }
.footer-contact span { font-weight: 700; color: #fff; }
.footer-contact a { transition: color var(--duration) var(--ease); }
.footer-contact a:hover { color: #fff; }

.footer-nav__list { display: grid; gap: 12px; }
.footer-nav__list a { color: rgba(255,255,255,0.82); font-weight: 500; transition: color var(--duration) var(--ease); }
.footer-nav__list a:hover { color: #fff; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.footer-social a:hover { background: var(--brand-600); border-color: var(--brand-600); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; stroke: none; }

/* Pasek dokumentów - te same linki co w kolumnie, tylko z ikonami. */
.footer-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px;
  border-top: 1px solid rgba(255,255,255,0.14); margin-top: 48px; padding-top: 32px;
}
.footer-strip__item { display: inline-flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.72); transition: color var(--duration) var(--ease); }
.footer-strip__item:hover { color: #fff; }
.footer-strip__icon {
  display: flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.footer-strip__item:hover .footer-strip__icon { background: var(--brand-600); border-color: var(--brand-600); }
.footer-strip__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.14); margin-top: 32px; padding-top: 24px;
  text-align: center; color: rgba(255,255,255,0.6); font-size: 0.8125rem;
}
.footer__bottom a { color: rgba(255,255,255,0.82); transition: color var(--duration) var(--ease); }
.footer__bottom a:hover { color: #fff; }

@media (min-width: 768px) {
  .footer__top { grid-template-columns: 1.25fr 1fr 1fr; gap: 48px; }
}

/* ── Back to top ── */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 90; width: 44px; height: 44px; border-radius: 999px;
  background: var(--paper-50); border: 1px solid var(--paper-200); box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-2px); border-color: var(--paper-300); }
.back-to-top svg { width: 20px; height: 20px; stroke: var(--brand-600); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Generic pages (blog, page.php) ── */
.page-hero { background: var(--paper-50); padding: 140px 0 64px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; top: -140px; right: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: var(--brand-200); opacity: 0.6; pointer-events: none;
}
.page-hero__inner { position: relative; }
.page-hero h1 { font-size: clamp(2.25rem, 5vw + 0.5rem, 3.75rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink-900); }

/* Hero podstrony - eyebrow + tytuł + lead + CTA (korki_subhero) */
.page-hero--sub { padding-bottom: 56px; }
.page-hero--sub .eyebrow { margin-bottom: 14px; }
.page-hero__lead { margin-top: 20px; max-width: 60ch; font-size: 1.1875rem; line-height: 1.6; color: var(--ink-700); }
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.page-content { padding: 56px 0 96px; }
.page-content__body { max-width: 760px; }
.page-content__body > * + * { margin-top: 22px; }
.page-content__body h2 { font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem); color: var(--ink-900); margin-top: 48px; }
.page-content__body h3 { font-size: 1.25rem; color: var(--ink-900); margin-top: 32px; }
.page-content__body ul, .page-content__body ol { padding-left: 22px; }
.page-content__body li { margin-top: 8px; }
.page-content__body a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 0.15em; }

/* Blog listing */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: var(--paper-50); border: 1px solid var(--paper-200); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.post-card__body h2 { font-size: 1.25rem; color: var(--ink-900); line-height: 1.3; }
.post-card__body h2 a:hover { color: var(--brand-600); }
/* Pojedynczy wpis (single.php) */
.page-hero--sub .eyebrow a { color: inherit; }
.page-hero--sub .eyebrow a:hover { color: var(--brand-600); }
.post-meta { margin-top: 18px; font-size: 0.9375rem; color: var(--ink-700); display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.post-meta a { color: var(--brand-600); }
.post-meta a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.post-single__media { max-width: 860px; margin-bottom: 40px; }
.post-single__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-card); }
.post-single__media figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--ink-700); }
.post-single .page-content__body img { max-width: 100%; height: auto; border-radius: 16px; }
.post-single .page-content__body blockquote { border-left: 3px solid var(--brand-600); padding-left: 20px; color: var(--ink-700); font-size: 1.125rem; }

.post-nav { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--paper-200); display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .post-nav { grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; } }
.post-nav__side--right { text-align: right; }
.post-nav__link { display: flex; flex-direction: column; gap: 6px; }
.post-nav__label { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-700); }
.post-nav__title { font-weight: 700; color: var(--ink-900); line-height: 1.3; }
.post-nav__link:hover .post-nav__title { color: var(--brand-600); }
.post-nav__back { justify-self: center; white-space: nowrap; }

.pagination { margin-top: 48px; display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--paper-200); color: var(--ink-700); }
.pagination .page-numbers.current { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }

/* ══ System podstron (page-*.php) ══
   Wspólny słownik sekcji dla wszystkich podstron. Reużywa tokenów i stylu landingu
   (eyebrow, karty, cienie, teasery), żeby podstrona i główna czytały się jak jedno. */

.sp-section { padding: 80px 0; }
.sp-section--paper  { background: var(--paper-100); }
.sp-section--blue   { background: var(--brand-200); }
.sp-section--violet { background: var(--violet-50); }
@media (max-width: 767px) { .sp-section { padding: 56px 0; } }

/* Nagłówek sekcji */
.sp-head { max-width: 760px; margin-bottom: 40px; }
.sp-head h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink-900); margin-bottom: 16px; }
.sp-head p { font-size: 1.0625rem; color: var(--ink-700); max-width: 64ch; }

/* Split: nagłówek (lepki) + treść */
.sp-split { display: grid; gap: 32px; }
@media (min-width: 900px) { .sp-split { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.sp-split__aside { align-self: start; }
@media (min-width: 900px) { .sp-split__aside { position: sticky; top: 108px; } }
.sp-split__aside h2 { font-size: clamp(1.625rem, 2vw + 1rem, 2.25rem); font-weight: 800; line-height: 1.14; letter-spacing: -0.02em; color: var(--ink-900); margin-bottom: 14px; }
.sp-split__aside p { color: var(--ink-700); }

/* Proza - bloki narracyjne */
.sp-prose { max-width: 720px; }
.sp-prose > * + * { margin-top: 20px; }
.sp-prose p { color: var(--ink-700); }
.sp-prose h3 { font-size: 1.375rem; font-weight: 700; color: var(--ink-900); margin-top: 12px; }
.sp-prose strong { color: var(--ink-900); font-weight: 700; }

/* Lista z ptaszkami */
.sp-checklist { display: grid; gap: 14px; max-width: 720px; }
.sp-checklist li { position: relative; padding-left: 38px; color: var(--ink-700); }
.sp-checklist li::before { content: ''; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-200); }
.sp-checklist li::after { content: ''; position: absolute; left: 8.5px; top: 6px; width: 6px; height: 11px; border-right: 2px solid var(--brand-600); border-bottom: 2px solid var(--brand-600); transform: rotate(45deg); }

/* Siatka kart (feature / oferta) */
.sp-cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .sp-cards--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .sp-cards--3 { grid-template-columns: repeat(3, 1fr); } .sp-cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .sp-cards--4 { grid-template-columns: repeat(4, 1fr); } }
.sp-card { background: var(--paper-50); border: 1px solid var(--paper-200); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 12px; }
.sp-card__icon { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-200); color: var(--brand-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sp-card__icon svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp-card h3 { font-size: 1.1875rem; font-weight: 700; color: var(--ink-900); line-height: 1.3; }
.sp-card p { font-size: 0.9375rem; color: var(--ink-700); line-height: 1.6; }

/* Kroki (proces, numerowane) */
/* Numer kroku rysujemy sami w ::before, więc numerowanie przeglądarki wyłączamy -
   inaczej przy każdym kroku stoi liczba dwa razy: w kółku i tekstem obok. */
.sp-steps { display: grid; gap: 20px; max-width: 760px; counter-reset: sp-step; list-style: none; padding-left: 0; }
.sp-step { position: relative; padding-left: 68px; }
.sp-step::before { counter-increment: sp-step; content: counter(sp-step); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--brand-600); color: #fff; font-weight: 800; font-size: 1.125rem; display: flex; align-items: center; justify-content: center; }
.sp-step h3 { font-size: 1.125rem; font-weight: 700; color: var(--ink-900); margin-bottom: 6px; padding-top: 9px; }
.sp-step p { color: var(--ink-700); }

/* Founder / profil (O nas → założycielka) */
.sp-founder { display: grid; gap: 32px; align-items: start; }
@media (min-width: 860px) { .sp-founder { grid-template-columns: 340px 1fr; gap: 56px; } }
.sp-founder__media .ph { aspect-ratio: 3 / 4; border-radius: 24px; box-shadow: var(--shadow-portrait); }
.sp-founder__role { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--brand-600); margin-bottom: 20px; }
.sp-founder__body { max-width: 640px; }
.sp-founder__body > * + * { margin-top: 18px; }
.sp-founder__body p { color: var(--ink-700); }
.sp-founder__body strong { color: var(--ink-900); font-weight: 700; }

/* Zespół - placeholder na materiały z Drive'a */
/* Galeria zdjęć - masonry na kolumnach, żeby pion i poziom układały się bez dziur.
   Grid z auto-fit tego nie robił: wiersz brał wysokość najwyższego kafla, więc pod
   poziomym zdjęciem obok pionowego zostawało ~200 px pustki. */
.sp-gallery { columns: 3; column-gap: 20px; }
.sp-gallery > * { -webkit-column-break-inside: avoid; break-inside: avoid; margin-bottom: 20px; }
@media (max-width: 959px) { .sp-gallery { columns: 2; } }
@media (max-width: 599px) { .sp-gallery { columns: 1; } }
.sp-gallery .video--portrait { max-width: none; }

/* Zespół rozbity na podzespoły */
.sp-teamgroup + .sp-teamgroup { margin-top: 40px; }
/* Osoby poza zespołami (Piotr Bienias, Jakub Dudicz). Nie są zespołem, więc nie mają tytułu
   w kolorze marki - a bez niczego czytali się jak ogon zespołu marketingu. Odcina ich gruba
   kreska na pełną szerokość, duży oddech i wyciszony podpis nad kaflami. */
.sp-teamgroup + .sp-teamgroup--standalone { margin-top: 72px; padding-top: 56px; border-top: 2px solid var(--paper-300); }
.sp-teamgroup__label { color: var(--ink-500); margin-bottom: 24px; }
.sp-teamgroup__title { font-size: 1.0625rem; font-weight: 700; color: var(--brand-600); margin-bottom: 18px; }
.sp-team { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .sp-team { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .sp-team { grid-template-columns: repeat(4, 1fr); } }
.sp-team__card { text-align: center; }
.sp-team__card .ph { aspect-ratio: 1 / 1; border-radius: 50%; margin-bottom: 14px; }
.sp-team__name { font-weight: 700; color: var(--ink-900); }
.sp-team__role { font-size: 0.875rem; color: var(--ink-500); }

/* Ściana logotypów. Wariant --img to realne logo, bez --img zostaje ramka-placeholder. */
.sp-logowall { display: flex; flex-wrap: wrap; gap: 16px; }
.sp-logowall__item { flex: 1 1 150px; min-height: 88px; border-radius: 14px; background: var(--paper-50); border: 1px dashed var(--paper-300); display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; color: var(--ink-300); font-size: 0.8125rem; font-weight: 600; }
.sp-logowall__item--img { border-style: solid; border-color: var(--paper-200); background: #fff; padding: 16px 20px; }
/* Wspierający bez logotypu - samo nazwisko. Ta sama ramka co przy logach, żeby nie
   czytało się jak puste miejsce po brakującym pliku. */
.sp-logowall__item--name { border-style: solid; border-color: var(--paper-200); background: #fff; color: var(--ink-700); font-size: 0.9375rem; }
.sp-logowall__item--img img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }

/* ── Film z YouTube'a jako facade ──
   Do kliknięcia leży tylko miniaturka. Iframe (i całe ciasteczkowe zaplecze YouTube'a)
   wstawia dopiero main.js po kliknięciu w przycisk. */
.video { position: relative; overflow: hidden; border-radius: 24px; background: var(--ink-900); box-shadow: var(--shadow-card); }
.video--wide { aspect-ratio: 16 / 9; }
.video--portrait { aspect-ratio: 9 / 16; max-width: 420px; margin-inline: auto; }
.video--media { aspect-ratio: 5 / 4; }
.video__thumb, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video__thumb { object-fit: cover; }
.video__play {
  position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 40%, rgba(11, 18, 32, 0.45) 100%);
  border: 0; padding: 0; transition: background 0.3s var(--ease);
}
.video__play:hover, .video__play:focus-visible { background: rgba(11, 18, 32, 0.35); }
.video__play svg { width: 84px; height: 60px; transition: transform 0.3s var(--ease); }
.video__play:hover svg { transform: scale(1.08); }
.video__play-bg { fill: rgba(11, 18, 32, 0.7); }
.video__play:hover .video__play-bg { fill: var(--brand-600); }
.video__play-arrow { fill: #fff; }
.video__caption { margin-top: 12px; font-size: 0.875rem; color: var(--ink-500); }

/* Notka „materiał wejdzie z Drive'a" pod placeholderem */
.sp-note { margin-top: 16px; font-size: 0.875rem; color: var(--ink-500); display: inline-flex; align-items: center; gap: 8px; }
.sp-note svg { width: 16px; height: 16px; stroke: var(--ink-300); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Karta kontaktowa (współpraca, kontakt) */
.sp-contact-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .sp-contact-grid { grid-template-columns: repeat(2, 1fr); } }
.sp-contact-card { background: var(--paper-50); border: 1px solid var(--paper-200); border-radius: 20px; padding: 30px 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 12px; }
.sp-contact-card__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-200); color: var(--brand-600); display: flex; align-items: center; justify-content: center; }
.sp-contact-card__icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp-contact-card h3 { font-size: 1.1875rem; font-weight: 700; color: var(--ink-900); }
.sp-contact-card p { font-size: 0.9375rem; color: var(--ink-700); line-height: 1.6; }
.sp-contact-card p:not(.sp-contact-card__meta) { flex: 1; }
.sp-contact-card__meta { font-size: 0.9375rem; color: var(--ink-500); line-height: 1.8; }
.sp-contact-card__meta a { color: var(--brand-600); font-weight: 600; }
.sp-contact-card__meta a:hover { text-decoration: underline; }

/* Wyróżnienia - pełne opisy (podstrona) */
.sp-awards { display: grid; gap: 20px; }
.sp-award { display: grid; gap: 8px 32px; background: var(--paper-50); border: 1px solid var(--paper-200); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-card); border-left: 4px solid var(--brand-600); }
@media (min-width: 760px) { .sp-award { grid-template-columns: 260px 1fr; align-items: start; } }
.sp-award:nth-child(even) { border-left-color: var(--violet-500); }
.sp-award__org { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-900); line-height: 1.1; }
.sp-award__title { display: block; margin-top: 6px; font-size: 0.9375rem; font-weight: 600; color: var(--brand-600); }
.sp-award__body { color: var(--ink-700); }

/* Wesprzyj - callout z numerem konta */
.sp-support { max-width: 720px; margin-inline: auto; text-align: center; background: var(--paper-50); border: 1px solid var(--paper-200); border-radius: 24px; padding: 48px 32px; box-shadow: var(--shadow-card); }
.sp-support__title-note { display: block; font-size: 0.9375rem; color: var(--ink-500); margin-bottom: 8px; }
.sp-support__title { display: inline-block; font-size: 1.375rem; font-weight: 800; color: var(--ink-900); background: var(--brand-200); border-radius: 12px; padding: 12px 24px; margin-bottom: 32px; }
.sp-support__account-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 8px; }
.sp-support__account { font-size: clamp(1.25rem, 1rem + 2vw, 1.875rem); font-weight: 800; color: var(--brand-600); letter-spacing: 0.02em; }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-12px) scale(1.02); } }

.hero__text .eyebrow { animation: fadeUp 0.65s var(--ease) 0.05s both; }
.hero__h1 { animation: fadeUp 0.7s var(--ease) 0.2s both; }
.hero__sub { animation: fadeUp 0.7s var(--ease) 0.35s both; }
.hero__ctas { animation: fadeUp 0.7s var(--ease) 0.5s both; }
.hero__social { animation: fadeUp 0.7s var(--ease) 0.6s both; }
.hero__figure { animation: fadeInRight 0.8s var(--ease) 0.3s both; }
.hero__badge { animation: fadeUp 0.6s var(--ease) 0.9s both; }
.service-card__thumb { will-change: transform; }
.service-card:hover .service-card__thumb { transform: scale(1.08) rotate(4deg); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
