/* ==========================================================================
   Alterity.pl (Microsoft 365) — components (Phase 1 subset)
   Faithful port of the cyberalterity design language: buttons, sections,
   eyebrow pills, gradient headline, glass cards, pillar cards, the `\` slash
   motif and brand ramp. Expanded into the full block library during page build.
   Depends on tokens.css.
   ========================================================================== */

/* ---------- Motion keyframes ---------- */
@keyframes fade-up   { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes float-soft{ 0%,100% { transform: var(--float-base, none) translateY(0); } 50% { transform: var(--float-base, none) translateY(-8px); } }
@keyframes slash-draw { to { stroke-dashoffset: 0; } }
@keyframes mesh-shift { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-6%,0,0); } }

/* Reveal motion — content is VISIBLE on first paint (never JS-gated hiding;
   a slow script must not blank a section). Where the browser supports CSS
   scroll-driven animations, a subtle fade-up runs as pure progressive
   enhancement; everywhere else content simply shows. */
[data-reveal] { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  [data-reveal] {
    animation: fade-up var(--dur-slow) var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  /* Staggered entrances — grid children cascade in (offset animation ranges by
     DOM position) instead of fading as one block. Scroll-scrubbed, no JS. */
  :is(.pillars__grid, .cards-grid, .ms-products, .sectors-grid, .logos, .testimonials-grid, .outcomes-ed) > * {
    animation: fade-up var(--dur-slow) var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% entry 42%;
  }
  :is(.pillars__grid, .cards-grid, .ms-products, .sectors-grid, .logos, .testimonials-grid, .outcomes-ed) > :nth-child(4n+2) { animation-range: entry 8% entry 50%; }
  :is(.pillars__grid, .cards-grid, .ms-products, .sectors-grid, .logos, .testimonials-grid, .outcomes-ed) > :nth-child(4n+3) { animation-range: entry 16% entry 58%; }
  :is(.pillars__grid, .cards-grid, .ms-products, .sectors-grid, .logos, .testimonials-grid, .outcomes-ed) > :nth-child(4n) { animation-range: entry 24% entry 66%; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  :is(.pillars__grid, .cards-grid, .ms-products, .sectors-grid, .logos, .testimonials-grid, .outcomes-ed) > * { animation: none !important; opacity: 1; transform: none; }
}

/* ==========================================================================
   Sections — generic vertical rhythm wrappers
   ========================================================================== */
.section { padding-block: var(--section-pad-standard); }
/* Strip tier (audit A5): label bands / one-line statements whose content is a
   fraction of the standard padding — half rhythm, still breathing. */
.section--strip { padding-block: clamp(var(--space-8), 4vw, var(--space-12)); }

/* Compact hero (kontakt): height follows content — no viewport-third void. */
.home-hero.hero-rich--compact {
  padding-block: clamp(var(--space-12), 7vw, var(--space-20));
  min-height: 0;
}
/* Trust markers as badge pills (replaces the faint grey micro-line). */
.hero-badges {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin: var(--space-6) 0 0; padding: 0;
}
.hero-badges__item {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm); font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 999px;
}
.hero-badges__check { color: var(--primary); font-weight: 800; }

/* ============================================================
   Hero visual variants (ported from the reference build):
   facts — 2×2 icon pills; mosaic — per-page geometric SVG scene.
   ============================================================ */
.hero-rich__facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-3); width: 100%;
}
@media (min-width: 600px) { .hero-rich__facts { grid-template-columns: 1fr 1fr; } }
.hero-rich__fact {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2);
  min-width: 0; overflow-wrap: anywhere;
}
.hero-rich__fact-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-card));
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  margin-bottom: var(--space-1);
}
.hero-rich__fact-icon svg { width: 20px; height: 20px; }
.hero-rich__fact-label {
  font-family: var(--font-display);
  font-size: var(--text-lg); font-weight: 800; line-height: 1.2;
  color: var(--text-primary); letter-spacing: -0.005em;
}
.hero-rich__fact-sub { font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.45; letter-spacing: 0.01em; }

.hero-rich__mosaic {
  width: 100%; max-width: 480px; margin-inline: auto;
  aspect-ratio: 1; color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
}
.hero-rich__mosaic svg { width: 100%; height: 100%; display: block; }
/* Stacked layouts (hero parity 2026-07-21) — the visual column stays VISIBLE.
   It was previously hidden here, on the reasoning that a decorative mosaic adds
   nothing once stacked. That held while these heroes collapsed to content
   height. With the full-viewport reserve restored (see the hero-height parity
   note further down), hiding the column instead leaves ~550px of dead band
   under the copy — exactly the empty-square problem the hiding was meant to
   avoid, one breakpoint over. Constrain the visual instead of removing it, so
   every page has a hero visual at every breakpoint. */
@media (max-width: 959px) {
  .hero-rich__mosaic { max-width: 300px; margin-block: var(--space-4); }
}

/* Product variant (hero parity 2026-07-21) — /microsoft-wdrozenia/* children.
   The official Microsoft mark on a lifted card, using the same surface language
   as .hero-stat so a product hero reads as the same family as a stats hero. */
.hero-rich__product {
  width: 100%; max-width: 480px; margin-inline: auto; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.hero-rich__product-mark {
  display: flex; align-items: center; justify-content: center;
  width: min(62%, 260px); aspect-ratio: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px -20px color-mix(in oklab, var(--brand-navy) 25%, transparent);
}
/* Override the 44px badge dimensions the helper hard-codes for inline use —
   here the mark IS the hero visual, so it carries the column. The wrapper must
   be given an explicit box: .product-badge is content-sized, so a percentage
   width on the <img> would resolve against the img's own 44px attribute and
   collapse the mark to a speck inside a large empty card. Absolute sizes here
   are deterministic regardless of what the helper emits. */
.hero-rich__product-mark .product-badge {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: none; border: 0; box-shadow: none; padding: 0;
}
.hero-rich__product-mark .product-badge__img { width: 112px; height: 112px; object-fit: contain; }
.hero-rich__product-mark .product-badge--icon svg { width: 104px; height: 104px; }
/* Same stacked-layout treatment as the mosaic: kept visible, sized down. */
@media (max-width: 959px) {
  .hero-rich__product { max-width: 300px; margin-block: var(--space-4); }
  .hero-rich__product-mark { width: min(70%, 176px); }
  .hero-rich__product-mark .product-badge__img { width: 84px; height: 84px; }
  .hero-rich__product-mark .product-badge--icon svg { width: 78px; height: 78px; }
}
.section--alt   { background: var(--bg-elevated); }
.section--inset { background: var(--bg-inset); }
/* A section whose last element is a short CTA link carries less visual mass —
   trim its bottom padding so the gap to the next band doesn't read as a hole. */
.section--snug-bottom { padding-bottom: var(--space-10); }
.section--snug-bottom .section__actions { margin-top: var(--space-6); }

/* Navy band — the page's single dark tonal event (homepage process). */
.section--navy { background: linear-gradient(135deg, #12145A 0%, #0C0D47 88%); }
.section--navy .section__title   { color: #fff; }
.section--navy .section__lead    { color: rgba(255, 255, 255, 0.75); }
.section--navy .section__eyebrow { color: var(--accent); }
/* Collapse the doubled vertical padding when two sections with the SAME
   background meet. The section renderer forces --alt on stats/testimonials/cta
   without advancing its alternation toggle, and some pages stack two --alt
   sections (e.g. the homepage sectors + client wall) — otherwise they merge
   into one oversized muted band that reads like an accidental empty gap. */
.section--alt + .section--alt,
.section--inset + .section--inset,
.section:not(.section--alt):not(.section--inset):not(.section--navy) + .section:not(.section--alt):not(.section--inset):not(.section--navy) { padding-top: 0; }
.section__header { margin-bottom: var(--space-12); max-width: var(--container-text); }
.section__eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: var(--space-4);
}
.section__title {
  font-size: clamp(1.9rem, 1.25rem + 2.7vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto;
}
.section__lead { font-size: var(--text-lg); color: var(--text-secondary); margin: 0; max-width: 60ch; }
/* Balanced wraps: no lone orphan words ("365.", "przyczyny.", single-letter
   Polish conjunctions) at the end of display headings and leads. */
.section__title, .section__lead, .home-hero__title, .home-hero__subtitle, .proof-subtitle { text-wrap: balance; }

/* ---------- Eyebrow pill (chip with pulsing dot) ---------- */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.45em 1em 0.45em 0.7em;
  background: color-mix(in oklab, var(--accent) 10%, var(--card));
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}
.eyebrow-pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 30%, transparent);
  animation: float-soft 2.4s ease-in-out infinite;
}

/* ---------- Gradient headline accent (teal → azure) ---------- */
.title-accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary); /* fallback */
}
[data-theme="dark"] .title-accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--brand-mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Brand gradient ramp (navy → azure → teal → mint) ---------- */
.brand-ramp {
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-navy) 0%, var(--brand-azure) 38%, var(--brand-teal) 72%, var(--brand-mint) 100%);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1.2;
  padding: 0.75em 1.5em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
@media (max-width: 600px) { body .btn { white-space: normal; overflow-wrap: break-word; max-width: 100%; } }
.btn--lg { font-size: var(--text-lg); padding: 0.9em 1.75em; }
.btn--sm { font-size: var(--text-sm); padding: 0.55em 1em; }

.btn--primary { background: var(--primary); color: var(--primary-foreground); }
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--primary-hover);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}
.btn--primary:active { background: var(--primary-active); transform: translateY(0); }

.btn--secondary { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn--secondary:hover, .btn--secondary:focus-visible { background: var(--bg-card); border-color: var(--accent); color: var(--primary); }

.btn--ghost { background: transparent; color: var(--text-secondary); padding-inline: var(--space-2); }
.btn--ghost:hover { color: var(--primary); }

.btn__arrow { display: inline-block; margin-left: 0.2em; transition: transform var(--dur-fast) var(--ease); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(4px); }

/* ---------- Soft pill CTA (used on cards) ---------- */
.pill-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6em 1.15em;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.pill-cta::after { content: "→"; display: inline-block; transition: transform var(--dur-fast) var(--ease); }

/* ==========================================================================
   Glass stat card (frosted, accent-bordered)
   ========================================================================== */
.glass-card {
  padding: var(--space-6) var(--space-8);
  background: color-mix(in oklab, var(--card) 70%, transparent);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, var(--border));
  border-radius: var(--radius-xl);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 10px 30px -10px color-mix(in oklab, var(--brand-navy) 30%, transparent),
    0 30px 60px -20px color-mix(in oklab, var(--brand-navy) 25%, transparent);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
[data-theme="dark"] .glass-card {
  background: color-mix(in oklab, var(--card) 60%, transparent);
  border-color: color-mix(in oklab, var(--accent) 28%, var(--border));
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 10px 30px -10px rgba(0,0,0,0.5), 0 30px 60px -20px rgba(0,0,0,0.6);
}
.glass-card__value { font-family: var(--font-display); font-weight: 800; font-size: var(--text-4xl); line-height: 1; color: var(--foreground); }
.glass-card__value .unit { color: var(--primary); }
.glass-card__label { font-size: var(--text-sm); color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* ==========================================================================
   Pillar cards (service tiles)
   ========================================================================== */
.pillars__grid {
  /* Flexbox (not grid) so an odd count (e.g. 5 services) wraps with the
     final row's cards centered, instead of left-aligned with an empty cell. */
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
}
.pillars__grid > .pillar { flex: 1 1 20rem; max-width: 24rem; }
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}
.pillar:hover, .pillar:focus-visible { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-elevated); }
.pillar__icon {
  width: 56px; height: 56px;
  color: var(--primary);
  padding: var(--space-3);
  background: var(--primary-soft);
  border: 1px solid var(--primary-soft);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pillar__icon svg { width: 100%; height: 100%; }
.pillar__title { font-size: var(--text-xl); font-weight: 700; color: var(--text-primary); margin: 0; line-height: 1.25; }
.pillar__desc { color: var(--text-secondary); font-size: var(--text-base); line-height: 1.6; margin: 0; flex-grow: 1; }
.pillar__cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.6em 1.15em; border-radius: var(--radius-md);
  background: var(--primary-soft); color: var(--primary);
  border: 1px solid transparent; font-weight: 600; font-size: var(--text-sm);
  text-transform: uppercase; letter-spacing: 0.04em;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.pillar:hover .pillar__cta, .pillar:focus-visible .pillar__cta { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-accent); }
.pillar__cta::after { content: "→"; display: inline-block; transition: transform var(--dur-fast) var(--ease); }
.pillar:hover .pillar__cta::after { transform: translateX(4px); }
/* Flagship pillar — promoted to a full-width featured row (the focal point
   after the hero). Falls back to the standard card layout on small screens. */
@media (min-width: 760px) {
  .pillars__grid > .pillar--featured { flex: 1 1 100%; max-width: none; }
  /* The 4 remaining pillars share one balanced row on wide screens (2×2 on
     medium) instead of wrapping 3+1 with an orphan. */
  .pillars__grid > .pillar:not(.pillar--featured) { flex: 1 1 16rem; max-width: none; }
  /* Uniform card rhythm: every description clamps to the same 3-line block
     (full text lives on the service page behind the card). */
  .pillars__grid > .pillar:not(.pillar--featured) .pillar__desc {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; flex-grow: 0;
  }
  .pillars__grid > .pillar:not(.pillar--featured) .pillar__title {
    min-height: 2.5em; /* reserves two title lines so 1-line titles align */
  }
  .pillars__grid > .pillar:not(.pillar--featured) .pillar__cta { margin-top: auto; }
  .pillar--featured {
    display: grid; align-items: center; column-gap: var(--space-8); row-gap: var(--space-2);
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "icon title cta" "icon desc cta";
    border-left: 3px solid var(--accent);
  }
  .pillar--featured .pillar__icon  { grid-area: icon; width: 64px; height: 64px; }
  .pillar--featured .pillar__title { grid-area: title; font-size: var(--text-2xl); align-self: end; }
  .pillar--featured .pillar__desc  { grid-area: desc; align-self: start; max-width: 62ch; }
  .pillar--featured .pillar__cta   { grid-area: cta; justify-self: end; }
}

/* ==========================================================================
   Sample hero (mesh + slash motif) — for the sign-off preview
   ========================================================================== */
.demo-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--space-16), 9vh, var(--space-32));
  background:
    radial-gradient(60% 80% at 85% 10%, color-mix(in oklab, var(--accent) 14%, transparent) 0%, transparent 60%),
    radial-gradient(50% 70% at 10% 90%, color-mix(in oklab, var(--primary) 12%, transparent) 0%, transparent 55%),
    var(--background);
}
.demo-hero::after {
  content: "";
  position: absolute;
  top: -20%; right: 8%;
  width: 3px; height: 140%;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  transform: skewX(-14deg);
  opacity: 0.5;
}
.demo-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-12); align-items: center; }
@media (max-width: 959px) { .demo-hero__grid { grid-template-columns: 1fr; } }
.demo-hero__title { font-size: clamp(2.5rem, 5.5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.028em; margin-bottom: var(--space-6); }
.demo-hero__subtitle { font-size: clamp(var(--text-lg), 1.6vw, var(--text-xl)); line-height: 1.55; color: var(--text-secondary); max-width: 52ch; margin-bottom: var(--space-8); }
.demo-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.demo-hero__stats { display: grid; gap: var(--space-5); }

/* ==========================================================================
   Design-system reference layout (.ds-*)
   ========================================================================== */
.ds-page { padding-block: var(--space-16); }
.ds-page__header { margin-bottom: var(--space-12); }
.ds-page__title { font-size: var(--text-5xl); margin-bottom: var(--space-4); }
.ds-page__lead { font-size: var(--text-lg); color: var(--text-secondary); max-width: var(--container-text); }

.ds-section { padding-block: var(--space-10); border-top: 1px solid var(--border-subtle); }
.ds-section:first-of-type { border-top: none; padding-top: 0; }
.ds-section__title { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; margin: 0 0 var(--space-3); color: var(--foreground); }
.ds-section__lead { font-size: var(--text-base); line-height: 1.6; color: var(--text-secondary); max-width: var(--container-text); margin: 0 0 var(--space-6); }
.ds-section__lead code, .ds-note code, .ds-notes code {
  font-family: var(--font-mono); font-size: 0.92em; background: var(--bg-card);
  padding: 0.1em 0.4em; border-radius: var(--radius-sm); color: var(--accent);
}
.ds-h3 { margin: var(--space-8) 0 var(--space-4); color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--text-sm); font-weight: 700; }

