/* =========================================================
   Elementy wspólne podstron treściowych:
   kontener, nagłówki, akapity, przyciski akcji, odstępy
   ========================================================= */

/* --- Kontener treści (1140 px, wyśrodkowany) --- */

.section {
  width: 100%;
  padding: 0 10px;
}

.section__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 0;
}

.section--dark {
  background: var(--c-dark);
  color: var(--c-white);
}

/* Sekcja z tytułem strony */
.page-head {
  margin-top: 20px;
}

.page-head .page-title {
  margin-bottom: 20px;
}

/* Wariant z dodatkowym odstępem pod sekcją tytułu */
.page-head--products {
  margin-bottom: 30px;
}

/* Wariant z większym odstępem pod tytułem zamiast marginesu */
.page-head--tight .section__inner {
  padding: 20px 0 40px;
}

.page-head--tight .page-title {
  margin-bottom: 0;
}

/* --- Nagłówki i akapity --- */

.page-title {
  color: var(--c-black);
  font-family: var(--font-alt);
  font-size: 3em;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.section-title {
  color: var(--c-black);
  font-family: var(--font-alt);
  font-size: 2.3em;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.section-subtitle {
  color: var(--c-black);
  font-family: var(--font-alt);
  font-size: 1.75em;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.section--dark .page-title,
.section--dark .section-title,
.section--dark .section-subtitle,
.section--dark .section-text {
  color: var(--c-white);
}

.section-text {
  padding: 20px;
  color: var(--c-black);
  font-family: var(--font-alt);
  font-size: 1.2em;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.section-text p {
  margin: 0 0 14px;
}

/* Wstęp w węższej kolumnie, bez dodatkowych marginesów */
.section-lead {
  width: 798px;
  max-width: 100%;
  margin: 0 auto;
  color: var(--c-black);
  font-family: var(--font-alt);
  font-size: 1.2em;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.section-lead p {
  margin: 0 0 14px;
}

.section-text--left {
  text-align: left;
}

.section-text a {
  color: inherit;
  text-decoration: underline;
}

/* --- Obrazek w treści --- */

.section-image {
  display: block;
  height: auto;
  margin: 0 auto;
}

/* --- Główny przycisk akcji („Zobacz naszą ofertę” itp.) --- */

.btn--action {
  align-self: center;
  max-width: 100%;
  min-height: 4rem;
  padding: 0.625rem 1.35rem;
  border-width: 0.375rem;
  border-radius: 0.5rem;
  font-size: 2rem;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

@media (hover: hover) and (pointer: fine) {
  .btn--action:hover {
    transform: scale(1.04);
    box-shadow: 0 0.45rem 0.9rem rgba(0, 0, 0, 0.2);
  }
}

/* Mniejszy wariant tego samego przycisku */
.btn--action-sm {
  min-height: 3.5rem;
  font-size: 1.5rem;
}

@media (max-width: 767px) {
  .btn--action {
    min-height: 3.35rem;
    padding: 0.5rem 1rem;
    border-width: 0.3125rem;
    font-size: 1.35rem;
  }

  .btn--action-sm {
    min-height: 3.35rem;
    padding: 0.5rem;
    border-width: 0.3125rem;
    font-size: 1.05rem;
  }
}

/* --- Skalowanie nagłówków i akapitów --- */

@media (max-width: 1024px) {
  .page-title {
    font-size: 2.5em;
  }

  .section-title {
    font-size: 2.5em;
  }

  .section-lead {
    font-size: 1.1em;
  }
}

@media (max-width: 767px) {
  .page-title {
    font-size: 2em;
  }

  .section-title {
    font-size: 2em;
  }

  .section-text {
    font-size: 1em;
  }

  .section-lead {
    font-size: 0.9em;
  }

  /* Portfolio i Nasze produkty zachowują duży tytuł także na telefonie */
  .page-title--lg {
    font-size: 3em;
  }

  /* Pojedyncze case study ma tytuł odrobinę mniejszy */
  .page-title--sm {
    font-size: 1.8em;
  }
}

/* --- Odstęp pionowy --- */

.spacer {
  height: 50px;
}

.spacer--30 {
  height: 30px;
}
