/* Każde słowo – magazyn pytań i odpowiedzi, ciepłe pastelowe kafle */
:root {
  --zielen: #2c967c;
  --zielen-gl: #1c5f4e;
  --roz: #c059a6;
  --roz-jasny: #f7e3f1;
  --malina: #c3224b;
  --malina-ciem: #9c1638;
  --tlo: #f5faf9;
  --mieta: #e2f3ef;
  --krem: #fff8ec;
  --tusz: #1b2d28;
  --szary: #4c5f59;
  --zaokr: 30px;
  --odstep: clamp(56px, 8vw, 104px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 420px at 92% -6%, #fbe9f5 0%, transparent 70%),
    var(--tlo);
  color: var(--tusz);
  font-family: "Alegreya Sans", "Segoe UI", sans-serif;
  font-size: 19px;
  line-height: 1.62;
  padding-bottom: 86px;
}

.tresc { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: "Alegreya", "Georgia", serif;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 0.45em;
}
h1 { font-size: clamp(36px, 4.4vw, 60px); }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: 24px; }

p { margin: 0 0 1em; }

a { color: var(--zielen-gl); }

.pismo-reczne {
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-weight: 700;
  color: var(--roz);
  font-size: 30px;
  line-height: 1.1;
}

.kolumna { width: min(1240px, 100% - 36px); margin-inline: auto; }