/* Swatches */
.ds-swatch-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.ds-swatch { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-card); overflow: hidden; }
.ds-swatch__chip { height: 80px; width: 100%; }
.ds-swatch__meta { padding: var(--space-3); display: flex; flex-direction: column; gap: 2px; }
.ds-swatch__name { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); font-weight: 600; }
.ds-swatch__label { font-size: var(--text-xs); color: var(--text-secondary); }
.ds-swatch__val { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted-foreground); }

/* Typography table */
.ds-type-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-card); }
.ds-type-table th, .ds-type-table td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.ds-type-table th { background: var(--bg-elevated); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); font-weight: 600; }
.ds-type-table tr:last-child td { border-bottom: none; }
.ds-type-table code, .ds-type-table__resolved { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); }

/* Spacing */
.ds-spacing-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
.ds-spacing { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: var(--space-4); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--bg-card); }
.ds-spacing__bar { height: 8px; background: var(--accent); border-radius: 999px; }
.ds-spacing__name, .ds-spacing__resolved { font-family: var(--font-mono); font-size: var(--text-xs); }
.ds-spacing__name { color: var(--accent); }
.ds-spacing__resolved { color: var(--text-secondary); }

/* Token grid */
.ds-token-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ds-token { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-card); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.ds-token__name { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--accent); font-weight: 600; }
.ds-token__label { font-size: var(--text-sm); color: var(--text-secondary); }
.ds-token__resolved { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--foreground); word-break: break-all; }

.ds-note { margin-top: var(--space-6); padding: var(--space-4); background: color-mix(in oklab, var(--accent) 8%, transparent); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }
.ds-note--azure { background: color-mix(in oklab, var(--primary) 8%, transparent); border-left-color: var(--primary); }

/* Radius + shadow */
.ds-radius-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.ds-radius { text-align: center; display: flex; flex-direction: column; gap: var(--space-2); align-items: center; }
.ds-radius__chip { width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, var(--accent), var(--primary)); }
.ds-radius__name { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); }
.ds-radius__resolved { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-secondary); }
.ds-shadow-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ds-shadow { padding: var(--space-6); background: var(--bg-card); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: var(--space-2); }
.ds-shadow__name { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--accent); }
.ds-shadow__label { font-size: var(--text-xs); color: var(--text-secondary); }

/* Component demo row */
.ds-demo-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; padding: var(--space-6); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-card); }
.ds-notes { margin: 0; padding-left: var(--space-5); font-size: var(--text-sm); line-height: 1.7; color: var(--text-secondary); }
.ds-notes li { margin-bottom: var(--space-2); }

/* ==========================================================================
   Site main, mobile nav drawer, prose, post cards, pagination
   ========================================================================== */
.site-main { min-height: 50vh; }

/* In-page anchors (#booking, #uslugi, the form heading…) land BELOW the
   sticky header instead of hiding under it. */
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* Active trail — the current page (or the dropdown branch containing it)
   is visibly marked in the primary nav. */
.main-navigation > ul > li.is-active:not(.nav-cta) > a {
  color: var(--foreground);
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.main-navigation .sub-menu li.is-active > a { color: var(--primary); font-weight: 700; }
.main-navigation .nav-cta.is-active a { box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--accent) 65%, transparent); }

/* Primary-nav dropdown (products under "Wdrożenia") — desktop: a 2-column
   panel on hover/focus-within; in the mobile drawer the items list inline. */
.submenu-toggle { display: none; } /* drawer-only control; hidden on desktop */
@media (min-width: 1024px) {
  .main-navigation .menu-item-has-children { position: relative; }
  .main-navigation .menu-item-has-children > a::after {
    content: "▾"; margin-left: 5px; font-size: 0.72em; opacity: 0.65;
  }
  .main-navigation .sub-menu {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    padding: var(--space-4); margin-top: 0;
    min-width: 17rem;
    grid-template-columns: 1fr; gap: 2px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-elevated);
    z-index: var(--z-sticky);
  }
  .main-navigation .sub-menu--products {
    min-width: 36rem;
    grid-template-columns: 1fr 1fr; gap: 2px var(--space-4);
  }
  .main-navigation li:hover > .sub-menu,
  .main-navigation li:focus-within > .sub-menu { display: grid; }
  .main-navigation .sub-menu a {
    display: block; padding: 8px 12px; border-radius: var(--radius-sm);
    text-transform: none; letter-spacing: 0; font-size: var(--text-sm);
    color: var(--text-secondary); white-space: nowrap;
  }
  .main-navigation .sub-menu a:hover { background: var(--primary-soft); color: var(--primary); }
  .main-navigation .sub-menu__lead a,
  .main-navigation .sub-menu__all a { color: var(--primary); font-weight: 700; }
  .main-navigation .sub-menu__all { grid-column: 1 / -1; border-top: 1px solid var(--border-subtle); margin-top: var(--space-2); padding-top: var(--space-2); }

  /* Kontakt as the header CTA — a filled pill closing the nav. */
  .main-navigation .nav-cta { margin-left: var(--space-2); }
  .main-navigation .nav-cta a {
    display: inline-flex; align-items: center;
    padding: 0.5em 1.05em; border-radius: var(--radius-md);
    background: var(--primary); color: var(--primary-foreground);
    transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  }
  .main-navigation .nav-cta a:hover { background: var(--primary-hover, var(--primary)); color: var(--primary-foreground); transform: translateY(-1px); }
}

/* Header site search — a collapsed panel that expands below the header. */
.header-search {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--card); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-elevated); padding-block: var(--space-4);
  z-index: var(--z-sticky);
}
.header-search__form { display: flex; gap: var(--space-3); }
.header-search__input {
  flex: 1 1 auto; min-width: 0; padding: 0.65em 1em; font: inherit;
  color: var(--foreground); background: var(--bg-elevated);
  border: 1px solid var(--border-input); border-radius: var(--radius-md);
}
.header-search__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* Hamburger — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.nav-toggle__bar { display: block; height: 2px; width: 100%; background: var(--foreground); border-radius: 2px; transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
:root.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
:root.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
:root.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  /* Drawer: reveal the primary nav as a panel under the sticky header. */
  html.nav-open .main-navigation {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-elevated);
    padding: var(--space-4) var(--space-6);
    z-index: var(--z-sticky);
    /* The products submenu makes the drawer taller than a phone screen —
       cap it to the viewport and let the drawer itself scroll. */
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  html.nav-open .main-navigation ul { flex-direction: column; gap: 0; align-items: stretch; }
  html.nav-open .main-navigation li { border-top: 1px solid var(--border-subtle); }
  html.nav-open .main-navigation li:first-child { border-top: 0; }
  html.nav-open .main-navigation a {
    display: flex; align-items: center; min-height: 48px;
    padding-block: var(--space-2); font-size: var(--text-base);
    text-transform: none; letter-spacing: 0;
  }
  /* Sub-menus are ACCORDIONS in the drawer: collapsed by default, expanded by
     the injected chevron toggle — the drawer stays a short, calm list. */
  html.nav-open .main-navigation .menu-item-has-children { position: relative; }
  html.nav-open .main-navigation .menu-item-has-children > a { padding-right: 56px; }
  html.nav-open .main-navigation .submenu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; right: 0; top: 2px;
    width: 48px; height: 48px;
    background: none; border: 0; cursor: pointer; color: var(--foreground);
  }
  html.nav-open .main-navigation .submenu-toggle__chevron {
    width: 10px; height: 10px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--dur-fast) var(--ease);
  }
  html.nav-open .main-navigation li.is-open > .submenu-toggle .submenu-toggle__chevron {
    transform: rotate(225deg) translateY(-2px);
  }
  html.nav-open .main-navigation .sub-menu { display: none; padding-left: var(--space-5); }
  html.nav-open .main-navigation li.is-open > .sub-menu { display: flex; flex-direction: column; }
  html.nav-open .main-navigation .sub-menu li { border-top: 0; }
  html.nav-open .main-navigation .sub-menu a { min-height: 40px; font-size: var(--text-sm); color: var(--muted-foreground); }

  /* Kontakt CTA: a full-width filled button closing the drawer list. */
  html.nav-open .main-navigation .nav-cta { border-top: 0; margin-top: var(--space-3); }
  html.nav-open .main-navigation .nav-cta a {
    justify-content: center; min-height: 48px;
    background: var(--primary); color: var(--primary-foreground);
    border-radius: var(--radius-md); font-weight: 700;
  }
}

/* Mobile nav backdrop — tap anywhere outside the drawer to close it */
.nav-backdrop { display: none; }
@media (max-width: 1023px) {
  html.nav-open .nav-backdrop {
    display: block; position: fixed; inset: var(--header-h) 0 0 0;
    background: rgba(0, 0, 0, 0.4); z-index: calc(var(--z-sticky) - 1);
    animation: nav-backdrop-in var(--dur-fast) var(--ease);
  }
  html.nav-open { overflow: hidden; } /* lock page scroll while the menu is open */
}
@keyframes nav-backdrop-in { from { opacity: 0; } to { opacity: 1; } }

/* Page prose */
.prose { color: var(--foreground); }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font-size: var(--text-3xl); margin-top: var(--space-10); }
.prose h3 { font-size: var(--text-2xl); margin-top: var(--space-8); }
.prose ul, .prose ol { padding-left: var(--space-6); }
.prose li { margin-bottom: var(--space-2); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* Post list / cards (blog, search, archives) */
.post-list { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.post-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-6); transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease); }
.post-card:hover { border-color: var(--accent); box-shadow: var(--shadow-elevated); }
.post-card__title { font-size: var(--text-xl); margin: 0 0 var(--space-3); }
.post-card__title a { color: var(--foreground); }
.post-card__title a:hover { color: var(--primary); }
.post-card__excerpt { color: var(--text-secondary); font-size: var(--text-base); }

