/* --- ZMIENNE --- */
:root {
  --bg-outside: #1a1a1a;
  --bg-paper: #fef6ed;
  --text-main: #2b2b2b;
  --accent-red: #c00808;
}

/* --- RESET I ZABEZPIECZENIA --- */
html {
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

/* ================================ */
/*  BAZA = MOBILE (najwęższy ekran) */
/* ================================ */

body {
  font-family: "Montserrat", sans-serif;
  background: var(--bg-paper);
  color: var(--text-main);
  margin: 0;
  padding: 0;
}

.container {
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* KARTKA — na mobile pełen ekran */
.content {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 14px;
  background: var(--bg-paper);
  color: var(--text-main);
  min-height: 100vh;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* --- LOGO U GÓRY --- */
.logo-wrapper {
  text-align: center;
  margin: 0 0 14px 0;
}

.logo-img {
  display: block;
  width: clamp(100px, 12vw, 200px);
  height: auto;
  margin: 0 auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  background: transparent;
}

/* --- NAGŁÓWEK "Homilie" --- */
.content h1 {
  text-align: center;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
  margin-top: 0;
  margin-bottom: 10px;
}

/* --- LINIA DEKORACYJNA --- */
.elegant-line {
  border: 0;
  height: 2px;
  background-image: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.146),
    transparent
  );
  margin-bottom: 30px;
}

/* --- TYTUŁ HOMILII --- */
.content .homilia-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(22px, 5.5vw, 30px);
  font-weight: 700;
  color: var(--accent-red);
  text-align: center;
  margin: 0 auto 20px auto;
  line-height: 1.3;
}

/* Cytat biblijny pod tytułem */
.content .homilia-title span {
  font-family: "Merriweather", serif;
  font-size: clamp(15px, 3.5vw, 18px);
  font-weight: 400;
  font-style: italic;
  color: #444;
  display: block;
  margin-top: 12px;
}

/* --- AUDIO --- */
.audio-center {
  text-align: center;
  margin: 30px 0 40px 0;
}

.audio-center audio {
  width: 100%;
  max-width: 400px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* --- ŚRÓDTYTUŁY H2 --- */
.content h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  color: #111;
  margin-top: clamp(1.5em, 4vw, 2.5em);
  margin-bottom: 0.8em;
  line-height: 1.3;
}

/* --- AKAPITY --- */
.content p {
  font-family: "Merriweather", serif;
  font-weight: 400;
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.75;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 1.5em;
}

.content strong {
  font-weight: 700;
  color: #000;
}

/* --- PULL-QUOTE --- */
.pull-quote {
  font-family: "Merriweather", serif;
  font-size: clamp(17px, 3.5vw, 22px);
  font-style: italic;
  color: var(--accent-red);
  text-align: center;
  margin: 2em auto;
  padding: 0 2%;
  background: #fff9f4;
  line-height: 1.4;
  position: relative;
}

.pull-quote::before,
.pull-quote::after {
  content: "";
  display: block;
  width: 88px;  /* to jest długość kreski nad i pod cytatem */
  height: 3px; /* - tu ustalam grubość kreski nad i pod */
  background: var(--accent-red);
  margin: 15px auto;
}
.pull-quote small {
  display: block;
  font-size: 0.65em;
  color: #999;
  font-style: normal;
  margin-top: 10px;
  letter-spacing: 0.3px;
}

/* --- OGROMNY CYTAT (GIANT QUOTE) --- */
.giant-quote {
  position: relative;
  margin: 4em auto;
  padding: 20px 30px;
  text-align: center;
   background:  rgba(205, 58, 5, 0.064);
  max-width: 85%;
}

.giant-quote p {
  font-family: "Merriweather", serif;
   font-style: italic;
  font-size: clamp(19px, 4.5vw, 24px);
  color: var(--text-main);
  line-height: 1.5;
  position: relative;
  z-index: 2;
  margin: 0;
}

.giant-quote::before {
  content: "\201C";
  position: absolute;
  top: -30px;
  left: -10px;
  font-family: "Georgia", serif;
  font-size: 140px;
  line-height: 1;
  color: rgba(192, 8, 8, 0.347);
  z-index: 1;
}

.giant-quote::after {
  content: "\201D";
  position: absolute;
  bottom: -70px;
  right: -10px;
  font-family: "Georgia", serif;
  font-size: 140px;
  line-height: 1;
  color: rgba(192, 8, 8, 0.347);
  z-index: 1;
}

/* --- RAMKA KONTEKSTOWA --- */
.callout-box {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--accent-red);
  padding: 25px 20px;
  margin: 2.5em 0;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  font-family: "Merriweather", serif;
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.75;
  color: var(--text-main);
}

/* --- NOTA REDAKCJI (TL;DR) --- */
.nota-redakcji {
  font-family: "Merriweather", serif;
  font-style: italic;
  font-size: clamp(14px, 2.2vw, 16px);
  color: #555;
  border-left: 3px solid var(--accent-red);
  padding: 15px 20px;
  margin: 2em 0;
  background: rgba(0, 0, 0, 0.02);
  line-height: 1.7;
}
.nota-redakcji strong {
  color: #333;
}

/* --- LISTA --- */
.custom-list {
  font-family: "Merriweather", serif;
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.75;
  list-style: none;
  padding-left: 2px;
  margin: 1.5em 0 2em 10px;
}