/* ---------- górny pasek (pigułka) ---------- */
.naglowek { padding: 18px 0 0; }
.naglowek__pigulka {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-radius: 999px;
  padding: 10px 10px 10px 26px;
  box-shadow: 0 10px 30px rgba(28, 95, 78, 0.10);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Alegreya", Georgia, serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--zielen-gl);
  text-decoration: none;
  white-space: nowrap;
}
.logo svg { width: 36px; height: 36px; flex: none; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-cta {
  background: var(--malina);
  color: #fff;
  min-height: 62px;
  padding: 0 30px;
  font-size: 19px;
  box-shadow: 0 10px 24px rgba(195, 34, 75, 0.32);
}
.btn-cta:hover, .btn-cta:focus-visible { background: var(--malina-ciem); transform: translateY(-2px); }
.naglowek .btn-cta { min-height: 54px; font-size: 18px; padding: 0 26px; }
.btn-cta-xl {
  min-height: 88px;
  min-width: 340px;
  padding: 0 44px;
  font-size: 25px;
  box-shadow: 0 16px 34px rgba(195, 34, 75, 0.38);
}

/* ---------- wstęp + kafle (bento) ---------- */
.wstep { padding: clamp(36px, 6vw, 72px) 0 var(--odstep); }
.wstep__uklad { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.wstep__tekst { max-width: 680px; }
.wstep__foto { margin: 0; border-radius: var(--zaokr); overflow: hidden; position: relative; box-shadow: 0 14px 36px rgba(27, 45, 40, 0.14); }
.wstep__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 62% 30%; }
.wstep__foto figcaption { padding: 12px 18px; background: #fff; font-size: 17px; }
.wstep__tekst .pismo-reczne { display: block; margin-bottom: 8px; }
.wstep__lead { font-size: 22px; color: var(--szary); max-width: 760px; }
.wstep__akcja { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 26px 0 0; }
.wstep__drobne { font-size: 17px; color: var(--zielen-gl); font-weight: 700; }

.kafle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.kafel {
  background: #fff;
  border-radius: var(--zaokr);
  padding: 26px 26px 24px;
  box-shadow: 0 6px 22px rgba(27, 45, 40, 0.06);
}
.kafel--foto { grid-column: span 2; grid-row: span 2; padding: 0; overflow: hidden; position: relative; }
.kafel--foto img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.kafel--foto figcaption {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 17px;
}
.kafel--mieta { background: var(--mieta); }
.kafel--roz { background: var(--roz-jasny); }
.kafel--krem { background: var(--krem); }
.kafel__liczba {
  font-family: "Alegreya", Georgia, serif;
  font-weight: 800;
  font-size: 52px;
  line-height: 1;
  color: var(--zielen-gl);
  margin-bottom: 8px;
}
.kafel p { font-size: 18px; margin: 0; }
.kafel h3 { font-size: 22px; }
.kafel__zrodlo { display: block; margin-top: 10px; font-size: 15px; color: var(--szary); }

/* ---------- nagłówki sekcji ---------- */
.sekcja { padding: 0 0 var(--odstep); }
.sekcja__glowka { max-width: 820px; margin-bottom: 34px; }
.sekcja__glowka p { color: var(--szary); font-size: 20px; }
.etykieta {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--roz);
  margin-bottom: 10px;
}

/* ---------- typowe sytuacje ---------- */
.sytuacje {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.sytuacja {
  background: #fff;
  border-radius: var(--zaokr);
  padding: 26px;
  border: 2px solid var(--mieta);
}
.sytuacja__ikona {
  width: 54px; height: 54px;
  border-radius: 18px;
  background: var(--mieta);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.sytuacja__ikona svg { width: 30px; height: 30px; }
.sytuacja h3 { font-size: 23px; }
.sytuacja p { font-size: 18px; margin: 0; color: var(--szary); }
.sytuacja--foto { grid-row: span 2; padding: 0; overflow: hidden; border: 0; }
.sytuacja--foto img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- liczby ---------- */
.liczby {
  background: var(--zielen-gl);
  color: #fff;
  border-radius: 40px;
  padding: clamp(30px, 5vw, 60px);
}
.liczby .etykieta { color: #ffd2ef; }
.liczby .sekcja__glowka p { color: #d8eee8; }
.liczby__siatka { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.wykres {
  background: #fff;
  color: var(--tusz);
  border-radius: 26px;
  padding: 18px;
  margin: 0;
}
.wykres img { width: 100%; }
.wykres figcaption { font-size: 17px; padding: 12px 6px 2px; }

/* ---------- głosy ---------- */
.glosy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.glos {
  margin: 0;
  background: #fff;
  border-radius: var(--zaokr) var(--zaokr) var(--zaokr) 6px;
  padding: 28px 28px 22px;
  box-shadow: 0 6px 22px rgba(27, 45, 40, 0.06);
}
.glos blockquote {
  margin: 0 0 14px;
  font-family: "Caveat", cursive;
  font-size: 31px;
  line-height: 1.2;
  color: var(--tusz);
}
.glos figcaption { font-size: 17px; color: var(--szary); }
.glos__gwiazdki { color: #e0a100; letter-spacing: 3px; font-size: 18px; }

/* ---------- oferta ---------- */
.oferta {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--roz-jasny);
  border-radius: 40px;
  overflow: hidden;
}
.oferta__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 88% 30%; min-height: 360px; }
.oferta__tekst { padding: clamp(30px, 4.5vw, 58px); }
.oferta__lista { list-style: none; padding: 0; margin: 0 0 28px; }
.oferta__lista li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  font-size: 19px;
}
.oferta__lista li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--zielen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* ---------- pytania ---------- */
.pytania { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pytanie {
  background: #fff;
  border-radius: 24px;
  padding: 0;
  border: 2px solid var(--mieta);
}
.pytanie summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 60px 22px 24px;
  font-family: "Alegreya", Georgia, serif;
  font-weight: 800;
  font-size: 21px;
  position: relative;
}
.pytanie summary::-webkit-details-marker { display: none; }
.pytanie summary::after {
  content: "+";
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--mieta); color: var(--zielen-gl);
  display: grid; place-items: center;
  font-family: "Alegreya Sans", sans-serif;
  font-size: 24px;
}
.pytanie[open] summary::after { content: "–"; }
.pytanie p { padding: 0 24px 22px; margin: 0; font-size: 18px; color: var(--szary); }

/* ---------- warto wiedzieć ---------- */
.notatki { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.notatka {
  background: var(--krem);
  border-radius: 26px;
  padding: 28px 30px;
  border-left: 8px solid var(--roz);
}
.notatka h3 { font-size: 23px; }
.notatka p { font-size: 18px; margin: 0; }
.notatka small { display: block; margin-top: 10px; font-size: 15px; color: var(--szary); }

/* ---------- zakończenie ---------- */
.final {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border-radius: 40px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 10px 34px rgba(27, 45, 40, 0.08);
}
.final img { border-radius: 28px; width: 100%; aspect-ratio: 800 / 380; object-fit: cover; }
.final p { font-size: 20px; color: var(--szary); }

/* ---------- stopka ---------- */
.stopka {
  margin-top: auto;
  background: var(--tusz);
  color: #cfe0db;
  padding: 34px 0 30px;
  font-size: 15px;
}
.stopka__wnetrze { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.stopka a { color: #cfe0db; }
.stopka nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- podstrony ---------- */
.podstrona { padding: clamp(36px, 6vw, 70px) 0 var(--odstep); }
.karta-tekstu {
  max-width: 860px;
  margin-inline: auto;
  background: #fff;
  border-radius: 34px;
  padding: clamp(26px, 5vw, 56px);
  box-shadow: 0 8px 28px rgba(27, 45, 40, 0.07);
}
.karta-tekstu h2 { font-size: 26px; margin-top: 1.4em; }
.karta-tekstu ul { padding-left: 1.2em; }
.karta-tekstu li { margin-bottom: .4em; }
.onas-siatka { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px auto 0; max-width: 860px; }
.onas-siatka .kafel h3 { font-size: 22px; }

.formularz { display: grid; gap: 16px; margin-top: 24px; }
.formularz label { font-weight: 700; font-size: 17px; display: grid; gap: 6px; }
.formularz button { font-family: inherit; }
.formularz input, .formularz textarea {
  font: inherit;
  font-size: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 2px solid #c8e6de;
  background: var(--tlo);
}
.formularz input:focus, .formularz textarea:focus { outline: 3px solid var(--roz); outline-offset: 1px; }
.formularz button { justify-self: start; }
.dziekujemy {
  margin-top: 24px;
  background: var(--mieta);
  border-radius: 24px;
  padding: 26px;
  font-size: 20px;
}

/* ---------- popup (engine) ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 26, 22, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}
.modal-overlay.show { display: flex; }
.modal {
  position: relative;
  width: min(660px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 34px;
  padding: 46px 44px 40px;
  text-align: center;
  border-top: 12px solid var(--roz);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}
.modal .close {
  position: absolute; top: 14px; right: 16px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--mieta);
  color: var(--zielen-gl);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.modal .close:hover { background: #cde9e2; }
.modal .badge {
  display: inline-block;
  background: var(--roz);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .05em;
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 16px;
}
.modal h3 {
  font-size: 46px;
  color: var(--zielen-gl);
  margin: 0 0 10px;
}
.modal > p { font-size: 20px; color: var(--szary); margin: 0 0 18px; }
.modal .offer {
  background: var(--mieta);
  border-radius: 22px;
  padding: 18px 22px 8px;
  margin-bottom: 24px;
  text-align: left;
}
.modal .offer p { margin: 0 0 10px; font-size: 19px; }
.modal .btn-cta-xl { width: 100%; min-width: 0; white-space: normal; text-align: center; line-height: 1.2; }

/* ---------- spodní lišta (engine) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 3px solid var(--roz);
  padding: 10px 16px;
  box-shadow: 0 -8px 24px rgba(27, 45, 40, 0.12);
}
.sticky-cta span { font-weight: 800; font-size: 18px; color: var(--zielen-gl); white-space: nowrap; }
.sticky-cta .btn-cta { min-height: 60px; font-size: 19px; }

/* ---------- responsywność ---------- */
@media (max-width: 1000px) {
  .wstep__uklad { grid-template-columns: 1fr; gap: 28px; }
  .wstep__tekst { max-width: none; }
  .kafle { grid-template-columns: repeat(2, 1fr); }
  .sytuacje { grid-template-columns: repeat(2, 1fr); }
  .sytuacja--foto { grid-column: span 2; grid-row: auto; }
  .sytuacja--foto img { aspect-ratio: 16 / 9; }
  .glosy { grid-template-columns: 1fr; }
  .oferta, .final { grid-template-columns: 1fr; }
  .oferta__foto img { min-height: 0; aspect-ratio: 4 / 3; }
  .onas-siatka { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 18px; padding-bottom: 76px; }
  .naglowek__pigulka { padding: 8px 8px 8px 16px; }
  .logo { font-size: 21px; gap: 6px; }
  .logo svg { width: 26px; height: 26px; }
  .naglowek .btn-cta { min-height: 48px; font-size: 16px; padding: 0 16px; }
  .wstep__lead { font-size: 19px; }
  .btn-cta-xl { min-width: 0; width: 100%; font-size: 22px; min-height: 76px; padding: 0 20px; }
  .kafle { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 14px; margin-top: 30px; }
  .kafel--foto figcaption { position: static; border-radius: 0; background: #fff; }
  .kafel--foto { grid-column: auto; grid-row: auto; }
  .kafel--foto img { aspect-ratio: 4 / 3; height: auto; }
  .kafel { min-height: 0; }
  .sytuacje, .liczby__siatka, .pytania, .notatki { grid-template-columns: 1fr; }
  .sytuacja--foto { grid-column: auto; }
  .sytuacja--foto img { aspect-ratio: 4 / 3; }
  .liczby { border-radius: 28px; padding: 26px 8px 8px; }
  .liczby .sekcja__glowka { padding: 0 10px; }
  .wykres { padding: 0; border-radius: 22px; overflow: hidden; }
  .wykres figcaption { padding: 12px 14px 14px; }
  .glos blockquote { font-size: 28px; }
  .modal { padding: 40px 20px 26px; border-radius: 26px; }
  .modal h3 { font-size: 34px; }
  .modal .btn-cta-xl { font-size: 20px; }
  .sticky-cta { gap: 10px; justify-content: space-between; padding: 8px 10px; }
  .sticky-cta span { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-cta .btn-cta { min-height: 52px; font-size: 17px; padding: 0 18px; flex: none; }
}

/* popup-vzor-zalomeni: vzorový text tlačítka popupu je dlouhý – smí se zalomit a nesmí přetékat */
.modal .btn, .modal .cta { white-space: normal; overflow-wrap: anywhere; text-align: center; line-height: 1.25; max-width: 100%; box-sizing: border-box; }
@media (max-width: 600px) { .modal .btn, .modal .cta { padding-left: 16px; padding-right: 16px; } }

/* lista-vzor-zalomeni: vzorový text spodní lišty se na mobilu zalomí, tlačítko zůstane celé */
.modal .btn-cta-xl { text-wrap: balance; }
@media (max-width: 600px) {
  .sticky-cta { flex-wrap: nowrap !important; gap: 10px; }
  .sticky-cta > span { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; min-width: 0; flex: 1 1 auto; font-size: 13px !important; line-height: 1.25; display: block !important; }
  .sticky-cta .btn, .sticky-cta .cta { flex: 0 0 auto !important; white-space: nowrap !important; max-width: none; }
}