/* Pagination */
.pagination, .page-links { margin-top: var(--space-12); display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers, .page-links a, .page-links > span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 var(--space-3);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--foreground); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers.current { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.pagination a.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.screen-reader-text { position: absolute !important; }

/* ==========================================================================
   CSP-safe layout utilities — the strict style-src has no 'unsafe-inline',
   so inline style="" attributes are blocked. These replace them.
   ========================================================================== */
.container--narrow { max-width: var(--container-narrow); }
.section--center { text-align: center; }
.section--center .section__eyebrow,
.section--center .section__title,
.section--center .section__lead { margin-inline: auto; }
.section__header--full { max-width: none; }
/* Action rows hold buttons, not prose — never cap or left-anchor them. The
   global `p { max-width:70ch }` was pinning CTA buttons ~275px left of the
   centered heading axis on every centered section (audit: 7 pages). */
.section__actions { margin-top: var(--space-8); max-width: none; }
.section--center .section__actions,
.section__actions--center { display: flex; justify-content: center; }
.search-empty__form { max-width: 480px; margin-top: var(--space-6); }

/* Demo hero (front-page scaffold) — staggered glass stat cards */
.demo-hero .eyebrow-pill { margin-bottom: var(--space-6); }
.demo-hero__stats .glass-card:nth-child(1) { width: min(100%, 360px); }
.demo-hero__stats .glass-card:nth-child(2) { width: min(100%, 340px); margin-left: auto; }
.demo-hero__stats .glass-card:nth-child(3) { width: min(100%, 320px); }

/* Design-system reference — value classes (replace dynamic inline styles;
   the token set is fixed, so these are static + CSP-safe). */
.ds-page__header .brand-ramp { max-width: 640px; margin-top: var(--space-6); }
.ds-swatch__chip--bordered { border: 1px solid var(--border); }
.dsc-brand-navy { background: var(--brand-navy); }
.dsc-brand-azure { background: var(--brand-azure); }
.dsc-brand-teal { background: var(--brand-teal); }
.dsc-brand-mint { background: var(--brand-mint); }
.dsc-primary { background: var(--primary); }
.dsc-accent { background: var(--accent); }
.dsc-success { background: var(--success); }
.dsc-warning { background: var(--warning); }
.dsc-destructive { background: var(--destructive); }
.dsc-background { background: var(--background); }
.dsc-muted { background: var(--muted); }
.dsc-secondary { background: var(--secondary); }
.dsc-foreground { background: var(--foreground); }
.dsc-muted-foreground { background: var(--muted-foreground); }
.dsr-sm { border-radius: var(--radius-sm); }
.dsr-md { border-radius: var(--radius-md); }
.dsr-base { border-radius: var(--radius); }
.dsr-xl { border-radius: var(--radius-xl); }
.dsr-2xl { border-radius: var(--radius-2xl); }
.dss-soft { box-shadow: var(--shadow-soft); }
.dss-elevated { box-shadow: var(--shadow-elevated); }
.dss-accent { box-shadow: var(--shadow-accent); }
.dst-sm { font-size: var(--text-sm); }
.dst-base { font-size: var(--text-base); }
.dst-lg { font-size: var(--text-lg); }
.dst-2xl { font-size: var(--text-2xl); font-family: var(--font-display); font-weight: 700; }
.dst-4xl { font-size: var(--text-4xl); font-family: var(--font-display); font-weight: 800; line-height: 1.1; }
.dst-display { font-size: var(--text-display); font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: -0.025em; }

/* ==========================================================================
   Page hero (generic pages via page.php)
   ========================================================================== */
.page-hero {
  padding-block: clamp(var(--space-16), 8vw, var(--space-20));
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(55% 80% at 88% 0%, color-mix(in oklab, var(--accent) 10%, transparent) 0%, transparent 60%),
    var(--bg-inset);
}
.page-hero__title { font-size: var(--text-5xl); margin: 0 0 var(--space-4); max-width: 22ch; }
.page-hero__subtitle { font-size: var(--text-xl); color: var(--text-secondary); max-width: 62ch; margin: 0; line-height: 1.5; }

/* ============================================================================
   HOME HERO — full block ported from cyberalterity: full-viewport height,
   animated mesh gradient, slash motif, grid texture, 3D stat stack, scroll cue.
   ============================================================================ */
.home-hero {
  position: relative;

  /* v1.21.40 — fully tokenized responsive sizing. Values defined
     in tokens.css under "Home hero responsive sizing". Single
     fluid formula (no media-query tiers between 600px and 4K).
     See tokens.css for the per-viewport behavior table. */
  padding-block: clamp(var(--hero-pad-min), var(--hero-pad-fluid), var(--hero-pad-max));

  isolation: isolate;
  overflow: hidden;
  min-height: min(var(--hero-min-vh), calc(100dvh - var(--header-h)));

  display: flex;
  align-items: center;
}

/* Failsafe for very short viewports (<600 px tall): split-screen
   ultrawides, landscape phones with URL bar showing, accessibility
   zoom users. Let content drive height; minimum padding. The
   default fluid rule above already handles 600–2000+ px smoothly,
   so this block only catches the extreme low end. */
@media (max-height: 600px) {
  .home-hero {
    min-height: auto;
    padding-block: clamp(
      var(--hero-failsafe-pad-min),
      var(--hero-failsafe-pad-fluid),
      var(--hero-failsafe-pad-max)
    );
  }
}

/* ==========================================================================
   v1.21.73 — Home hero LAPTOP vertical-fit (desktop ≥960px only)
   --------------------------------------------------------------------------
   The hero fills (100dvh − header) and is content-driven. After the
   2026-06-01 content edits the left column (eyebrow + H1 + long subtitle +
   2 CTAs + trust line) grew to ~792px — taller than a laptop screen — so the
   secondary CTA + trust line dropped below the fold on EVERY viewport shorter
   than ~940px (measured: 1366×768 pushed the CTA ~160px below the fold; the
   3rd stat card was clipped too).

   Fix: cap the H1 and subtitle by viewport HEIGHT (min(vw, vh)) and trim the
   vertical rhythm + padding so the whole hero stays above the fold on laptops,
   WHILE big monitors keep the full 68px / 20px type (the vh terms hit their
   max and clamp out). Verified: CTAs + trust line above the fold at 640–1380px
   tall, both themes. Text is NOT changed — sizing/spacing only.

   `body ` prefix wins the cascade by SPECIFICITY (0,1,1 > the base 0,1,0) so
   it holds regardless of clean-css -O2 @media reordering (which silently
   killed an earlier order-dependent rule — see v1.21.72.1). Mobile (<960px)
   is untouched (separate code path). */
@media (min-width: 960px) {
  body .home-hero { padding-block: clamp(1.25rem, 4vh, 5rem); }
  body .home-hero__eyebrow { margin-bottom: var(--space-4); }
  body .home-hero__title {
    font-size: clamp(2.5rem, min(5.5vw, 6.3vh), 4.25rem);
    margin-bottom: var(--space-4);
  }
  body .home-hero__subtitle {
    font-size: clamp(0.9375rem, min(1.6vw, 2vh), 1.25rem);
    line-height: 1.45;
    margin-bottom: var(--space-5);
  }
  body .home-hero__ctas { margin-bottom: var(--space-5); }
}

/* v1.21.73.1 (gate-check) — the right-column 3D stat-card stack is
   absolutely positioned (~545px tall: offsets 0/180/350 + ~195px cards). When
   v1.21.73 compressed the hero on laptops the cards KEPT their fixed offsets,
   so the bottom card ("Maksymalna kara osobista — 300%") was clipped by the
   hero's overflow:hidden (measured −27 to −77px at 1366–1536 widths). Fix:
   tighten the offsets + card padding on short viewports so the stack shrinks
   WITH the hero. NOT a transform:scale on the container — that silently breaks
   the cards' backdrop-filter (frosted glass renders washed-out). The
   `.hero-stats ` prefix wins by specificity (0,2,0 > base 0,1,0) so it holds
   through clean-css -O2 @media reordering. (v1.21.73's visual min-height
   shrink was removed — it mis-centred the stack and worsened the clip.) */
@media (min-width: 960px) and (max-height: 770px) {
  .hero-stats .hero-stat { padding: var(--space-4) var(--space-6); }
  .hero-stats .hero-stat--2 { top: 150px; }
  .hero-stats .hero-stat--3 { top: 296px; }
}
@media (min-width: 960px) and (max-height: 670px) {
  .hero-stats .hero-stat { padding: var(--space-3) var(--space-5); }
  .hero-stats .hero-stat--2 { top: 124px; }
  .hero-stats .hero-stat--3 { top: 244px; }
}

/* Background layers (decorative, behind content) */
.home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* v1.21.27 Tier 1 — was background-position animation (paint-bound, ~1.3s
   mainthread Style+Layout cost per Lighthouse trace). Now the gradients
   live on a ::before pseudo-element sized 112% (so a 6% transform shift
   doesn't expose the parent edges), and the animation drives transform:
   translate3d() which composites on the GPU at zero paint cost. */
.home-hero__mesh {
  position: absolute; inset: 0;
  overflow: hidden;
}
.home-hero__mesh::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -6%; right: -6%;             /* 112% width so the 6% transform shift never exposes edges */
  background-image:
    radial-gradient(ellipse 60% 50% at 15% 30%, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 70%, color-mix(in oklab, var(--accent) 12%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 110%, color-mix(in oklab, var(--brand-navy) 8%, transparent) 0%, transparent 60%);
  background-size: cover;
  animation: mesh-shift 22s ease-in-out infinite;
}
[data-theme="dark"] .home-hero__mesh::before {
  background-image:
    radial-gradient(ellipse 60% 50% at 15% 30%, color-mix(in oklab, var(--accent) 14%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 70%, color-mix(in oklab, var(--accent) 10%, transparent) 0%, transparent 60%);
}

/* Phones: the decorative diagonal crosses the centered hero copy and reads
   like a stray glyph through the words — hide it below tablet width. */
@media (max-width: 560px) {
  .home-hero__slash { display: none; }
}
.home-hero__slash {
  position: absolute;
  top: 0; right: 6vw; bottom: 0;
  width: 200px; height: 100%;
  color: var(--primary);
  opacity: 0.22;
  pointer-events: none;
}

.home-hero__grid-texture {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
[data-theme="dark"] .home-hero__grid-texture { opacity: 0.18; }

/* Two-column layout */
.home-hero__inner {
  position: relative;
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) {
  .home-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--space-16);
  }
}

/* Left: content */
.home-hero__content > * {
  opacity: 0;
  animation: fade-up 0.9s var(--ease) forwards;
}
.home-hero__content > *:nth-child(1) { animation-delay: 0.10s; }
.home-hero__content > *:nth-child(2) { animation-delay: 0.25s; }
.home-hero__content > *:nth-child(3) { animation-delay: 0.40s; }
.home-hero__content > *:nth-child(4) { animation-delay: 0.55s; }
.home-hero__content > *:nth-child(5) { animation-delay: 0.70s; }

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.45em 1em 0.45em 0.7em;
  background: color-mix(in oklab, var(--accent) 10%, var(--card));
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: var(--space-6);
}
[data-theme="dark"] .home-hero__eyebrow { color: var(--primary); }
.home-hero__eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 30%, transparent);
  animation: float-soft 2.4s ease-in-out infinite;
}

.home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--foreground);
  margin: 0 0 var(--space-6);
  /* W3.1: at <400 px viewport, the 2.5rem (40 px) clamp floor exceeds the
     content column width for long Polish words like "odpowiedzialność"
     (16 chars). Without break-word this forced 96 px of horizontal page
     overflow at 320 px viewport (measured Phase 2.4). break-word only
     breaks when the word would otherwise overflow — no impact otherwise.
     v1.21.11.1 gate-check L3 — adds `hyphens: auto` so the browser
     uses Polish hyphenation rules (honors <html lang="pl">) before
     falling back to overflow-wrap's mid-syllable break. Previously
     "cyberbezpieczeństwa" (19 chars) on /uslugi/ broke as
     "cyberbezpieczeń-twa" mid-syllable; with hyphens:auto Chrome /
     Firefox / Safari split at a syllable boundary
     ("cyber-bezpieczeństwa" or similar). Side effect: home-hero's H1
     also gets better wrapping for "odpowiedzialność" on narrow
     viewports. Zero effect on pages whose H1 has no long words. */
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.home-hero__title-accent {
  color: var(--primary);
  /* Light-mode gradient starts at a darker teal (#0E7C86) so the whole accent
     phrase clears WCAG 1.4.3 (≥3:1 for large text) on the white hero; the
     brighter teal is kept for dark mode below. */
  background: linear-gradient(120deg, #0E7C86 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  white-space: nowrap;
}
[data-theme="dark"] .home-hero__title-accent {
  background: linear-gradient(120deg, var(--accent) 0%, #5EEAD4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero__subtitle {
  font-size: clamp(var(--text-lg), 1.6vw, var(--text-xl));
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 var(--space-8);
  max-width: 56ch;
}

.home-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.home-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  font-weight: 600;
}
.home-hero__meta-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.btn__arrow {
  display: inline-block;
  margin-left: 0.2em;
  transition: transform var(--dur-fast) var(--ease);
}
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow {
  transform: translateX(4px);
}

/* Right: 3D stat card stack */
.home-hero__visual {
  position: relative;
  perspective: 1400px;
  min-height: 480px;
  opacity: 0;
  animation: fade-in 1s var(--ease) 0.5s forwards;
}
@media (max-width: 959px) {
  /* Stacked stat cards self-size (.hero-stats becomes a height:auto flex column
     below), so the 540px desktop-collage reserve just left a large empty band
     between the hero and the Usługi section. Fit the content instead. */
  .home-hero__visual { min-height: 0; }
}

.hero-stats {
  position: relative;
  height: 100%;
  width: 100%;
}

.hero-stat {
  position: absolute;
  width: min(100%, 380px);
  padding: var(--space-6) var(--space-8);
  background: color-mix(in oklab, var(--card) 70%, transparent);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, var(--border));
  border-radius: var(--radius-xl);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 10px 30px -10px color-mix(in oklab, var(--brand-navy) 30%, transparent),
    0 30px 60px -20px color-mix(in oklab, var(--brand-navy) 25%, transparent);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transform-style: preserve-3d;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  opacity: 0;
  animation: fade-up 0.9s var(--ease) forwards;
  animation-delay: var(--stat-delay, 0.4s);
}
[data-theme="dark"] .hero-stat {
  background: color-mix(in oklab, var(--card) 60%, transparent);
  border-color: color-mix(in oklab, var(--accent) 28%, var(--border));
  box-shadow:
    0 1px 2px rgba(0,0,0,0.4),
    0 10px 30px -10px rgba(0,0,0,0.5),
    0 30px 60px -20px rgba(0,0,0,0.6);
}

/* Stack positions: 1 on top, 2 below-right, 3 below-left/back */
.hero-stat--1 {
  top: 0;
  left: 0;
  z-index: 3;
  --float-base: rotate(-2.5deg);
  transform: rotate(-2.5deg);
  animation-name: fade-up, float-soft;
  animation-duration: 0.9s, 7s;
  animation-delay: var(--stat-delay, 0.4s), 1.5s;
  animation-fill-mode: forwards, both;
  animation-iteration-count: 1, infinite;
  animation-timing-function: var(--ease), ease-in-out;
}
.hero-stat--2 {
  top: 180px;
  right: 0;
  z-index: 2;
  --float-base: rotate(2deg);
  transform: rotate(2deg);
  animation-name: fade-up, float-soft;
  animation-duration: 0.9s, 8s;
  animation-delay: var(--stat-delay, 0.6s), 2.2s;
  animation-fill-mode: forwards, both;
  animation-iteration-count: 1, infinite;
  animation-timing-function: var(--ease), ease-in-out;
}
.hero-stat--3 {
  top: 350px;
  left: 20px;
  z-index: 1;
  --float-base: rotate(-1deg);
  transform: rotate(-1deg);
  animation-name: fade-up, float-soft;
  animation-duration: 0.9s, 9s;
  animation-delay: var(--stat-delay, 0.8s), 3s;
  animation-fill-mode: forwards, both;
  animation-iteration-count: 1, infinite;
  animation-timing-function: var(--ease), ease-in-out;
}

@media (max-width: 959px) {
  /* W3.4: at <960 px, the parent .home-hero__visual loses its
     min-height: 540 px (set only @ min-width:960 px below) so
     .hero-stats { height: 100% } resolves to 0. Children at
     top 0/200/400 with ~185-198 px heights then overflow document
     flow (Phase 2.5.1 measured `parentHeight: 0` with cards at
     y ≈ 798/1002/1209 in the 320 px viewport). Fix: convert parent
     to column flex on mobile so cards stack naturally + parent
     height matches sum. The rotation tilts + float-soft idle
     animation are desktop design touches that cramped small
     viewports anyway. */
  .hero-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    height: auto;
    align-items: stretch;
  }
  .hero-stat,
  .hero-stat--1,
  .hero-stat--2,
  .hero-stat--3 {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    transform: none;
    animation: fade-up 0.9s var(--ease) forwards;
    animation-delay: var(--stat-delay, 0.4s);
  }
}

/* ==========================================================================
   v1.21.72 — Hero CTA + accent mobile overflow hardening
   --------------------------------------------------------------------------
   CSS-ONLY responsivity fix. No page content / meta / text is touched — the
   hero copy (incl. the 2026-06-01 edits) renders from post meta and is left
   byte-for-byte unchanged. This governs only HOW a long label wraps.

   Root cause: .btn carries `white-space: nowrap` (good on desktop — short
   labels never wrap mid-phrase). After the content edits some hero CTA
   labels grew long (worst: /uslugi/ ≈ 495 px). A nowrap button wraps only
   BETWEEN flex siblings, never WITHIN itself, so one long label became an
   un-shrinkable block that pushed .home-hero__content past a ~390 px phone
   viewport → right-edge clipping (the page has no horizontal scroll).
   Measured mobile overflow +64…+129 px across the home-hero / hero-rich
   pages (home, uslugi, regulacje, metodyka, branze + 5 sektor); desktop and
   tablet were clean. The fix is text-length-AGNOSTIC so future content edits
   cannot reintroduce it. Desktop (≥960 px) is untouched — rules are
   mobile-only. Shared by home-hero.php + hero-rich.php (same classes). */

/* <960 px (single-column hero): permit intra-button + accent-span wrap so no
   single long label can force horizontal overflow. Where the label already
   fits one line, `normal` changes nothing — it only wraps when the content
   would otherwise exceed the available width. */
@media (max-width: 959px) {
  .home-hero__content { min-width: 0; } /* let the column shrink below its content min-content */
  .home-hero__ctas .btn {
    white-space: normal;       /* override .btn nowrap — allow the label to wrap */
    overflow-wrap: break-word; /* break a pathologically long single token as a last resort */
    max-width: 100%;           /* never exceed the column width */
  }
  .home-hero__title-accent { white-space: normal; } /* override nowrap on the gradient accent phrase */
}

/* <600 px (phones): stack the hero CTAs full-width. Standard enterprise
   mobile pattern and a hard guarantee of zero overflow at any label length. */
@media (max-width: 600px) {
  .home-hero__ctas { flex-direction: column; align-items: stretch; }
  .home-hero__ctas .btn { width: 100%; }
}

/* v1.21.72 (round 2) — authored CONTENT tables on prose pages (legal /
   privacy) carry intrinsic multi-column min-widths that can't shrink to a
   phone, forcing page-wide horizontal overflow — surfaced by the full-site
   scan: /polityka-cookies/ cookie-inventory table (565 px) → +199 px and
   /polityka-prywatnosci/ table (432 px) → +66 px on a 390 px viewport.
   Make prose tables scroll horizontally inside their own block on small
   screens instead of breaking the page. CSS-only — the table markup,
   columns and text are untouched; the user just swipes the table. */
@media (max-width: 768px) {
  .prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.hero-stat:hover {
  z-index: 4;
  transform: perspective(1000px) rotateX(2deg) rotateY(-4deg) translateY(-8px) scale(1.02);
}

.hero-stat--accent {
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--accent) 18%, var(--card)) 0%,
    color-mix(in oklab, var(--accent) 8%, var(--card)) 100%);
  border-color: var(--accent);
}

.hero-stat__corner {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--primary);
  transform: skewX(-10deg);
  opacity: 0.55;
}

.hero-stat__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.hero-stat__number-wrap {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin: var(--space-1) 0 var(--space-2);
}
.hero-stat__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}
.hero-stat--accent .hero-stat__number { color: var(--primary); }
[data-theme="dark"] .hero-stat--accent .hero-stat__number { color: var(--primary); }
.hero-stat__unit {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-secondary);
}
.hero-stat--accent .hero-stat__unit { color: var(--primary); }
[data-theme="dark"] .hero-stat--accent .hero-stat__unit { color: var(--primary); }

.hero-stat__prefix {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
  margin-bottom: 2px;
}

