/* Mały Marek · „Po co to jest” (/manifest/). Uzupełnia /styl.css; wszystkie klasy mają przedrostek m- albo gr- (odtwarzacz). */

.manifest {
  --noc: #1B2A4A;
  --noc-2: #24365B;
  --noc-linia: rgba(246, 238, 220, 0.16);
  --noc-tekst: #F6EEDC;
  --noc-ciemniej: #C3CADA;
  --swiatlo: #D9A441;
}

/* ——— 1. serce ——— */
.m-serce {
  padding-block: clamp(40px, 8vw, 112px) clamp(48px, 8vw, 104px);
  display: flex; flex-direction: column; gap: 22px;
  max-width: 54rem;
}
.m-serce h1 { font-size: var(--t-h1); line-height: 1.04; letter-spacing: -0.01em; }
.m-serce h1 em { font-style: italic; color: var(--atrament-2); }
.m-serce .lead { max-width: 44rem; }
.m-serce .wezwania { margin-top: 8px; }
.m-ikona { width: 18px; height: 18px; flex: none; }
.m-pod-wezwaniem { font-family: var(--sans); font-size: 0.9375rem; color: var(--kurz); letter-spacing: 0.02em; }

/* ——— obrazy-przegrody: łagodne wejście ——— */
.m-obraz img { transition: opacity .9s ease; }
.js .m-obraz img:not(.widac) { opacity: 0; }

/* ——— wspólne dla sekcji ——— */
.m-sekcja .glowa { gap: 16px; }
.m-proza { display: flex; flex-direction: column; gap: 16px; }
.m-proza p { line-height: 1.6; }
.m-waska { max-width: min(40rem, 100%); margin-top: clamp(28px, 4vw, 44px); }
.m-akcent {
  font-style: italic; font-size: var(--t-lead); line-height: 1.45; color: var(--atrament);
  padding-top: 8px;
}

/* wejście treści przy przewijaniu */
.js .m-sekcja > *, .js .m-posluchaj > * { transition: opacity .7s ease, transform .7s ease; }
.js .m-sekcja:not(.widac) > *, .js .m-posluchaj:not(.widac) > * { opacity: 0; transform: translateY(14px); }

/* ——— 2. dlaczego akurat on ——— */
.m-dwie {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.m-motto { margin-top: 6px; }
.m-fakty {
  list-style: none; margin-top: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--linia);
}
.m-fakty li { padding: 18px 20px 4px 0; display: flex; flex-direction: column; gap: 4px; }
.m-fakty li + li { padding-left: 20px; border-left: 1px solid var(--linia); }
.m-fakty .l { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; }
.m-fakty .o { font-family: var(--sans); font-size: 0.9375rem; color: var(--kurz); }

