/* ============================================================
   Strona B2B (pattern: b2b-page.php, klasy .tech-b2bp*)
   Landing współpracy: hero, pasek zaufania, 3 drogi, dlaczego, pas-zdjęcie,
   formularz (CF7), FAQ. Wygląd 1:1 z mockupem „Collibre B2B standalone.html".
   Bloki Spectry trzymane „chude" — tu jedyne źródło prawdy wyglądu + resety Spectry/Astry.
   ============================================================ */

/* ============================================================
   Layout strony (Astra page-builder) — inc/b2b.php dokłada body.tech-b2b-page.
   ============================================================ */
.tech-b2b-page { overflow-x: clip; }  /* 100vw breakout sekcji nie może dawać poziomego scrolla */
/* Ukryj domyślny tytuł/nagłówek wpisu Astry (nasz H1 jest w hero). */
.tech-b2b-page .entry-header,
.tech-b2b-page .entry-title,
.tech-b2b-page .ast-title-bar,
.tech-b2b-page .ast-single-post-featured-section { display: none !important; }
/* GOTCHA (page-builder): Astra .site-content > .ast-container = flex (row na desktopie) →
   nasze root-sekcje ustawiłyby się OBOK siebie. Wracamy do block.
   + Astra `.ast-container{padding-left/right:20px}` insetował sekcje alignfull o 20px (biały pasek
     przy krawędziach, sekcje NIE dochodziły do brzegu ekranu). Zerujemy → prawdziwy full-bleed. */
.tech-b2b-page .site-content > .ast-container {
  display: block;
  padding-left: 0 !important; padding-right: 0 !important; max-width: 100% !important;
}
/* Full-bleed KULOODPORNY: sekcja alignfull łamie się do pełnej szerokości viewportu (100vw),
   niezależnie od paddingu .ast-container / .entry-content / article Astry.
   margin: calc(50% - 50vw) centruje 100vw blok względem jego pozycji → 0..100vw = od krawędzi do krawędzi. */
.tech-b2b-page .entry-content > .tech-b2bp.alignfull {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* --- Wspólny wrapper treści sekcji (Spectra: inner wrap = min(100%,1200px), centruje) --- */
.tech-b2bp > .uagb-container-inner-blocks-wrap {
  max-width: var(--tech-container) !important;   /* 80rem = max-w-7xl */
  width: 100%;
  margin-inline: auto !important;
  padding-inline: 1.5rem;
  align-items: flex-start !important;
  row-gap: 0 !important;
}

/* Nadtytuł / nagłówki / leady wspólne */
.tech-b2bp__eyebrow {
  margin: 0 0 1rem !important;
  font-size: var(--tech-fs-xs); font-weight: var(--tech-fw-bold);
  letter-spacing: .18em; text-transform: uppercase; color: var(--tech-slate);
}
.tech-b2bp__h1 h1.uagb-heading-text {
  margin: 0 !important;
  font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: var(--tech-fw-extrabold);
  line-height: 1.05; letter-spacing: var(--tech-tracking-tight); color: var(--tech-ink);
}
.tech-b2bp__h2 h2.uagb-heading-text {
  margin: 0 !important;
  font-size: clamp(1.875rem, 3.5vw, 2.25rem); font-weight: var(--tech-fw-bold);
  line-height: var(--tech-lh-snug); letter-spacing: var(--tech-tracking-tight); color: var(--tech-ink);
}
.tech-b2bp__h2--center { align-self: center !important; text-align: center; }
.tech-b2bp__sublead { margin: 1rem 0 0 !important; max-width: 42rem; font-size: var(--tech-fs-lg); color: var(--tech-slate); line-height: var(--tech-lh-normal); }
.tech-b2bp__sublead--center { align-self: center !important; text-align: center; }

/* --- Zdjęcia: realne bloki core/image (edytowalne — klient klika „Zamień" i wybiera z galerii) --- */
.tech-b2bp__heroimg { margin: 0; }
.tech-b2bp__heroimg img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--tech-radius-lg); }
.tech-b2bp__bandimg { margin: 0; width: 100%; }
.tech-b2bp__bandimg img { display: block; width: 100%; height: 320px; object-fit: cover; }
@media (min-width: 640px)  { .tech-b2bp__bandimg img { height: 420px; } }
@media (min-width: 1024px) { .tech-b2bp__bandimg img { height: 480px; } }

/* ============================================================
   1. HERO
   ============================================================ */