.hero-stat__compare {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   v1.21.97 — Hero right-column "floating collage": 3 stat cards + 3
   differentiator cards. Desktop (>=960px) places them as two rails in a REAL
   CSS grid (not absolute coordinates) so the six cards can never overlap,
   whatever the text length or viewport — that was the failure mode of the
   earlier one-screen "ribbon". Left rail = stats (kept), right rail =
   differentiators, nudged down so the rails stagger like hand-placed cards.
   Every card keeps its tilt (--float-base) + float-soft idle bob + fade-up
   reveal; stat numbers keep the count-up. Below 960px the collage collapses
   to one stacked column (tilt removed), matching the original stat stack.
   Differentiator copy is the render-layer split of _home_hero_subtitle —
   stored text untouched.
   ========================================================================== */
@media (min-width: 960px) {
  .hero-collage--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-5);
    align-items: start;
  }
  /* Left rail: stat cards leave the absolute stack for an in-flow column.
     Position overrides ONLY — the tilt / float / fade-up / delay rules on
     .hero-stat--1/2/3 still apply unchanged. */
  .hero-collage--split .hero-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    height: auto;
    width: 100%;
  }
  /* (0,3,0) specificity — via the .hero-stats parent — so these BEAT the
     `.hero-stats .hero-stat--2/3 { top: … }` max-height tier rules (0,2,0)
     regardless of how clean-css -O2 reorders @media blocks in the minified
     bundle. (Equal specificity would make the winner depend on minified source
     order — fragile; a future re-minify could silently displace the cards on
     short-wide laptops.) Position overrides ONLY — the tilt / float / fade-up /
     delay on .hero-stat--1/2/3 still apply. Tighter padding: collage cards are
     narrower than the original single stack + it frees width for the number. */
  .hero-collage--split .hero-stats .hero-stat {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    padding: var(--space-5) var(--space-6);
  }
  /* Right rail: subtle downward offset + a touch more gap so the two rails
     read as hand-placed. Offset kept modest so the 6-card hero stays as short
     as the content allows. */
  .hero-diffs {
    gap: var(--space-5);
    margin-top: var(--space-8);
  }
}

/* Right-rail list — reset at ALL widths so the <ul> never shows default
   bullets / indentation when the collage stacks on mobile (<960px). */
.hero-diffs {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Differentiator card — lighter sibling of .hero-stat (same glass language). */
.hero-diff {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: color-mix(in oklab, var(--card) 70%, transparent);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid color-mix(in oklab, var(--accent) 18%, var(--border));
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 10px 30px -12px color-mix(in oklab, var(--brand-navy) 26%, transparent);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  opacity: 0;
  animation: fade-up 0.9s var(--ease) forwards;
  animation-delay: 0.7s;
}
[data-theme="dark"] .hero-diff {
  background: color-mix(in oklab, var(--card) 60%, transparent);
  border-color: color-mix(in oklab, var(--accent) 24%, var(--border));
  box-shadow:
    0 1px 2px rgba(0,0,0,0.4),
    0 12px 30px -12px rgba(0,0,0,0.55);
}
/* tilt + idle float — composed via --float-base inside the float-soft keyframe */
.hero-diff--1 {
  --float-base: rotate(1.6deg);
  transform: rotate(1.6deg);
  animation-name: fade-up, float-soft;
  animation-duration: 0.9s, 8s;
  animation-delay: 0.7s, 2s;
  animation-fill-mode: forwards, both;
  animation-iteration-count: 1, infinite;
  animation-timing-function: var(--ease), ease-in-out;
}
.hero-diff--2 {
  --float-base: rotate(-1.4deg);
  transform: rotate(-1.4deg);
  animation-name: fade-up, float-soft;
  animation-duration: 0.9s, 8.6s;
  animation-delay: 0.92s, 2.8s;
  animation-fill-mode: forwards, both;
  animation-iteration-count: 1, infinite;
  animation-timing-function: var(--ease), ease-in-out;
}
.hero-diff--3 {
  --float-base: rotate(1deg);
  transform: rotate(1deg);
  animation-name: fade-up, float-soft;
  animation-duration: 0.9s, 9.2s;
  animation-delay: 1.14s, 3.6s;
  animation-fill-mode: forwards, both;
  animation-iteration-count: 1, infinite;
  animation-timing-function: var(--ease), ease-in-out;
}
.hero-diff:hover {
  transform: perspective(1000px) translateY(-6px) scale(1.02);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.05),
    0 18px 44px -14px color-mix(in oklab, var(--brand-navy) 32%, transparent);
}
.hero-diff__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  flex: 0 0 auto;
}
.hero-diff__icon svg { width: 22px; height: 22px; }
.hero-diff__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  line-height: 1.25;
  color: var(--text-primary);
}
.hero-diff__desc {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-secondary);
}

/* <960px — collapse the collage to one stacked column, no tilt (mirrors the
   original mobile stat-stack rule above). */
@media (max-width: 959px) {
  .hero-collage--split {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
  /* .hero-diffs needs no override here — the base rule already sets
     flex column, gap var(--space-4), margin 0, list-style none. */
  .hero-diff,
  .hero-diff--1,
  .hero-diff--2,
  .hero-diff--3 {
    transform: none;
    animation: fade-up 0.9s var(--ease) forwards;
    animation-delay: 0.5s;
  }
}

/* Scroll indicator */
.home-hero__scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity var(--dur-fast) var(--ease);
  animation: float-soft 2.5s ease-in-out infinite;
}
.home-hero__scroll:hover { opacity: 1; color: var(--primary); }
/* Landing spot for the interior-hero scroll cue. Zero-height so it never affects
   layout; the scroll-margin keeps the sticky header from covering what the
   visitor just asked to see. */
.hero-scroll-anchor {
  display: block; height: 0; overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}
.home-hero__scroll svg { width: 22px; height: 22px; }

/* v1.21.9 gate-check M1 fix — empty-stats fallback.
   If operator clears every stat in WP admin (or hero-rich is called
   with empty visual_data), the right column is omitted by PHP and
   the section gets `.hero-rich--text-only`. This rule collapses the
   inner grid back to 1 column so the bio takes full width instead of
   floating awkwardly in a half-empty 2-col layout. Centered max-width
   keeps the text from stretching to unreadable line lengths. */
.home-hero.hero-rich--text-only .home-hero__inner {
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .home-hero.hero-rich--text-only .home-hero__inner {
    grid-template-columns: 1fr;
    max-width: 880px;
    margin-inline: auto;
  }
}

/* v1.21.9 gate-check H1 fix — reduced-motion override.
   Pre-existing defect: home-hero CSS animations (mesh-shift on bg,
   fade-up on content reveal, float-soft on eyebrow dot + stat cards +
   scroll indicator) ran unconditionally, violating WCAG 2.3.3 (Animation
   from Interactions) for users with prefers-reduced-motion enabled
   (~10-15% of B2B audience). Defect only surfaced now because Phase A's
   `hero-rich` block (uses the same .home-hero__* classes) extended the
   audience to subpages. Fixing here closes the existing home defect AND
   the new hero-rich pages in one rule.

   Strategy: kill ALL home-hero/hero-stat animations (not just dampen).
   Opacity forced to 1 so fade-up doesn't leave content invisible
   (without `forwards` fill-mode, killing the animation would freeze
   content at opacity 0). animations.js already short-circuits the
   countup on reduced-motion separately. */
@media (prefers-reduced-motion: reduce) {
  .home-hero__mesh,
  .home-hero__eyebrow-dot,
  .home-hero__content > *,
  .home-hero__scroll,
  .hero-stat,
  .hero-stat--1,
  .hero-stat--2,
  .hero-stat--3,
  .hero-diff,
  .hero-diff--1,
  .hero-diff--2,
  .hero-diff--3 {
    animation: none !important;
    opacity: 1 !important;
  }
  /* Lock the tilt transforms back to identity so cards don't sit at
     `transform: rotate(-2.5deg)` when the animation is disabled. */
  .hero-stat,
  .hero-stat--1,
  .hero-stat--2,
  .hero-stat--3,
  .hero-diff,
  .hero-diff--1,
  .hero-diff--2,
  .hero-diff--3 {
    transform: none !important;
  }
}

/* hero stat animation delays + slash draw binding */
.hero-stat--1 { --stat-delay: 0.4s; }
.hero-stat--2 { --stat-delay: 0.6s; }
.hero-stat--3 { --stat-delay: 0.8s; }
.home-hero__slash path {
    animation: slash-draw 1.6s var(--ease) 0.3s forwards;
}

/* ==========================================================================
   Contact form
   ========================================================================== */
/* Two-card layout, kontakt parity with cyberalterity.pl (2026-07-23):
   fixed 360px info column so the aside never balloons, both columns carded,
   info column sticky on desktop so contact details track the long form. */
.contact-grid { display: grid; gap: var(--space-12); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 360px 1fr; gap: var(--space-16, var(--space-12)); } }
/* Mobile: min-width:0 so no intrinsic control width (long <option>) inflates
   the single grid track past the viewport — same guard as the reference. */
@media (max-width: 959px) {
  .contact-info, .contact-form-wrap { min-width: 0; }
  .contact-form .field input, .contact-form .field select, .contact-form .field textarea { min-width: 0; max-width: 100%; }
}
.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
@media (max-width: 959px) { .contact-info { position: static; } }
.contact-info__title { font-size: var(--text-xl); margin: 0 0 var(--space-6); }
.contact-info__block { margin-bottom: var(--space-5); }
.contact-info__block:last-child { margin-bottom: 0; }
.contact-info__label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); font-weight: 700; margin: 0 0 var(--space-2); }
.contact-info__value { font-size: var(--text-base); color: var(--foreground); margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.contact-info__value a { color: var(--primary); font-weight: 600; text-decoration: none; }
.contact-info__value a:hover, .contact-info__value a:focus-visible { text-decoration: underline; }
.contact-info__address { font-style: normal; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.6; }
.contact-info__nip { display: inline-block; margin-top: var(--space-2); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted-foreground); }
.contact-info__sla { font-size: var(--text-sm); color: var(--text-secondary); }
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.contact-form { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-form__row { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 560px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label { font-size: var(--text-sm); font-weight: 600; color: var(--foreground); }
.field input, .field select, .field textarea {
  width: 100%; box-sizing: border-box; padding: 0.7em 0.9em; font: inherit; color: var(--foreground);
  background: var(--card); border: 1px solid var(--border-input); border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field textarea { resize: vertical; min-height: 120px; }
.field--check { flex-direction: row; align-items: flex-start; gap: var(--space-3); font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.5; }
.field--check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__title { font-size: var(--text-2xl); margin: 0; }
.contact-form__required { margin: calc(-1 * var(--space-2)) 0 0; font-size: var(--text-xs); color: var(--muted-foreground); }
.contact-form__rodo-note { margin: calc(-1 * var(--space-2)) 0 0; font-size: var(--text-xs); color: var(--muted-foreground); line-height: 1.5; }
.contact-form__rodo-note a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.contact-form__actions { margin-top: var(--space-2); }
/* Phones: the submit spans the full column like every input above it. */
@media (max-width: 560px) {
  .contact-form__actions .btn { width: 100%; justify-content: center; }
}
.contact-form__status { margin: var(--space-3) 0 0; font-size: var(--text-sm); min-height: 1.4em; }
.contact-form__status--ok  { color: var(--success); font-weight: 600; }
/* Darker red than --destructive (#E25555 ≈ 3.9:1) to clear WCAG AA on the card. */
.contact-form__status--err { color: #C0392B; font-weight: 600; }
@media (prefers-color-scheme: dark) { .contact-form__status--err { color: #F87171; } }
:root[data-theme="light"] .contact-form__status--err { color: #C0392B; }
:root[data-theme="dark"]  .contact-form__status--err { color: #F87171; }

/* ==========================================================================
   Interior rich hero (hero-rich.php) — reuses the home-hero shell (mesh /
   slash / grid-texture / stat cards) at a shorter interior height. Collapses
   to a centered single column when a page supplies no stat visual.
   ========================================================================== */
/* Interior-hero typography — the long service-page H1 at home-hero size wrapped
   to ~6 lines and the accent stat card hung in a void beneath the copy.
   Interior-sized H1 + subtitle keep the copy column balanced against the card
   stack. Scoped to .hero-rich — the homepage (.home-hero without .hero-rich)
   and mobile (<960px) are untouched.

   HERO-HEIGHT PARITY (2026-07-21) — this block previously also carried
   `min-height: min(64vh, 560px)`, capping every interior hero at 560px while
   the landing page sat at `min(100dvh, 100dvh - header)` (827px @900vh). That
   produced three hero tiers across the site (827 / 560 / 0) where the
   cyberalterity reference has exactly one. The cap was introduced to keep the
   hero AND the following product strip in one screen — a goal that is
   intrinsically incompatible with matching the landing page, since the base
   rule IS one screen by definition. Operator decision: parity with the landing
   page wins; the next section now starts below the fold on interior pages,
   exactly as it does on the landing page and on cyberalterity. The interior H1
   / subtitle sizing below is retained — it solved the 6-line wrap, which is a
   separate concern from hero height. */
@media (min-width: 960px) {
  body .home-hero.hero-rich { padding-block: clamp(1.25rem, 3.5vh, 3rem); }
  body .home-hero.hero-rich .home-hero__title {
    font-size: clamp(2.25rem, min(4.4vw, 5.2vh), 3.6rem);
    line-height: 1.12;
    margin-bottom: 0.9rem;
  }
  body .home-hero.hero-rich .home-hero__subtitle {
    font-size: clamp(0.9rem, min(1.4vw, 1.85vh), 1.1rem);
    margin-bottom: 1.15rem;
  }
  /* Visual-column geometry is deliberately NOT overridden here. With the hero
     height cap removed above, .hero-rich inherits the base `.home-hero__visual`
     reserve (480px) and the base 0/180/350 stat cascade, so an interior hero is
     geometrically identical to the landing page's — which is the parity the
     reference build has and this one lacked. Re-introducing a tighter cascade
     here would re-open the mismatch it was written to solve. */
}
/* Text-only interior heroes (kontakt, blog, hub, product pages w/o stats) have
   no card collage, so the 620px reserve above left ~250-500px of empty band on
   each side (align-items:center split the surplus). Size to content instead. */
.home-hero.hero-rich--text-only { min-height: 0; padding-block: clamp(3rem, 9vh, 6rem); }
.home-hero.hero-rich--text-only .home-hero__inner { grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .home-hero.hero-rich--text-only .home-hero__inner {
    grid-template-columns: 1fr; max-width: 900px; margin-inline: auto; text-align: center;
  }
  .home-hero.hero-rich--text-only .home-hero__content { align-items: center; }
  .home-hero.hero-rich--text-only .home-hero__ctas { justify-content: center; }
  /* the global p max-width left-anchored the subtitle off the centered axis */
  .home-hero.hero-rich--text-only .home-hero__subtitle { margin-inline: auto; text-align: center; }
}

/* ==========================================================================
   Flexible page sections (render-sections.php): stat band, cards, list,
   testimonials. Verbatim client copy presented as designed components.
   ========================================================================== */

/* Stat band ---------------------------------------------------------------- */
.stat-band__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  text-align: center;
}
@media (min-width: 640px) { .stat-band__grid { grid-template-columns: repeat(3, 1fr); } }
.stat-band__item { display: flex; flex-direction: column; gap: var(--space-1); }
.stat-band__value {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
  color: var(--primary);
}
.stat-band__label { color: var(--text-secondary); font-size: var(--text-base); line-height: 1.4; }

/* Card grid ---------------------------------------------------------------- */
/* True grid (not flex): every card in every row gets the SAME width — a
   partial last row can no longer balloon wider than the rows above it. */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: var(--space-6);
}
/* Count-aware balanced rows (audit A2) — the renderer picks the variant from
   the item count so a row is never left with one card and three empty cells. */
@media (min-width: 1000px) {
  .cards-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 600px) and (max-width: 999.98px) {
  .cards-grid--cols-2, .cards-grid--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Odd count at the 2-col tier: the last card goes full-width, no half row. */
  :is(.cards-grid--cols-2, .cards-grid--cols-3) > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* A lone card sits centered at a readable width, not stretched or cornered. */
.cards-grid--single { grid-template-columns: min(100%, 26rem); justify-content: center; }
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-3);
  overflow: hidden;
  /* Smooth the hover lift/border/shadow so blog cards glide like the pillars
     instead of snapping (the transform on a.card--link:hover had nothing to
     animate against). */
  transition: transform var(--dur) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(var(--accent), var(--primary));
  opacity: 0; transition: opacity var(--dur-fast) var(--ease);
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-elevated); }
.card:hover::before { opacity: 1; }
.card__title { font-size: var(--text-xl); font-weight: 700; color: var(--text-primary); margin: 0; line-height: 1.25; }
.card__desc { color: var(--text-secondary); font-size: var(--text-base); line-height: 1.6; margin: 0; }
a.card--link { text-decoration: none; color: inherit; cursor: pointer; }
a.card--link:hover { transform: translateY(-4px); }
.card--link .card__cue { margin-top: auto; padding-top: var(--space-3); color: var(--primary); font-weight: 600; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.04em; }
.card--link:hover .card__cue { text-decoration: underline; }
/* Icon-led card (content-matched icon, mirrors cyberalterity's cards) */
.card__icon {
  width: 52px; height: 52px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--primary-soft);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  transition: transform var(--dur-fast) var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card--icon:hover .card__icon { transform: translateY(-2px); }
/* Centered section header (full-width card sections, matches cyber) */
.section__header--center { max-width: 44rem; margin-inline: auto; text-align: center; }

/* Asymmetric split section + highlighted callout (design parity with cyber) */
.section-split { display: grid; gap: var(--space-8); }
@media (min-width: 900px) {
  .section-split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(var(--space-8), 5vw, var(--space-16));
    /* Center the shorter column: residual height difference reads as
       composition, not as a hole (audit A1 hardening). */
    align-items: center;
  }
}
.section-split__aside .section__header { margin-bottom: 0; }
.callout {
  margin: var(--space-6) 0 var(--space-6);
  padding: var(--space-5) var(--space-6);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--primary-soft); /* fallback for browsers without color-mix */
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text-primary);
  font-size: var(--text-lg);
  line-height: 1.6;
}

/* Feature list (checklist) ------------------------------------------------- */
/* ==========================================================================
   Comparison table (section type `table`)
   Restores a content class the migration had nowhere to put — see the `table`
   case in render-sections.php. Sized so a 5-column plan matrix stays readable
   on a phone by scrolling ITSELF rather than the page.
   ========================================================================== */
/* Overflow is scoped to the widths that actually need it. `overflow-x: auto`
   forces overflow-y to compute to `auto` as well, which makes this element a
   scroll container — and a sticky <thead> inside it then sticks to a box that
   never scrolls vertically, i.e. not at all. Measured: with the last of 17 rows
   in view the header sat at -213px, leaving four unlabelled columns of ticks.
   Above 900px the table fits, so no scroll container is created and the header
   sticks to the PAGE as intended. */
.cmp-table-scroll {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}
@media (max-width: 899px) {
  .cmp-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Horizontal scroll is the live axis here, so pin the feature column: without
     it the visitor scrolls the plan columns and loses what each row is about. */
  .cmp-table tbody th,
  .cmp-table thead th:first-child {
    position: sticky; left: 0; z-index: 2;
    background: var(--bg-elevated);
    box-shadow: 1px 0 0 var(--border);
  }
  .cmp-table thead th:first-child { z-index: 3; }
}
/* The scroll container is focusable for keyboard users; give it a visible ring
   rather than relying on the UA default over a rounded surface. */
.cmp-table-scroll:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.cmp-table th,
.cmp-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
  /* Contain the cells' visually-hidden Tak/Nie spans. .screen-reader-text is
     `position: absolute`, so in an unpositioned cell its containing block
     resolves OUTSIDE the horizontal scroll wrapper — the 1x1 spans then escape
     the wrapper's clipping and extend the document. Measured on a 390px
     viewport: 118px of page-level horizontal scroll, which shifts the whole
     site, not just the table. */
  position: relative;
}
.cmp-table thead th {
  font-family: var(--font-display);
  font-size: var(--text-sm); font-weight: 700; line-height: 1.3;
  color: var(--text-primary);
  background: var(--bg-inset);
  /* Offset by the sticky site header, or the plan names hide behind it. The
     small addend absorbs the known drift between --header-h (73px) and the
     header's real rendered height (75px), which otherwise clips the row by 2px. */
  position: sticky; top: calc(var(--header-h) + var(--space-2)); z-index: 1;
}
/* Feature column: left-aligned, carries the row's accessible name. */
.cmp-table tbody th,
.cmp-table__rowhead {
  text-align: left; font-weight: 600; color: var(--text-primary);
  min-width: 15rem;
}
.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody tr:hover th,
.cmp-table tbody tr:hover td { background: color-mix(in oklab, var(--primary) 4%, transparent); }
.cmp-table__mark { font-size: 1.15rem; line-height: 1; color: var(--primary); font-weight: 700; }
/* "Not included" reads as absence through the glyph and weight, NOT through
   dimming. It previously carried opacity .55, which measured 3.54:1 on the dark
   surface — under the 4.5:1 its 18.4px/400 size requires. An aria-hidden mark
   with a screen-reader alternative is still read visually by a low-vision user,
   so the alternative does not exempt it. At full token colour it measures
   8.41:1 dark and stays clearly subordinate to the accent-coloured tick. */
