/* ============================================================
   Strona produktu — sekcje treści (ACF Flexible Content)
   1:1 z mockupem „Collibre Produkt standalone".
   Typy: akordeon · cechy · tekst+zdjęcie · full-bleed · składniki · faq
   ============================================================ */

/* Guard: breakout sekcji (calc -50vw) mógłby dać poziomy scroll, gdy widoczny jest
   pasek przewijania (100vw > szerokość treści). overflow-x:clip tnie nadmiar BEZ
   łamania position:sticky galerii (inaczej niż overflow:hidden). Scoped do produktu. */
body.single-product { overflow-x: clip; }

/* --- Wspólne --- */
/* Sekcje full-bleed: Astra trzyma single-product w kontenerze z max-width, więc tła
   były „boxed". Ujemne marginesy rozciągają sekcję na pełną szerokość okna,
   a .tech-psec__inner z powrotem ogranicza treść do max-width. */
.tech-psec {
  padding-block: 4rem;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
@media (min-width: 1024px) { .tech-psec { padding-block: 5rem; } }

/* Separatory / tła sekcji (jak mockup: border-t na białych, bg-mist+border-y na mist) */
.tech-feat,
.tech-ti,
.tech-fb,
.tech-acc--plain { border-top: 1px solid var(--tech-border); }
.tech-acc--mist,
.tech-ingr {
  background: var(--tech-mist);
  border-block: 1px solid var(--tech-border);
}

.tech-psec__inner {
  max-width: var(--tech-container);
  margin-inline: auto;
  padding-inline: var(--tech-gutter);
}
.tech-psec__inner--narrow { max-width: 48rem; }

.tech-psec__eyebrow {
  margin: 0 0 1.25rem;
  font-size: var(--tech-fs-xs);
  font-weight: var(--tech-fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tech-slate);
}
.tech-psec__heading {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: var(--tech-fw-bold);
  letter-spacing: var(--tech-tracking-tight);
  color: var(--tech-ink);
  line-height: 1.1;
}
.tech-psec__heading--sm { font-size: clamp(1.5rem, 2.5vw, 1.875rem); margin-bottom: 2rem; }
.tech-psec__heading--center { text-align: center; margin-bottom: 3rem; }

.tech-icon { display: block; }

/* ============================================================
   AKORDEON / FAQ
   ============================================================ */
.tech-acc { padding-block: 4rem; }
.tech-acc__list { border-block: 1px solid #e5e7eb; }
.tech-acc__item + .tech-acc__item { border-top: 1px solid #e5e7eb; }
/* Reset stylu <button> narzucanego przez Astrę (tło/kolor/ramka/cień) — !important,
   bo Astra ma wysoką specyficzność na przyciskach. */
.tech-acc__head,
.tech-acc__head:hover,
.tech-acc__head:focus,
.tech-acc__head:active {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer; text-align: left;
  font-size: var(--tech-fs-lg); font-weight: var(--tech-fw-bold);
  color: var(--tech-ink) !important;
  letter-spacing: normal;
}
.tech-acc__chev { color: var(--tech-slate); transition: transform .3s ease; flex: 0 0 auto; }
.tech-acc__item.is-open .tech-acc__chev { transform: rotate(180deg); }
.tech-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.tech-acc__item.is-open .tech-acc__panel { grid-template-rows: 1fr; }
.tech-acc__body { overflow: hidden; color: var(--tech-slate); line-height: var(--tech-lh-normal); }
.tech-acc__item.is-open .tech-acc__body { padding-bottom: 1.5rem; }
.tech-acc__body p { margin: 0 0 .75rem; }
.tech-acc__body p:last-child { margin-bottom: 0; }

/* ============================================================
   CECHY (Co wyróżnia) — ikona bez tła
   ============================================================ */
.tech-feat__grid {
  display: grid; gap: 2.5rem 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1024px) { .tech-feat__grid { grid-template-columns: repeat(4, 1fr); } }
.tech-feat__item { text-align: center; padding-inline: .5rem; }
.tech-feat__icon {
  display: inline-grid; place-items: center;
  width: 3rem; height: 3rem; margin-bottom: 1rem;
  color: var(--tech-ink);
}
.tech-feat__icon .tech-icon { width: 32px; height: 32px; }
.tech-feat__title {
  margin: 0 0 .5rem; font-size: var(--tech-fs-base);
  font-weight: var(--tech-fw-bold); color: var(--tech-ink);
  letter-spacing: var(--tech-tracking-tight);
}
.tech-feat__desc { margin: 0; font-size: var(--tech-fs-sm); color: var(--tech-slate); line-height: var(--tech-lh-normal); }

/* ============================================================
   TEKST + ZDJĘCIE
   ============================================================ */
.tech-ti__inner {
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .tech-ti__inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .tech-ti--img-right .tech-ti__media { order: 2; }
}
/* Media = ramka mist + border, kadr 4/5 (jak mockup) */
.tech-ti__media {
  border-radius: var(--tech-radius-lg);
  background: var(--tech-mist);
  border: 1px solid var(--tech-border);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.tech-ti__img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.tech-ti__body { color: var(--tech-slate); line-height: var(--tech-lh-normal); margin-top: 1.25rem; }
.tech-ti__body p { margin: 0 0 1rem; }
.tech-ti__body strong { color: var(--tech-ink); font-weight: var(--tech-fw-semibold); }
.tech-ti__list { margin: 1.5rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.tech-ti__list li { display: flex; align-items: flex-start; gap: .75rem; color: var(--tech-ink); line-height: var(--tech-lh-normal); }
.tech-ti__list strong { font-weight: var(--tech-fw-semibold); }
.tech-ti__dot { flex: 0 0 auto; width: .375rem; height: .375rem; margin-top: .55rem; border-radius: 50%; background: var(--tech-ink); }

/* ============================================================
   FULL-BLEED (w kontenerze, zaokrąglone)
   ============================================================ */
.tech-fb__media {
  border-radius: var(--tech-radius-lg);
  overflow: hidden;
  background: var(--tech-mist);
  aspect-ratio: 16 / 9;
}
@media (min-width: 1024px) { .tech-fb__media { aspect-ratio: 21 / 9; } }
.tech-fb__img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.tech-fb__text { margin-top: 2.5rem; }
.tech-fb__body { color: var(--tech-slate); line-height: var(--tech-lh-normal); }
.tech-fb__body p { margin: 0 0 1rem; }
.tech-fb__body strong { color: var(--tech-ink); font-weight: var(--tech-fw-semibold); }

/* Wersja kompaktowa (ACF „kompakt”): zdjęcie 5/12 obok tekstu 7/12, niższy kadr.
   Na mobile zdjęcie nad tekstem w kadrze 16/9 zamiast 21/9 na całą szerokość. */
.tech-fb--compact .tech-psec__inner { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
.tech-fb--compact .tech-fb__media { aspect-ratio: 16 / 9; }
.tech-fb--compact .tech-fb__text { margin-top: 0; }
@media (min-width: 1024px) {
  .tech-fb--compact .tech-psec__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .tech-fb--compact .tech-fb__media { aspect-ratio: 4 / 3; }
}

/* ============================================================
   SKŁADNIKI — edytorial 4/8
   ============================================================ */
.tech-ingr__inner {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .tech-ingr__inner { grid-template-columns: 4fr 8fr; gap: 4rem; }
}
.tech-ingr__list {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .tech-ingr__list { grid-template-columns: repeat(2, 1fr); } }
.tech-ingr__row { display: flex; gap: 1rem; }
.tech-ingr__bullet {
  flex: 0 0 auto; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--tech-white); border: 1px solid var(--tech-border);
}
.tech-ingr__title {
  margin: 0; font-size: var(--tech-fs-sm); font-weight: var(--tech-fw-bold);
  text-transform: uppercase; letter-spacing: .04em; color: var(--tech-ink);
}
.tech-ingr__desc { margin: .5rem 0 0; font-size: var(--tech-fs-sm); color: var(--tech-slate); line-height: var(--tech-lh-normal); }