/* standard breadcrumbs: 2rem / 3rem@1024 od navbara (offset = padding-top sekcji hero;
   bazowy padding .tech-breadcrumbs z blog.css zerowany, inner wrap ma własny padding-inline) */
.uagb-is-root-container.tech-b2bp.tech-b2bp--hero { padding-top: 2rem !important; }
@media (min-width: 1024px) { .uagb-is-root-container.tech-b2bp.tech-b2bp--hero { padding-top: 3rem !important; } }
.tech-b2bp__crumbs { padding: 0 !important; max-width: none !important; margin: 0 0 1.5rem !important; align-self: flex-start !important; }

.tech-b2bp__herogrid {
  display: grid !important; grid-template-columns: 1fr; gap: 2.5rem;
  align-items: center; width: 100% !important; max-width: none !important; padding: 0 !important;
}
@media (min-width: 1024px) { .tech-b2bp__herogrid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.tech-b2bp__herogrid > .wp-block-uagb-container { width: auto !important; max-width: none !important; padding: 0 !important; align-items: flex-start !important; row-gap: 0 !important; }
.tech-b2bp__herolead { margin: 1.5rem 0 0 !important; font-size: var(--tech-fs-xl); color: var(--tech-slate); line-height: var(--tech-lh-normal); }
.tech-b2bp__herocta { margin-top: 2.25rem !important; }
.tech-b2bp__herocta .uagb-buttons__wrap { justify-content: flex-start; gap: .75rem; flex-wrap: wrap; }

/* ============================================================
   2. PASEK ZAUFANIA
   ============================================================ */
.tech-b2bp--trust { background: var(--tech-mist); padding-top: 3rem !important; padding-bottom: 3rem !important; }
.tech-b2bp__trustgrid {
  display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 2rem;
  width: 100% !important; max-width: none !important; padding: 0 !important;
}
@media (min-width: 1024px) { .tech-b2bp__trustgrid { grid-template-columns: repeat(4, 1fr); } }
.tech-b2bp__stat { padding: 0 !important; align-items: center !important; row-gap: 0 !important; text-align: center; }
.tech-b2bp__stat-n {
  margin: 0 !important; font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: var(--tech-fw-extrabold);
  letter-spacing: var(--tech-tracking-tight); color: var(--tech-ink);
}
.tech-b2bp__stat-l { margin: .25rem 0 0 !important; font-size: var(--tech-fs-sm); color: var(--tech-slate); }

/* ============================================================
   3. TRZY DROGI WSPÓŁPRACY
   ============================================================ */
.tech-b2bp__sublead { }
.tech-b2bp__drogigrid {
  display: grid !important; grid-template-columns: 1fr; gap: 1.5rem;
  margin-top: 3rem !important; width: 100% !important; max-width: none !important; padding: 0 !important;
  align-items: stretch !important;
}
@media (min-width: 1024px) { .tech-b2bp__drogigrid { grid-template-columns: repeat(3, 1fr); align-items: start !important; } }
/* Spectra nadaje kartom widthDesktop:33 → width:33% w komórce grida = paski. Reset. */
.tech-b2bp__drogigrid > .wp-block-uagb-container { width: auto !important; max-width: none !important; }

.tech-b2bp__droga {
  display: flex !important; flex-direction: column; align-items: flex-start !important; row-gap: 0 !important;
  background: var(--tech-white);
  /* mockup: karty hurt/prod = border-gray-200 (#E5E7EB), jasny.
     ⚠️ !important KONIECZNE — Spectra wymusza border-color:inherit (0,2,0) → bez tego border był ciemny. */
  border: 1px solid #E5E7EB !important;
  border-radius: var(--tech-radius-lg); padding: 2rem !important; height: 100%;
}
/* Karta wyróżniona (white label) — ciemna, uniesiona */
.tech-b2bp__droga--dark { position: relative; background: var(--tech-ink); border-color: var(--tech-ink) !important; box-shadow: var(--tech-shadow-lg); }
@media (min-width: 1024px) { .tech-b2bp__droga--dark { margin-top: -1rem; margin-bottom: 1rem; } }
/* Pigułka POLECANE — mała, w rogu (mockup: absolute -top-3 left-8).
   ⚠️ Spectra ustawia dzieciom kontenera `position:relative` (równa specyficzność, ładowana PÓŹNIEJ →
   nadpisywała nasze absolute → pigułka wpadała w flow = pełna szerokość). Podbita specyficzność + !important. */
.tech-b2bp__droga--dark .tech-b2bp__droga-pill {
  position: absolute !important; top: -.75rem !important; left: 2rem !important;
  right: auto !important; bottom: auto !important;
  width: auto !important; max-width: max-content !important; margin: 0 !important;
  display: inline-block !important;
  background: var(--tech-mint); color: var(--tech-white);
  font-size: 11px; font-weight: var(--tech-fw-bold); letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .75rem; border-radius: var(--tech-radius-pill); box-shadow: var(--tech-shadow-sm);
}
.tech-b2bp__droga-tag {
  margin: 0 0 .75rem !important; font-size: var(--tech-fs-xs); font-weight: var(--tech-fw-bold);
  letter-spacing: .14em; text-transform: uppercase; color: var(--tech-slate);
}
.tech-b2bp__droga-tag--light { color: rgba(255,255,255,.6); }
.tech-b2bp__droga-h h3.uagb-heading-text {
  margin: 0 !important; font-size: var(--tech-fs-2xl); font-weight: var(--tech-fw-bold);
  letter-spacing: var(--tech-tracking-tight); color: var(--tech-ink);
}
.tech-b2bp__droga-p { margin: .75rem 0 0 !important; color: var(--tech-slate); line-height: var(--tech-lh-normal); }
.tech-b2bp__droga-list { list-style: none; margin: 1.5rem 0 0 !important; padding: 0 !important; width: 100%; }
.tech-b2bp__droga-list li { position: relative; padding-left: 1.75rem; margin-bottom: .75rem; color: var(--tech-ink); }
.tech-b2bp__droga-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.125rem; height: 1.125rem;
  background: currentColor;
  -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
@supports not ((-webkit-mask-image: url(#x)) or (mask-image: url(#x))) {
  .tech-b2bp__droga-list li::before { content: "✓"; background: none; width: auto; height: auto; top: 0; }
}
/* przycisk dosunięty do dołu (równa linia we wszystkich kartach) */
.tech-b2bp__droga-btnwrap { margin: auto 0 0 0 !important; padding-top: 2rem !important; align-self: stretch !important; }
.tech-b2bp__droga-btnwrap .uagb-buttons__wrap { justify-content: stretch; }
.tech-b2bp__droga-btnwrap .wp-block-uagb-buttons-child,
.tech-b2bp__droga-btnwrap a.uagb-buttons-repeater { width: 100%; justify-content: center; }

/* Wariant ciemny — kolory */
.tech-b2bp__droga--dark .tech-b2bp__droga-h h3.uagb-heading-text { color: var(--tech-white) !important; }
.tech-b2bp__droga--dark .tech-b2bp__droga-p { color: rgba(255,255,255,.72) !important; }
.tech-b2bp__droga--dark .tech-b2bp__droga-list li { color: rgba(255,255,255,.85) !important; }

/* Przycisk biały na ciemnej karcie */
.tech-btn--ondark a.uagb-buttons-repeater {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .875rem 1.75rem; border: 0; border-radius: var(--tech-radius-pill);
  font-weight: var(--tech-fw-semibold); text-decoration: none;
  background: var(--tech-white); color: var(--tech-ink);
  transition: background .2s ease;
}
.tech-btn--ondark a.uagb-buttons-repeater:hover { background: var(--tech-mist); }

/* ============================================================
   4. DLACZEGO COLLIBRE
   ============================================================ */
.tech-b2bp__whygrid {
  display: grid !important; grid-template-columns: 1fr; gap: 1.5rem;
  margin-top: 3rem !important; width: 100% !important; max-width: none !important; padding: 0 !important;
}
@media (min-width: 640px)  { .tech-b2bp__whygrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tech-b2bp__whygrid { grid-template-columns: repeat(3, 1fr); } }
.tech-b2bp__why-card {
  align-items: flex-start !important; row-gap: 0 !important;
  /* ⚠️ Spectra: .wp-block-uagb-container.uagb-block-<id>{border-color:inherit} (0,2,0) nadpisuje nasz
     border-color BEZ !important → border dziedziczył ciemny kolor. Wymuszamy !important. */
  border: 1px solid var(--tech-border) !important; border-radius: var(--tech-radius); padding: 1.75rem !important;
}
.tech-b2bp__why-h h3.uagb-heading-text { margin: 0 !important; font-size: var(--tech-fs-lg); font-weight: var(--tech-fw-bold); letter-spacing: var(--tech-tracking-tight); color: var(--tech-ink); }
.tech-b2bp__why-p { margin: .5rem 0 0 !important; font-size: var(--tech-fs-sm); color: var(--tech-slate); line-height: var(--tech-lh-normal); }

/* ============================================================
   5. PAS ZE ZDJĘCIEM (pełnoszeroki)
   ============================================================ */
/* ⚠️ Globalna reguła rytmu `.uagb-is-root-container[class*="tech-"]{padding-block:5rem!important}` (0,2,0)
   biła moje `.tech-b2bp--band{padding:0!important}` (0,1,0) → pas miał 5rem paddingu (fioletowy w DevTools).
   Wyższa specyficzność (0,3,0) zeruje padding → zdjęcie flush, pełna szerokość i wysokość. */
.uagb-is-root-container.tech-b2bp.tech-b2bp--band { padding: 0 !important; }
.tech-b2bp--band > .uagb-container-inner-blocks-wrap { max-width: none !important; padding: 0 !important; }

/* ============================================================
   6. FORMULARZ B2B (Contact Form 7)
   ============================================================ */
.tech-b2bp--form { background: var(--tech-mist); }
.tech-b2bp--form > .uagb-container-inner-blocks-wrap { max-width: 42rem !important; align-items: stretch !important; }
.tech-b2bp__formcard {
  margin-top: 2.5rem; background: var(--tech-white);
  border: 1px solid var(--tech-border); border-radius: var(--tech-radius-lg);
  padding: 1.5rem; box-shadow: var(--tech-shadow-sm);
}
@media (min-width: 640px) { .tech-b2bp__formcard { padding: 2.5rem; } }

/* --- Formularz CF7 wewnątrz karty (tech-form-b2b) ---
   Astra styluje input/select/textarea/button globalnie selektorem atrybutowym (0,1,1) >
   nasza klasa (0,1,0) → wygląd MUSI mieć !important (GOTCHA 3). */
.tech-form-b2b .wpcf7 { margin: 0; }
.tech-form-b2b label { display: block; font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); color: var(--tech-ink); margin-bottom: .375rem; }
.tech-form-b2b .tech-form-b2b__row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .tech-form-b2b .tech-form-b2b__row { grid-template-columns: 1fr 1fr; } }
.tech-form-b2b .tech-form-b2b__row--full { grid-template-columns: 1fr; }

.tech-form-b2b input[type="text"],
.tech-form-b2b input[type="email"],
.tech-form-b2b input[type="tel"],
.tech-form-b2b input[type="url"],
.tech-form-b2b input[type="number"],
.tech-form-b2b select,
.tech-form-b2b textarea {
  width: 100% !important;
  padding: .75rem 1rem !important;
  border: 1px solid var(--tech-gray-300) !important;
  border-radius: .75rem !important;
  background: var(--tech-white) !important;
  color: var(--tech-ink) !important;
  font-size: var(--tech-fs-base) !important;
  box-shadow: none !important;
  transition: border-color .15s ease;
}
.tech-form-b2b input:focus,
.tech-form-b2b select:focus,
.tech-form-b2b textarea:focus { outline: none !important; border-color: var(--tech-ink) !important; }
.tech-form-b2b textarea { min-height: 7rem; resize: vertical; }

/* Segmenty „Rodzaj współpracy" — CF7 radio jako pigułki */
.tech-form-b2b .tech-seg .wpcf7-list-item { display: inline-block; margin: 0 .5rem .5rem 0; }
.tech-form-b2b .tech-seg .wpcf7-list-item-label {
  display: inline-block; cursor: pointer;
  padding: .625rem 1rem; border: 1px solid var(--tech-gray-300); border-radius: .75rem;
  font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); color: var(--tech-ink);
  transition: all .15s ease;
}
.tech-form-b2b .tech-seg input[type="radio"],
.tech-form-b2b .tech-seg input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.tech-form-b2b .tech-seg input:checked + span { background: var(--tech-ink); color: var(--tech-white); border-color: var(--tech-ink); }
.tech-form-b2b .tech-seg .wpcf7-list-item-label:hover { border-color: var(--tech-ink); }