.custom-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.custom-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -1px;
  line-height: 1;
  color: var(--accent-red);
  font-weight: bold;
  font-size: 1.8em;
}
.custom-list a {
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.custom-list a:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}
/* --- DUŻY OBRAZEK NA KOŃCU --- */
.article-image {
  margin: 2.5em 0 1.5em 0;
  text-align: center;
}

.article-image a {
  display: block;
  text-decoration: none;
}

.article-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  cursor: zoom-in;
}

.article-image figcaption {
  margin-top: 10px;
  font-family: "Merriweather", serif;
  font-size: 14px;
  font-style: italic;
  color: #666;
  line-height: 1.5;
}

/* ================================ */
/*  WIĘKSZE TELEFONY  (≥ 401px)    */
/* ================================ */
@media (min-width: 401px) {
  .content {
    padding: 30px 20px;
  }

  .custom-list {
    margin-left: 20px;
  }

  .pull-quote {
    padding: 0 5%;
  }
}

/* ================================ */
/*  TABLET / MAŁY LAPTOP (≥ 769px) */
/*  Tu pojawia się efekt "kartki"  */
/* ================================ */
@media (min-width: 769px) {
  body {
    background: var(--bg-outside);
    padding: 20px 0;
  }

  .content {
    max-width: 800px;
    padding: 60px 7%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border-radius: 4px;
  }

  .content h1 {
    font-size: 16px;
  }

  .elegant-line {
    margin-bottom: 40px;
  }

  .content .homilia-title {
    margin-bottom: 30px;
  }

  .audio-center {
    margin: 40px 0 50px 0;
  }

  .pull-quote {
    padding: 0 10%;
    margin: 2.5em auto;
  }
}

/* ================================ */
/*  LAPTOP / DESKTOP  (≥ 1024px)   */
/* ================================ */
@media (min-width: 1024px) {
  .content {
    max-width: 900px;
    padding: 70px 9%;
  }
}

/* ================================ */
/*  DUŻE EKRANY  (≥ 1400px)        */
/* ================================ */
@media (min-width: 1400px) {
  .content {
    max-width: 1000px;
    padding: 80px 12%;
  }
}

/* --- WYGLĄD CAŁEGO MENU --- */
.moje-fajne-menu {
  margin-top: 30px;
  margin-bottom: 30px;
}

/* --- POJEDYNCZY WIERSZ (LINK) --- */
.wiersz-menu {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 2px solid #e0e0e0;
  text-decoration: none;
  color: #2b2b2b;
}

/* Usuwamy kreseczkę pod ostatnim elementem */
.wiersz-menu:last-child {
  border-bottom: none;
}

/* --- MAŁY OKRĄGŁY OBRAZEK W MENU --- */
.wiersz-menu img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
  border: 3px solid #000000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- TEKST --- */
.tekst-menu {
  flex-grow: 1;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 500;
}

/* --- STRZAŁKA PO PRAWEJ --- */
.strzalka-menu {
  font-size: 24px;
  color: #999;
  padding-left: 10px;
}
/* ======================================== */
/*   KOMPLEKSOWY CYTAT Z ADAPTACYJNĄ RĄCZKĄ  */
/* ======================================== */

.content .manicula-quote{
  /* sterowanie w jednym miejscu */
  --hand-mobile: 140px;
  --hand-desktop-w: 200px;
  --hand-desktop-h: 160px;

  display: flex;
  flex-direction: column;
  align-items: center;

  margin: 3em auto;
  padding: 12px 20px 30px;

  background: #fff;
  border-top: 5px solid var(--accent-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  max-width: 95%;

  position: relative;
  height: auto; /* box ma rosnąć z treścią */
}

.content .manicula-quote::before{
  content: "";
  display: block;

  width: var(--hand-mobile);
  height: var(--hand-mobile);

  background: url("manicula.svg") center/contain no-repeat;

  transform: rotate(90deg);
  margin-top: -14px;     /* bliżej czerwonej kreski */
  margin-bottom: 18px;

  flex: 0 0 auto;
  pointer-events: none;
}

/* WAŻNE: bardziej specyficzne niż .content p -> nie będzie nadpisywane */
.content .manicula-quote > p{
  margin: 0;

  font-family: "Montserrat", sans-serif;

  /* rozmiar jak H2 (Twoje wartości) */
  font-size: clamp(18px, 4vw, 22px);

  font-weight: 700;          /* jak H2 */
  font-style: italic;        /* zmień na normal, jeśli wolisz bez kursywy */
  line-height: 1.55;

  color: var(--accent-red);  /* bordo */
  text-align: center;
}

@media (min-width: 769px){
  .content .manicula-quote{
    flex-direction: row;
    align-items: center;

    border-top: none;
    border-left: 6px solid var(--accent-red);

    /* miejsce na rączkę w środku boxa */
    padding: 40px 50px 40px 240px;
    max-width: 100%;
  }

  .content .manicula-quote::before{
    position: absolute;
    top: 50%;
    left: -6px; /* dosunięcie do czerwonej kreski (border ma 6px) */

    width: var(--hand-desktop-w);
    height: var(--hand-desktop-h);

    transform: translateY(-50%) rotate(0deg);
    margin: 0;
  }

  .content .manicula-quote > p{
    text-align: left;
  }
}