/* =============================================
   PLC Software — Shared Design System
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  /* Colors — paleta strony matki plc-solutions.pl */
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-dark: #00051b;          /* granat matki (rgba 0,5,27) — ciemne sekcje, stopka */
  --color-navy: #0a1a3e;          /* granat jaśniejszy — gradienty */
  --color-ink: #1e3254;
  --color-accent: #2995d6;        /* GŁÓWNY akcent matki — niebieski (CTA, linki, ikony) */
  --color-accent-hover: #1f7fbf;  /* ciemniejszy niebieski — hover */
  --color-accent-2: #33bdab;      /* drugi akcent matki — turkus (akcent na granacie) */
  --color-accent-red: #e52040;    /* czerwień matki — bardzo oszczędnie (wyróżnienia) */
  --color-accent-light: #e8f3fb;  /* jasny niebieski tint */
  --color-muted: #64748b;
  --color-muted-light: #94a3b8;
  --color-muted-dark: #5b6b82;   /* dostatecznie ciemny do body text na bieli (WCAG AA) */
  --color-border: #e2e8f0;
  --color-border-dark: #1e3254;

  /* Typography families (marka-matka: Poppins + Open Sans) */
  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, sans-serif;

  /* Typography Scale — skala ujednolicona, dostrojona pod czytelność na laptopie
     (górne wartości clamp obniżone, żeby nagłówki nie były „ogromne" na 1280–1440px) */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px — leady, podtytuły */
  --text-xl:   1.375rem;   /* 22px — tytuły kart */
  --text-2xl:  1.75rem;    /* 28px — śródtytuły (case, kategoria, artykuł) */
  --text-3xl:  clamp(1.75rem, 2.6vw, 2.5rem);   /* 28→40px — tytuły sekcji */
  --text-hero: clamp(2.25rem, 4.5vw, 3.5rem);   /* 36→56px */
  --text-subpage-hero: clamp(2rem, 3.6vw, 3.25rem); /* 32→52px — wszystkie hero */

  /* Spacing */
  --section-py: clamp(4rem, 8vw, 7rem);
  --container-px: clamp(1.25rem, 5vw, 4rem);

  /* Radius — ujednolicone: wszystkie zaokrąglenia = 8px */
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 8px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.14);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-wrap: balance;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Accessibility: visible keyboard focus (WCAG / EAA) ---- */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 3px;
}
.cta-section :focus-visible,
.hero :focus-visible,
.section--dark :focus-visible,
.footer :focus-visible { outline-color: #5db4e6; }

/* ---- Brand dot accent (motyw kropki po nagłówkach sekcji) ---- */
.section__title .dot,
.hero__title .dot { color: var(--color-accent); }
/* Hero na podstronach (ciemne tło) — kropka w tytule na jaśniejszy niebieski,
   spójnie z home/o-nas (konwencja .dot). Współdzielone przez PL i EN (../style.css). */
.page-hero h1 .dot { color: #5db4e6; }

/* ---- Container ---- */
/* max-width treści: 1472px = +15% względem dawnych 1280 (mniej pustego pola na dużych
   ekranach). Na ekranach < 1472px bez zmian (container = szerokość minus padding). */
.container {
  max-width: 1472px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}
.container--narrow { max-width: 900px; }   /* celowo wąsko — czytelność (FAQ, artykuł) */
.container--wide { max-width: 1600px; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}
.nav.is-scrolled { box-shadow: var(--shadow-md); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 var(--container-px);
  max-width: 1472px; /* równo z .container (menu w linii z treścią) */
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}
.nav__logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.nav__logo span { color: var(--color-accent); }
.nav__logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__link {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--color-dark); background: var(--color-bg); }
.nav__link.is-active { color: var(--color-accent); font-weight: 600; }

/* Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  background: none;
  border: none;
}
.nav__dropdown-toggle:hover { color: var(--color-dark); background: var(--color-bg); }
.nav__dropdown-toggle svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav__dropdown:hover .nav__dropdown-toggle svg { transform: rotate(180deg); }

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s var(--ease-out);
}
.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
  transition: background 0.2s, color 0.2s;
}
.nav__dropdown-item:hover { background: var(--color-accent-light); color: var(--color-accent); }
.nav__dropdown-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.nav__cta:hover { background: var(--color-accent-hover); transform: translateY(-1px); }

/* Przełącznik języka PL/EN */
.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  margin-right: 0.5rem;
}
.nav__lang-link {
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  transition: color 0.2s, background 0.2s;
}
.nav__lang-link:hover { color: var(--color-ink); background: var(--color-surface); }
.nav__lang-link.is-active { color: var(--color-accent); }
.nav__lang--mobile {
  padding: 0.25rem 1rem 0.5rem;
  gap: 0.5rem;
}
.nav__lang--mobile .nav__lang-link {
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1rem var(--container-px);
  gap: 0.25rem;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile .nav__link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}
.nav__mobile-group-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted-light);
  padding: 0.75rem 1rem 0.25rem;
  margin-top: 0.25rem;
}
.nav__mobile .nav__cta {
  margin-top: 0.5rem;
  justify-content: center;
  padding: 0.75rem;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .nav__links, .nav__cta, .nav__inner .nav__lang { display: none; }
  .nav__toggle { display: flex; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn--primary {
  background: var(--color-accent);
  color: white;
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(41,149,214,0.35);
}
.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.btn--outline:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-2px);
}
.btn--ghost {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}
.btn--dark {
  background: var(--color-dark);
  color: white;
}
.btn--dark:hover {
  background: var(--color-navy);
  transform: translateY(-2px);
}
.btn--sm { padding: 0.5rem 1.125rem; font-size: var(--text-sm); }
.btn--lg { padding: 1rem 2.25rem; font-size: 1.0625rem; }

/* ============================================
   TYPOGRAPHY HELPERS
   ============================================ */
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  display: block;
}

.section__header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section__lead {
  font-size: var(--text-lg);
  color: var(--color-muted);
  margin-top: 1rem;
  max-width: 56ch;
  line-height: 1.7;
}

/* ============================================
   SECTION VARIANTS
   ============================================ */