/* Chipy (checkboxy wielokrotne: linie / oferta) */
.tech-form-b2b .tech-chips .wpcf7-list-item { display: inline-block; margin: 0 .5rem .5rem 0; }
.tech-form-b2b .tech-chips .wpcf7-list-item-label {
  display: inline-block; cursor: pointer;
  padding: .5rem 1rem; border: 1px solid var(--tech-gray-300); border-radius: var(--tech-radius-pill);
  font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-medium); color: var(--tech-ink);
  transition: all .15s ease;
}
.tech-form-b2b .tech-chips input:checked + span { background: var(--tech-ink); color: var(--tech-white); border-color: var(--tech-ink); }

/* Zgody (RODO/marketing) */
.tech-form-b2b .tech-consent .wpcf7-list-item { display: block; margin: 0 0 .5rem; }
.tech-form-b2b .tech-consent .wpcf7-list-item-label { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-medium); color: var(--tech-slate); cursor: pointer; }
.tech-form-b2b .tech-consent input[type="checkbox"] { margin-top: .15rem; width: 1rem; height: 1rem; accent-color: var(--tech-ink); flex-shrink: 0; }

/* Przycisk wyślij */
.tech-form-b2b .wpcf7-submit,
.tech-form-b2b button[type="submit"] {
  width: 100% !important; height: 3.5rem !important; margin-top: .5rem !important;
  border: 0 !important; border-radius: var(--tech-radius-pill) !important;
  background: var(--tech-ink) !important; color: var(--tech-white) !important;
  font-weight: var(--tech-fw-semibold) !important; font-size: var(--tech-fs-base) !important;
  min-width: 0 !important; cursor: pointer; transition: background .2s ease;
}
.tech-form-b2b .wpcf7-submit:hover { background: var(--tech-ink-hover) !important; }