.cmp-table__mark--no { color: var(--text-secondary); font-weight: 400; }
@media (max-width: 640px) {
  .cmp-table th, .cmp-table td { padding: var(--space-2) var(--space-3); }
  .cmp-table tbody th, .cmp-table__rowhead { min-width: 11rem; }
}

/* Paginated blog pages (2+). The hero is an entry-page device; these get a
   compact header that still carries an H1 so the page is never headless. */
.blog-page-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.15;
  color: var(--text-primary); margin: var(--space-2) 0 var(--space-3);
}
.blog-page-head__back { margin: 0; font-size: var(--text-sm); }
.blog-page-head__back a { color: var(--text-secondary); text-decoration: none; }
.blog-page-head__back a:hover { color: var(--primary); text-decoration: underline; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 720px) { .feature-list { grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-8); } }
.feature-list__item {
  position: relative; padding-left: var(--space-8);
  color: var(--text-secondary); font-size: var(--text-base); line-height: 1.55;
}
.feature-list__item::before {
  content: "\\"; position: absolute; left: 0; top: -0.05em;
  color: var(--accent); font-weight: 800; font-size: 1.15em;
}

/* Testimonials ------------------------------------------------------------- */
.testimonials {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  /* quotes vary hugely in length — cards hug their content instead of the
     shortest stretching to the longest with a void inside */
  align-items: start;
}
.testimonial {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.testimonial__quote {
  margin: 0; color: var(--text-secondary); font-size: var(--text-base); line-height: 1.65;
}
/* Decorative opening quotation mark above the quote (was a stray backslash). */
.testimonial__quote::before {
  content: "\201C"; display: block;
  font-family: Georgia, 'Times New Roman', serif; font-weight: 700;
  font-size: 2.4rem; line-height: 0; height: 1.2rem; margin-bottom: var(--space-3);
  color: var(--accent); user-select: none;
}
.testimonial__cite { display: flex; flex-direction: column; gap: 2px; font-style: normal; margin-top: auto; }
.testimonial__author { font-weight: 700; color: var(--text-primary); }
.testimonial__role { font-size: var(--text-sm); color: var(--muted-foreground); }

/* ==========================================================================
   Site footer layout (footer.php). tokens.css carries only the shell; the
   column grid, sitemap, contact and legal strip are styled here.
   ========================================================================== */
/* Single-row 5-cell grid at desktop (brand · 3 sitemap mini-columns · kontakt)
   — the compact enterprise layout. Tablet: brand + kontakt on top, sitemap
   full-width below. Mobile: brand stacked, then the sitemap as a 2-up grid. */
.site-footer__columns {
  display: grid;
  gap: var(--space-8) var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) and (max-width: 999px) {
  .site-footer__columns {
    grid-template-columns: 1.4fr 1fr;
    grid-template-areas:
      "brand   contact"
      "sitemap sitemap";
    align-items: start;
  }
  .site-footer__col--brand   { grid-area: brand; }
  .site-footer__col--contact { grid-area: contact; }
  .site-footer__sitemap-nav  { grid-area: sitemap; }
}
@media (min-width: 1000px) {
  .site-footer__columns {
    grid-template-columns: 2.2fr 3.2fr 1.2fr;
    column-gap: var(--space-12);
    align-items: start;
  }
}

.site-footer__desc  { margin: var(--space-2) 0 var(--space-3); max-width: 42ch; line-height: 1.55; }
.site-footer__legal { color: var(--muted-foreground); }

.site-footer__social {
  list-style: none; margin: var(--space-4) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
}
.site-footer__social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--muted-foreground); text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  border-color: var(--primary); color: var(--primary);
  background: color-mix(in oklab, var(--primary) 8%, transparent);
}
.site-footer__social-icon { width: 20px; height: 20px; display: block; }

.site-footer__sitemap-nav {
  display: grid; gap: var(--space-6) var(--space-6);
  /* Mobile: 2-up link columns (Microsoft/Stripe pattern) — halves footer height. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 600px) {
  .site-footer__sitemap-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-8); }
}
/* Mobile (<600px): pair the four columns 2-up so KONTAKT fills the empty cell
   beside FIRMA instead of dropping to a full-width row below — no wasted gap,
   a shorter footer, and a balanced 2×2 that mirrors the top row. The sitemap
   <nav> flattens into this grid via display:contents, so its three link groups
   plus the contact block share one 2-col grid:
     brand    brand       (full width)
     Usługi   Produkty
     Firma    Kontakt
   Placed AFTER the base .site-footer__sitemap-nav rules so this display:contents
   wins on source order (equal specificity). */
@media (max-width: 599px) {
  .site-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-6);
    row-gap: var(--space-8);
    align-items: start;
  }
  .site-footer__col--brand  { grid-column: 1 / -1; }
  .site-footer__sitemap-nav { display: contents; }
}
.site-footer__col-heading {
  font-size: var(--text-sm); font-weight: 700; line-height: 1.3;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--foreground); margin: 0 0 var(--space-3);
}
.site-footer__sitemap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer__sitemap-list a { display: inline-block; }

.site-footer__contact-row { display: flex; flex-direction: column; gap: 2px; margin: 0 0 var(--space-3); font-size: var(--text-sm); }
.site-footer__contact-label {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600; color: var(--muted-foreground);
}
.site-footer__contact-value { color: var(--foreground); }
a.site-footer__contact-value { color: var(--primary); font-weight: 600; }

.site-footer__strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  margin-top: var(--space-8); padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  /* 12px legal row — the enterprise convention; keeps the strip one quiet line. */
  font-size: var(--text-xs);
}
@media (max-width: 899px) {
  /* No bottom clearance (cyberalterity parity — the page ends at the strip).
     The chat bubble docks bottom-right, so the last rows just stay out of its
     horizontal lane: credit + copyright cap their width and wrap, and the
     short cookie link takes the final row beside the bubble. */
  .site-footer__copy--credit { flex-basis: 100%; max-width: calc(100% - 180px); }
  .site-footer__copy:not(.site-footer__copy--credit) { max-width: calc(100% - 180px); }
  /* Pin the cookie link to its own left-aligned final row — the bubble's
     transparent iframe swallows taps on anything under its bottom-right box.
     flex-basis:100% forces the line break; max-width then shrinks the box
     back so it stays out of the bubble's lane. */
  .site-footer__cookie-link { flex-basis: 100%; max-width: 170px; margin-right: auto; }
}
@media (min-width: 900px) {
  /* Desktop: the strip stays one row; reserve the right edge so the bubble
     never covers the cookie-settings link. */
  .site-footer__strip { padding-right: 140px; }
}
.site-footer__strip-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
}
.site-footer__copy { color: var(--muted-foreground); }
.site-footer__copy--credit { color: var(--muted-foreground); }
.site-footer__credit-link { font-weight: 600; }
.site-footer__cookie-link {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--muted-foreground);
  /* matches the sibling legal links: plain at rest, underline on hover */
  text-decoration: none;
}
.site-footer__cookie-link:hover,
.site-footer__strip-nav a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* Mobile: the cyberalterity rhythm — 14px text at a ~36px row pitch (32px
   tap boxes + 4px gap, above WCAG 2.5.8 AA's 24px), tighter block gaps. */
@media (max-width: 767px) {
  .site-footer { padding-top: var(--space-8); }
  .site-footer__columns { gap: var(--space-6) var(--space-6); }
  .site-footer__sitemap-list { gap: var(--space-1); }
  .site-footer__strip { margin-top: var(--space-6); }
  .site-footer__sitemap-list a,
  a.site-footer__contact-value,
  .site-footer__strip-nav a,
  .site-footer__cookie-link {
    display: inline-flex; align-items: center; min-height: 32px;
  }
}

/* ==========================================================================
   Blog — single post meta + post cards (home.php / single.php)
   ========================================================================== */
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  font-size: var(--text-sm); color: var(--muted-foreground);
  margin: 0 0 var(--space-8); padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}
.post-meta > * + *::before { content: "·"; margin-right: var(--space-3); color: var(--muted-foreground); }
.post-meta__cat { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.post-back { margin-top: var(--space-10); }
/* Cap the long-form reading measure (~body text) to ~var(--container-text) so
   post copy doesn't run to 110+ characters; the featured image stays wider. */
.post-article .entry-content,
.post-article .post-meta,
.post-article .post-back { max-width: var(--container-text); margin-inline: auto; }
.entry-content > :first-child { margin-top: 0; }
/* Post cards (blog archive) reuse .card--link with a category eyebrow + date */
.card--post { }
.card__eyebrow { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); }
.card--post .card__title { font-size: var(--text-xl); line-height: 1.25; }
/* Uniform archive cards: excerpts clamp to 3 lines, meta+cue pin to the card
   bottom, so mixed excerpt lengths can't create ragged interior whitespace. */
.card--post .card__desc {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { font-size: var(--text-sm); color: var(--muted-foreground); }
.card--post .card__meta { margin-top: auto; }
.card--post .card__cue { margin-top: var(--space-2); }
.section__actions--center { text-align: center; }
/* Blog featured images — full-bleed top of post cards + single-post banner */
.card--post .card__media {
  display: block; margin: calc(-1 * var(--space-8)) calc(-1 * var(--space-8)) var(--space-5);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-elevated);
}
.card--post .card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Posts without a featured image get a branded tile, not a blank slot. */
.card__media--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #0C0D47 90%);
}
.card__media-mark { font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; }
/* Blog teaser grid (homepage "Najnowsze artykuły") — three UNIFORM cards, each
   a full 16:9 image on top. Replaces the old featured+2-compact editorial
   layout whose narrow side thumbnails (aspect ~0.55) cropped the landscape
   article banners — which carry baked-in captions — into unreadable vertical
   slivers. Symmetrical, robust to any image: the industry-standard premium
   teaser (every image renders whole). One card per row on phones, two on
   tablets, three on desktop. */
.cards-grid--posts { grid-template-columns: 1fr; }
@media (min-width: 680px)  { .cards-grid--posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards-grid--posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Uniform interiors: 2-line title + 2-line excerpt so mixed lengths keep equal
   card heights; the date pins to the bottom edge (base .card--post rule). The
   per-card read-more cue is dropped — the whole card is the link and the
   section closes with one "Zobacz więcej artykułów" button. */
.cards-grid--posts .card__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cards-grid--posts .card__desc { -webkit-line-clamp: 2; }
.cards-grid--posts .card__cue { display: none; }
.post-featured { margin: 0 0 var(--space-8); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-elevated); }
.post-featured img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   Article reading experience (single.php) — progress bar, sticky TOC with
   scroll-spy, richer prose, subtle per-block scroll reveal.
   ========================================================================== */
.post-meta__read { color: var(--muted-foreground); }

/* Thin gradient progress line at the very top edge (above the sticky header);
   width is set by animations.js. Suppressed for reduced-motion. */