.section { padding: var(--section-py) 0; }
.section--dark {
  background: var(--color-dark);
  color: var(--color-bg);
}
.section--dark .eyebrow { color: #5db4e6; }
.section--dark .section__title { color: #f1f5f9; }
.section--dark .section__lead { color: #94a3b8; }
.section--dark .card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
.section--dark .card__title { color: #f1f5f9; }
.section--dark .card__text { color: #94a3b8; }

.section--accent {
  background: var(--color-accent);
  color: white;
}
.section--surface { background: var(--color-surface); }
.section--navy {
  background: var(--color-navy);
  color: white;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.625rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.card__text {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.7;
  text-align: left;
}
.card--featured {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  margin-top: -2rem;
}
.card--featured .card__title { color: white; }
.card--featured .card__text { color: rgba(255,255,255,0.8); }
.card--featured .card__icon { background: rgba(255,255,255,0.15); color: white; }

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(n+5) { transition-delay: 0.32s; }

/* ============================================
   STATS ROW
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2px;
  background: var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--color-surface);
  padding: 2rem 1.5rem;
  text-align: center;
}
.stat__number {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--color-accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.375rem;
}
.stat__label {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 500;
}

/* ============================================
   PARTNER LOGOS
   ============================================ */
.logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 3rem;
  opacity: 0.55;
  filter: grayscale(1);
}
.logos-row img { height: 28px; object-fit: contain; }

/* ============================================
   FEATURE LIST
   ============================================ */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-item__check {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.feature-item__text {
  font-size: var(--text-base);
  color: var(--color-ink);
  line-height: 1.6;
  font-weight: 500;
}

/* ============================================
   BADGE / TAG
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Warianty badge — wszystkie w palecie matki (niebieski) */
.badge--blue,
.badge--green,
.badge--orange,
.badge--purple { background: var(--color-accent-light); color: var(--color-accent); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand p {
  font-size: var(--text-sm);
  margin-top: 1rem;
  line-height: 1.8;
  max-width: 28ch;
}
.footer__col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__col a,
.footer__col li {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer__col a:hover { color: white; }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--text-sm);
}
.footer__bar a { color: rgba(255,255,255,0.5); }
.footer__bar a:hover { color: white; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 800;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================
   PRODUCT CARD (Products page)
   ============================================ */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-bg);
}
.product-card__body { padding: 1.5rem; }
.product-card__category {
  margin-bottom: 0.75rem;
}
.product-card__name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}
.product-card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  text-align: left;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ============================================
   SPLIT SECTION
   ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__content p,
.split__body p,
.benefit-row__content p { text-align: left; }
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* ============================================
   PAGE HERO (sub-pages bold)
   ============================================ */
.page-hero {
  background: var(--color-dark);
  color: white;
  min-height: clamp(380px, 50vh, 560px);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.page-hero__bg-text {
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  font-size: clamp(8rem, 22vw, 22rem);
  font-weight: 900;
  color: white;
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}
.page-hero__content { position: relative; z-index: 1; }
.page-hero .eyebrow {
  color: #5db4e6;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}
.page-hero .eyebrow::before,
.page-hero .eyebrow::after {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: #5db4e6;
  border-radius: 2px;
  flex-shrink: 0;
}
.page-hero h1 {
  font-size: var(--text-subpage-hero);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  max-width: 18ch;
}
/* Home hero — pierwsza linia „Wdrażamy ITSM, RFID i AI" trzymana w jednej linii;
   na wąskich ekranach czcionka zjeżdża, by fraza mieściła się bez przewijania. */
#ic4do { max-width: none; }
#ic4do .hero-nowrap { white-space: nowrap; }
@media (max-width: 480px) {
  #ic4do { font-size: clamp(1.25rem, 6.8vw, 2rem); }
}
.page-hero__lead {
  font-size: var(--text-lg);
  color: #94a3b8;
  max-width: 48ch;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.page-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.page-hero__image {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 45%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.8; /* mniej przyciemnienia — odkryta oryginalna grafika (było 0.18) */
  /* maska wtapiania lewej krawędzi BEZ zmian — ładne przejście w gradient zachowane */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
  mask-image: linear-gradient(to right, transparent 0%, black 30%);
}
@media (max-width: 768px) {
  .page-hero__image { display: none; }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--color-accent);
  color: white;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00051b 0%, #0a1a3e 50%, #2995d6 100%);
}
.cta-section__content { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.cta-section p {
  font-size: var(--text-lg);
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn--ghost {
  border-color: rgba(255,255,255,0.4);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================
   USE CASES / INDUSTRIES
   ============================================ */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.use-case-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.use-case-item:hover { border-color: var(--color-accent); box-shadow: var(--shadow-sm); }
.use-case-item__icon { font-size: 1.5rem; }

/* ============================================
   TABS (Products page)
   ============================================ */
.tabs {
  display: flex;
  gap: 0.375rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.375rem;
  width: fit-content;
  flex-wrap: wrap;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
}
.tab:hover { color: var(--color-dark); background: var(--color-bg); }
.tab.is-active { background: var(--color-accent); color: white; }
.tab-content { display: none; }
.tab-content.is-active { display: block; }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--color-accent); }
.breadcrumb span { opacity: 0.5; }
.page-hero .breadcrumb span:last-child { color: white; opacity: 1; font-weight: 500; }

/* ============================================
   PROCESS STEPS
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
}
.step {
  padding: 2rem 1.5rem;
  position: relative;
  text-align: center;
}
.step::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  right: 0;
  width: 1px;
  height: 2rem;
  background: var(--color-border);
}
.step:last-child::before { display: none; }
.step__num {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.0625rem;
  margin: 0 auto 1.25rem;
}
.step__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}
.step__text {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
}

/* ============================================
   MISC
   ============================================ */
/* ============================================
   MATERIAL SYMBOLS
   ============================================ */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 1.25em;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  user-select: none;
  flex-shrink: 0;
}
.ms-filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.ms-bold {
  font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 20;
}
/* Icon inside card__icon container */
.card__icon .material-symbols-rounded {
  font-size: 1.5rem;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
/* Feature strip big icons */
.feature-strip__icon .material-symbols-rounded {
  font-size: 1.75rem;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 32;
  color: white;
}
/* Industry / service card icon */
.service-card__icon .material-symbols-rounded,
.industry-card__icon .material-symbols-rounded {
  font-size: 1.75rem;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 32;
}
/* Feature check mark */
.feature-item__check .material-symbols-rounded {
  font-size: 14px;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 20;
}
/* Nav dropdown item icon */
.nav__dropdown-item-icon .material-symbols-rounded {
  font-size: 1.125rem;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}
/* Inline button icons */
.btn .material-symbols-rounded {
  font-size: 1.125rem;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}
/* ME product icon container + symbol */
.me-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.me-card__icon .material-symbols-rounded {
  font-size: 1.25rem;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Service card emoji icon */
.service-card__emoji .material-symbols-rounded {
  font-size: 2rem;
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 40;
}

/* Product placeholder icon */
.product-card__placeholder .material-symbols-rounded {
  font-size: 2.5rem;
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 40;
  color: var(--color-muted-light);
}
.product-card--template .product-card__placeholder .material-symbols-rounded {
  opacity: 0.5;
}

/* Category heading icon */
.cat-heading__icon .material-symbols-rounded {
  font-size: 1.5rem;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.text-center { text-align: center; }
.text-center .section__lead { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

.accent-text { color: var(--color-accent); }
.muted-text { color: var(--color-muted); }
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 0;
}

/* ============================================
   REDUCED MOTION (WCAG / EAA)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-inner { animation: none !important; }
}

/* ============================================
   TRUST / INDUSTRIES — „Dla kogo pracujemy"
   ============================================ */
.industries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.industry-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: white;
  isolation: isolate;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm); /* 8px */
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}
.industry-tile:hover,
.industry-tile:has(:focus-visible) {
  /* proste, delikatne powiększenie kafla — obraz w tle zoomuje razem z nim */
  transform: scale(1.035);
  box-shadow: 0 20px 44px rgba(0, 5, 27, 0.38);
  z-index: 5;
}
.industry-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.industry-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,5,27,0.25) 0%, rgba(0,5,27,0.92) 100%);
  transition: background 0.4s;
}
.industry-tile:hover::after,
.industry-tile:has(:focus-visible)::after {
  background: linear-gradient(180deg, rgba(0,5,27,0.35) 0%, rgba(0,5,27,0.97) 100%);
}
.industry-tile__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
}
.industry-tile__icon {
  color: #5db4e6;
  margin-bottom: 0.625rem;
  transition: color 0.3s;
}
.industry-tile:hover .industry-tile__icon,
.industry-tile:has(:focus-visible) .industry-tile__icon { color: #fff; }
.industry-tile__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
}
.industry-tile__desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.9);
  margin-top: 0.6rem;
  line-height: 1.5;
}
/* reveal — opis + CTA (widoczne dopiero na hover), rozwija się płynnie (grid-template-rows) */
.industry-tile__reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s 0.05s;
}
.industry-tile:hover .industry-tile__reveal,
.industry-tile:has(:focus-visible) .industry-tile__reveal {
  grid-template-rows: 1fr;
  opacity: 1;
}
.industry-tile__reveal-inner { overflow: hidden; min-height: 0; }
.industry-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  padding: 0.5rem 0.9rem;
  background: #fff;
  color: var(--color-accent-hover);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--text-sm);
  transition: background 0.2s, color 0.2s;
}
.industry-tile__cta:hover { background: var(--color-accent); color: #fff; }
.industry-tile__cta .material-symbols-rounded { font-size: 1.1rem; transition: transform 0.2s; }
.industry-tile__cta:hover .material-symbols-rounded { transform: translateX(3px); }
@media (max-width: 900px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .industries { grid-template-columns: 1fr; } }
/* dotyk / brak hovera → pokaż opis + CTA na stałe (kafle prostokątne, bez trapezu/scaleY) */
@media (hover: none) {
  .industry-tile__reveal { grid-template-rows: 1fr; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .industry-tile, .industry-tile *, .industry-tile::after { transition: none !important; }
}

/* ============================================
   STATS — band (na granacie)
   ============================================ */
.stats--band {
  background: transparent;
  border-radius: 0;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.stats--band .stat {
  background: transparent;
  border-left: 2px solid rgba(93,180,230,0.4);
  text-align: left;
  padding: 0.25rem 0 0.25rem 1.5rem;
}
.stats--band .stat__number { color: #5db4e6; }
.stats--band .stat__label { color: #cbd5e1; }

/* ============================================
   CASE STUDY
   ============================================ */
.case-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.case-card__media { position: relative; min-height: 320px; }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; }
.case-card__badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(0,5,27,0.85);
  color: #5db4e6;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.case-card__body { padding: clamp(2rem, 4vw, 3rem); }
.case-card__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.case-card__text { color: var(--color-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.case-metrics {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.case-metric__num {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.case-metric__label { font-size: var(--text-sm); color: var(--color-muted); margin-top: 0.25rem; }
@media (max-width: 768px) {
  .case-card { grid-template-columns: 1fr; }
  .case-card__media { min-height: 220px; }
}

/* ============================================
   FAQ — akordeon (jedna pozycja otwarta naraz)
   ============================================ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:has(.faq-q[aria-expanded='true']) {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-dark);
  text-align: left;
  line-height: 1.4;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--color-accent); }
.faq-q__icon {
  color: var(--color-accent);
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.faq-q[aria-expanded='true'] .faq-q__icon { transform: rotate(180deg); }
/* płynne rozwijanie bez liczenia wysokości w JS (grid 0fr → 1fr) */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease-out);
}
.faq-q[aria-expanded='true'] + .faq-a { grid-template-rows: 1fr; }
.faq-a__inner { overflow: hidden; }
.faq-a__inner p {
  margin: 0;
  padding: 0 1.375rem 1.25rem;
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.7;
}
@media (prefers-reduced-motion: reduce) {
  .faq-a { transition: none; }
}

/* ============================================
   CONTACT FORM (natywny → gotowy pod Zoho CRM)
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-aside .eyebrow { color: #5db4e6; }
.contact-aside h2 { font-size: var(--text-3xl); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem; }
.contact-aside h2 .dot { color: #5db4e6; }
.contact-aside p { color: rgba(255,255,255,0.82); line-height: 1.7; margin: 0 0 2rem; max-width: 42ch; }
.contact-trust { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 2rem; }
.contact-trust__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e2e8f0;
  font-size: var(--text-sm);
  font-weight: 500;
}
.contact-trust__item .material-symbols-rounded { color: #5db4e6; font-size: 1.25rem; }
/* kontakt bezpośredni — telefon i mail jako wyraźne przyciski CTA */
.contact-alt { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; max-width: 340px; }
.contact-alt a {
  width: 100%;            /* oba przyciski tej samej szerokości, jeden pod drugim */
  justify-content: center;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
/* telefon → główne CTA (wypełnione akcentem) */
.contact-alt a[href^="tel:"] {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(41, 149, 214, 0.7);
}
.contact-alt a[href^="tel:"]:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(41, 149, 214, 0.8);
}
/* mail → CTA drugorzędne (obrys na granacie) */
.contact-alt a[href^="mailto:"] {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.contact-alt a[href^="mailto:"]:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}
.contact-alt .material-symbols-rounded { color: inherit; font-size: 1.3rem; }

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-xl);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1.125rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
}
.form-field label .req { color: var(--color-accent); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(41,149,214,0.15);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:user-invalid,
.form-field textarea:user-invalid { border-color: #dc2626; }
.form-consent {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.form-consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.1rem; accent-color: var(--color-accent); flex-shrink: 0; }
.form-consent a { color: var(--color-accent); text-decoration: underline; }
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.contact-form .btn { width: 100%; justify-content: center; }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .btn__label { visibility: hidden; }
.btn__spinner {
  position: absolute;
  width: 1.1rem; height: 1.1rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
.btn { position: relative; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.form-status {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 0.5rem;
}
.form-status.is-success { display: flex; background: var(--color-accent-light); color: var(--color-accent-hover); }
.form-status.is-error { display: flex; background: #fef2f2; color: #b91c1c; }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   PROCESS — linia czasu (ścieżka łącząca kroki)
   ============================================ */
.steps--timeline { counter-reset: step; }
.steps--timeline .step { position: relative; z-index: 1; padding-left: 0.6rem; padding-right: 0.6rem; }
/* OSOBNY animowany segment „pakietu" między KAŻDĄ parą kroków (nie jedna wspólna linia) */
.steps--timeline .step::before {
  display: block;
  content: '';
  position: absolute;
  top: calc(2rem + 24px);
  left: 50%;
  width: 100%;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(41, 149, 214, 0.3);
  /* POJEDYNCZY zwarty rdzeń (bez podwójnych ramion) */
  background:
    linear-gradient(90deg, transparent 0%, var(--color-accent) 42%, #eaf6ff 50%, var(--color-accent) 58%, transparent 100%) no-repeat,
    var(--color-border);
  background-size: 24% 100%, 100% 100%;
  background-position: -40% 0, 0 0;
  animation: packet-flow-x 2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  z-index: 0;
}
.steps--timeline .step:last-child::before { display: none; }
/* kaskada — każdy segment startuje trochę później (efekt fali) */
.steps--timeline .step:nth-child(2)::before { animation-delay: 0.35s; }
.steps--timeline .step:nth-child(3)::before { animation-delay: 0.7s; }
.steps--timeline .step:nth-child(4)::before { animation-delay: 1.05s; }
.steps--timeline .step__num {
  position: relative;
  z-index: 1;
  border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-border);
}
@media (max-width: 720px) {
  .steps--timeline .step::before { display: none; }
}

/* ============================================
   INTRO SEKCJI PODSTRON — wycentrowany tytuł + split 50/50 + karty cech
   ============================================ */
.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.intro-split__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.0625rem;
  color: var(--color-ink);
  line-height: 1.8;
}
.intro-split__text .btn { align-self: flex-start; margin-top: 0.75rem; }
.intro-split__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 340px;
}
.intro-split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
  .intro-split { grid-template-columns: 1fr; gap: 1.75rem; }
  .intro-split__media { min-height: 0; aspect-ratio: 16 / 10; order: -1; }
}

/* Karty cech (zamiast wykropkowanej listy) */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-card__icon .material-symbols-rounded { font-size: 1.5rem; }
.feature-card__text {
  font-size: var(--text-sm);
  color: var(--color-ink);
  line-height: 1.6;
  font-weight: 500;
}
/* wariant z pionowym wyśrodkowaniem (krótkie teksty, np. RFID) */
.feature-cards--center .feature-card { align-items: center; }
@media (max-width: 768px) { .feature-cards { grid-template-columns: 1fr; } }

/* ============================================
   LEAD-SPLIT — split 50/50, zdjęcie pełnokrwiste od krawędzi (intro podstron)
   ============================================ */
.lead-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: clamp(460px, 50vw, 640px);
  background: var(--color-surface);
}
.lead-split__media { position: relative; overflow: hidden; order: 2; } /* desktop: grafika po prawej */
.lead-split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lead-split__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem);
  /* tekst wyrównany do lewej krawędzi kontenera strony (max 1472px) na każdej szerokości — nie ucieka do krawędzi ekranu */
  padding-left: max(var(--container-px), calc(50vw - 736px + var(--container-px)));
}
.lead-split__logo { height: 34px; width: auto; align-self: flex-start; display: block; margin-bottom: 1.25rem; }
.lead-split__body .section__title { margin-bottom: 1rem; }
.lead-split__text { display: flex; flex-direction: column; gap: 0.875rem; }
.lead-split__text p { font-size: 1.0625rem; color: var(--color-ink); line-height: 1.75; }

/* mini-cechy — rząd z liniami podziału (jak we wzorze) */
.lead-feats {
  display: flex;
  flex-wrap: wrap;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0;
}
.lead-feat {
  flex: 1 1 0;
  min-width: 130px;
  padding: 0.25rem 1.25rem;
  border-left: 1px solid var(--color-border);
}
.lead-feat:first-child { padding-left: 0; border-left: none; }
/* Wariant 2×2 (RFID „O systemie") — kafle w siatce zamiast jednego rzędu */
.lead-feats--2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}
.lead-feats--2x2 .lead-feat {
  border-left: none;
  padding-left: 0;
  padding-right: 0;
}
.lead-feat__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.625rem;
}
.lead-feat__icon .material-symbols-rounded { font-size: 1.25rem; }
.lead-feat__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.35;
}
.lead-split__cta { align-self: flex-start; }

