@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/NunitoSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --cream: #fff8ec;
  --paper: #fffdf8;
  --paper-deep: #f7eddc;
  --lavender: #b689cc;
  --lavender-dark: #68447b;
  --lavender-soft: #eee4f4;
  --brown: #78562f;
  --ink: #263642;
  --muted: #617078;
  --coral: #df765d;
  --amber: #f0ad38;
  --green: #87a87d;
  --green-soft: #dcebd8;
  --blue-soft: #dce9ee;
  --line: rgba(120, 86, 47, 0.22);
  --focus: #125eaa;
  --shell: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 11px 16px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(120, 86, 47, 0.14);
  background: rgba(255, 248, 236, 0.97);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  width: 250px;
  height: 76px;
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  position: relative;
  padding: 9px 2px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
}

.main-nav a:not(.nav-note)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 3px;
  border-radius: 50%;
  background: var(--lavender);
  transform: scaleX(0) rotate(-1deg);
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav .is-current::after {
  transform: scaleX(1) rotate(-1deg);
}

.nav-note {
  margin-left: 4px;
  padding: 11px 17px !important;
  border: 1px solid rgba(120, 86, 47, 0.2);
  color: var(--brown);
  background: #fff3ba;
  box-shadow: 3px 4px 0 rgba(120, 86, 47, 0.15);
  transform: rotate(-1deg);
}

.nav-note:hover {
  transform: rotate(0deg) translateY(-2px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 9px 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 480px;
  padding-block: 60px 68px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  top: 42px;
  right: 4%;
  width: 58%;
  height: 370px;
  background: #f3eadc;
  clip-path: polygon(5% 4%, 96% 0, 100% 93%, 0 100%);
  transform: rotate(1deg);
}

.hero-lines {
  position: absolute;
  z-index: -2;
  top: 62px;
  right: 1%;
  width: 47%;
  height: 325px;
  opacity: 0.45;
  background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(95, 132, 155, 0.19) 32px 33px);
  transform: rotate(-1.2deg);
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(63%, 750px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--lavender-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow span {
  margin-right: 5px;
  color: var(--amber);
  font-size: 1rem;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.1;
}

h1 {
  max-width: 660px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 5.8vw, 5.35rem);
  font-weight: 900;
  letter-spacing: -0.065em;
}

.lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.62;
}

.hero-link {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0 7px;
  border-bottom: 4px solid var(--amber);
  color: var(--brown);
  font-weight: 900;
  text-decoration: none;
}

.hero-link:hover {
  border-color: var(--coral);
}

.hero-collage {
  position: absolute;
  z-index: 2;
  top: 54px;
  right: 2.5%;
  width: min(48%, 590px);
  height: 420px;
}

.hero-photo {
  position: absolute;
  inset: 35px 0 20px 78px;
  margin: 0;
  padding: 12px 12px 38px;
  background: var(--paper);
  box-shadow: 10px 16px 0 rgba(104, 68, 123, 0.12), 0 20px 40px rgba(38, 54, 66, 0.1);
  transform: rotate(2.5deg);
}

.hero-photo::after {
  content: "rysujemy razem";
  position: absolute;
  right: 24px;
  bottom: 10px;
  color: var(--brown);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 53%;
}

.paper-tape {
  position: absolute;
  z-index: 5;
  width: 90px;
  height: 28px;
  opacity: 0.82;
  background: rgba(240, 173, 56, 0.52);
  clip-path: polygon(3% 8%, 98% 0, 94% 93%, 0 100%);
}

.tape-one {
  top: 22px;
  left: 42%;
  transform: rotate(-5deg);
}

.tape-two {
  right: -9px;
  bottom: 22px;
  transform: rotate(-48deg);
}

.sun-stamp {
  position: absolute;
  z-index: 6;
  left: 12px;
  bottom: 22px;
  width: 112px;
  height: 112px;
  display: grid;
  place-content: center;
  border: 3px solid var(--coral);
  border-radius: 50%;
  color: var(--coral);
  background: var(--cream);
  text-align: center;
  transform: rotate(-8deg);
}

.sun-stamp span {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
}