.reading-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px;
  z-index: calc(var(--z-sticky) + 1); pointer-events: none; background: transparent;
}
.reading-progress__bar {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 0 2px 2px 0;
}
@media (prefers-reduced-motion: reduce) { .reading-progress { display: none; } }

/* Layout: prose column + (desktop) a sticky TOC rail in the left gutter;
   below 1080px the TOC collapses to a card above the article. */
.post-header, .post-body { max-width: var(--container-text); margin-inline: auto; }
/* Two-column reading layout only for section-rich posts (.post-shell--toc);
   short posts keep the centred single column above. */
@media (min-width: 1080px) {
  .post-shell--toc {
    display: grid; grid-template-columns: 232px minmax(0, var(--container-text));
    column-gap: var(--space-12); justify-content: center; align-items: start;
  }
  .post-shell--toc .post-header { grid-column: 2; grid-row: 1; margin-inline: 0; }
  .post-shell--toc .post-body   { grid-column: 2; grid-row: 2; margin-inline: 0; }
  .post-shell--toc .post-toc {
    grid-column: 1; grid-row: 1 / -1; align-self: start;
    position: sticky; top: calc(var(--header-h) + var(--space-6));
    max-height: calc(100dvh - var(--header-h) - var(--space-10)); overflow-y: auto;
  }
}
.post-toc__title {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted-foreground); margin: 0 0 var(--space-3);
}
.post-toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.post-toc__item a {
  display: block; padding: var(--space-1) var(--space-3);
  border-left: 2px solid var(--border); margin-left: -2px;
  color: var(--muted-foreground); text-decoration: none;
  font-size: var(--text-sm); line-height: 1.4;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.post-toc__item--h3 a { padding-left: var(--space-6); font-size: var(--text-xs); }
.post-toc__item a:hover { color: var(--foreground); }
.post-toc__item a.is-active { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
@media (max-width: 1079px) {
  .post-toc {
    max-width: var(--container-text); margin: 0 auto var(--space-8);
    padding: var(--space-5) var(--space-6);
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  }
}

/* Prose polish — a magazine lead paragraph + a real pull-quote so the text
   isn't a flat wall. */
.entry-content > p:first-of-type { font-size: var(--text-lg); line-height: 1.7; color: var(--text-secondary); }
.entry-content blockquote {
  margin: var(--space-8) 0; padding: var(--space-2) 0 var(--space-2) var(--space-6);
  border-left: 3px solid var(--accent);
  font-size: var(--text-xl); line-height: 1.5; color: var(--text-primary);
}
.entry-content blockquote p { margin: 0; }

/* Per-block reveal — each block fades up as it scrolls in (pure CSS, scroll-
   scrubbed). Visible by default → unsupported browsers + reduced-motion show
   static content. */
.entry-content > * { opacity: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .entry-content > * {
      animation: fade-up var(--dur-slow) var(--ease) both;
      animation-timeline: view();
      animation-range: entry 0% entry 28%;
    }
  }
}

/* ==========================================================================
   Rich-content toolkit (inc/blocks.php) — callouts, key-takeaways, steps,
   comparison table, FAQ, stat highlight, chart. Editor-inserted via patterns/
   block styles; styled here. Dark-mode-aware, no JS beyond the shared countup.
   ========================================================================== */

/* Callouts — a tinted box with a colored rail + icon (icon from CSS mask so it
   appears whether the style is applied via pattern or the block-style toggle). */
.entry-content .wp-block-group[class*="is-style-callout-"] {
  position: relative; margin: var(--space-8) 0;
  padding: var(--space-5) var(--space-6) var(--space-5) calc(var(--space-6) + 34px);
  background: var(--cbg); border: 1px solid color-mix(in oklab, var(--cc) 26%, var(--border));
  border-left: 3px solid var(--cc); border-radius: var(--radius-lg);
}
.entry-content .wp-block-group[class*="is-style-callout-"] > :first-child { margin-top: 0; }
.entry-content .wp-block-group[class*="is-style-callout-"] > :last-child { margin-bottom: 0; }
.entry-content .wp-block-group[class*="is-style-callout-"]::before {
  content: ""; position: absolute; left: var(--space-6); top: calc(var(--space-5) + 3px);
  width: 22px; height: 22px; background: var(--cc);
  -webkit-mask: var(--ci) center / contain no-repeat; mask: var(--ci) center / contain no-repeat;
}
.is-style-callout-tip       { --cc: var(--accent);  --cbg: color-mix(in oklab, var(--accent) 8%, var(--card));  --ci: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74C19 5.14 15.86 2 12 2z"/></svg>'); }
.is-style-callout-note      { --cc: var(--primary); --cbg: color-mix(in oklab, var(--primary) 7%, var(--card)); --ci: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2a10 10 0 100 20 10 10 0 000-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>'); }
.is-style-callout-important { --cc: #7c3aed; --cbg: color-mix(in oklab, #7c3aed 8%, var(--card)); --ci: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2l2.9 6.26L22 9.27l-5 4.87L18.18 21 12 17.77 5.82 21 7 14.14l-5-4.87 7.1-1.01z"/></svg>'); }
.is-style-callout-warning   { --cc: #d97706; --cbg: color-mix(in oklab, #d97706 9%, var(--card)); --ci: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>'); }

/* Key takeaways — a summary card with checkmarked points. */
.entry-content .wp-block-group.is-style-key-takeaways {
  margin: var(--space-8) 0; padding: var(--space-6) var(--space-8);
  background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.is-style-key-takeaways > :first-child { margin-top: 0; }
.entry-content .is-style-key-takeaways :is(h2, h3) { margin: 0 0 var(--space-3); font-size: var(--text-lg); line-height: 1.3; }
.is-style-key-takeaways ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.is-style-key-takeaways li { position: relative; padding-left: var(--space-6); margin: 0; }
.is-style-key-takeaways li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

/* Numbered steps — a numbered-badge list. */
.entry-content ol.is-style-steps { list-style: none; counter-reset: step; margin: var(--space-6) 0; padding: 0; display: grid; gap: var(--space-4); }
.entry-content ol.is-style-steps > li { position: relative; counter-increment: step; padding-left: calc(var(--space-10) + 4px); margin: 0; min-height: 34px; padding-top: 5px; }
.entry-content ol.is-style-steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; border-radius: 50%; font-weight: 700; font-size: var(--text-sm);
}

/* Comparison table — premium, scrollable on narrow screens. */
.entry-content .wp-block-table.is-style-comparison { margin: var(--space-8) 0; overflow-x: auto; }
.is-style-comparison table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.is-style-comparison th, .is-style-comparison td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--border); }
.is-style-comparison thead th { background: var(--bg-inset); font-weight: 700; color: var(--text-primary); border-bottom: 2px solid var(--border); }
.is-style-comparison td:first-child { font-weight: 600; color: var(--text-primary); }
.is-style-comparison tbody tr:hover { background: color-mix(in oklab, var(--accent) 5%, transparent); }

/* FAQ — native <details> accordion. */
.entry-content .wp-block-details {
  margin: var(--space-3) 0; padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card);
}
.entry-content .wp-block-details > summary {
  cursor: pointer; font-weight: 600; color: var(--text-primary); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
}
.entry-content .wp-block-details > summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details > summary::after { content: "+"; font-size: 1.4em; line-height: 1; color: var(--accent); }
.entry-content .wp-block-details[open] > summary::after { content: "\2212"; }
.entry-content .wp-block-details > *:not(summary) { margin-top: var(--space-3); margin-bottom: 0; }

/* Framed screenshot + captions (ready for client-supplied screenshots). */
.entry-content .wp-block-image.is-style-framed img { border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.entry-content figcaption { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--muted-foreground); text-align: center; }

/* Stat highlight — big animated number (reuses the shared countup JS). */
.entry-content .alt-stat { margin: var(--space-8) 0; text-align: center; }
.alt-stat__num { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; color: var(--primary); line-height: 1; }
.alt-stat__unit { font-size: 0.5em; font-weight: 800; color: var(--accent); margin-left: 2px; }
.alt-stat__label { margin: var(--space-2) auto 0; max-width: 40ch; color: var(--text-secondary); }

/* Chart — dependency-free HTML/CSS horizontal bars ([alt_chart] shortcode). */
.entry-content .alt-chart { margin: var(--space-8) 0; }
.alt-chart__title { font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-4); }
.alt-chart__rows { display: grid; gap: var(--space-3); }
.alt-chart__row { display: grid; grid-template-columns: minmax(72px, 26%) 1fr auto; align-items: center; gap: var(--space-3); }
.alt-chart__label { font-size: var(--text-sm); color: var(--text-secondary); }
.alt-chart__track { height: 12px; background: var(--bg-inset); border-radius: 999px; overflow: hidden; }
.alt-chart__fill { display: block; height: 100%; width: var(--val); background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 999px; }
.alt-chart__value { font-size: var(--text-sm); font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .alt-chart__fill { animation: alt-bar-grow var(--dur-slow) var(--ease) both; animation-timeline: view(); animation-range: entry 12% cover 26%; }
  }
}
@keyframes alt-bar-grow { from { width: 0; } to { width: var(--val); } }

/* Team / people cards (render-sections `team` type) — an initials monogram
   instead of a topical Fluent icon, with name and role on distinct lines.
   Flex (not grid) so a lone person or 2–3 partners always centre cleanly. */
.cards-grid--team { display: flex; flex-wrap: wrap; justify-content: center; }
.cards-grid--team .card { flex: 0 1 480px; max-width: 560px; }
.card--person { text-align: center; }
/* Long biographies read left-aligned; the identity block stays centered. */
.card--person .card__desc--bio { text-align: left; }
.card__avatar {
  width: 112px; height: 112px; margin: 0 auto var(--space-4);
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--primary-soft); box-shadow: var(--shadow-elevated);
}
.card__monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: 0 auto var(--space-4);
  border-radius: 50%; background: var(--primary-soft); color: var(--primary);
  font-size: var(--text-xl); font-weight: 700; letter-spacing: 0.02em;
}
.card--person .card__title { margin-bottom: 2px; }
.card__role {
  font-size: var(--text-sm); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--primary); margin: 0 0 var(--space-3);
}
.card--person .card__desc { color: var(--muted-foreground); }

/* ==========================================================================
   Process / methodology — numbered steps with connectors (homepage)
   ========================================================================== */
.process {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .process { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
}
.process__step { position: relative; text-align: center; }
/* connector line between adjacent step badges (desktop only) */
@media (min-width: 760px) {
  .process__step::after {
    content: ""; position: absolute; top: 27px; left: calc(50% + 34px); width: calc(100% - 68px);
    height: 2px; background: linear-gradient(90deg, var(--accent), var(--primary)); opacity: 0.35;
  }
  .process__step:last-child::after { display: none; }
}
.process__num {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-elevated); color: var(--primary);
  border: 2px solid var(--primary);
  font-size: var(--text-2xl); font-weight: 800;
  margin-bottom: var(--space-5);
}
.process__title { font-size: var(--text-lg); font-weight: 700; color: var(--text-primary); margin: 0 0 var(--space-2); }
.process__desc  { color: var(--text-secondary); font-size: var(--text-base); line-height: 1.55; margin: 0; max-width: 22ch; margin-inline: auto; }
/* On the navy band the timeline inverts: accent-filled number badges, a
   lighter connector, white text. */
.section--navy .process__num {
  background: var(--accent); color: #0C0D47; border-color: var(--accent);
}
.section--navy .process__step::after {
  background: rgba(255, 255, 255, 0.3); opacity: 1;
}
.section--navy .process__title { color: #fff; }
.section--navy .process__desc  { color: rgba(255, 255, 255, 0.72); }

/* ==========================================================================
   Client logo strip ("Zaufali nam") — logos on light tiles so mixed source
   formats stay legible in both themes.
   ========================================================================== */
.logos {
  list-style: none; margin: 0; padding: 0;
  /* Explicit column counts so the 14-logo wall wraps evenly (7+7 on desktop,
     like cyberalterity) instead of an 8+6 orphan row. */
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 600px)  { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(7, 1fr); } }
/* Count-aware walls for section-rendered strips (audit A2): 8 → 4+4, 9–10 → 5s. */
@media (min-width: 1000px) {
  .logos--cols-4 { grid-template-columns: repeat(4, 1fr); }
  .logos--cols-5 { grid-template-columns: repeat(5, 1fr); }
}
.logos__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4); min-height: 120px;
  background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border-subtle);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.logos__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); }
/* Few logos (section-rendered strips): center the row instead of leaving
   orphan cells in the fixed grid — a single logo must sit centered. */
.logos.logos--center {
  display: flex; flex-wrap: wrap; justify-content: center;
}
.logos.logos--center .logos__item { width: min(100%, 13rem); }
/* A single testimonial reads as a centered pull-quote, not a full-width slab.
   Unbalanced sets (one quote >2× the shortest) stack the same way (audit A4). */
.testimonials--single,
.testimonials--stacked { grid-template-columns: 1fr; max-width: 44rem; margin-inline: auto; }
.logos__img { max-width: 100%; max-height: 48px; width: auto; height: auto; object-fit: contain; }
/* Brand-name caption under each logo (matches cyberalterity's "Zaufali nam" wall).
   Always on the white tile, so it keeps a fixed dark-grey in light AND dark mode. */
.logos__caption {
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: #6b7280;
  text-align: center; line-height: 1.3; margin: 0;
  max-width: 100%; overflow-wrap: anywhere;
}

/* Technology partner sub-block — the partner logo sits DIRECTLY on the section
   background (no white tile), a hairline separator above, small uppercase
   label, the brand logo at full colour, then the role line. */
.partners {
  margin-top: var(--space-12); padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle); text-align: center;
}
.partners__label {
  font-size: var(--text-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--muted-foreground); margin: 0 0 var(--space-5);
  max-width: none;
}
.partner-logo {
  display: block; margin: 0 auto var(--space-4);
  max-height: 40px; max-width: 220px; width: auto; height: auto;
}
.partners__role {
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.04em;
  color: var(--muted-foreground); margin: 0 auto;
  max-width: none;
}
/* Dark mode: Corporizer ships a white variant for legibility on the dark bg. */
:root[data-theme="dark"] .partner-logo { content: url('../images/clients/corporizer-dark.webp'); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .partner-logo { content: url('../images/clients/corporizer-dark.webp'); }
}

/* ==========================================================================
   Sectors / branże — designed brand tiles (industries served)
   ========================================================================== */
.sectors-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
}
@media (max-width: 900px) { .sectors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sectors-grid { grid-template-columns: 1fr; } }
/* Fit-in-one-screen variant — six uniform 3×2 tiles. The former 2×2 bento lead
   forced a 3rd row, pushing the section ~170px past the fold on a laptop; a
   clean 3×2 grid keeps heading + tiles + padding within one screen (768–1080
   tall) while the row height stays capped on large monitors. */
@media (min-width: 901px) {
  .sectors-grid--mosaic { grid-auto-rows: clamp(190px, 26vh, 240px); }
  .sectors-grid--mosaic .sector-tile { min-height: 0; height: 100%; }
}
/* Industries is the one full-viewport-fit beat: trim its vertical padding +
   header gap so the tile grid clears the fold on laptops. */