@media (max-width: 860px) {
  .lead-split { grid-template-columns: 1fr; min-height: 0; }
  .lead-split__media { min-height: 260px; order: -1; } /* mobile: grafika NAD tekstem sekcji (było pod całym tekstem) */
  .lead-split__body { padding: clamp(2rem, 7vw, 3rem) var(--container-px); max-width: 100%; }
  /* stopka: wygodniejsze pola dotyku dla linków */
  .footer__col a { padding-block: 0.35rem; }
  /* przyciski: wyśrodkowany tekst (istotne gdy button jest pełnej szerokości — .btn nie ma justify-content) */
  .btn { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .lead-feat { flex-basis: 45%; border-left: none; padding-left: 0; padding-right: 1rem; }
  /* hero: przyciski równej, pełnej szerokości gdy się zawijają (jeden pod drugim) */
  .page-hero__actions { flex-direction: column; align-items: stretch; }
  .page-hero__actions .btn { width: 100%; }
  /* Nasza Grupa (wąskie ekrany): logo i tekst wyśrodkowane w karcie */
  .group-node { flex-direction: column; align-items: center; text-align: center; gap: 0.85rem; }
}

/* ============================================
   WZORCE PREZENTACJI (różnicowanie sekcji podstron)
   ============================================ */

/* --- A. BENTO „featured + 3" (na ciemnym, np. AI Funkcje) --- */
.bento-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.bento-feature {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: transform 0.25s var(--ease-out), border-color 0.25s, background 0.25s;
}
.bento-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 149, 214, 0.5);
  background: rgba(255, 255, 255, 0.09);
}
.bento-feature--hero {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(41, 149, 214, 0.16), rgba(255, 255, 255, 0.05));
  border-color: rgba(41, 149, 214, 0.3);
}
.bento-feature__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(41, 149, 214, 0.15);
  color: #5db4e6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bento-feature__icon .material-symbols-rounded { font-size: 1.75rem; }
