/* ================================
   Statyk (magazine-style layout)
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

.statyk {
  font-family: 'Montserrat', sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* --- Główny kontener --- */
.statyk-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-right: 30px;
  position: relative;
}

/* --- Zdjęcie po lewej, przy krawędzi --- */
.statyk-image {
  float: left;
  width: 45%;
  display: block;
  max-width: 520px;
  margin: 30px 40px 20px 0;
  margin-left: 0;
  /* (EN) stick to left edge */
  border-radius: 0.5em;
  object-fit: cover;
}

/* --- Tekst po prawej stronie zdjęcia --- */
.statyk-text {
  overflow: hidden;
  padding-top: 30px;
  max-width: 500px;
}

/* --- Typography --- */
.statyk-category {
  color: #2eaf4a;
  text-transform: uppercase;
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.statyk-header {
  font-size: 2.3em;
  font-weight: 700;
  margin-bottom: 0.6em;
}

.statyk-lead {
  font-size: 1.05em;
  font-weight: 500;
  color: #333;
  margin-bottom: 1.8em;
}

/* --- Tekst główny (opływa zdjęcie, a potem się centruje) --- */
.statyk-body {
  clear: none;
  /* (EN) allow float wrapping first */
  max-width: none;
  /* (EN) full width until clear */
  margin: 0;
  text-align: justify;
  font-size: 1em;
  color: #444;
}

/* --- Sekcja po zakończeniu opływania --- */
.statyk-body::after {
  content: "";
  display: block;
  clear: both;
  /* (EN) ensure next content starts below image */
}

/* --- Po zakończeniu opływania: centrowany blok 900px --- */
@media (min-width: 993px) {
  .statyk-body {
    /* (EN) we’ll handle centering via nested container below */
  }

  .statyk-body>*:last-child {
    display: block;
    max-width: 900px;
    margin: 0 auto;
  }
}

/* --- Blockquote --- */
.statyk-body blockquote {
  border-left: 3px solid #2eaf4a;
  padding-left: 1em;
  margin: 1.5em 0;
  font-size: 1.1em;
  color: #222;
  font-style: italic;
}


/* --- Button --- */
.statyk-button-wrapper {
  margin: 2em auto;
  text-align: center;
}

.statyk-button {
  display: inline-block;
  background-color: #2eaf4a;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6em 1.6em;
  border-radius: 0.3em;
  transition: background-color 0.25s ease;
}

.statyk-button:hover {
  background-color: #24953b;
}


/* --- Responsive --- */
@media (max-width: 992px) {
  .statyk-image {
    float: none;
    display: block;
    object-fit: cover;
    display: block;
    width: 100%;
    max-height: 500px;
    margin: 0 auto 1.5em auto;
  }

  .statyk-container {
    padding: 20px;
  }

  .statyk-text {
    padding-top: 0;
    max-width: 100%;
    text-align: center;
  }

  .statyk-header {
    font-size: 1.9em;
  }

  .statyk-body {
    clear: both;
    max-width: 900px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .statyk-header {
    font-size: 1.5em;
  }

  .statyk-body {
    font-size: 0.95em;
    margin: 0 3%;
  }
}