.section--sectors { padding-block: clamp(2.5rem, 6vh, 4rem); }
.section--sectors .section__header { margin-bottom: var(--space-6); }
.sector-tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 210px; padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, #0C0D47 92%);
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* Photographic cover image (WebP) behind the content */
.sector-tile__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  transition: transform 600ms var(--ease);
}
/* Brand-gradient overlay over the photo — legibility + palette cohesion */
.sector-tile--image::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Light veil on top, strong band only at the bottom: the photo stays vivid
     while the name keeps its contrast floor. */
  background: linear-gradient(180deg, rgba(12, 13, 71, 0.05) 0%, rgba(12, 13, 71, 0.16) 55%, rgba(12, 13, 71, 0.88) 100%);
}
/* Signature "\" slash motif — only on the plain (no-photo) tiles */
.sector-tile:not(.sector-tile--image)::before {
  content: ""; position: absolute; top: -25%; right: 18%;
  width: 2px; height: 150%; background: var(--accent); opacity: 0.4;
  transform: rotate(20deg); transition: opacity var(--dur) var(--ease);
}
.sector-tile:not(.sector-tile--image)::after {
  content: ""; position: absolute; top: -50%; right: -25%;
  width: 65%; height: 130%; pointer-events: none;
  background: radial-gradient(circle, rgba(31, 182, 193, 0.28), transparent 70%);
}
.sector-tile__icon {
  position: relative; width: 44px; height: 44px; margin-bottom: auto;
  display: inline-flex; align-items: center; justify-content: center;
  /* Solid light chip — the old translucent glass melted into busy photos. */
  color: #0C0D47; background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md); backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(12, 13, 71, 0.35);
}
.sector-tile__icon svg { width: 24px; height: 24px; }
.sector-tile__name {
  /* NOT position:relative. A positioned ancestor between the stretched link and
     the tile would trap the link's ::after inside the h3 — which made only the
     title text clickable, not the whole tile. The name still paints above the
     negative-z-index photo/overlay because normal-flow content always does. */
  margin: 0; color: #fff;
  font-size: var(--text-xl); font-weight: 700; line-height: 1.2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
/* Linked tile — stretched-link pattern: the anchor wraps the name (for the
   accessible name) and its ::after stretches to .sector-tile (the nearest
   positioned ancestor), making the ENTIRE tile the click target. */
.sector-tile__link { color: #fff; text-decoration: none; }
.sector-tile__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
/* Hover affordance kept, but pinned to the bright teal signature instead of the
   inherited dark --primary (#1466B8), which was near-invisible on the dark photo
   band. Teal reads on the navy gradient the name sits over; underline adds a
   colour-independent cue. Whole-tile hover (::after) triggers it, so the text
   responds even when the cursor is on the photo. */
.sector-tile:hover .sector-tile__link,
.sector-tile__link:hover,
.sector-tile__link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sector-tile:has(.sector-tile__link:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }

/* Linked content card — same stretched-link pattern as sector tiles. */
.card--linked { position: relative; }
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--linked:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); border-color: var(--accent); }
.card--linked:has(.card__link:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }
.sector-tile:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-elevated);
  border-color: rgba(31, 182, 193, 0.5);
}
.sector-tile:hover::before { opacity: 0.85; }
.sector-tile--image:hover .sector-tile__img { transform: scale(1.06); }

/* ==========================================================================
   Ekosystem Microsoft — official product-mark showcase (homepage)
   ========================================================================== */
.ms-products {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-4); grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 1000px) { .ms-products { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  { .ms-products { grid-template-columns: repeat(2, 1fr); } }
.ms-product {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  height: 100%; padding: var(--space-5) var(--space-3); text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--card); color: var(--foreground);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
a.ms-product:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); border-color: var(--primary-soft); }
/* Every tile is a real link — give it a persistent affordance cue, not
   hover-only: a quiet corner arrow that brightens and slides on hover. */
a.ms-product { position: relative; }
a.ms-product::after {
  content: "→"; position: absolute; top: var(--space-3); right: var(--space-3);
  font-size: var(--text-sm); color: var(--primary); opacity: 0.45;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
a.ms-product:hover::after { opacity: 1; transform: translateX(2px); }
.ms-product__logo { display: inline-flex; }
.ms-product__logo img, .ms-product__logo .product-logo-raw { width: 48px; height: 48px; }
.ms-product__name { font-size: var(--text-sm); font-weight: 600; line-height: 1.25; }

/* Compact Microsoft product-mark strip — reused in the footer (every page) and
   at the top of service pages. Auto-synced with the product cluster. */
.ms-strip { text-align: center; }
.ms-strip__label {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600; color: var(--muted-foreground); margin: 0 0 var(--space-5);
  max-width: none; /* global p cap was left-anchoring this centered label */
}
.ms-strip__logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  /* NB: only 8/10/12/16-step spacing tokens exist — var(--space-7) is invalid
     and silently collapsed the gap to 0 (icons collided on service pages). */
  gap: var(--space-5) var(--space-6);
}
.ms-strip__logos li { display: inline-flex; }
.ms-strip__logos img, .ms-strip__logos .product-logo-raw { width: 34px; height: 34px; }
.ms-strip--footer { margin-bottom: var(--space-6); padding-bottom: var(--space-6); border-bottom: 1px solid var(--border); }
.ms-strip--footer .ms-strip__label { margin-bottom: var(--space-4); }
.ms-strip--footer .ms-strip__logos { gap: var(--space-4) var(--space-6); }
.ms-strip--footer .ms-strip__logos img, .ms-strip--footer .ms-strip__logos .product-logo-raw { width: 28px; height: 28px; opacity: 0.9; }

/* ==========================================================================
   Mid-page CTA — compact conversion band at the benefits→proof pivot
   ========================================================================== */
.mid-cta { padding-block: var(--space-10); background: var(--primary-soft); }
.mid-cta__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; }
.mid-cta__lead {
  font-size: var(--text-lg); font-weight: 600; line-height: 1.4;
  color: var(--text-primary); margin: 0; max-width: 46ch;
}

/* ==========================================================================
   Statement block — heading-less short prose rendered as a brand statement
   (render-sections `prose` fast path): large centered type, slash mark,
   gradient-accented closing line.
   ========================================================================== */
.statement { text-align: center; display: flex; flex-direction: column; gap: var(--space-4); align-items: center; }
.statement__slash { color: var(--accent); font-weight: 800; font-size: 2.25rem; line-height: 1; }
.statement p {
  margin: 0; max-width: 44ch;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem); font-weight: 600; line-height: 1.45;
  color: var(--text-primary);
}
.statement p:last-child {
  background: linear-gradient(120deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================================
   Outcomes — editorial numbered rows (consulting-style "what you get"):
   large gradient index | title with icon | copy, separated by hairlines.
   ========================================================================== */
.outcomes-ed { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.outcome-ed {
  display: grid; align-items: start;
  grid-template-columns: 120px minmax(0, 0.85fr) minmax(0, 1.35fr);
  column-gap: clamp(var(--space-6), 4vw, var(--space-12));
  padding-block: var(--space-10);
  border-top: 1px solid var(--border);
}
.outcome-ed:last-child { border-bottom: 1px solid var(--border); }
.outcome-ed__num {
  font-size: 4rem; font-weight: 800; line-height: 0.85; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.outcome-ed__head { display: flex; align-items: center; gap: var(--space-4); }
.outcome-ed__icon {
  flex-shrink: 0; width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary); background: var(--primary-soft);
  border-radius: var(--radius-md);
}
.outcome-ed__icon svg { width: 26px; height: 26px; }
.outcome-ed__title { font-size: var(--text-2xl); font-weight: 700; color: var(--text-primary); margin: 0; line-height: 1.2; }
.outcome-ed__desc  { color: var(--text-secondary); font-size: var(--text-base); line-height: 1.7; margin: 0; }

@media (max-width: 899px) {
  .outcome-ed { grid-template-columns: 72px 1fr; row-gap: var(--space-4); padding-block: var(--space-8); }
  .outcome-ed__num { font-size: 2.75rem; }
  .outcome-ed__desc { grid-column: 2; }
}
/* Phones: stack numeral → title → copy so text keeps full width. */
@media (max-width: 560px) {
  .outcome-ed { display: block; }
  .outcome-ed__num { font-size: 2.25rem; display: block; margin-bottom: var(--space-3); }
  .outcome-ed__head { margin-bottom: var(--space-3); }
  .outcome-ed__title { font-size: var(--text-xl); }
  .outcome-ed__icon { width: 44px; height: 44px; }
  .outcome-ed__icon svg { width: 22px; height: 22px; }
}

/* ==========================================================================
   Featured testimonials — one large quote + two supporting, with client logos
   ========================================================================== */
.testimonials-wrap { display: flex; flex-direction: column; gap: var(--space-6); }
.tf-lead, .tf-item {
  margin: 0; position: relative;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: var(--space-8);
  display: flex; flex-direction: column;
}
/* Featured quote reads as the hero: brand top-accent + more presence. */
.tf-lead { border-top: 3px solid var(--accent); }

/* Decorative opening quotation mark — sits ABOVE the quote (never over the text). */
.tf-quotemark {
  display: block; font-family: Georgia, 'Times New Roman', serif; font-weight: 700;
  color: var(--accent); line-height: 0; height: 1.5rem; font-size: 3rem;
  margin-bottom: var(--space-4); user-select: none;
}
.tf-item .tf-quotemark { font-size: 2.4rem; height: 1.2rem; margin-bottom: var(--space-3); }

.tf-lead__quote { margin: 0; font-size: var(--text-xl); line-height: 1.6; color: var(--text-primary); font-weight: 500; }
.tf-item__quote { margin: 0; font-size: var(--text-base); line-height: 1.65; color: var(--text-secondary); }

/* Citation row: hairline divider, framed logo chip, bold author, muted role. */
.tf-cite {
  display: flex; align-items: center; gap: var(--space-4);
  margin-top: var(--space-6); padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
}
.tf-item .tf-cite { margin-top: auto; } /* push to bottom → aligned cards */
.tf-logo {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  height: 48px; min-width: 68px; padding: var(--space-2) var(--space-3);
  background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
}
.tf-logo img { max-height: 28px; max-width: 104px; width: auto; object-fit: contain; display: block; }
.tf-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tf-author { font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.tf-role   { font-size: var(--text-sm); color: var(--muted-foreground); }

.testimonials-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 760px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }

/* Proof beat (homepage) — clients + testimonials + CTA share one section. */
.proof-subtitle {
  text-align: center; font-size: var(--text-2xl); color: var(--text-primary);
  margin: var(--space-16) 0 var(--space-8);
}
/* Featured quote clamps to a scannable pull-quote; the full verbatim text
   expands in place. Clamp only applies with JS present (html.js), so no-JS
   visitors always read the whole quote. */
.js .tf-lead__quote.is-clamped {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tf-expand {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  align-self: flex-start; margin-top: var(--space-3);
  font: inherit; font-size: var(--text-sm); font-weight: 600; color: var(--primary);
  text-decoration: underline; text-underline-offset: 3px;
}
.tf-expand:hover { color: var(--accent); }
html:not(.js) .tf-expand { display: none; }
.proof-cta {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-4);
  text-align: center; margin-top: var(--space-12);
}
.proof-cta__lead { margin: 0; font-size: var(--text-lg); color: var(--text-secondary); }

/* Homepage proof wall — a curated 6 in a uniform grid (quotes clamped so mixed
   lengths keep equal heights), closing with a link to the full /referencje/
   page. Reuses .tf-item; .testimonials-grid keeps the scroll-reveal stagger. */
/* Compact 3-quote teaser: one clean row of three on desktop, stacked below
   (skipping a 2-col tier that would leave a lone third card). Short 3-line
   quotes keep each card small — a big win on phones, where six 6-line cards
   made the page run ~5000px. Full text + all 12 live on /referencje/. */
/* Stacked (phone/tablet): cap to a readable measure + centre, so the quote
   lines don't stretch edge-to-edge (~88ch) on wide tablets — reads as a tidy
   centred column. Desktop lifts the cap for the full-width row of three. */
.testimonials-grid--wall { grid-template-columns: 1fr; max-width: 37rem; margin-inline: auto; }
@media (min-width: 1000px) { .testimonials-grid--wall { grid-template-columns: repeat(3, 1fr); max-width: none; margin-inline: 0; } }
.testimonials-grid--wall .tf-item__quote {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.testimonials-more { margin-top: var(--space-8); text-align: center; }

/* Testimonial wall (/referencje/) — CSS masonry (multicol): full verbatim
   quotes at natural, variable heights. No carousel, no JS — every quote is
   visible and indexable. Reuses the .tf-item card language. */
.testimonial-wall { column-gap: var(--space-6); column-count: 1; }
@media (min-width: 700px)  { .testimonial-wall { column-count: 2; } }
@media (min-width: 1060px) { .testimonial-wall { column-count: 3; } }
.testimonial-wall .tf-item { break-inside: avoid; margin: 0 0 var(--space-6); }
/* Natural-height cards → restore an explicit cite gap (the grid variant's
   margin-top:auto collapses to 0 without free space to distribute). */
.testimonial-wall .tf-item .tf-cite { margin-top: var(--space-5); }

/* ==========================================================================
   Breadcrumbs (breadcrumbs.php) — thin trail below the hero on sub-pages
   ========================================================================== */
.breadcrumbs { padding-block: var(--space-4); border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.breadcrumbs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); font-size: var(--text-sm); }
.breadcrumbs__item { display: flex; align-items: center; gap: var(--space-2) var(--space-3); color: var(--muted-foreground); }
.breadcrumbs__item:not(:last-child)::after { content: "/"; color: var(--muted-foreground); opacity: 0.45; }
.breadcrumbs__item a { color: var(--muted-foreground); }
.breadcrumbs__item a:hover { color: var(--primary); }
.breadcrumbs__item [aria-current="page"] { color: var(--text-primary); font-weight: 600; }

/* ==========================================================================
   Third-party widgets — Consolto live-chat / video
   ========================================================================== */
/* Following cyberalterity.pl's proven integration: force the floating widget
   iframe to stay fixed bottom-right. Consolto's iframeApp.js sets position:fixed
   on inject, but its postMessage styler can later drop it to static, sinking the
   iframe into document flow far below the fold. We do NOT cap its width — Consolto
   renders its own full-screen mobile layout by user-agent, and a width cap fights
   that and breaks the panel on real phones (the earlier bug). */
iframe#expertips_iframe {
  position: fixed !important;
  z-index: 2147483647 !important;
}
/* Fade-out during the outside-click / ESC close (class toggled by
   consolto-lazy.js) so the brief re-init flash after the iframe src reset
   isn't visible. */
iframe#expertips_iframe.consolto-closing {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.22s ease-out !important;
}

/* ==========================================================================
   Product badge — official Microsoft product logo in the interior hero.
   White rounded tile so the colored brand logo reads on the dark hero bg.
   ========================================================================== */
.product-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin-bottom: var(--space-5);
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated); border: 1px solid var(--border-subtle);
}
.product-badge__img { width: 44px; height: 44px; object-fit: contain; display: block; }
.product-badge--icon { color: var(--primary); }
.product-badge--icon svg { width: 40px; height: 40px; }

/* Product logo on the hub product cards (page-microsoft-wdrozenia.php) —
   anchors each card visually with the official product mark above the title. */
.card__product-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: var(--space-4);
}
/* Hub cards: clamp every description to the same 4-line block and reserve two
   title lines, so all 12 cards share one uniform internal rhythm. */
.card--product .card__title { min-height: 2.5em; }
.card--product .card__desc {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.product-logo-raw { width: 40px; height: 40px; object-fit: contain; display: block; }
.product-logo-raw--icon { color: var(--primary); display: inline-flex; }
.product-logo-raw--icon svg { width: 40px; height: 40px; }

/* Embedded ClickNTalk (Consolto) — inline chat / video / calendar on /kontakt/. */
.clickntalk-embed {
  position: relative;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-subtle); background: var(--card);
  box-shadow: var(--shadow-elevated);
}
/* Teal shimmer skeleton while the Consolto iframe boots — JS flips .is-loaded
   on the wrapper at the iframe's `load` event (no more blank white card). */
.clickntalk-embed::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(110deg,
    rgba(15, 120, 130, 0.04) 8%,
    rgba(31, 182, 193, 0.12) 18%,
    rgba(15, 120, 130, 0.04) 33%);
  background-size: 200% 100%;
  animation: booking-shimmer 1.6s linear infinite;
  pointer-events: none; opacity: 1; transition: opacity 0.3s ease-out;
}
.clickntalk-embed.is-loaded::before { opacity: 0; animation: none; }
@keyframes booking-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .clickntalk-embed::before { animation: none; } }
/* Sizing tuned on cyberalterity (calendar fully visible, no inner scroll):
   mobile 620 / tablet 700 / desktop 640. */