.bento-feature--hero .bento-feature__icon { width: 56px; height: 56px; }
.bento-feature--hero .bento-feature__icon .material-symbols-rounded { font-size: 2rem; }
.bento-feature__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: #f1f5f9;
  line-height: 1.3;
}
.bento-feature--hero .bento-feature__title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.bento-feature__text { font-size: var(--text-sm); color: #94a3b8; line-height: 1.6; }
.bento-feature--hero .bento-feature__text { font-size: var(--text-base); }
@media (max-width: 768px) {
  .bento-features { grid-template-columns: 1fr; }
  .bento-feature--hero { flex-direction: column; align-items: flex-start; }
}

/* --- B. PIONOWY TIMELINE (numerowane kroki, np. AI Gdzie stosujemy) --- */
.vtimeline {
  max-width: 760px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
}
.vstep {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}
.vstep:last-child { padding-bottom: 0; }
.vstep::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 60px;
  bottom: -4px;
  width: 3px;
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(41, 149, 214, 0.35);
  /* baza linii + płynący, jasny „pakiet" akcentu (parent → child) */
  background:
    linear-gradient(180deg, transparent 0%, var(--color-accent) 28%, #eaf6ff 50%, var(--color-accent) 72%, transparent 100%) no-repeat,
    linear-gradient(var(--color-accent), var(--color-border));
  background-size: 100% 50%, 100% 100%;
  background-position: 0 -60%, 0 0;
  animation: packet-flow-y 1.9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.vstep:nth-child(2)::before { animation-delay: 0.3s; }
.vstep:nth-child(3)::before { animation-delay: 0.6s; }
.vstep:nth-child(4)::before { animation-delay: 0.9s; }
.vstep:nth-child(5)::before { animation-delay: 1.2s; }
.vstep:last-child::before { display: none; }
.vstep__num {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.vstep__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--color-dark);
  margin-bottom: 0.375rem;
  padding-top: 0.875rem;
}
.vstep__text { font-size: var(--text-base); color: var(--color-muted); line-height: 1.7; }

/* --- C. ZAKŁADKI — panel obszaru (na ciemnym, np. ITSM Obszary) --- */
.tabs--center { margin: 0 auto clamp(1.5rem, 3vw, 2.25rem); justify-content: center; }
.section--dark .tabs { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.12); }
.section--dark .tab { color: #cbd5e1; }
.section--dark .tab:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.area-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  align-items: start;
}
.area-panel__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(41, 149, 214, 0.15);
  color: #5db4e6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.area-panel__icon .material-symbols-rounded { font-size: 2rem; }