.sun-stamp small {
  display: block;
  margin-top: 3px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-pencil {
  position: absolute;
  z-index: 7;
  right: 12%;
  bottom: -5px;
  width: 210px;
  transform: rotate(-5deg);
}

.library {
  position: relative;
  padding-block: 62px 76px;
  border-top: 1px solid rgba(120, 86, 47, 0.14);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(120, 86, 47, 0.07) 0.7px, transparent 0.7px);
  background-size: 9px 9px;
}

.library-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.65fr);
  gap: 40px;
  align-items: end;
}

.library-heading h2,
.idea-note h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.library-intro {
  margin: 0 0 6px;
  padding-left: 22px;
  border-left: 4px solid var(--lavender);
  color: var(--muted);
  font-size: 1.05rem;
}

.prototype-note {
  margin: 18px 0 30px;
  color: var(--muted);
  font-size: 0.86rem;
}

.library-layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.binder {
  position: sticky;
  top: 104px;
  padding: 24px 18px 20px;
  border: 1px solid rgba(120, 86, 47, 0.2);
  border-radius: 20px;
  background: linear-gradient(155deg, #fffdf8, #fbf5e9);
  box-shadow: 5px 6px 0 #e8dcc7, 0 12px 28px rgba(88, 65, 42, 0.08);
}

.binder::before {
  display: none;
}

.binder-holes {
  display: none;
}

.flower-corner {
  position: absolute;
  pointer-events: none;
}

.flower-top {
  z-index: 0;
  top: -16px;
  right: -22px;
  width: 102px;
  transform: rotate(9deg);
}

.binder-title,
.filter-form {
  position: relative;
  z-index: 1;
}

.binder-label {
  display: inline-block;
  margin-bottom: 9px;
  padding: 2px 8px;
  color: var(--brown);
  background: #fff0ab;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.binder-title h3 {
  margin-bottom: 5px;
  font-size: 1.4rem;
  font-weight: 900;
}

.binder-title p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 0.86rem;
}