/* Pola warunkowe (własny JS b2b.js — bez wtyczki Conditional Fields) */
.tech-form-b2b .tech-cond { display: none; }
.tech-form-b2b .tech-cond.is-show { display: block; }

/* Odstępy między grupami pól */
.tech-form-b2b .tech-form-b2b__group { margin-top: 1.5rem; }
.tech-form-b2b .tech-form-b2b__group + .tech-form-b2b__group { border-top: 1px solid var(--tech-border); padding-top: 1.5rem; }
.tech-form-b2b .tech-form-b2b__grouplabel { font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-semibold); color: var(--tech-ink); margin-bottom: .5rem; }

/* Komunikaty walidacji CF7 */
.tech-form-b2b .wpcf7-not-valid-tip { color: #b42318; font-size: .8rem; margin-top: .35rem; }
.tech-form-b2b .wpcf7-not-valid { border-color: #b42318 !important; }
.tech-form-b2b .wpcf7-response-output { margin: 1rem 0 0 !important; border-radius: .75rem; font-size: var(--tech-fs-sm); }

/* ============================================================
   7. FAQ (akordeon — JS: b2b.js, data-open)
   ============================================================ */
.tech-b2bp--faq { background: var(--tech-mist); }
.tech-b2bp--faq > .uagb-container-inner-blocks-wrap { max-width: 48rem !important; align-items: stretch !important; }
.tech-b2bp__acc { margin-top: 2rem; border-block: 1px solid var(--tech-gray-300); }
.tech-b2bp__acc-item { border-bottom: 1px solid var(--tech-gray-300); }
.tech-b2bp__acc-item:last-child { border-bottom: 0; }
/* Nagłówek = <button>; Astra narzuca tło/kolor/min-width na <button> (też na hover/focus)
   → ciemny prostokąt na hover. Reset !important (ta sama przypadłość co stepper/akordeony produktu). */
.tech-b2bp__acc-head,
.tech-b2bp__acc-head:hover,
.tech-b2bp__acc-head:focus,
.tech-b2bp__acc-head:active {
  width: 100% !important; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0 !important; background: transparent !important; border: 0 !important;
  box-shadow: none !important; min-width: 0 !important; cursor: pointer; text-align: left;
  font-size: var(--tech-fs-lg); font-weight: var(--tech-fw-bold); color: var(--tech-ink) !important;
}
.tech-b2bp__acc-head:hover { color: var(--tech-slate) !important; }
.tech-b2bp__acc-chev { flex-shrink: 0; color: var(--tech-slate); transition: transform .3s ease; }
.tech-b2bp__acc-item[data-open="true"] .tech-b2bp__acc-chev { transform: rotate(180deg); }
/* animacja grid 0fr→1fr (płynne zwijanie do 0) */
.tech-b2bp__acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.tech-b2bp__acc-item[data-open="true"] .tech-b2bp__acc-panel { grid-template-rows: 1fr; }
.tech-b2bp__acc-body { overflow: hidden; min-height: 0; }
.tech-b2bp__acc-item[data-open="true"] .tech-b2bp__acc-body { padding-bottom: 1.5rem; }
.tech-b2bp__acc-body { color: var(--tech-slate); line-height: var(--tech-lh-normal); }

/* Reveal (wspólny reveal.js/reveal.css) działa też tu — nic dodatkowego nie trzeba. */