.area-panel__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: #f1f5f9;
  margin-bottom: 0.75rem;
}
.area-panel__desc { color: #94a3b8; line-height: 1.7; margin-bottom: 1.25rem; }
@media (max-width: 600px) {
  .area-panel { grid-template-columns: 1fr; }
}

/* --- D. ZIG-ZAG (naprzemienne wiersze, np. RFID Funkcje) --- */
.zigzag { display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.zz-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.zz-row:nth-child(even) { grid-template-columns: 1fr auto; }
.zz-row:nth-child(even) .zz-row__visual { order: 2; }
.zz-row__visual {
  width: clamp(92px, 11vw, 128px);
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(41, 149, 214, 0.28), rgba(0, 5, 27, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.zz-row__visual .material-symbols-rounded { font-size: clamp(2rem, 3.5vw, 2.75rem); color: #5db4e6; }
.zz-row__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: #f1f5f9; margin-bottom: 0.625rem; }
.zz-row__text { color: #94a3b8; line-height: 1.7; max-width: 62ch; }
/* wiersze parzyste: ikona po prawej → tekst wyrównany do prawej (spójnie z ikoną) */
.zz-row:nth-child(even) .zz-row__content { text-align: right; }
.zz-row:nth-child(even) .zz-row__text { margin-left: auto; }
@media (max-width: 768px) {
  .zz-row, .zz-row:nth-child(even) { grid-template-columns: 1fr; gap: 1.25rem; }
  .zz-row:nth-child(even) .zz-row__visual { order: 0; }
  /* mobile: 1 kolumna → wszystko do lewej dla czytelności */
  .zz-row:nth-child(even) .zz-row__content { text-align: left; }
  .zz-row:nth-child(even) .zz-row__text { margin-left: 0; }
}

/* --- E. FEATURE STRIP (pas ikon z liniami, np. RFID Co zyskuje) --- */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.fstrip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.875rem;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s;
}
.fstrip-item:hover { background: var(--color-bg); }
.fstrip-item:nth-child(3n) { border-right: none; }
.fstrip-item:nth-last-child(-n + 3) { border-bottom: none; }
.fstrip-item__icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fstrip-item__icon .material-symbols-rounded { font-size: 1.625rem; }
.fstrip-item__label { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); line-height: 1.4; }
@media (max-width: 720px) {
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .fstrip-item:nth-child(3n) { border-right: 1px solid var(--color-border); }
  .fstrip-item:nth-child(2n) { border-right: none; }
  .fstrip-item:nth-last-child(-n + 3) { border-bottom: 1px solid var(--color-border); }
  .fstrip-item:nth-last-child(-n + 2) { border-bottom: none; }
}
@media (max-width: 440px) {
  .feature-strip { grid-template-columns: 1fr; }
  .fstrip-item { border-right: none !important; }
  .fstrip-item:last-child { border-bottom: none !important; }
  .fstrip-item:nth-last-child(-n + 2) { border-bottom: 1px solid var(--color-border); }
}

/* ============================================
   O NAS (home) — grafika WTOPIONA w tło sekcji + pasek faktów
   ============================================ */
.about-section { position: relative; overflow: hidden; }
.about-section__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 35%;
  z-index: 0;
}
/* kierunkowy gradient granatu: lewo lite (tekst), prawo-środek grafika, dół ciemny (fakty) */
.about-section__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* kierunkowy gradient granatu: lewo lite (tekst), prawo-środek grafika, dół ciemny (fakty) */
  background:
    linear-gradient(
      180deg,
      rgba(0, 5, 27, 0.35) 0%,
      rgba(0, 5, 27, 0) 22%,
      rgba(0, 5, 27, 0) 42%,
      rgba(0, 5, 27, 0.9) 76%,
      rgba(0, 5, 27, 0.99) 100%
    ),
    linear-gradient(
      95deg,
      rgba(0, 5, 27, 0.98) 0%,
      rgba(0, 5, 27, 0.92) 38%,
      rgba(0, 5, 27, 0.45) 64%,
      rgba(0, 5, 27, 0.72) 100%
    );
}
.about-section > .container { position: relative; z-index: 2; }
.about-section .split__content { max-width: 560px; }
@media (max-width: 768px) {
  /* mobile: grafika jako wyraźny PAS u góry, granat poniżej (tekst+fakty czytelne) */
  .about-section__bg { height: 280px; bottom: auto; object-position: center 32%; }
  .about-section__overlay {
    height: 280px;
    bottom: auto;
    background: linear-gradient(
      180deg,
      rgba(0, 5, 27, 0.15) 0%,
      rgba(0, 5, 27, 0.35) 55%,
      rgba(0, 5, 27, 0.96) 90%,
      rgba(0, 5, 27, 1) 100%
    );
  }
  .about-section .split__content { max-width: 100%; margin-top: 13rem; }
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.about-fact { display: flex; align-items: flex-start; gap: 0.875rem; }
.about-fact__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(41, 149, 214, 0.15);
  color: #5db4e6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-fact__icon .material-symbols-rounded { font-size: 1.5rem; }
.about-fact__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: #f1f5f9;
  line-height: 1.3;
}
.about-fact__text { font-size: var(--text-sm); color: #94a3b8; line-height: 1.5; margin-top: 0.15rem; }
@media (max-width: 900px) { .about-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .about-facts { grid-template-columns: 1fr; } }

/* ============================================
   KLIENCI — „Zaufali nam" (chipy/pills; kontra do marquee partnerów)
   ============================================ */
.clients {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.clients__label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}
/* auto-slider — karty nazw klientów przesuwają się skokowo (kontra do ciągłego marquee partnerów) */
.client-slider {
  /* full-bleed — rozciągnięcie na pełną szerokość strony, poza .container */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.client-slider__viewport {
  overflow: hidden;
  /* wygaszenie krawędzi — pokrewne do marquee partnerów */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.client-slider__viewport.is-dragging {
  cursor: grabbing;
}
.client-slider__track {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
  touch-action: pan-y; /* pozwól na pionowy scroll dotykiem, poziom = drag karuzeli */
}
.client-slide {
  /* stała szerokość karty → im szerszy ekran, tym więcej kart (perView liczony w JS) */
  flex: 0 0 clamp(150px, 15vw, 200px);
  box-sizing: border-box;
  padding: 0 0.4rem;
}
.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 60px;
  padding: 0.5rem 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--color-ink);
}
/* fallback: prefers-reduced-motion → statyczna, zawijana siatka (wszyscy widoczni) */
.client-slider--static .client-slider__viewport {
  -webkit-mask-image: none;
  mask-image: none;
}
.client-slider--static .client-slider__track {
  flex-wrap: wrap;
  justify-content: center;
  transform: none !important;
}
.client-slider--static .client-slide {
  padding: 0.5rem;
}
/* stepper kropek pod karuzelą — okno 5 kropek, aktywna wyśrodkowana */
.client-dots {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
}
.client-dots__viewport {
  overflow: hidden;
  width: 100px; /* 5 kropek × 20px (8px + 2×6px margines) */
}
.client-dots__track {
  display: flex;
  align-items: center;
  height: 22px;
  width: max-content;
  will-change: transform;
}
.client-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin: 0 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transform: scale(1);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
button.client-dot:hover {
  background: var(--color-muted);
}
.client-dot.is-active {
  background: var(--color-accent);
  transform: scale(1.4);
}
.client-dot.is-edge {
  transform: scale(0.6);
  opacity: 0.4;
}
.client-dot.is-hidden {
  transform: scale(0.3);
  opacity: 0;
  cursor: default;
}
.client-dot[aria-hidden="true"] {
  cursor: default;
}
/* reduced-motion: brak karuzeli → brak kropek */
.client-slider--static ~ .client-dots,
.client-dots.is-hidden {
  display: none;
}

/* --- claimy/korzyści — małe, zwarte karty (ikona + tekst) --- */
.claims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  max-width: 960px;
  margin: 0 auto;
}
.claim {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.claim:hover { border-color: var(--color-accent); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.claim__icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.claim__icon .material-symbols-rounded { font-size: 1.125rem; }
.claim__text { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); line-height: 1.35; }
.claim__text strong { color: var(--color-accent); font-weight: 700; }
@media (max-width: 768px) { .claims { grid-template-columns: 1fr; max-width: 420px; } }

/* ============================================
   OPIEKUN PRODUKTU — sekcja personalna (magazynowy layout: portret + akcentowy kształt marki za zdjęciem)
   ============================================ */
.owner-v4 { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--color-bg); }
.owner-v4__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; max-width: 1050px; margin: 0 auto; padding: 0 var(--container-px); }
.owner-v4__photo { position: relative; aspect-ratio: 4/5; }
.owner-v4__photo::before { content: ''; position: absolute; inset: 0; transform: translate(20px, 20px); background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover)); border-radius: var(--radius-lg); z-index: 0; }
.owner-v4__photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.owner-v4__mark { font-family: Georgia, serif; font-size: 3.5rem; line-height: 0.5; color: var(--color-accent); opacity: 0.3; display: block; }
.owner-v4 .eyebrow { margin: 0.5rem 0 0.75rem; }
.owner-v4__name { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; color: var(--color-ink); line-height: 1.05; }
.owner-v4__role { color: var(--color-accent); font-weight: 600; margin: 0.375rem 0 1rem; }
.owner-v4__bio { color: var(--color-muted-dark); line-height: 1.7; margin-bottom: 1.75rem; max-width: 46ch; }
.owner-v4__contact { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.owner-v4__contact a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.15rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-ink); font-weight: 600; font-size: var(--text-sm); transition: border-color .2s, background .2s, color .2s, transform .2s; }
.owner-v4__contact a:hover { border-color: var(--color-accent); background: var(--color-accent-light); color: var(--color-accent); transform: translateY(-2px); }
.owner-v4__contact .material-symbols-rounded { font-size: 1.2rem; color: var(--color-accent); }
@media (max-width: 760px) { .owner-v4__inner { grid-template-columns: 1fr; } .owner-v4__photo { max-width: 340px; } }