.filter-form details {
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid rgba(120, 86, 47, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.filter-form details:last-of-type {
  border-bottom: 1px solid rgba(120, 86, 47, 0.18);
}

.filter-form summary {
  position: relative;
  min-height: 46px;
  padding: 10px 36px 10px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  list-style: none;
}

.filter-form details[open] summary {
  background: rgba(238, 228, 244, 0.46);
}

.filter-form summary::-webkit-details-marker {
  display: none;
}

.filter-form summary::after {
  content: "+";
  position: absolute;
  right: 12px;
  color: var(--lavender-dark);
  font-size: 1.05rem;
}

.filter-form details[open] summary::after {
  content: "−";
}

.tab {
  min-width: 29px;
  padding: 4px 6px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 900;
  text-align: center;
}

.tab-lavender { background: var(--lavender-soft); }
.tab-coral { background: #f5d7cf; }
.tab-amber { background: #f9e5af; }
.tab-green { background: var(--green-soft); }

.filter-options {
  padding: 5px 8px 10px;
  display: grid;
  gap: 3px;
}

.filter-options label {
  min-height: 38px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 9px;
  cursor: pointer;
  color: #435159;
  font-size: 0.88rem;
  transition: background 140ms ease, color 140ms ease;
}

.filter-options label:hover {
  background: #f8f2e8;
}

.filter-options label:has(input:checked) {
  color: var(--ink);
  background: var(--lavender-soft);
  font-weight: 850;
}

.filter-options input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--lavender-dark);
}

.clear-button {
  width: 100%;
  margin-top: 14px;
  padding: 9px 12px;
  display: inline-flex;
  justify-content: center;
  border: 1px solid rgba(120, 86, 47, 0.2);
  border-radius: 10px;
  color: var(--brown);
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.clear-button:hover {
  border-color: var(--brown);
  background: #fff;
}

.shelf-results { position: relative; min-width: 0; transition: opacity 160ms ease; }
.library.is-updating .shelf-results { opacity: 0.46; pointer-events: none; }
.library.is-updating .shelf-results::after { content: ""; position: absolute; z-index: 5; top: 90px; left: 50%; width: 34px; height: 34px; border: 4px solid rgba(104,68,123,.2); border-top-color: var(--lavender-dark); border-radius: 50%; animation: catalogue-spin 700ms linear infinite; }
@keyframes catalogue-spin { to { transform: rotate(360deg); } }

.results-heading {
  margin-bottom: 30px;
  padding-bottom: 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid var(--brown);
}

.results-heading p {
  margin: 0;
}

.results-heading strong {
  font-size: 1.45rem;
}

.results-heading label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.results-heading select {
  padding: 7px 28px 7px 9px;
  border: 0;
  border-bottom: 1px solid var(--brown);
  color: var(--ink);
  background: transparent;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 42px);
}

.material-book {
  min-width: 0;
}

.book-link {
  position: relative;
  max-width: 245px;
  margin-inline: auto;
  display: block;
  text-decoration: none;
  perspective: 900px;
}

.book-pages {
  position: absolute;
  z-index: 0;
  inset: 8px -8px -7px 11px;
  border: 1px solid rgba(120, 86, 47, 0.25);
  background: repeating-linear-gradient(90deg, #fffdf8 0 3px, #ede3d5 4px 5px);
  box-shadow: 5px 8px 0 rgba(120, 86, 47, 0.1);
  transform: rotate(1.4deg);
}

.book-cover {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 5.35;
  padding: 24px 20px 21px 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(38, 54, 66, 0.12);
  box-shadow: 0 10px 18px rgba(38, 54, 66, 0.12);
  transform-origin: left center;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.book-link:hover .book-cover {
  box-shadow: 8px 14px 24px rgba(38, 54, 66, 0.16);
  transform: rotateY(-5deg) translateY(-5px);
}

.material-book-lavender .book-cover { background: #eee3f4; }
.material-book-coral .book-cover { background: #f8ddd5; }
.material-book-amber .book-cover { background: #f8e2a6; }

.book-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 17px;
  border-right: 1px solid rgba(38, 54, 66, 0.16);
  background: var(--lavender-dark);
}

.material-book-coral .book-spine { background: #bd5944; }
.material-book-amber .book-spine { background: var(--brown); }

.cover-label {
  align-self: flex-start;
  padding: 3px 8px;
  color: var(--brown);
  background: rgba(255, 253, 248, 0.86);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

.cover-art {
  position: relative;
  min-height: 108px;
  margin-block: 17px 10px;
  display: block;
}

.book-cover > strong {
  min-height: 2.12em;
  margin-top: 0;
  display: block;
  font-size: clamp(1.1rem, 1.8vw, 1.42rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.book-cover > small {
  margin-top: 7px;
  color: rgba(38, 54, 66, 0.76);
  font-weight: 800;
}

.counting-art b {
  position: absolute;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--brown);
  border-radius: 50%;
  color: var(--brown);
  background: var(--paper);
  font-size: 1.1rem;
  transform: rotate(-4deg);
}

.counting-art b:nth-of-type(1) { left: 3px; bottom: 0; }
.counting-art b:nth-of-type(2) { left: 51px; bottom: 12px; transform: rotate(4deg); }
.counting-art b:nth-of-type(3) { left: 99px; bottom: 0; }

.cover-sun {
  position: absolute;
  top: -16px;
  right: 0;
  color: var(--amber);
  font-size: 4rem;
  line-height: 1;
}

.stem {
  position: absolute;
  width: 3px;
  height: 45px;
  border-radius: 50%;
  background: var(--green);
  transform: rotate(20deg);
}

.stem::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -8px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--coral);
}

.stem-one { top: 25px; left: 21px; }
.stem-two { top: 8px; left: 77px; transform: rotate(-17deg); }

.letter-art {
  background: repeating-linear-gradient(to bottom, transparent 0 25px, rgba(95, 132, 155, 0.24) 26px 27px);
}

.letter-art b {
  position: absolute;
  left: 16px;
  top: -17px;
  color: var(--lavender-dark);
  font-size: 7.2rem;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-4deg);
}

.letter-art em {
  position: absolute;
  right: 13px;
  bottom: -5px;
  color: var(--brown);
  font-size: 3.8rem;
  font-style: normal;
  font-weight: 800;
  transform: rotate(7deg);
}

.letter-art i {
  position: absolute;
  right: 5px;
  top: 1px;
  width: 60px;
  height: 13px;
  border-radius: 7px 2px 2px 7px;
  background: var(--amber);
  transform: rotate(42deg);
}

.letter-art i::after {
  content: "";
  position: absolute;
  right: -12px;
  border-top: 6px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 13px solid var(--brown);
}

.leaf-art i {
  position: absolute;
  width: 66px;
  height: 38px;
  border-radius: 90% 0 90% 0;
  background: var(--coral);
  transform: rotate(18deg);
}

.leaf-art i::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 6px;
  width: 58px;
  height: 2px;
  background: rgba(120, 86, 47, 0.56);
  transform: rotate(-22deg);
}

.leaf-art i:nth-child(1) { top: 3px; left: 5px; }
.leaf-art i:nth-child(2) { top: 48px; left: 63px; background: var(--lavender); transform: rotate(-12deg); }
.leaf-art i:nth-child(3) { top: 1px; right: 0; background: var(--green); transform: rotate(42deg); }

.book-meta {
  max-width: 245px;
  margin: 18px auto 0;
  display: grid;
  gap: 5px;
}

.book-meta > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.book-meta a {
  color: var(--brown);
  font-weight: 900;
  text-decoration: underline 2px var(--amber);
  text-underline-offset: 4px;
}

.shelf-line {
  height: 28px;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 42px);
  border-top: 7px solid var(--brown);
  box-shadow: 0 6px 0 #d8c2a3;
}

.shelf-line span {
  width: 10px;
  height: 28px;
  margin: 0 auto;
  background: var(--brown);
}

.idea-note {
  position: relative;
  margin-block: 58px;
  padding: 30px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  border: 1px solid rgba(120, 86, 47, 0.19);
  background: #fff1ad;
  box-shadow: 7px 8px 0 rgba(120, 86, 47, 0.13);
  transform: rotate(-0.35deg);
}

.idea-note .eyebrow {
  color: var(--brown);
}

.idea-note h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
}

.idea-note > a {
  padding-bottom: 5px;
  border-bottom: 3px solid var(--coral);
  color: var(--brown);
  font-weight: 900;
  text-decoration: none;
}

.note-pin {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 23px;
  height: 23px;
  border: 5px solid #f5cf94;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 1px 3px 0 rgba(120, 86, 47, 0.16);
}

.site-footer {
  position: relative;
  margin-top: 80px;
  padding-block: 54px 34px;
  color: #edf3f2;
  background: var(--ink);
}

.book-spines {
  position: absolute;
  top: -35px;
  left: 0;
  width: 100%;
  height: 36px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: var(--cream);
}

.book-spines span {
  height: 25px;
  flex: 1 1 0;
  border-top: 1px solid rgba(38, 54, 66, 0.18);
  border-right: 3px solid var(--cream);
  background: var(--lavender);
}

.book-spines span:nth-child(2n) { height: 34px; background: var(--amber); }
.book-spines span:nth-child(3n) { height: 29px; background: var(--coral); }
.book-spines span:nth-child(4n) { height: 21px; background: var(--green); }

.footer-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) minmax(170px, 0.75fr) minmax(170px, 0.75fr);
  align-items: start;
  gap: 42px 70px;
}

.footer-logo {
  width: 230px;
  padding: 9px 13px;
  background: var(--cream);
  box-shadow: 4px 5px 0 rgba(182, 137, 204, 0.35);
  transform: rotate(-0.7deg);
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-brand p {
  margin: 20px 0 0;
  color: #c3cfd2;
  line-height: 1.7;
}

.footer-group h2 {
  margin: 5px 0 17px;
  color: #f8e1ad;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-group nav {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 11px;
}

.footer-group a {
  color: #edf3f2;
  font-weight: 700;
  text-decoration: none;
}

.footer-group a:hover {
  text-decoration: underline 2px var(--amber);
  text-underline-offset: 4px;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  margin: 0;
  color: #aebbc0;
  font-size: 0.86rem;
}

.footer-bottom span {
  color: var(--amber);
  font-size: 1.2rem;
}

@media (max-width: 1080px) {
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 0.92rem; }
  .hero-copy { width: 60%; }
  .hero-collage { right: 0; width: 49%; }
  .library-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 38px; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf-line { grid-template-columns: repeat(2, 1fr); }
  .shelf-line span:nth-child(3) { display: none; }
}

@media (max-width: 820px) {
  .site-header { position: sticky; top: 0; }
  .header-inner { min-height: 82px; }
  .brand { width: 235px; height: 74px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 82px;
    right: 20px;
    left: 20px;
    padding: 18px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 7px 8px 0 #e8dcc7;
  }
  .main-nav.is-open { display: flex; }
  .nav-note { margin: 8px 0 0; text-align: center; }
  .hero { min-height: auto; padding-block: 44px 58px; }
  .hero::before { top: auto; right: 0; bottom: 35px; width: 93%; height: 315px; }
  .hero-lines { top: auto; right: 0; bottom: 56px; width: 90%; height: 265px; }
  .hero-copy { width: 100%; }
  h1 { max-width: 700px; font-size: clamp(2.7rem, 10vw, 4.7rem); }
  .lead { max-width: 680px; }
  .hero-collage { position: relative; top: auto; right: auto; width: 100%; height: 390px; margin-top: 35px; }
  .hero-photo { inset: 35px 2% 20px 12%; }
  .sun-stamp { left: 3%; }
  .library-heading { grid-template-columns: 1fr; gap: 18px; }
  .library-intro { max-width: 620px; }
  .library-layout { grid-template-columns: 1fr; }
  .binder { position: relative; top: auto; max-width: none; }
  .footer-inner { grid-template-columns: minmax(230px, 1.1fr) repeat(2, minmax(145px, 0.7fr)); gap: 38px 30px; }
}

@media (max-width: 580px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .brand { width: 205px; height: 66px; }
  .menu-toggle span:last-child { display: none; }
  .hero { padding-top: 34px; }
  h1 { font-size: clamp(2.45rem, 13.5vw, 3.7rem); }
  .hero-collage { height: 300px; margin-top: 26px; }
  .hero-photo { inset: 30px 0 17px 8%; padding: 9px 9px 31px; }
  .hero-photo::after { right: 15px; font-size: 0.72rem; }
  .sun-stamp { width: 82px; height: 82px; }
  .sun-stamp span { font-size: 1.6rem; }
  .sun-stamp small { font-size: 0.68rem; }
  .hero-pencil { right: 2%; bottom: -13px; width: 150px; }
  .library { padding-block: 48px 62px; }
  .library-heading h2 { font-size: 2rem; }
  .binder { padding: 39px 20px 27px 45px; }
  .flower-top { right: -2px; width: 88px; }
  .book-grid { grid-template-columns: 1fr; gap: 42px; }
  .material-book:nth-child(3) { display: block; }
  .book-link { max-width: 255px; }
  .book-cover > strong { font-size: 1.35rem; }
  .book-meta { max-width: 255px; }
  .shelf-line { display: none; }
  .results-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .idea-note { margin-block: 48px; padding: 30px 25px; grid-template-columns: 1fr; }
  .site-footer { margin-top: 72px; padding-top: 54px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 38px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-logo { width: 215px; }
  .footer-bottom { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* WordPress implementation additions */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus, .skip-link:focus { width: auto; height: auto; clip: auto; white-space: normal; }
.hero h1 { max-width: 620px; font-size: clamp(2.3rem, 3.5vw, 3.1rem); line-height: 1.08; }
.hero-copy { width: min(54%, 650px); }
.hero-collage { width: min(42vw, 570px); }
.filter-toggle { display: none; margin: 0 0 18px; padding: 11px 16px; border: 1px solid rgba(104,68,123,.35); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 850; box-shadow: 3px 4px 0 #e8dcc7; }
.apply-filters { display: none; width: 100%; margin-top: 18px; padding: 13px 18px; border: 0; border-radius: 10px; background: var(--lavender-dark); color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.catalogue-js .apply-filters { display: none !important; }
.filter-options p { margin: 4px 0 8px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.cover-image { display: grid; place-items: center; width: auto; max-width: 100%; height: 205px; aspect-ratio: 210 / 297; margin: 7px auto 8px; padding: 4px; border: 1px solid rgba(120,86,47,.2); border-radius: 10px; background: #fffdf8; overflow: hidden; }
.cover-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.cover-placeholder { position: relative; display: grid; place-items: center; width: 120px; height: 115px; margin: 38px auto 15px; color: #78562f; font-size: 3rem; }
.cover-placeholder::before { content: ""; position: absolute; inset: 13px 5px 2px; border-radius: 55% 45% 52% 48%; background: rgba(255,255,255,.55); transform: rotate(-5deg); }
.cover-placeholder span { position: relative; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-filters a { padding: 7px 11px; border: 1px solid #ccb1d7; border-radius: 999px; background: #f7effa; color: var(--ink); font-size: .82rem; font-weight: 850; text-decoration: none; transition: border-color 140ms ease, background 140ms ease; }
.active-filters a:hover { border-color: var(--lavender-dark); background: #efe1f5; }
.catalogue-empty { padding: 56px 28px; border: 2px dashed #d9c9b0; border-radius: 18px; background: rgba(255,255,255,.56); text-align: center; }
.catalogue-empty > span { display: block; color: #e8a72f; font-size: 3rem; }
.catalogue-empty h2, .catalogue-empty h3 { margin: 8px 0; font-size: 1.7rem; }
.catalogue-empty p { margin: 0 auto 18px; max-width: 540px; color: var(--muted); }
.catalogue-empty a, .primary-link { color: var(--lavender-dark); font-weight: 900; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 42px; }
.pagination .page-numbers, .nav-links .page-numbers { min-width: 40px; padding: 9px 12px; border: 1px solid #d8c7df; border-radius: 9px; background: #fff; color: var(--ink); text-align: center; text-decoration: none; }
.pagination .current, .nav-links .current { border-color: var(--lavender-dark); background: var(--lavender-dark); color: #fff; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 28px 0 16px; color: var(--muted); font-size: .86rem; }
.breadcrumbs a { color: var(--lavender-dark); }
.material-page, .term-page, .content-page { padding-bottom: 70px; }
.material-header, .term-header { max-width: 850px; padding: 30px 0 28px; }
.material-header h1, .term-header h1, .content-page h1 { margin: 8px 0 18px; font-size: clamp(2.1rem, 3.7vw, 3.2rem); line-height: 1.08; }
.material-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.material-tags span { display: grid; gap: 1px; padding: 8px 12px; border: 1px solid #d9c9e2; border-radius: 10px; background: #fff; font-weight: 800; }
.material-tags small { color: var(--muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.material-main { display: grid; grid-template-columns: minmax(380px, 1.15fr) minmax(300px, .85fr); gap: 52px; align-items: start; }
.material-preview { min-width: 0; min-height: 440px; padding: 22px; border: 1px solid #dfd2bf; background: #fff; box-shadow: 10px 12px 0 #eadfcd; }
.material-preview img { display: block; width: 100%; height: auto; object-fit: contain; }
.material-gallery { position: relative; outline: none; }
.material-gallery:focus-visible { border-radius: 4px; outline: 3px solid var(--focus); outline-offset: 8px; }
.material-gallery-stage { position: relative; width: 100%; aspect-ratio: 210 / 297; overflow: hidden; background: #f7f3eb; }
.material-gallery .material-gallery-page { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 180ms ease; }
.material-gallery .material-gallery-page.is-active { opacity: 1; visibility: visible; }
.material-gallery-button { position: absolute; z-index: 2; top: calc(50% - 54px); width: 52px; height: 52px; display: grid; place-items: center; border: 2px solid var(--lavender-dark); border-radius: 50%; color: var(--lavender-dark); background: #fff; font: 900 1.45rem/1 sans-serif; cursor: pointer; box-shadow: 0 5px 16px rgba(54, 38, 29, .18); transition: transform 150ms ease, background 150ms ease; }
.material-gallery-button:hover { background: #fbf6fd; transform: translateY(-1px); }
.material-gallery-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.material-gallery-prev { left: -48px; }
.material-gallery-next { right: -48px; }
.material-gallery-counter { margin: 16px 0 0; color: var(--ink); font-size: .92rem; font-weight: 900; text-align: center; }
.material-gallery-note { margin: 5px auto 0; max-width: 480px; color: var(--muted); font-size: .78rem; line-height: 1.45; text-align: center; }
.large-placeholder { min-height: 395px; display: grid; place-items: center; align-content: center; gap: 15px; border: 2px dashed #d8c7df; background: linear-gradient(145deg,#f8effb,#fff8e9); text-align: center; }
.large-placeholder span { color: #efad35; font-size: 5rem; }
.large-placeholder strong { max-width: 220px; font-size: 1.25rem; }
.material-details { display: grid; gap: 28px; }
.material-details h2, .material-extra h2, .related-materials h2 { font-size: clamp(1.6rem, 2.4vw, 2.15rem); }
.downloads { padding: 28px; border: 2px solid #b689cc; border-radius: 18px; background: #fbf6fd; }
.downloads ul { display: grid; gap: 12px; padding: 0; margin: 22px 0 0; list-style: none; }
.downloads li { display: grid; justify-items: start; gap: 8px; padding: 0; }
.downloads .download-meta { color: var(--muted); font-size: .82rem; font-weight: 800; }
.download-button, .material-suggestion > a, .idea-note > a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 0; border-radius: 9px; background: var(--lavender-dark); color: #fff !important; font-weight: 900; text-decoration: none; white-space: nowrap; }
.material-extra, .related-materials { margin-top: 70px; padding-top: 42px; border-top: 1px solid #ded1bf; }
.material-extra { max-width: 850px; line-height: 1.75; }
.material-suggestion { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-top: 70px; padding: 30px; border: 1px solid #d8c7df; border-radius: 18px; background: #fff8ed; }
.material-suggestion h2 { margin: 4px 0 0; }
.term-header div { font-size: 1.08rem; line-height: 1.7; }
.term-grid { margin-top: 18px; }
.content-page { max-width: 900px; padding-top: 50px; line-height: 1.72; }
.content-page h2 { margin-top: 36px; font-size: 1.75rem; }
.lead-small { max-width: 760px; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.principles-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.principles-grid > div { padding: 24px; border: 1px solid #ded1bf; border-radius: 16px; background: #fff; }
.principles-grid span { color: var(--lavender-dark); font-size: 1.7rem; font-weight: 900; }
.principles-grid h3 { margin: 8px 0; }
.privacy-draft, .stage-notice { margin: 28px 0 40px; padding: 20px 24px; border: 2px solid #e2a638; border-radius: 14px; background: #fff8e7; }
.stage-notice { display: flex; gap: 18px; align-items: flex-start; border-color: #b689cc; background: #faf4fc; }
.stage-notice > span { color: var(--lavender-dark); font-size: 2rem; }
.stage-notice h2 { margin: 0 0 6px; font-size: 1.45rem; }
.stage-notice p { margin: 0; }

/* Protected public forms. */
.content-page-kontakt, .content-page-zaproponuj-temat { max-width: var(--shell); padding-top: 34px; }
.form-page-hero { max-width: 820px; padding-bottom: 32px; }
.form-page-hero-topic { max-width: none; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); align-items: end; gap: 48px; }
.breadcrumbs { margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .88rem; }
.breadcrumbs a, .form-consent a, .form-related-link a { color: var(--lavender-dark); font-weight: 800; text-underline-offset: 3px; }
.form-privacy-note, .form-next-steps, .gdl-public-form { border: 1px solid rgba(38,54,66,.11); border-radius: 20px; background: #fff; box-shadow: 0 12px 32px rgba(76,55,35,.08); }
.form-privacy-note { padding: 24px; background: var(--green-soft); }
.form-privacy-note > span { width: 48px; height: 48px; margin-bottom: 15px; display: grid; place-items: center; border-radius: 50%; color: var(--lavender-dark); background: #fff; font-size: 1.3rem; }
.form-privacy-note strong { display: block; }
.form-privacy-note p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.gdl-public-form-section { margin-inline: calc(50% - 50vw); padding: 44px max(20px, calc((100vw - var(--shell)) / 2)); border-radius: 34px 34px 0 0; background: var(--paper); }
.gdl-contact-layout { max-width: 820px; margin-inline: auto; }
.gdl-topic-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.55fr); align-items: start; gap: 30px; }
.gdl-public-form { padding: 30px; }
.form-heading { margin-bottom: 24px; }
.form-heading h2 { margin: 4px 0 7px; font-size: 1.7rem; }
.form-heading > p:last-child { margin: 0; color: var(--muted); }
.form-alert { margin-bottom: 22px; padding: 14px 16px; border: 1px solid; border-radius: 12px; font-weight: 800; }
.form-alert-success { border-color: #8db79a; color: #285b39; background: #e8f5eb; }
.form-alert-error { border-color: #d49a8b; color: #8e382b; background: #fff0ec; }
.form-field { margin-top: 18px; }
.form-field label, .form-audience legend { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 900; }
.form-field label > span, .form-audience legend > span { color: var(--coral); }
.form-field label em { margin-left: 5px; color: var(--muted); font-size: .78rem; font-style: normal; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #cfd5d2; border-radius: 12px; color: var(--ink); background: var(--paper); font: inherit; }
.form-field input, .form-field select { min-height: 48px; padding: 10px 13px; }
.form-field textarea { min-height: 126px; padding: 11px 13px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--lavender-dark); box-shadow: 0 0 0 3px rgba(182,137,204,.23); }
.form-field small { margin-top: 7px; display: block; color: var(--muted); font-size: .78rem; }
.form-audience { margin: 24px 0 0; padding: 0; border: 0; }
.form-audience > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.form-audience label { cursor: pointer; }
.form-audience input { position: absolute; opacity: 0; pointer-events: none; }
.form-audience label span { min-height: 48px; padding: 9px; display: grid; place-items: center; border: 1px solid #cfd5d2; border-radius: 11px; background: var(--paper); font-size: .86rem; font-weight: 800; text-align: center; }
.form-audience input:checked + span { border-color: var(--lavender-dark); background: var(--lavender); box-shadow: inset 0 0 0 1px var(--lavender-dark); }
.form-audience input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.form-consent { margin-top: 24px; display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 11px; color: var(--muted); font-size: .86rem; cursor: pointer; }
.form-consent input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--lavender-dark); }
.gdl-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.gdl-turnstile { min-height: 65px; margin-top: 24px; }
.spam-note { margin-top: 20px; padding: 13px 15px; display: flex; gap: 10px; border-radius: 12px; color: #315b50; background: #e7f2ed; }
.spam-note p { margin: 0; font-size: .8rem; }
.form-submit { width: 100%; min-height: 54px; margin-top: 22px; border: 0; border-radius: 12px; color: #fff; background: var(--lavender-dark); font-weight: 900; cursor: pointer; box-shadow: 0 5px 0 #4f315f; }
.form-submit:hover { background: #59376a; transform: translateY(-1px); }
.form-submit:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.form-related-link { margin: 20px 0 0; color: var(--muted); font-size: .9rem; text-align: center; }
.form-next-steps { position: sticky; top: 120px; padding: 30px; }
.form-next-steps h2 { margin: 4px 0 24px; font-size: 1.65rem; line-height: 1.2; }
.form-next-steps ol { margin: 0; padding: 0; display: grid; gap: 22px; list-style: none; counter-reset: form-steps; }
.form-next-steps li { position: relative; padding-left: 46px; counter-increment: form-steps; }
.form-next-steps li::before { content: counter(form-steps); position: absolute; left: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--lavender); font-weight: 900; }
.form-next-steps strong, .form-next-steps span { display: block; }
.form-next-steps span { margin-top: 3px; color: var(--muted); font-size: .86rem; }
.footer-brand img { width: 230px; height: auto; }

@media (max-width: 800px) {
	.form-page-hero-topic, .gdl-topic-layout { grid-template-columns: 1fr; }
	.form-next-steps { position: static; }
  .filter-toggle { display: inline-flex; }
  .binder { display: none; }
  .binder.is-open { display: block; }
  .apply-filters { display: block; }
  .hero-copy { width: 100%; }
  .hero-collage { width: 100%; }
  .hero h1 { font-size: clamp(2rem, 6.2vw, 2.6rem); }
  .material-main { grid-template-columns: 1fr; }
  .material-preview { min-height: 320px; }
	.material-gallery-button { top: calc(50% - 52px); width: 44px; height: 44px; font-size: 1.2rem; }
	.material-gallery-prev { left: -14px; }
	.material-gallery-next { right: -14px; }
  .large-placeholder { min-height: 280px; }
}

@media (max-width: 640px) {
	.content-page-kontakt, .content-page-zaproponuj-temat { padding-top: 24px; }
	.gdl-public-form-section { padding-block: 32px 46px; border-radius: 28px 28px 0 0; }
	.gdl-public-form, .form-next-steps { padding: 22px; }
	.form-heading h2 { font-size: 1.5rem; }
	.form-audience > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 580px) {
	.material-preview { padding: 12px; box-shadow: 6px 8px 0 #eadfcd; }
	.material-gallery-button { top: calc(50% - 50px); width: 42px; height: 42px; }
	.material-gallery-prev { left: -8px; }
	.material-gallery-next { right: -8px; }
  .downloads { padding: 20px; }
  .material-suggestion { align-items: stretch; flex-direction: column; }
  .download-button { justify-content: center; }
  .material-header h1, .term-header h1, .content-page h1 { font-size: clamp(1.85rem, 9.5vw, 2.5rem); }
  .principles-grid { grid-template-columns: 1fr; }
}