/* ——— 3. zdania z tabliczki ——— */
.m-tabliczki {
  list-style: none; margin-top: clamp(32px, 5vw, 52px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px);
}
.m-tabliczki li {
  position: relative;
  background: #2C2620;
  background-image: radial-gradient(120% 90% at 30% 20%, #3A322A 0%, #241F1A 70%);
  border: 10px solid #D8B98A;
  border-image: linear-gradient(145deg, #E4C99C, #C9A370 60%, #B89060) 1;
  box-shadow: 0 10px 26px rgba(60, 40, 20, 0.18);
  padding: 22px 20px 18px;
  min-height: 11rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.m-zd {
  color: #EDE3CF; font-style: italic; font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.35;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.m-sk { font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: #BBA888; }

/* ——— 4. dlaczego wolno ——— */
.m-trzy {
  margin-top: clamp(32px, 5vw, 52px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px);
}
.m-karta {
  background: var(--karta); border: 1px solid var(--linia); border-radius: 3px;
  padding: 24px 22px; display: flex; flex-direction: column; gap: 12px;
}
.m-karta p { font-size: var(--t-small); line-height: 1.55; color: var(--atrament-2); }
.m-karta .m-liczba {
  font-size: clamp(2.8rem, 5vw, 3.8rem); line-height: 1; color: var(--zloto);
  display: flex; align-items: baseline; gap: 10px;
}
.m-liczba span { font-family: var(--sans); font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--kurz); }

/* ——— 5. jak to powstaje ——— */
.m-warsztat {
  margin-top: clamp(32px, 5vw, 52px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
.m-warstwy { list-style: none; display: flex; flex-direction: column; }
.m-warstwy li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px;
  padding-block: 18px; border-top: 1px solid var(--linia);
}
.m-warstwy li:last-child { border-bottom: 1px solid var(--linia); }
.m-nr {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--zloto-jasne); color: var(--zloto);
  display: grid; place-items: center; font-family: var(--sans); font-size: 0.9375rem;
}
.m-warstwy h3 { font-size: 1.35rem; line-height: 1.3; }
.m-warstwy p { font-size: var(--t-small); line-height: 1.5; color: var(--atrament-2); margin-top: 4px; }
.m-storyboard { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 12px; }
.m-storyboard img {
  width: 100%; height: auto; display: block;
  background: #FBF6EC; padding: 10px; border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px rgba(60, 40, 20, 0.16);
  transform: rotate(0.8deg);
}
.m-storyboard figcaption { font-family: var(--sans); font-size: 0.875rem; color: var(--kurz); line-height: 1.5; }
.m-uczciwie {
  margin-top: clamp(40px, 6vw, 72px); max-width: min(46rem, 100%);
  border-left: 3px solid var(--zloto-jasne); padding: 4px 0 4px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.m-uczciwie h3 { font-size: var(--t-h3); line-height: 1.2; }
.m-uczciwie p { line-height: 1.6; color: var(--atrament-2); }
.m-podpis { font-style: italic; font-size: 1.5rem; color: var(--atrament) !important; display: flex; flex-direction: column; }
.m-podpis span { font-style: normal; font-family: var(--sans); font-size: 0.875rem; color: var(--kurz); }

/* ——— 6. co dostajesz ——— */
.m-lista { list-style: none; margin-top: clamp(32px, 5vw, 52px); border-top: 1px solid var(--linia); }
.m-lista li {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 8px 20px; align-items: baseline;
  padding-block: 20px; border-bottom: 1px solid var(--linia);
}
.m-poz { font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--zloto); }
.m-t h3 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); line-height: 1.2; }
.m-od { font-family: var(--sans); font-size: 0.9375rem; color: var(--kurz); margin-top: 4px; line-height: 1.45; }
.m-wosk { font-style: italic; font-size: 1.15rem; line-height: 1.4; color: var(--atrament-2); margin-top: 8px; }
.m-czas { font-family: var(--sans); font-size: 0.9375rem; color: var(--kurz); font-variant-numeric: tabular-nums; }
.m-podsumowanie {
  margin-top: clamp(32px, 5vw, 52px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: center;
}
.m-liczby dd { white-space: nowrap; }
.m-liczby { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 16px clamp(22px, 3vw, 40px); }
.m-liczby div { display: flex; flex-direction: column-reverse; gap: 4px; }
.m-liczby dd { font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.1; }
.m-liczby dt { font-family: var(--sans); font-size: 0.875rem; color: var(--kurz); }
.m-gratis {
  background: var(--karta); border: 1px solid var(--linia); border-radius: 3px; padding: 20px 22px;
  font-size: var(--t-small); line-height: 1.55; color: var(--atrament-2);
}
.m-gratis strong { font-weight: 500; color: var(--atrament); }

/* ——— 7 i 8. dla kogo ——— */
.m-dla-kogo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); }
.m-dla-kogo .glowa h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.m-punkty { list-style: none; margin-top: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; }
.m-punkty li {
  position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--linia);
  font-size: var(--t-small); line-height: 1.55; color: var(--atrament-2);
}
.m-punkty li::before {
  position: absolute; left: 2px; top: 14px; font-family: var(--sans); font-size: 1.05rem; line-height: 1.5;
}
.m-punkty.tak li::before { content: "\2713"; color: var(--zloto); }
.m-punkty.nie li::before { content: "\2715"; color: #9A7E6A; font-size: 0.95rem; }

/* ——— 9. posłuchaj: wieczór ——— */
.m-noc { background: var(--noc); color: var(--noc-tekst); scroll-margin-top: 0; }
.m-noc-obraz { line-height: 0; position: relative; }
.m-noc-obraz img { display: block; width: 100%; height: auto; }
.m-noc-obraz::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%;
  background: linear-gradient(to bottom, rgba(27, 42, 74, 0), var(--noc));
}
.m-noc-pas { background: var(--noc); background-image: none; }
.m-posluchaj { padding-block: clamp(20px, 3vw, 40px) clamp(64px, 9vw, 120px); max-width: 46rem; margin-inline: auto; }
.m-posluchaj .glowa { max-width: none; }
.m-posluchaj .eyebrow { color: var(--noc-ciemniej); }
.m-posluchaj .eyebrow::before { background: var(--swiatlo); }
.m-posluchaj h2 { color: var(--noc-tekst); }
.m-posluchaj .glowa h2 em { color: var(--swiatlo); }
.m-posluchaj .lead { color: var(--noc-tekst); }
.m-noc-tekst { color: var(--noc-ciemniej); font-size: var(--t-small); line-height: 1.55; }
.m-auto { margin-top: 22px; font-family: var(--sans); font-size: 0.9375rem; line-height: 1.55; color: var(--noc-ciemniej); }
.m-auto strong { font-weight: 500; color: var(--noc-tekst); }
.m-noc :focus-visible { outline-color: var(--swiatlo); }