/* ============================================
   BLOG — karty, filtry, badge kategorii
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.blog-card:hover .blog-card__media img { transform: scale(1.04); }
.blog-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card__meta {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.625rem;
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.625rem;
}
.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.blog-card__more {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.blog-card__more::after { content: '→'; transition: transform 0.2s; }
.blog-card:hover .blog-card__more::after { transform: translateX(3px); }

/* Badge kategorii */
.blog-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blog-card__media .blog-badge {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  backdrop-filter: blur(4px);
}
.blog-badge--news    { background: rgba(100,116,139,0.92); color: #f1f5f9; }   /* Aktualności — slate */
.blog-badge--webinar { background: rgba(41,149,214,0.95);  color: #ffffff; }   /* Webinary — niebieski */
.blog-badge--case    { background: rgba(51,189,171,0.95);  color: #00051b; }   /* Case Study — turkus */

/* Filtry kategorii */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.blog-filter {
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.blog-filter:hover { border-color: var(--color-accent); color: var(--color-accent); }
.blog-filter.is-active { background: var(--color-accent); border-color: var(--color-accent); color: white; }
.blog-empty {
  text-align: center;
  color: var(--color-muted);
  font-size: var(--text-lg);
  padding: 3rem 1rem;
}

/* ============================================
   ARTYKUŁ (pojedynczy wpis) — layout enterprise
   ============================================ */
/* Pasek postępu czytania */
.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(41, 149, 214, 0.12);
  z-index: 200;
}
.reading-progress__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  box-shadow: 0 0 8px rgba(41, 149, 214, 0.5);
  will-change: transform;
}

.article-hero {
  background: var(--color-dark);
  color: white;
  padding: clamp(3rem, 6vw, 4.75rem) 0 clamp(2.75rem, 4vw, 3.75rem);
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 60%; height: 180%;
  background: radial-gradient(ellipse at center, rgba(41,149,214,0.18), transparent 70%);
  pointer-events: none;
}
.article-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.article-hero__crumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #94a3b8;
}
.article-hero__crumbs a { color: #94a3b8; transition: color 0.2s; }
.article-hero__crumbs a:hover { color: #5db4e6; }
.article-hero__crumbs .material-symbols-rounded { font-size: 1.05rem; opacity: 0.6; }
.article-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 24ch;
}
.article-hero__lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: #c3d0e0;
  max-width: 60ch;
}
.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  color: #94a3b8;
  margin-top: 0.25rem;
}
.article-hero__meta .material-symbols-rounded { font-size: 1rem; vertical-align: -2px; margin-right: 0.15rem; color: #5db4e6; }
.article-hero__dot { opacity: 0.5; margin: 0 0.15rem; }

.article-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin: -2.5rem 0 0;
  position: relative;
  box-shadow: var(--shadow-lg);
}
/* wariant: wideo w slocie okładki (16:9, mieści facade / iframe) */
.article-cover--video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
}

.article-body {
  font-size: 1.1875rem;
  line-height: 1.8;
  color: var(--color-ink);
  max-width: 68ch;
  margin: 0 auto;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 2.5rem 0 0.875rem;
  padding-left: 1rem;
  border-left: 4px solid var(--color-accent);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-dark);
  margin: 1.85rem 0 0.6rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body ul { list-style: none; padding-left: 0; margin: 0 0 1.5rem; }
.article-body li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
}
.article-body li::before {
  content: 'check_circle';
  font-family: 'Material Symbols Rounded';
  position: absolute;
  left: 0; top: 0.15rem;
  font-size: 1.25rem;
  color: var(--color-accent);
}
.article-body strong { color: var(--color-dark); font-weight: 700; }
.article-body a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }

/* Lead pod tytułem (pierwszy akapit wyróżniony) */
.article-body .article-lead {
  font-size: 1.375rem;
  line-height: 1.55;
  color: var(--color-dark);
  font-weight: 500;
}
/* Cytat wyróżniony */
.article-body .article-quote,
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--color-accent-light);
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.45;
  font-weight: 600;
  font-style: italic;
  color: var(--color-dark);
}
.article-body .article-quote::before { content: '„'; color: var(--color-accent); font-size: 1.2em; margin-right: 0.05em; }
.article-body .article-quote::after { content: '”'; color: var(--color-accent); font-size: 1.2em; margin-left: 0.05em; }

/* Karty statystyk w treści */
.article-body .stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 2.25rem;
}
.article-body .stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.article-body .stat-card__num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}
.article-body .stat-card__label {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-muted);
}
@media (max-width: 640px) {
  .article-body .stat-cards { grid-template-columns: 1fr; }
}

/* Sekcja wideo / webinar */
.article-video {
  max-width: 68ch;
  margin: 3.5rem auto 0;
}
.article-video__head { text-align: center; margin-bottom: 1.5rem; }
.article-video__head .eyebrow--line { justify-content: center; }
.article-video__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.01em;
  margin: 0.5rem 0 0.5rem;
}
.article-video__lead { color: var(--color-muted); font-size: var(--text-base); }
.article-video__player, .article-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.article-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-facade {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  padding: 0; border: 0; cursor: pointer;
  background: var(--color-dark);
}
.yt-facade__thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
  opacity: 0.85;
}
.yt-facade:hover .yt-facade__thumb { transform: scale(1.05); opacity: 1; }
.yt-facade__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(41, 149, 214, 0.95);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 5, 27, 0.45);
  transition: transform 0.25s var(--ease-spring), background 0.25s;
}
.yt-facade__play svg { margin-left: 3px; }
.yt-facade:hover .yt-facade__play { transform: translate(-50%, -50%) scale(1.12); background: var(--color-accent); }

.article-cta {
  max-width: 68ch;
  margin: 3.5rem auto 0;
  padding: 2.5rem;
  background: var(--color-accent-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-align: center;
}
.article-cta h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.01em;
  margin-bottom: 0.625rem;
}
.article-cta p { color: var(--color-muted); margin-bottom: 1.5rem; }

.blog-related { margin-top: 4rem; }
.blog-related__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .reading-progress__fill { transition: none; }
  .yt-facade__thumb, .yt-facade__play { transition: none; }
}

/* ============================================
   STRONA „O NAS" — komponenty (Kim jesteśmy, Nasza Grupa, Partnerzy marquee)
   ============================================ */
