/* Text section (Figma /Kontakt "Współpraca" / company data): heading + WYSIWYG,
   plain or grey box, block width 100/50/33% positioned left/center/right. */

.section.text-sec { padding-block: var(--space-2x); }
/* The 8px block padding is for stacking boxes 16px apart; when the section
   closes the page, keep the Figma ~64px breather before the footer. */
.site-main > .section.text-sec:last-child { padding-bottom: var(--space-5xl); }

.text-sec__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.text-sec--box {
  gap: var(--space-xl);
  padding: var(--space-3xl) var(--space-5xl);
  background: var(--color-grey-100);
  border-radius: var(--radius-m);
}

.text-sec--w100 { width: 100%; }
.text-sec--w66 { width: 66%; }
.text-sec--w50 { width: 50%; }
.text-sec--w33 { width: 33.333%; }
.text-sec--pos-left { margin-inline: 0 auto; }
.text-sec--pos-center { margin-inline: auto; }
.text-sec--pos-right { margin-inline: auto 0; }

.text-sec__heading {
  font: 400 28px / 40px var(--font-heading);
  letter-spacing: -1px;
  color: var(--color-grey-900);
}
.text-sec__heading em,
.text-sec__heading i { font-style: italic; }

.text-sec__body {
  font-size: var(--fs-body-m);
  line-height: var(--lh-body-m);
  color: var(--color-black);
}
.text-sec__body p { margin: 0; }
.text-sec__body p + p { margin-top: var(--space-l); }
.text-sec__body strong { font-weight: 600; }
/* Fine print (e.g. registry data) — caption type via <small>. */
.text-sec__body small {
  display: block;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);
}

@media (max-width: 767px) {
  .text-sec--w66,
  .text-sec--w50,
  .text-sec--w33 { width: 100%; }
  .text-sec--box { padding-inline: var(--space-l); }
}