/* odtwarzacz */
.gr {
  margin-top: clamp(28px, 4vw, 40px);
  background: var(--noc-2); border: 1px solid var(--noc-linia); border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  font-family: var(--sans);
}
.gr-teraz { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: center; }
.gr-okladka { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; display: block; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); }
.gr-stan { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--swiatlo); }
.gr-tytul { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.15; color: var(--noc-tekst); margin-top: 2px; }
.gr-meta { font-size: 0.9375rem; color: var(--noc-ciemniej); margin-top: 2px; }

.gr-os { margin-top: 20px; }
.gr-postep {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; margin: 0; display: block; cursor: pointer;
}
.gr-postep:focus { outline: none; }
.gr-postep:focus-visible { outline: 2px solid var(--swiatlo); outline-offset: 4px; border-radius: 6px; }
.gr-postep::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--swiatlo) var(--postep, 0%), rgba(246, 238, 220, 0.2) var(--postep, 0%));
}
.gr-postep::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(246, 238, 220, 0.2); }
.gr-postep::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--swiatlo); }
.gr-postep::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--noc-tekst); border: 0; margin-top: -6px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.gr-postep::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--noc-tekst); border: 0; }
.gr-czasy { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--noc-ciemniej); font-variant-numeric: tabular-nums; }

.gr-przyciski { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 5vw, 36px); margin-top: 10px; }
.gr-graj {
  width: 72px; height: 72px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--swiatlo); color: #14203A; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(217, 164, 65, 0.3); transition: transform .15s ease, filter .2s;
}
.gr-graj:hover { filter: brightness(1.07); }
.gr-graj:active { transform: scale(0.96); }
.gr-graj svg { width: 30px; height: 30px; }
.gr-graj .ikona-pauza, .gr.gra .gr-graj .ikona-graj { display: none; }
.gr.gra .gr-graj .ikona-pauza { display: block; }
.gr-maly {
  background: none; border: 0; cursor: pointer; color: var(--noc-tekst);
  width: 52px; height: 52px; border-radius: 50%; position: relative; display: grid; place-items: center;
}
.gr-maly:hover { background: rgba(246, 238, 220, 0.08); }
.gr-maly svg { width: 30px; height: 30px; }
.gr-maly span { position: absolute; font-size: 0.625rem; font-weight: 500; top: 50%; left: 50%; transform: translate(-50%, -38%); }