/* eyebrow z kreską */
.eyebrow--line {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.eyebrow--line::before,
.eyebrow--line::after {
  content: '';
  width: 2rem; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
/* akapity „o nas" */
.about__text p { font-size: 1.0625rem; color: var(--color-ink); line-height: 1.75; margin-bottom: 1rem; }
.about__text p:last-child { margin-bottom: 0; }
/* karty faktów / biura */
.office-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.office-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.office-card__city { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--color-dark); }
.office-card__addr { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.6; margin-top: 0.25rem; }
/* Nasza Grupa — drzewo struktury */
.group-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3.25rem);
  box-shadow: var(--shadow-sm);
  isolation: isolate; /* kontekst stackingu: łącznik (z-index -1) siada nad tłem bloku, a pod kartami */
}
.group-block__kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.group-block__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.group-block__text { color: var(--color-muted); line-height: 1.75; margin-bottom: 1.5rem; }
.group-tree {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.group-node {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}
.group-node--parent { background: var(--color-dark); border-color: var(--color-dark); color: #fff; }
.group-node--parent .group-node__name { color: #fff; }
.group-node--parent .group-node__role { color: #94a3b8; }
.group-node--child { margin-left: clamp(1.5rem, 4vw, 2.75rem); position: relative; }
.group-node--child::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(1.5rem, 4vw, 2.75rem) + 0.875rem);
  top: -0.875rem;
  bottom: 50%;
  width: 1px;
  background: var(--color-border-dark);
}
.group-node--child::after {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(1.5rem, 4vw, 2.75rem) + 0.875rem);
  top: 50%;
  width: clamp(1.5rem, 4vw, 2.75rem);
  height: 1px;
  margin-left: -0.875rem;
  background: var(--color-border-dark);
}
.group-node--child.is-current { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(41,149,214,0.12); background: var(--color-surface); }
.group-node__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(41,149,214,0.14);
  color: var(--color-accent);
}
.group-node--parent .group-node__icon { background: rgba(255,255,255,0.12); color: #5db4e6; }
.group-node__name { font-family: var(--font-display); font-weight: 700; color: var(--color-dark); letter-spacing: -0.01em; line-height: 1.25; }
.group-node__role { font-size: var(--text-sm); color: var(--color-muted); margin-top: 0.125rem; }
@media (max-width: 768px) {
  /* Nasza Grupa na mobile: jedna kolumna, symetryczne paddingi, osobny pionowy łącznik */
  .group-block { grid-template-columns: minmax(0, 1fr); } /* minmax(0,) blokuje rozpychanie tracka przez min-content → brak przesunięcia kart w prawo */
  .group-tree { gap: 2rem; }                               /* miejsce na łącznik */
  .group-tree .group-node--child { margin-left: 0; }       /* bez wcięcia org-chartu */
  /* desktopowy łącznik (pseudo L) całkowicie ukryty — na mobile działa osobny .group-connector */
  .group-tree .group-node--child::before,
  .group-tree .group-node--child::after { display: none; }
  .group-block .group-tree::before { display: none; }      /* bez dekoracyjnego tła kropek */
  /* osobny mobilny łącznik — pionowa kreska, pod kartami (z-index), lekki overlap dla styku.
     Selektor z .group-tree podbija specyficzność ponad bazowe `.group-connector { display:none }` (jest niżej w pliku). */
  .group-tree .group-connector {
    display: block;
    position: absolute;
    left: 50%;
    top: -2.3rem;
    height: 2.6rem;
    width: 2px;
    transform: translateX(-50%);
    background: var(--color-accent);
    z-index: -1;
  }
}
/* Partnerzy — marquee (przeniesione z inline index.html, żeby działało też na o-nas.html) */
.partners-section {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--color-border);
}
.partners-label {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-light);
  margin-bottom: 2rem;
}
.marquee-track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
}
.marquee-track:hover .marquee-inner { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.partner-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter 0.3s;
  flex-shrink: 0;
}
.partner-logo:hover { filter: grayscale(0%) opacity(1); }

/* ============================================
   O NAS — Zespół (kolaż zdjęć) + Zaufali nam (dwurzędowy marquee)
   ============================================ */