/* Consent placeholder (RODO click-to-load). Same heights as the iframe so the
   swap causes zero layout shift; the boot shimmer stays off while pending. */
.clickntalk-embed--pending::before { animation: none; opacity: 0; }
.clickntalk-embed__placeholder {
  position: relative; z-index: 1;
  min-height: 620px; height: 620px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-4); padding: var(--space-8); text-align: center;
}
@media (min-width: 600px) { .clickntalk-embed__placeholder { min-height: 700px; height: 700px; } }
@media (min-width: 900px) { .clickntalk-embed__placeholder { min-height: 640px; height: 640px; } }
.clickntalk-embed__ph-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary); background: var(--primary-soft);
}
.clickntalk-embed__ph-icon svg { width: 30px; height: 30px; }
.clickntalk-embed__ph-title { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--text-primary); }
.clickntalk-embed__ph-note { margin: 0; max-width: 40ch; font-size: var(--text-xs); color: var(--muted-foreground); }

.clickntalk-embed__iframe { position: relative; z-index: 1; display: block; width: 100%; border: 0; min-height: 620px; height: 620px; }
@media (min-width: 600px) { .clickntalk-embed__iframe { min-height: 700px; height: 700px; } }
@media (min-width: 900px) { .clickntalk-embed__iframe { min-height: 640px; height: 640px; } }

/* ==========================================================================
   Enterprise micro-interactions (2026-07) — six signature effects, all
   compositor-only (transform/opacity), CSP-safe, reduced-motion-aware.
   ========================================================================== */

/* 2. Cursor-aware spotlight — a soft accent glow follows the pointer across
   interactive cards (JS feeds --mx/--my via CSSOM, like the tilt effect). */
.pillar { position: relative; }
:is(.pillar, .card, .tf-lead, .tf-item)::after,
a.ms-product::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(230px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in oklab, var(--accent) 13%, transparent), transparent 68%);
  opacity: 0; transition: opacity var(--dur) var(--ease); pointer-events: none;
}
:is(.pillar, .card, .tf-lead, .tf-item):hover::after,
a.ms-product:hover::before { opacity: 1; }

/* 3a. Hero signature — one gradient shimmer sweep across the accent phrase
   after the title settles. */
@keyframes accent-shimmer { from { background-position: 130% 0; } to { background-position: 0% 0; } }
.home-hero__title-accent,
[data-theme="dark"] .home-hero__title-accent {
  background-size: 220% 100%;
  background-position: 0% 0;
  animation: accent-shimmer 1.5s var(--ease) 0.9s backwards;
}

/* 3b. Hero depth — the stat-card collage drifts up slightly slower than the
   copy while scrolling away (parallax via the separate `translate` property,
   so the cards' own float/tilt transforms stay untouched). */
@supports (animation-timeline: scroll()) {
  @keyframes hero-drift { to { translate: 0 -44px; } }
  /* COMPOSE with the base fade-in (the visual starts at opacity:0) — a bare
     `animation:` shorthand here would replace it and leave the collage
     invisible. Each animation gets its own timeline. */
  .home-hero__visual {
    animation: fade-in 1s var(--ease) 0.5s forwards, hero-drift linear both;
    animation-timeline: auto, scroll();
    animation-range: normal, 0px 760px;
  }
}

/* 4. Icon life — icon chips tilt up with a springy pop on card hover. */
.pillar__icon, .card__icon, .outcome-ed__icon, .sector-tile__icon,
.ms-product__logo img, .card__product-logo, .outcome-ed__num {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pillar:hover .pillar__icon,
.card:hover .card__icon,
.outcome-ed:hover .outcome-ed__icon,
.sector-tile:hover .sector-tile__icon { transform: scale(1.1) rotate(-4deg); }
a.ms-product:hover .ms-product__logo img,
.card--product:hover .card__product-logo { transform: scale(1.12); }
.outcome-ed:hover .outcome-ed__num { transform: translateX(4px); }

/* 5. Navy timeline — the connector draws itself and the numbered badges pop
   as the band scrolls into view, cascading left to right. */
@supports (animation-timeline: view()) {
  @keyframes line-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes badge-pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  .section--navy .process__num {
    animation: badge-pop 0.5s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 5% entry 30%;
  }
  .section--navy .process__step:nth-child(2) .process__num { animation-range: entry 13% entry 38%; }
  .section--navy .process__step:nth-child(3) .process__num { animation-range: entry 21% entry 46%; }
  .section--navy .process__step:nth-child(4) .process__num { animation-range: entry 29% entry 54%; }
  @media (min-width: 760px) {
    .section--navy .process__step::after {
      transform-origin: left center;
      animation: line-draw 0.8s var(--ease) both;
      animation-timeline: view();
      animation-range: entry 10% entry 40%;
    }
    .section--navy .process__step:nth-child(2)::after { animation-range: entry 18% entry 48%; }
    .section--navy .process__step:nth-child(3)::after { animation-range: entry 26% entry 56%; }
  }
}

/* 6. Button character — a light sheen sweeps across primary buttons on hover. */
.btn { position: relative; overflow: hidden; }
@keyframes btn-sheen { to { transform: translateX(170%) skewX(-18deg); } }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.32) 50%, transparent 65%);
  transform: translateX(-170%) skewX(-18deg);
  pointer-events: none;
}
.btn--primary:hover::after,
.btn--primary:focus-visible::after { animation: btn-sheen 0.7s var(--ease); }

/* Reduced motion: kill every decorative animation from this block. The hero
   visual must ALSO get opacity:1 — its base style is opacity:0 + fade-in. */
@media (prefers-reduced-motion: reduce) {
  .home-hero__title-accent, [data-theme="dark"] .home-hero__title-accent,
  .home-hero__visual,
  .section--navy .process__num, .section--navy .process__step::after,
  .btn--primary::after { animation: none !important; }
  .home-hero__visual { opacity: 1; translate: none; }
  :is(.pillar, .card, .tf-lead, .tf-item)::after, a.ms-product::before { transition: none; }
}

/* ==========================================================================
   Kontakt — premium contact page (adapted from the cyberalterity pattern):
   hero contact-card, trust line, booking split, closing band.
   ========================================================================== */

/* Trust micro-line under the hero CTAs. */
.hero-rich__meta {
  margin: var(--space-5) 0 0; max-width: none;
  font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

/* Hero contact-card — response pledge + tappable channel rows (glassy card,
   same material language as the stat cards). */
.contact-card {
  width: min(100%, 420px); margin-left: auto;
  background: color-mix(in oklab, var(--card) 78%, transparent);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, var(--border));
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 10px 30px -10px color-mix(in oklab, var(--brand-navy, #0C0D47) 30%, transparent);
  opacity: 0; animation: fade-in 0.9s var(--ease) 0.4s forwards;
}
/* Centre the contact-card in the hero visual column: the card is shorter than
   the column's 480px floor, so top-aligned it left ~105px of gap below. Centring
   turns that into balanced padding. Scoped with :has so other hero variants
   (stats, mosaic, product) keep their own alignment. */
.home-hero__visual:has(.contact-card) { display: flex; align-items: center; }

/* Pledge row: clock icon + text column, matching the reference contact-card. */
.contact-card__pledge { display: flex; flex-direction: row; align-items: center; gap: var(--space-3); padding-bottom: var(--space-5); border-bottom: 1px solid var(--border-subtle); }
/* Pledge-only card (no channel rows below): no dangling divider. */
.contact-card__pledge:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-card__pledge-icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary); background: var(--primary-soft);
}
.contact-card__pledge-icon svg { width: 24px; height: 24px; }
.contact-card__pledge-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-card__label {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted-foreground);
}
.contact-card__value { color: var(--primary); letter-spacing: -0.02em; line-height: 1.05; }
.contact-card__number { font-size: 2.5rem; font-weight: 800; }
.contact-card__unit { font-size: 1.25rem; font-weight: 700; margin-left: 2px; }
.contact-card__note { font-size: var(--text-xs); color: var(--muted-foreground); }
.contact-card__channels { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.contact-card__channel {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); background: color-mix(in oklab, var(--bg-elevated) 70%, transparent);
  text-decoration: none; color: inherit;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.contact-card__channel:hover { background: var(--primary-soft); transform: translateX(3px); }
.contact-card__channel-icon { flex-shrink: 0; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); background: var(--primary-soft); border-radius: 50%; }
.contact-card__channel-icon svg { width: 18px; height: 18px; }
.contact-card__channel-text { display: flex; flex-direction: column; min-width: 0; }
.contact-card__channel-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
.contact-card__channel-value { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); overflow-wrap: anywhere; }
.contact-card__channel-arrow { margin-left: auto; color: var(--primary); opacity: 0.6; transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.contact-card__channel:hover .contact-card__channel-arrow { transform: translateX(3px); opacity: 1; }
@media (max-width: 959px) {
  .contact-card { margin-inline: auto; }
}

/* SLA row emphasis in the contact-info aside. */
.contact-info__sla { font-weight: 600; color: var(--text-primary); }

/* Booking split — persuasion copy left, calendar right. */
.booking-split { display: grid; gap: var(--space-10); align-items: center; }
@media (min-width: 960px) { .booking-split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.booking-split__points { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.booking-split__points li {
  position: relative; padding-left: 32px;
  color: var(--text-secondary); line-height: 1.5;
}
.booking-split__points li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--primary-soft); color: var(--primary);
  font-size: 0.8rem; font-weight: 800;
}

/* Closing band micro-line. */
.band-actions { gap: var(--space-4); flex-wrap: wrap; }
.band-note {
  margin: var(--space-5) auto 0; max-width: none;
  font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

/* ==========================================================================
   Cookie consent banner (template-parts/consent-banner.php + consent.js)
   Server-rendered into <body> via wp_body_open; CSS hides it until
   consent.js resolves saved state. Fails-closed: if JS fails the banner
   stays hidden AND nothing consent-gated fires (Consolto subscribes to the
   alterity:consent-granted event that only consent.js dispatches).
   Ported from cyberalterity.pl's RODO banner (same token vocabulary).
   ========================================================================== */

.consent-banner {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: var(--z-modal);
  max-width: 760px;
  margin-inline: auto;
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
  transform: translateY(calc(100% + var(--space-6)));
  opacity: 0;
  transition:
    transform var(--dur-slow) var(--ease),
    opacity   var(--dur-slow) var(--ease);
  pointer-events: none;
}
/* 'is-hidden-until-needed' is the pre-JS server-rendered default;
   'is-hidden' is the JS-resolved state once a saved decision exists. */
.consent-banner.is-hidden-until-needed,
.consent-banner.is-hidden { display: none; }
.consent-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.consent-banner__inner {
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.consent-banner__main { display: flex; flex-direction: column; gap: var(--space-2); }
.consent-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em;
  margin: 0; color: var(--foreground);
}
.consent-banner__title:focus { outline: none; }
.consent-banner__intro {
  margin: 0; font-size: var(--text-sm); line-height: 1.6;
  color: var(--muted-foreground); max-width: none;
}
.consent-banner__intro a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.consent-banner__intro a:hover,
.consent-banner__intro a:focus-visible { color: var(--primary-hover); }

/* Customize panel — revealed by the "Dostosuj" button. */
.consent-banner__customize {
  display: none;
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
}
.consent-banner.is-expanded .consent-banner__customize {
  display: block;
  animation: consent-customize-fade var(--dur) var(--ease);
}
@keyframes consent-customize-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.consent-banner__customize-title {
  font-family: var(--font-display);
  font-size: var(--text-base); font-weight: 700;
  margin: 0 0 var(--space-4); color: var(--foreground);
}

.consent-categories {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--space-3);
}
.consent-category {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease);
}
.consent-category:hover { border-color: color-mix(in oklab, var(--primary) 40%, var(--border)); }
.consent-category__label {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-weight: 600; color: var(--foreground); cursor: pointer; margin: 0;
}
.consent-category__label input[type="checkbox"] {
  width: 18px; height: 18px; margin: 0;
  accent-color: var(--primary); cursor: pointer; flex-shrink: 0;
}
.consent-category__label input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.7; }
.consent-category__name { font-size: var(--text-sm); }
.consent-category__badge {
  margin-left: auto;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--primary-soft); color: var(--primary);
}
.consent-category__desc {
  margin: 0; font-size: var(--text-xs); line-height: 1.55;
  color: var(--muted-foreground); max-width: none;
  padding-left: calc(18px + var(--space-3));
}

/* Action row — wraps to two rows on mobile. */
.consent-banner__actions {
  display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center;
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
}
.consent-banner__btn-customize { margin-right: auto; }
/* "Zapisz wybór" only matters while the customize panel is open. */
.consent-banner__save { display: none; }
.consent-banner.is-expanded .consent-banner__save { display: inline-flex; }

/* Small mobile: keep the collapsed banner around a third of the viewport. */
@media (max-width: 480px) {
  .consent-banner__inner { padding: var(--space-4); gap: var(--space-4); }
  .consent-banner__main { gap: var(--space-1); }
  .consent-banner__title { font-size: var(--text-base); }
  .consent-banner__intro { line-height: 1.5; }
  .consent-banner__actions { padding-top: var(--space-3); gap: var(--space-2); }
}

/* Reopen FAB — bottom-LEFT so it never fights the Consolto bubble that
   docks bottom-right. Hidden while the banner is visible. */
.consent-reopen {
  position: fixed;
  left: var(--space-4); bottom: var(--space-4);
  z-index: var(--z-elevated);
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--muted-foreground);
  border: 1px solid var(--border); border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition:
    transform    var(--dur-fast) var(--ease),
    color        var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow   var(--dur-fast) var(--ease);
}
.consent-reopen:hover,
.consent-reopen:focus-visible {
  color: var(--primary); border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}
.consent-reopen svg { width: 22px; height: 22px; }
.consent-reopen.is-hidden { display: none; }

/* Mobile action layout (cyberalterity's LIVE version, newer than their repo
   copy): the two primary decisions sit side-by-side as an equal-width pair,
   "Dostosuj" (and "Zapisz wybór" when the panel is open) drop below them
   full-width — a balanced grid instead of a ragged flex wrap. */
@media (max-width: 600px) {
  .consent-banner { left: var(--space-3); right: var(--space-3); bottom: var(--space-3); border-radius: var(--radius); }
  .consent-banner__inner { padding: var(--space-4); gap: var(--space-3); }
  .consent-banner__title { font-size: var(--text-base); }
  .consent-banner__intro { font-size: var(--text-xs); line-height: 1.5; }
  .consent-banner__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-3);
    align-items: stretch;
  }
  .consent-banner__btn-customize { grid-column: 1 / -1; order: 99; margin-right: 0; }
  .consent-banner__save { grid-column: 1 / -1; order: 100; }
  .consent-banner__actions .btn { width: auto; justify-content: center; }
  .consent-reopen { width: 44px; height: 44px; left: var(--space-3); bottom: var(--space-3); }

  /* Expanded ("Dostosuj") state: modal takeover. The sheet keeps its natural
     bottom-docked height (no dead space below two categories) while a
     full-viewport scrim dims and blocks the page behind — the panel owns
     the screen the way a premium CMP sheet does. The banner's transform must
     be neutralized (a transformed ancestor re-anchors position:fixed) and
     the card chrome moves to the inner wrapper so it paints ABOVE the scrim
     (a negative-z pseudo paints over its own element's background). */
  .consent-banner.is-expanded {
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .consent-banner.is-expanded::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 34, 0.55);
    z-index: -1;
  }
  .consent-banner.is-expanded .consent-banner__inner {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-elevated);
    max-height: calc(100dvh - var(--space-6));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner { transform: none; transition: opacity var(--dur) var(--ease); }
  .consent-banner.is-visible { transform: none; }
  .consent-banner.is-expanded .consent-banner__customize { animation: none; }
  .consent-reopen:hover,
  .consent-reopen:focus-visible { transform: none; }
}