.gr-nastepna {
  margin-top: 20px; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: rgba(217, 164, 65, 0.1); border: 1px solid rgba(217, 164, 65, 0.35); border-radius: 12px; padding: 10px 12px 10px 10px;
  animation: gr-wejscie .6s ease both;
}
.gr-nastepna img { width: 96px; height: 56px; object-fit: cover; border-radius: 7px; display: block; }
.gr-nast-etykieta { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--swiatlo); }
.gr-nast-tytul { font-family: var(--serif); font-size: 1.3rem; color: var(--noc-tekst); line-height: 1.2; }
.gr-nast-graj {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: var(--swiatlo); color: #14203A;
  display: grid; place-items: center;
}
.gr-nast-graj svg { width: 20px; height: 20px; }
@keyframes gr-wejscie { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.gr-zakladki { margin-top: 24px; display: flex; gap: 6px; border-bottom: 1px solid var(--noc-linia); }
.gr-zakladki button {
  background: none; border: 0; cursor: pointer; color: var(--noc-ciemniej);
  font-family: var(--sans); font-size: 0.9375rem; letter-spacing: 0.04em; padding: 10px 14px 12px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.gr-zakladki button[aria-selected="true"] { color: var(--noc-tekst); border-bottom-color: var(--swiatlo); }
.gr-lista { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.gr-utwor {
  width: 100%; text-align: left; cursor: pointer; background: none; border: 0; color: var(--noc-tekst);
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 14px;
  align-items: center; padding: 10px; border-radius: 10px;
}
.gr-utwor:hover { background: rgba(246, 238, 220, 0.06); }
.gr-utwor[aria-current="true"] { background: rgba(246, 238, 220, 0.1); }
.gr-utwor img { grid-row: 1 / 3; width: 56px; height: 56px; object-fit: cover; border-radius: 7px; display: block; }
.gr-u-t { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.gr-u-o { grid-column: 2; font-size: 0.8125rem; color: var(--noc-ciemniej); }
.gr-u-c { grid-column: 3; grid-row: 1 / 3; font-size: 0.875rem; color: var(--noc-ciemniej); font-variant-numeric: tabular-nums; }
.gr-utwor[aria-current="true"] .gr-u-t { color: var(--swiatlo); }

/* ——— 10. lista ——— */
.m-lista-sekcja { text-align: center; display: flex; flex-direction: column; align-items: center; }
.m-lista-sekcja .glowa { align-items: center; margin-inline: auto; }
.m-lista-sekcja .eyebrow { justify-content: center; }
.m-lista-sekcja .lead { margin-inline: auto; }
.m-zapis { margin-top: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.m-zapis > p:first-child { font-size: var(--t-lead); font-style: italic; color: var(--atrament-2); }
.m-zapis .przycisk { min-width: min(20rem, 100%); }
.m-zapis-nota { font-family: var(--sans); font-size: 0.875rem; color: var(--kurz); }
.m-zapis-nota { max-width: 34rem; line-height: 1.5; }
.m-zapis .formularz { width: 100%; max-width: 36rem; margin-top: 6px; text-align: left; }
.m-zapis .formularz .przycisk { min-width: 0; }
.m-serce .start-historii { margin-top: 20px; }
.m-serce .start-historii + .lead { margin-top: 18px; }
.m-dziekuje {
  margin-top: clamp(40px, 6vw, 64px); max-width: 30rem;
  font-style: italic; font-size: var(--t-small); line-height: 1.55; color: var(--kurz);
}
.m-dziekuje::before { content: ""; display: block; width: 40px; height: 1px; background: var(--zloto-jasne); margin: 0 auto 22px; }

/* ——— responsywność ——— */
@media (max-width: 880px) {
  .m-dwie, .m-warsztat, .m-podsumowanie, .m-dla-kogo { grid-template-columns: minmax(0, 1fr); }
  .m-storyboard { position: static; max-width: 26rem; }
  .m-tabliczki, .m-trzy { grid-template-columns: minmax(0, 1fr); }
  .m-tabliczki li { min-height: 0; }
  .m-dla-kogo .m-nie { padding-top: 0; }
}
@media (max-width: 640px) {
  .m-fakty { grid-template-columns: minmax(0, 1fr); }
  .m-fakty li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--linia); }
  .m-fakty li { padding: 14px 0 10px; }
  .m-lista li { grid-template-columns: minmax(0, 1fr) auto; }
  .m-poz { grid-column: 1 / -1; }
  .m-liczby { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 10px; }
  .m-liczby dd { font-size: 1.2rem; white-space: normal; }
  .gr { border-radius: 14px; }
  .gr-teraz { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .gr-okladka { width: 64px; height: 64px; }
  .gr-nastepna { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .gr-nastepna img { width: 72px; height: 44px; }
  .m-zapis .przycisk { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .js .m-sekcja > *, .js .m-posluchaj > *, .m-obraz img { transition: none; opacity: 1 !important; transform: none !important; }
  .gr-nastepna { animation: none; }
}

/* kolekcja: pozycja w przygotowaniu */
.m-lista li.m-w-drodze .m-t h3 { color: var(--kurz); font-style: italic; }
.m-lista li.m-w-drodze .m-poz { color: var(--kurz); }
