/* White Cat Media – whitecatmedia.pl */

:root {
  --ink: #000000;
  --ink-2: #2B2B2B;
  --muted: #5C5C5C;
  --line: #DCDCDA;
  --paper: #FFFFFF;
  --mist: #F1F2F0;
  --cobalt: #2340E6;
  --cobalt-dark: #1A30B0;
  --cobalt-soft: #E6EAFE;
  --cobalt-on-dark: #9AAAFF;

  --f-display: "Schibsted Grotesk", "Helvetica Neue", sans-serif;
  --f-text: "Geist", "Helvetica Neue", sans-serif;

  /* skala typograficzna (1.25, baza 17px) */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-lg: 1.3125rem;
  --t-xl: 1.75rem;
  --t-2xl: 2.5rem;
  --t-3xl: clamp(2.6rem, 5.6vw, 5rem);

  /* odstępy (siatka 8px) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-6: 3rem;
  --s-8: 4rem;
  --s-12: 6rem;
  --s-16: 8rem;

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shadow-lift: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px -6px rgba(0,0,0,.12), 0 32px 64px -24px rgba(0,0,0,.18);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.05), 0 12px 32px -16px rgba(0,0,0,.14);

  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--cobalt-on-dark); }

.skip {
  position: absolute; left: var(--s-2); top: -100px;
  background: var(--ink); color: var(--paper);
  padding: var(--s-1) var(--s-2); border-radius: var(--r-sm); z-index: 100;
}
.skip:focus { top: var(--s-2); }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--s-16); }
.section-head { max-width: 46rem; margin-bottom: var(--s-8); }
.section-head h2 { font-size: var(--t-2xl); }
.section-head p { margin-top: var(--s-2); color: var(--muted); font-size: var(--t-lg); line-height: 1.5; }
.on-dark .section-head p { color: #B8B8B8; }

.placeholder {
  display: inline-block;
  background: var(--cobalt-soft);
  color: var(--cobalt-dark);
  font-size: 0.85em;
  font-weight: 500;
  padding: 0 .35em;
  border-radius: 4px;
  white-space: nowrap;
}
.on-dark .placeholder { background: rgba(154,170,255,.16); color: var(--cobalt-on-dark); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 500 var(--t-sm)/1 var(--f-text);
  text-decoration: none;
  padding: 0.95rem 1.4rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.on-dark .btn-ghost { border-color: #4A4A4A; color: #fff; }
.on-dark .btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: .7rem 1.1rem; }

.link {
  color: var(--cobalt);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.link:hover { text-decoration-thickness: 2px; }
.on-dark .link { color: var(--cobalt-on-dark); }

/* ---------- nawigacja ---------- */
.nav {
  position: sticky; top: var(--s-2); z-index: 50;
  margin-top: var(--s-2);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: .55rem .55rem .55rem 1.4rem;
  box-shadow: var(--shadow-soft);
}
.logo img { height: 45px; width: auto; filter: invert(1); }
.on-dark .logo img, .footer .logo img { filter: none; }
.nav-links { display: flex; gap: var(--s-3); list-style: none; }
.nav-links a { text-decoration: none; font-size: var(--t-sm); color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle, .nav-links .nav-mobile-cta { display: none; }

/* ---------- hero ---------- */
.hero { padding-block: var(--s-12) var(--s-12); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
}
.hero h1 { font-size: var(--t-3xl); font-weight: 600; }
.hero-lead { margin-top: var(--s-3); font-size: var(--t-lg); color: var(--muted); max-width: 34rem; line-height: 1.5; }
.hero-cta { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.hero-note { margin-top: var(--s-4); font-size: var(--t-sm); color: var(--muted); }

/* kompozycja formatów reklamowych */
.formats {
  position: relative;
  min-height: 640px;
}
.fmt {
  position: absolute;
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.fmt-tag {
  position: absolute; top: -11px; left: 16px; z-index: 2;
  background: var(--ink); color: #fff;
  font-size: var(--t-xs); font-weight: 500;
  padding: .2rem .6rem; border-radius: var(--r-pill);
}
.fmt-wrap { position: absolute; }

.fmt-article { padding: var(--s-3); }
.fmt-wrap.a { top: 0; left: 0; width: 70%; z-index: 1; }
.fmt-wrap.a .fmt { position: relative; }
.article-site { display: flex; justify-content: space-between; font-size: var(--t-xs); color: var(--muted); padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); }
.article-title { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; margin-top: var(--s-2); }
.guides { list-style: none; margin: var(--s-2) 0 0; padding: 0 16% 0 0; display: grid; gap: var(--s-2); }
.guides li { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.guides li + li { padding-top: var(--s-2); border-top: 1px solid var(--line); }
.guides small { display: block; font-family: var(--f-text); font-weight: 500; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.lines { display: grid; gap: 7px; margin-top: var(--s-2); }
.lines i { display: block; height: 7px; border-radius: 4px; background: var(--mist); }
.lines i:nth-child(3n) { width: 82%; }
.native {
  margin-top: var(--s-2);
  display: grid; grid-template-columns: 96px 1fr; gap: var(--s-2);
  padding: var(--s-2);
  border-radius: 10px;
  background: var(--mist);
}
.native-img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #D4D6D2; }
.native small { font-size: 11px; color: var(--muted); }
.native strong { display: block; font-family: var(--f-display); font-size: .98rem; line-height: 1.25; margin-top: 2px; }
.native span { display: block; font-size: 12px; color: var(--cobalt); margin-top: 6px; font-weight: 500; }

.fmt-wrap.b { right: 0; top: 9%; width: 40%; z-index: 2; }
.fmt-wrap.b .fmt { position: relative; }
.display-ad {
  aspect-ratio: 300 / 250;
  background: var(--cobalt);
  color: #fff;
  padding: var(--s-3);
  display: flex; flex-direction: column; justify-content: space-between;
}
.display-ad b { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.1; font-weight: 600; }
.display-ad em { font-style: normal; align-self: flex-start; background: #fff; color: var(--cobalt); font-size: 12px; font-weight: 600; padding: .45rem .8rem; border-radius: var(--r-pill); }
.display-ad small { font-size: 11px; opacity: .8; }

.fmt-wrap.c { left: 18%; bottom: 0; width: 64%; z-index: 3; }
.fmt-wrap.c .fmt { position: relative; }
.inbox-row {
  display: grid; grid-template-columns: 32px 1fr auto; gap: var(--s-2); align-items: center;
  padding: .8rem var(--s-2);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.inbox-row:last-child { border-bottom: 0; }
.inbox-row .av { width: 32px; height: 32px; border-radius: 50%; background: var(--mist); }
.inbox-row.hit { background: var(--cobalt-soft); }
.inbox-row.hit .av { background: var(--ink); }
.inbox-row b { display: block; font-weight: 600; }
.inbox-row span { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row time { color: var(--muted); font-size: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .fmt-wrap { animation: settle .9s cubic-bezier(.2,.7,.2,1) both; }
  .fmt-wrap.a { animation-delay: .05s; }
  .fmt-wrap.b { animation-delay: .35s; }
  .fmt-wrap.c { animation-delay: .6s; }
  @keyframes settle {
    from { opacity: 0; transform: translateY(28px) scale(.97); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- korzyści ---------- */
.proof { border-block: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-item { padding: var(--s-4) var(--s-4) var(--s-4) 0; }
.proof-item + .proof-item { padding-left: var(--s-4); border-left: 1px solid var(--line); }
.proof-item h3 { font-size: var(--t-lg); }
.proof-item p { margin-top: var(--s-1); color: var(--muted); font-size: var(--t-sm); }

/* ---------- logotypy ---------- */
.logos { padding-block: var(--s-8); }
.logos p { font-size: var(--t-sm); color: var(--muted); }
.logo-row { margin-top: var(--s-3); display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-2); list-style: none; }
.logo-row li {
  height: 72px;
  display: grid; place-items: center;
  padding: 0 var(--s-2);
}
/* logotypy klientów w szarości, kolor dopiero po najechaniu */
.logo-row img {
  width: 100%; height: 40px; object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  opacity: .55;
  transition: filter .2s, opacity .2s;
}
.logo-row li:hover img { filter: none; opacity: 1; }
.logo-row .logo-lg img { height: 60px; }

/* ---------- z kim pracujemy ---------- */
.who { background: var(--mist); }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.who-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  display: flex; flex-direction: column;
}
.who-card h3 { font-size: var(--t-xl); }
.who-card > p { margin-top: var(--s-2); color: var(--muted); }
.ticks { list-style: none; margin-top: var(--s-3); display: grid; gap: var(--s-1); }
.ticks li { padding-left: 1.6rem; position: relative; font-size: var(--t-sm); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .7rem; height: .4rem;
  border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt);
  transform: rotate(-45deg);
}
.who-card details { margin-top: auto; padding-top: var(--s-3); }
.who-card summary {
  cursor: pointer; list-style: none;
  font-weight: 500; font-size: var(--t-sm);
  display: inline-flex; align-items: center; gap: .5rem;
}
.who-card summary::-webkit-details-marker { display: none; }
.who-card summary::after { content: "+"; font-size: 1.2em; line-height: 1; }
.who-card details[open] summary::after { content: "–"; }
.who-card details p { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--muted); }

/* ---------- usługi (ciemna scena) ---------- */
.services { background: var(--ink); color: #fff; }
.svc-main { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.svc {
  border-radius: var(--r-lg);
  background: #161616;
  border: 1px solid #2A2A2A;
  padding: var(--s-4);
  display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--s-2);
}
.svc-ico { width: 48px; height: 48px; }
.svc h3 { font-size: var(--t-xl); }
.svc p { color: #BDBDBD; }
.svc-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.svc-meta li {
  list-style: none; font-size: var(--t-xs);
  border: 1px solid #3A3A3A; border-radius: var(--r-pill);
  padding: .25rem .65rem; color: #DADADA;
  font-variant-numeric: tabular-nums;
}
.svc-more { margin-top: var(--s-8); }
.svc-more h3 { font-size: var(--t-lg); color: #BDBDBD; font-weight: 500; }
.svc-list {
  margin-top: var(--s-3);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #2A2A2A;
  list-style: none;
}
.svc-list li { border-bottom: 1px solid #2A2A2A; padding: var(--s-3) var(--s-3) var(--s-3) 0; }
.svc-list b { display: block; font-family: var(--f-display); font-weight: 600; font-size: var(--t-base); }
.svc-list span { display: block; margin-top: .25rem; font-size: var(--t-sm); color: #A8A8A8; line-height: 1.45; }

/* ---------- własne serwisy ---------- */
.sites-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.site {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
  color: inherit; text-decoration: none;
  transition: box-shadow .2s, border-color .2s;
}
.site:hover { box-shadow: var(--shadow-soft); border-color: var(--ink); }
.site:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.site-shot {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.site-body { padding: var(--s-3); display: flex; flex-direction: column; flex: 1; }
.site-body h3 { font-size: var(--t-lg); }
.site-body p { margin-top: .35rem; font-size: var(--t-sm); color: var(--muted); }
.site-link { margin-top: auto; padding-top: var(--s-2); font-size: var(--t-sm); font-weight: 500; color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- dlaczego WCM ---------- */
.why { background: var(--mist); }
.why-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-12); }
.why-sticky { position: sticky; top: 7rem; align-self: start; }
.why-sticky h2 { font-size: var(--t-2xl); }
.why-sticky p { margin-top: var(--s-2); color: var(--muted); font-size: var(--t-lg); line-height: 1.5; }
.stats { margin-top: var(--s-6); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.stats div { border-top: 2px solid var(--ink); padding-top: var(--s-2); }
.stats b { display: block; font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: .4rem; font-size: var(--t-sm); color: var(--muted); }
.why-points { display: grid; gap: var(--s-3); }
.why-point {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-soft);
}
.why-point h3 { font-size: var(--t-xl); }
.why-point p { margin-top: var(--s-2); color: var(--muted); max-width: 38rem; }

/* ---------- proces ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); list-style: none; counter-reset: step; }
.step { counter-increment: step; border-top: 1px solid var(--line); padding-top: var(--s-3); }
.step::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-family: var(--f-display); font-weight: 600;
  margin-bottom: var(--s-3);
}
.step h3 { font-size: var(--t-xl); }
.step p { margin-top: var(--s-2); color: var(--muted); }

/* ---------- realizacje ---------- */
.cases { background: var(--mist); }
.case-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s-3); }
.case {
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}
.case-img {
  aspect-ratio: 16 / 10;
  background: #DADBD8;
  display: grid; place-items: center;
  padding: var(--s-3);
  font-size: var(--t-xs); color: var(--ink-2); text-align: center;
}
.case:first-child .case-img { aspect-ratio: 16 / 9; }
img.case-img { display: block; width: 100%; height: auto; padding: 0; object-fit: cover; }
.case-body p { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.case-body { padding: var(--s-4); display: grid; gap: var(--s-2); }
.case-body small { font-size: var(--t-sm); color: var(--muted); }
.case-body h3 { font-size: var(--t-xl); }
.case-kpis { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.case-kpis b { display: block; font-family: var(--f-display); font-size: var(--t-xl); font-variant-numeric: tabular-nums; }
.case-kpis span { font-size: var(--t-xs); color: var(--muted); }
a.case:hover h3 { text-decoration: underline; text-underline-offset: 4px; }


/* ---------- Optymeo ---------- */
.partner {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-4);
}
/* logo Optymeo zawsze w oryginalnym kolorze */
.partner-mark { width: 160px; }
.partner-mark img { display: block; width: 100%; height: auto; }
.partner h2 { font-size: var(--t-xl); }
.partner p { margin-top: .4rem; color: var(--muted); max-width: 44rem; }

/* ---------- kontakt ---------- */
.contact { background: var(--ink); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); }
.contact h2 { font-size: var(--t-3xl); }
.contact-lead { margin-top: var(--s-3); color: #BDBDBD; font-size: var(--t-lg); max-width: 30rem; }
.direct { margin-top: var(--s-6); display: grid; gap: var(--s-2); }
.direct-row {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-2);
  border-top: 1px solid #2E2E2E; padding-top: var(--s-2);
}
.direct-row small { display: block; color: #A8A8A8; font-size: var(--t-sm); }
.direct-row a { font-family: var(--f-display); font-size: var(--t-xl); font-weight: 600; text-decoration: none; }
.copy {
  font: 500 var(--t-xs)/1 var(--f-text);
  background: transparent; color: #fff;
  border: 1px solid #4A4A4A; border-radius: var(--r-pill);
  padding: .55rem .9rem; cursor: pointer;
}
.copy:hover { border-color: #fff; }

.form {
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  display: grid; gap: var(--s-2);
}
.form h3 { font-size: var(--t-xl); margin-bottom: var(--s-1); }
.field { display: grid; gap: .35rem; }
.field label { font-size: var(--t-sm); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--t-base);
  padding: .8rem 1rem;
  border: 1px solid #BEBEBC; border-radius: 10px;
  background: var(--paper); color: var(--ink);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--cobalt); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .6rem; font-size: var(--t-xs); color: var(--muted); align-items: start; }
.consent input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--cobalt); }
.form .btn { justify-self: start; margin-top: var(--s-1); }
.form-status { font-size: var(--t-sm); color: var(--cobalt-dark); min-height: 1.4em; }

/* ---------- stopka ---------- */
.footer { background: var(--ink); color: #BDBDBD; border-top: 1px solid #262626; padding-block: var(--s-8) var(--s-4); font-size: var(--t-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-4); }
.footer h4 { font-family: var(--f-text); font-size: var(--t-sm); font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: var(--s-2); }
.footer ul { list-style: none; display: grid; gap: .45rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-about { margin-top: var(--s-2); max-width: 22rem; }
.footer-legal { margin-top: var(--s-8); padding-top: var(--s-3); border-top: 1px solid #262626; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2); font-size: var(--t-xs); color: #8F8F8F; }

/* ---------- responsywność ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .formats { min-height: 480px; max-width: 620px; }
  .svc-list { grid-template-columns: repeat(2, 1fr); }
  .sites-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .why-sticky { position: static; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case:first-child { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--paper); cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: "";
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: calc(100% + .5rem);
    flex-direction: column; gap: 0;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: var(--s-1); box-shadow: var(--shadow-lift);
  }
  .nav-links a { display: block; padding: .85rem 1rem; font-size: var(--t-base); }
  .nav.open .nav-links { display: flex; }
  .nav-bar { position: relative; }
  .nav-cta { display: none; }
  .nav-links .nav-mobile-cta { display: block; padding: var(--s-1); }
  .nav-links .nav-mobile-cta a { display: flex; justify-content: center; color: #fff; }
}

@media (max-width: 720px) {
  :root { --t-2xl: 2rem; --t-xl: 1.45rem; }
  .section { padding-block: var(--s-12); }
  .hero { padding-block: var(--s-6) var(--s-8); }
  .formats { min-height: 0; display: grid; gap: var(--s-4); }
  .fmt-wrap.a, .fmt-wrap.b, .fmt-wrap.c { position: relative; inset: auto; }
  .fmt-wrap .fmt { position: relative; }
  .fmt-wrap.a { width: 100%; }
  .fmt-wrap.b { width: 78%; justify-self: end; }
  .display-ad { padding: var(--s-3) var(--s-2); aspect-ratio: auto; gap: var(--s-2); }
  .display-ad b { font-size: 1.05rem; }
  .fmt-wrap.c { width: 92%; }
  .guides { padding-right: 0; }
  .native { grid-template-columns: 64px 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item, .proof-item + .proof-item { padding: var(--s-3) 0; border-left: 0; }
  .proof-item + .proof-item { border-top: 1px solid var(--line); }
  .logo-row { grid-template-columns: repeat(3, 1fr); }
  .who-grid, .svc-main, .steps, .sites-grid, .case-grid { grid-template-columns: 1fr; }
  .svc-list { grid-template-columns: 1fr; }
  .partner { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .direct-row a { font-size: var(--t-lg); }
  .footer-grid { grid-template-columns: 1fr; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* formularz: pułapka na boty i link do polityki */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent a { color: var(--ink); }

/* stopka: linki prawne */
.legal-links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
.cookie-open { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.cookie-open:hover { color: #fff; text-decoration: underline; }

/* baner cookies */
.cookie {
  position: fixed; left: var(--s-2); bottom: var(--s-2); z-index: 100;
  width: min(100% - 2rem, 30rem);
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lift);
  padding: var(--s-3);
  display: grid; gap: var(--s-2);
  font-size: var(--t-sm); line-height: 1.5;
}
.cookie[hidden] { display: none; }
.cookie strong { display: block; font-family: var(--f-display); font-size: var(--t-base); margin-bottom: .25rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.cookie-actions .btn { flex: 1 1 10rem; justify-content: center; }

/* podstrony z dokumentami */
.nav-back { font-size: var(--t-sm); color: var(--ink-2); }
.doc { padding-block: var(--s-8) var(--s-16); }
.doc-head { max-width: 46rem; margin-bottom: var(--s-6); }
.doc-head h1 { font-size: var(--t-2xl); }
.doc-head p { margin-top: var(--s-2); color: var(--muted); font-size: var(--t-sm); }
.doc-body { max-width: 46rem; color: var(--ink-2); }
.doc-body h2 { font-size: var(--t-lg); color: var(--ink); margin: var(--s-6) 0 var(--s-2); line-height: 1.25; }
.doc-body p, .doc-body ul, .doc-body ol { margin: 0 0 var(--s-2); }
.doc-body ul, .doc-body ol { padding-left: 1.4rem; display: grid; gap: .4rem; }
.doc-body a { color: var(--cobalt); overflow-wrap: anywhere; }
.err { min-height: 60vh; display: grid; align-content: center; gap: var(--s-3); padding-block: var(--s-12); }
.err h1 { font-size: var(--t-3xl); }
.err p { color: var(--muted); font-size: var(--t-lg); max-width: 32rem; }

