/* =========================================================
   ZAPISKI – PODSTRONA (CZYSTA)
   ========================================================= */

.zapiski-page {
  max-width: 760px;
  margin: 60px auto 90px auto;
  padding: 0 20px;
}

/* TREŚĆ */

.zapiski-content {
  max-width: 760px;
  margin: 60px auto 100px auto;
  padding: 0 20px;
}
/* odstęp między opowiadaniami */
.zapiski-content h2 {
  margin-top: 20px;

}



/* mniejszy odstęp nad pierwszym opowiadaniem */
.zapiski-content h2:first-of-type {
  margin-top: 20px;
}

.zapiski-story {
  margin-bottom: 10px;
  padding-bottom: 50px;
  position: relative;
}

/* =====================================================
   SEPARATOR – ZAPISKI
   ===================================================== */

.zapiski-separator{
text-align:center;
margin:25px 0 45px 0;
color:#8a4b2a;
font-size:13px;
}

.zapiski-separator:before,
.zapiski-separator:after{

content:"";

display:inline-block;

width:35%;
height:1px;

background:#d8cfc3;

vertical-align:middle;

margin:0 10px;

}



.zapiski-story h2 {
  font-size: 22px;
  margin-bottom: 22px;
  
  display: inline-block;
  padding-bottom: 6px;
}

.zapiski-story h2::after{

content:"";
display:block;

width:100px;
height:1px;

background:#d8cfc3;

margin:10px auto 0 auto;

}



.zapiski-story img {
  max-width: 230px;
  margin-bottom: 20px;
  border-radius: 6px;
  display: block;
}

.zapiski-story p {
  font-size: 17px;
  line-height: 1.75;
letter-spacing: -0.01em;
  margin-bottom: 0;
  color: inherit;

  text-align: justify;
  hyphens: auto;

  text-indent: 1.4em;
}

.zapiski-story p:first-of-type {
  text-indent: 0;
}

/* =====================================================
   8. INICJAŁ (DUŻA PIERWSZA LITERA)
   ===================================================== */

.zapiski-story > p:first-of-type::first-letter{

float:left;

font-size:3.4em;
line-height:0.9;

margin-right:8px;
margin-top:4px;

color:#8a4b2a;

font-family:Georgia,"Times New Roman",serif;

}

.back-top {
  display: block;
  margin-top: 30px;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  text-align: right;
}

.back-top:hover {
  opacity: 1;
}



/* =======================================
   SPIS TREŚCI – WERSJA FINALNA (KSIĄŻKOWA)
======================================= */

/* GŁÓWNY BLOK */
.zapiski-list {
  max-width: 800px;        /* szerokość całego bloku */
  margin: 0 auto 60px;     /* wyśrodkowanie + odstęp na dole */
}

/* NAGŁÓWEK */
.zapiski-list h2 {
  font-size: 28px;
  margin-bottom: 40px;     /* odstęp pod tytułem */
  text-align: center;
}

/* DELIKATNA LINIA POD TYTUŁEM */
.zapiski-list h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background: rgba(138, 75, 42, 0.3);
  margin: 15px auto 0;
}

/* LISTA */
.zapiski-list ul {
  list-style: none;        /* usuwamy domyślne kropki */
  padding: 0;
  margin: 0 auto;
  max-width: 720px;        /* lekko węższa kolumna dla czytelności */
  text-align: left;
  counter-reset: item;     /* reset numeracji */
}

/* ELEMENT LISTY */
.zapiski-list li {
  counter-increment: item; /* zwiększanie numeru */
  padding: 6px 0 6px 30px; /* miejsce na numer po lewej */
  line-height: 1.45;       /* czytelność */
  position: relative;      /* potrzebne do numerów */
}

/* NUMER (WYRÓWNANY JAK W KSIĄŻCE) */
.zapiski-list li::before {
  content: counter(item) ". ";
  position: absolute;
  left: 0;
  width: 26px;             /* stała szerokość dla wyrównania */
  text-align: right;
  opacity: 0.5;            /* subtelniejszy niż tekst */
}

/* LINKI */
.zapiski-list a {
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
  transition: all 0.25s ease;
}

/* HOVER */
.zapiski-list a:hover {
  color: #8a4b2a;
  opacity: 1;
}

/* =======================================
   UKŁAD DWUKOLUMNOWY (DESKTOP)
======================================= */

@media (min-width: 768px) {
  .zapiski-list ul {
    column-count: 2;       /* 2 kolumny */
    column-gap: 80px;      /* odstęp między kolumnami */
  }

  .zapiski-list li {
    break-inside: avoid;   /* zapobiega łamaniu elementów */
  }
}




/* MOBILE */
@media (max-width: 768px) {
  .zapiski-story img {
    max-width: 220px;
    margin-left: 0;
    margin-right: auto;
  }
}