.team-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.team-split__body .about__text p { color: var(--color-muted-dark); }
.team-stats { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin-top: 1.75rem; }
.team-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.team-stat__k { font-family: var(--font-display); font-weight: 700; color: var(--color-dark); font-size: var(--text-lg); line-height: 1.2; }
.team-stat__v { font-size: var(--text-sm); color: var(--color-muted); }
/* kolaż 3 zdjęć — asymetryczna siatka, hover-zoom, pływający badge */
.team-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.9rem;
  aspect-ratio: 1 / 0.9;
}
.team-collage__item { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: var(--color-surface); }
.team-collage__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease-out); }
.team-collage__item:hover img { transform: scale(1.06); }
.team-collage__item--tall { grid-row: 1 / 3; }
.team-collage__badge {
  position: absolute;
  left: -0.75rem;
  bottom: -0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-dark);
  color: #fff;
  padding: 0.7rem 1.05rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 34px rgba(0, 5, 27, 0.32);
  font-weight: 600;
  font-size: var(--text-sm);
}
.team-collage__badge .material-symbols-rounded { color: #5db4e6; font-size: 1.2rem; }
@media (max-width: 860px) { .team-split { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .team-collage { aspect-ratio: 1 / 1.05; } }
/* Zaufali nam — dwurzędowy marquee (rzędy przewijają się w przeciwnych kierunkach) */
.trust-section { background: var(--color-bg); }
.trust-marquee {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.trust-marquee__row { display: flex; gap: 1rem; width: max-content; }
.trust-marquee__row--l { animation: marquee-scroll 48s linear infinite; }
.trust-marquee__row--r { animation: marquee-scroll-rev 48s linear infinite; }
.trust-marquee:hover .trust-marquee__row { animation-play-state: paused; }
@keyframes marquee-scroll-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.trust-card {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  height: 68px;
  padding: 0 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-ink);
  text-align: center;
  line-height: 1.2;
}
@media (prefers-reduced-motion: reduce) {
  .trust-marquee__row { animation: none !important; }
  .trust-marquee { flex-wrap: nowrap; overflow-x: auto; }
}

/* ============================================
   NASZA GRUPA — graf struktury (enterprise + animowany puls)
   ============================================ */
.group-tree {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: relative;
}
/* subtelne tło „canvas grafu" — kropki, wygaszone maską */
.group-tree::before {
  content: '';
  position: absolute;
  inset: -1.25rem -0.75rem;
  background-image: radial-gradient(circle, rgba(41, 149, 214, 0.14) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 50%, #000 32%, transparent 80%);
  mask-image: radial-gradient(ellipse 78% 82% at 50% 50%, #000 32%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.group-tree .group-node { position: relative; } /* bez własnego z-index → karty nie tworzą kontekstu, żeby łącznik (-1) mógł schować się pod nie */
.group-connector { display: none; } /* osobny łącznik mobilny — na desktopie ukryty (desktop używa ::before/::after) */
/* hierarchia starszeństwa: dziecko z wcięciem + elbow-łącznik (org-chart) */
.group-tree { gap: 2.4rem; }
.group-node--child {
  --gindent: clamp(1.75rem, 5vw, 3rem);
  margin-left: var(--gindent);
  position: relative;
}
/* pionowa krawędź łącznika + płynący puls (parent → child) */
.group-node--child::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--gindent) + 1.125rem);
  top: -2.75rem; /* zachodzi na spód karty rodzica → wyraźny styk u góry */
  bottom: calc(50% - 1.5px);
  width: 3px;
  z-index: -1; /* pod kartami — nadmiar chowa się pod nie */
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 5px rgba(41, 149, 214, 0.3);
  /* baza w kolorze akcentu (widoczna zarówno na ciemnej karcie rodzica, jak i przy jasnej karcie dziecka) + płynący jasny puls */
  background:
    linear-gradient(180deg, transparent 0%, #eaf6ff 50%, transparent 100%) no-repeat,
    var(--color-accent);
  background-size: 100% 52%, 100% 100%;
  background-position: 0 -60%, 0 0;
  animation: packet-flow-y 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
/* pozioma krawędź łącznika → wchodzi w lewą krawędź dziecka */
.group-node--child::after {
  content: '';
  position: absolute;
  left: calc(-1 * var(--gindent) + 1.125rem);
  top: calc(50% - 1.5px);
  width: calc(var(--gindent) - 1.125rem + 13px); /* +13px: zachodzi na lewą krawędź karty dziecka → wyraźny styk (bez tego zostawał widoczny odstęp) */
  height: 3px;
  z-index: -1; /* pod kartami — nadmiar chowa się pod nie */
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 5px rgba(41, 149, 214, 0.3);
  /* baza w kolorze akcentu (wpływa w niebieską ramkę dziecka → czyta się jako połączenie) + płynący jasny puls */
  background:
    linear-gradient(90deg, transparent 0%, #eaf6ff 50%, transparent 100%) no-repeat,
    var(--color-accent);
  background-size: 48% 100%, 100% 100%;
  background-position: -45% 0, 0 0;
  animation: packet-flow-x 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
/* wspólne animacje „przesyłania pakietu" po krawędziach grafów w całym systemie */
@keyframes packet-flow-y {
  0% { background-position: 0 -60%, 0 0; }
  100% { background-position: 0 160%, 0 0; }
}
@keyframes packet-flow-x {
  0% { background-position: -30% 0, 0 0; }
  100% { background-position: 130% 0, 0 0; }
}
/* delikatna pulsująca poświata na węźle bieżącym (PLC Software) */
.group-node--child.is-current {
  border-color: var(--color-accent);
  background: var(--color-surface);
  animation: group-glow 2.4s ease-in-out infinite;
}
@keyframes group-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(41, 149, 214, 0.10); }
  50% { box-shadow: 0 0 0 5px rgba(41, 149, 214, 0.24); }
}
@media (prefers-reduced-motion: reduce) {
  .group-node--child::before { animation: none; background-position: 0 40%, 0 0; }
  .group-node--child.is-current { animation: none; box-shadow: 0 0 0 3px rgba(41, 149, 214, 0.12); }
  .vstep::before,
  .steps--timeline::before { animation: none; }
}

/* ============================================
   FORMULARZ ZOHO — nadpisanie stylów Zoho naszymi (integracja/JS bez zmian)
   Zoho stosuje style INLINE → nadpisujemy z !important, scope .zoho-form.
   Efekt: wygląd jak nasz dawny .contact-form (biała karta, pola z etykietą u góry).
   ============================================ */
.zoho-form { width: 100%; }
/* karta jak .contact-form */
.zoho-form #SIGNUP_PAGE {
  background: var(--color-surface) !important;
  color: var(--color-ink) !important;
  font-family: var(--font-body) !important;
  opacity: 1 !important;
  padding: clamp(1.75rem, 4vw, 2.5rem) !important;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  text-align: left !important;
  font-size: var(--text-base) !important;
}
.zoho-form #imgBlock,
.zoho-form #SIGNUP_PAGE > br { display: none !important; }
.zoho-form #signupMainDiv { width: 100% !important; max-width: none !important; }
/* własny nagłówek „Porozmawiajmy" jest obok → chowamy nagłówek Zoho */
.zoho-form #SIGNUP_HEADING { display: none !important; }
.zoho-form #SIGNUP_BODY {
  background: transparent !important;
  padding: 0 !important;
  color: var(--color-ink) !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-base) !important;
}
.zoho-form #SIGNUP_BODY_ALL { border: 0 !important; }
/* etykiety nad polami (zamiast float 130px z boku) */
.zoho-form [name="SIGNUP_FORM_LABEL"] {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin: 0 0 0.4rem !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  color: var(--color-ink) !important;
  text-align: left !important;
}
.zoho-form .zcinputbox {
  display: block !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}
.zoho-form .zcsffieldsdiv > div { padding: 0 0 1.125rem 0 !important; }
/* pola input / textarea */
.zoho-form input[type="email"],
.zoho-form input[type="text"],
.zoho-form textarea {
  width: 100% !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-base) !important;
  color: var(--color-ink) !important;
  background: var(--color-bg) !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.75rem 0.875rem !important;
  height: auto !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.zoho-form textarea { min-height: 110px !important; resize: vertical !important; }
.zoho-form input[type="email"]:focus,
.zoho-form input[type="text"]:focus,
.zoho-form textarea:focus {
  outline: none !important;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px rgba(41, 149, 214, 0.15) !important;
}
/* gwiazdki required + tekst pomocniczy */
.zoho-form [name="SIGNUP_REQUIRED"] { color: var(--color-accent) !important; }
.zoho-form #REQUIRED_FIELD_TEXT {
  font-family: var(--font-body) !important;
  font-size: var(--text-xs) !important;
  color: var(--color-muted) !important;
  padding-left: 0 !important;
}
.zoho-form #errorMsgDiv { border-radius: var(--radius-md) !important; }
/* zgoda RODO — jak .form-consent */
.zoho-form [name="privacyPolicy"] {
  padding: 0.25rem 0 1rem !important;
  font-size: var(--text-xs) !important;
  color: var(--color-muted) !important;
}
.zoho-form [name="privacyPolicy"] input { accent-color: var(--color-accent); vertical-align: middle; }
.zoho-form [name="privacyPolicy"] a { color: var(--color-accent) !important; text-decoration: underline !important; }
/* przycisk „Wyślij" — jak .btn--primary */
.zoho-form #zcWebOptin {
  width: 100% !important;
  background: var(--color-accent) !important;
  color: #fff !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: var(--text-base) !important;
  border: 0 !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.9rem 1.5rem !important;
  cursor: pointer;
  transition: background 0.2s;
}
.zoho-form #zcWebOptin:hover { background: var(--color-accent-hover) !important; }

/* NASZA GRUPA — logotypy firm zamiast ikon (logo = szer. naturalna, mały odstęp do tekstu) */
.group-node__logo {
  width: auto;
  height: 30px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
/* png ma większy przezroczysty margines niż webp → dajemy mu więcej wysokości,
   żeby REALNY znak „PLC" był tej samej wielkości w obu logotypach (oba wychodzą ~141px szer.) */
.group-node--child .group-node__logo { height: 42px; }
/* mniejszy odstęp logo → tekst + równa wysokość obu węzłów */
.group-tree .group-node { gap: 0.7rem; min-height: 82px; }
/* webp spółki-matki jest już w wersji na ciemne tło (biały napis) → BEZ filtra */

/* ═══════════════════════════════════════════════════════════════
   CMS-FIX (2026-07-07): inline style="" → klasy
   Panel CMS (GrapesJS) wycina atrybut style="" przy renderze w kanwie
   ORAZ przy zapisie — psuło to podgląd (logo stopki, układ nagłówka
   „Baza wiedzy") i mogło psuć zapisaną stronę. Klasy poniżej zastępują
   usunięte inline-style; żyją w style.css (ładowanym też w kanwie
   edytora), więc są odporne na GrapesJS.
   ⚠ Przy dodawaniu nowych bloków NIE używać style="" — dodać klasę tutaj.
   ═══════════════════════════════════════════════════════════════ */
/* Stopka */
.footer-logo img { height: 52px; width: auto; filter: brightness(0) invert(1); }
.footer__social { display: flex; gap: 1.5rem; }
.footer__legal { font-size: var(--text-xs); opacity: 0.7; margin-top: 0.75rem; }
/* Nagłówek sekcji z akcją po prawej (np. „Baza wiedzy" + przycisk) */
.section__header--spread { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.section__header--flush { margin-bottom: 0; }
/* Util: element rozpięty na całą szerokość gridu */
.u-col-span-all { grid-column: 1 / -1; }
/* RFID */
.eyebrow--rfid { color: #1f7fbf; }
.table-scroll { overflow: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
/* O nas */
.split--top { align-items: start; }
.about-facts--plain { position: static; display: grid; grid-template-columns: 1fr; gap: 1rem; }
.eyebrow--center { justify-content: center; }
