@font-face{font-family:'Baloo 2';font-style:normal;font-display:swap;font-weight:600;src:url(../fonts/baloo-2-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Baloo 2';font-style:normal;font-display:swap;font-weight:600;src:url(../fonts/baloo-2-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Baloo 2';font-style:normal;font-display:swap;font-weight:700;src:url(../fonts/baloo-2-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Baloo 2';font-style:normal;font-display:swap;font-weight:700;src:url(../fonts/baloo-2-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Baloo 2';font-style:normal;font-display:swap;font-weight:800;src:url(../fonts/baloo-2-latin-800-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Baloo 2';font-style:normal;font-display:swap;font-weight:800;src:url(../fonts/baloo-2-latin-ext-800-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:normal;font-display:swap;font-weight:400;src:url(../fonts/nunito-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Nunito';font-style:normal;font-display:swap;font-weight:400;src:url(../fonts/nunito-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:normal;font-display:swap;font-weight:700;src:url(../fonts/nunito-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Nunito';font-style:normal;font-display:swap;font-weight:700;src:url(../fonts/nunito-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:normal;font-display:swap;font-weight:800;src:url(../fonts/nunito-latin-800-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Nunito';font-style:normal;font-display:swap;font-weight:800;src:url(../fonts/nunito-latin-ext-800-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:italic;font-display:swap;font-weight:400;src:url(../fonts/nunito-latin-400-italic.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Nunito';font-style:italic;font-display:swap;font-weight:400;src:url(../fonts/nunito-latin-ext-400-italic.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
/* ===== Tęcza Kutno – styl strony ===== */
:root {
  --red: #E5484D; --orange: #F5922F; --yellow: #FFC531; --green: #34B36A;
  --blue: #2E8BD8; --indigo: #5257C9; --violet: #9A5BC4;
  --ink: #24324B; --ink-soft: #55627A; --paper: #fff; --grid: #E4EEF8; --sky: #F2F7FD;
  --c: var(--blue);
  --font-display: 'Baloo 2', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', 'Trebuchet MS', sans-serif;
  --radius: 18px;
  --wrap: 1180px;
}
.c-red { --c: var(--red); } .c-orange { --c: var(--orange); } .c-yellow { --c: var(--yellow); }
.c-green { --c: var(--green); } .c-blue { --c: var(--blue); } .c-indigo { --c: var(--indigo); } .c-violet { --c: var(--violet); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: center top;
}
img { max-width: 100%; height: auto; }
a { color: var(--indigo); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 10px; z-index: 50; }
.skip:focus { top: 1rem; color: #fff; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 760px); }

/* pasek tęczy */
.stripe { display: flex; height: 8px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--red); } .stripe i:nth-child(2) { background: var(--orange); }
.stripe i:nth-child(3) { background: var(--yellow); } .stripe i:nth-child(4) { background: var(--green); }
.stripe i:nth-child(5) { background: var(--blue); } .stripe i:nth-child(6) { background: var(--indigo); }
.stripe i:nth-child(7) { background: var(--violet); }

/* ===== nagłówek ===== */
.site-head { background: var(--paper); border-bottom: 3px solid var(--ink); position: relative; z-index: 20; }
.site-head__row { display: flex; align-items: center; gap: 1.5rem; padding-block: .9rem .5rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 74px; height: 41px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font: 800 2.1rem/1 var(--font-display); letter-spacing: .01em; }
.brand__tag { font-size: .86rem; color: var(--ink-soft); font-weight: 700; margin-top: .2rem; }

.nav__inner { display: flex; align-items: center; padding-bottom: .55rem; }
.nav__list { list-style: none; margin: 0 0 0 -.7rem; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem .2rem; }
.nav .search--nav { display: none; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: block; padding: .45rem .7rem .5rem; font: 700 1.05rem/1.2 var(--font-display);
  color: var(--ink); text-decoration: none; border-radius: 12px;
  background: linear-gradient(var(--c), var(--c)) no-repeat 50% calc(100% - 2px) / 0 4px;
  transition: background-size .2s ease;
}
.nav__link:hover, .nav__item:focus-within > .nav__link, .nav__item.is-active > .nav__link {
  color: var(--ink); background-size: calc(100% - 1.2rem) 4px;
}
.nav__item.is-active > .nav__link { background-size: calc(100% - 1.2rem) 6px; }
.nav__sub-toggle { display: none; }
.nav__sub {
  list-style: none; margin: 0; padding: .5rem; position: absolute; left: 0; top: 100%; min-width: 260px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--c);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.nav__sub a { display: block; padding: .45rem .7rem; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .96rem; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: color-mix(in srgb, var(--c) 18%, white); }
.nav__sub li:first-child a { font-family: var(--font-display); font-weight: 600; }
@media (min-width: 1081px) {
  .has-sub:hover > .nav__sub, .has-sub:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
}

.search { display: flex; align-items: center; background: var(--sky); border: 2px solid var(--ink); border-radius: 999px; padding: 2px; }
.search input { border: 0; background: transparent; font: inherit; font-size: .95rem; padding: .3rem .4rem .3rem .8rem; width: 9.5rem; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 40%, white); }
.search button { border: 0; background: var(--ink); color: #fff; border-radius: 999px; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; cursor: pointer; }
.search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.search--big { max-width: 560px; margin-top: 1rem; background: #fff; }
.search--big input { width: 100%; font-size: 1.05rem; padding: .55rem 1rem; }
.search--big button { width: auto; height: auto; padding: .6rem 1.2rem; font: 600 1rem var(--font-display); }

.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .55rem; font: 600 1rem var(--font-display);
    background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px;
    padding: .45rem .9rem; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 3px; background: var(--ink); border-radius: 2px; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
  .site-head__row { padding-block: .8rem; }
  .search--head { display: none; }
  .nav .search--nav { display: flex; margin-top: .5rem; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav__inner { flex-direction: column; align-items: stretch; padding-bottom: 1rem; }
  .nav__list { flex-direction: column; margin: 0; }
  .nav__item { flex-wrap: wrap; border-left: 6px solid var(--c); border-radius: 4px; margin-bottom: .2rem; background: #fff; }
  .nav__link { flex: 1; padding: .7rem .9rem; background: none !important; }
  .nav__item.is-active > .nav__link { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 4px; }
  .nav__sub-toggle {
    display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 0; background: none; cursor: pointer; color: var(--ink);
  }
  .nav__sub-toggle::before { content: ''; width: 10px; height: 10px; border: solid currentColor; border-width: 0 3px 3px 0; transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
  .nav__sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); }
  .nav__sub { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; width: 100%; padding: 0 .5rem .5rem 1rem; min-width: 0; }
  .nav__item.is-open > .nav__sub { display: block; }
  .search { margin-top: .5rem; }
  .search input { width: 100%; }
  .brand__name { font-size: 1.7rem; }
}
@media (max-width: 520px) { .brand__tag { display: none; } .brand__mark { width: 60px; height: 33px; } }

/* ===== przyciski i drobiazgi ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: 16px;
  font: 700 1.05rem/1.2 var(--font-display); text-decoration: none; border: 3px solid var(--ink); cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--ink { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--red); }
.btn--ink:hover { color: #fff; box-shadow: 5px 5px 0 var(--red); }
.btn--sun { background: var(--yellow); color: var(--ink); }
.btn--sun:hover { color: var(--ink); }
.btn--ghost { background: #fff; color: var(--ink); }
.chip { display: inline-block; font-size: .78rem; font-weight: 800; padding: .1rem .55rem; border-radius: 999px; background: var(--sky); color: var(--ink); border: 2px solid var(--ink); text-decoration: none; line-height: 1.5; }
.chip--warn { background: var(--yellow); }
.notice { padding: .8rem 1rem; border-radius: 14px; border: 2px solid var(--ink); background: #fff; margin: 1rem 0 0; font-weight: 700; }
.notice--error { background: #FDE7E8; } .notice--ok { background: #E3F6EA; }
.empty { font-size: 1.1rem; color: var(--ink-soft); background: #fff; padding: 1.2rem 1.4rem; border-radius: var(--radius); border: 2px dashed #b9c6d8; }
.link-more, .link-back { font: 600 1.02rem var(--font-display); color: var(--ink); text-decoration-color: var(--c, var(--blue)); }
.link-more::after { content: ' ›'; }
.link-back::before { content: '‹ '; }
.crumbs { margin: 0 0 .4rem; font-weight: 800; font-size: .95rem; }
.crumbs a { color: var(--ink-soft); }

/* ===== hero ===== */
.hero { padding: clamp(1.5rem, 4vw, 3.5rem) 0 1rem; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center; }
.hero__text { background: rgba(255, 255, 255, .92); padding: 1.2rem 0; }
.hero__title { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; line-height: 1.02; margin-bottom: .45em; }
.hero__lead { font-size: 1.2rem; max-width: 34em; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.rainbow { width: 100%; height: auto; display: block; overflow: visible; }
.rainbow__arc { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.6, .1, .3, 1) var(--d) forwards; }
.rainbow__house { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) 1.15s both; transform-origin: 300px 330px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
}

/* ===== sekcje ===== */
.section { padding: clamp(1.5rem, 4vw, 3rem) 0; }
.section--last { padding-bottom: clamp(3rem, 6vw, 5rem); }
.section--tint { background: rgba(242, 247, 253, .9); border-top: 3px solid var(--ink); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.section__title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; display: inline-block; background: #fff; padding-right: .4rem; }
.section__title--sm { font-size: 1.5rem; margin: 2rem 0 1rem; }

.page-head { padding: clamp(1.8rem, 4vw, 3rem) 0 1rem; }
.page-title { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; margin: 0; display: inline; background: #fff; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 .3rem 0 0; }
.page-sub { margin: .6rem 0 0; font-weight: 700; color: var(--ink-soft); }

/* ===== karty wpisów ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.news-grid--four { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--c); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--c); }
.card__link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.card__media { aspect-ratio: 4 / 3; background: var(--sky); border-bottom: 3px solid var(--ink); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__media--empty { display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, white); }
.card__media--empty svg { width: 46%; }
.arc-0 { stroke: var(--red); } .arc-1 { stroke: var(--yellow); } .arc-2 { stroke: var(--green); } .arc-3 { stroke: var(--blue); }
.card__body { padding: 1rem 1.15rem 1.25rem; }
.card__meta { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .88rem; font-weight: 800; color: var(--ink-soft); margin-bottom: .35rem; }
.card__title { font-size: 1.3rem; margin: 0 0 .4rem; }
.card__link:hover .card__title { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 3px; }
.card__lead { font-size: .97rem; color: var(--ink-soft); margin: 0; }
.card--featured { grid-column: span 2; grid-row: span 2; }
.card--featured .card__media { aspect-ratio: 16 / 10; }
.card--featured .card__title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.card--featured .card__lead { font-size: 1.05rem; }
@media (max-width: 980px) { .news-grid, .news-grid--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .news-grid, .news-grid--four { grid-template-columns: 1fr; }
  .card--featured { grid-column: auto; grid-row: auto; }
}

/* ===== karteczka "Pomóż nam" ===== */
.note {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap;
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 6px 6px 26px 6px; padding: 2rem clamp(1.3rem, 4vw, 3rem);
  transform: rotate(-.8deg); box-shadow: 7px 7px 0 var(--ink);
}
.note::before { content: ''; position: absolute; top: -16px; left: 50%; width: 120px; height: 30px; transform: translateX(-50%) rotate(2deg); background: rgba(255, 255, 255, .7); border: 1px solid rgba(36, 50, 75, .15); }
.note__text { max-width: 44rem; }
.note__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.note__text p { margin: 0; font-size: 1.1rem; }
.note__account { margin-top: .9rem !important; }
.note__account span { display: block; font-weight: 700; font-size: .95rem; }
.note__account strong { font: 600 1.3rem var(--font-display); letter-spacing: .03em; }

/* ===== galerie jako polaroidy ===== */
.polaroids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.6rem; padding-top: .6rem; }
.polaroids--list { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.polaroid {
  position: relative; display: block; background: #fff; padding: .7rem .7rem 1rem; border: 2px solid var(--ink);
  box-shadow: 4px 5px 0 rgba(36, 50, 75, .18); color: var(--ink); text-decoration: none; transform: rotate(-1.6deg); transition: transform .15s ease;
}
.polaroid:nth-child(even) { transform: rotate(1.4deg); }
.polaroid:nth-child(3n) { transform: rotate(-.6deg); }
.polaroid::before { content: ''; position: absolute; top: -12px; left: 50%; width: 76px; height: 22px; transform: translateX(-50%) rotate(-3deg); background: color-mix(in srgb, var(--c) 70%, transparent); }
.polaroid:hover { transform: rotate(0) scale(1.02); color: var(--ink); }
.polaroid__photo { display: block; aspect-ratio: 1; background: var(--sky); overflow: hidden; }
.polaroid__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid__title { display: block; font: 600 1.1rem/1.25 var(--font-display); margin-top: .7rem; }
.polaroid__meta { display: block; font-size: .85rem; color: var(--ink-soft); font-weight: 700; margin-top: .2rem; }
@media (max-width: 980px) { .polaroids { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .polaroids, .polaroids--list { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; } .polaroid__title { font-size: .98rem; } }

/* ===== wpis ===== */
.article { padding: clamp(1.8rem, 4vw, 3rem) 0 2rem; }
.article__head { margin-bottom: 1.4rem; }
.article__title { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; background: #fff; display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.article__meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .9rem; font-weight: 800; color: var(--ink-soft); }
.article__cover { margin-bottom: 1.6rem; }
.article__cover img { display: block; width: 100%; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 7px 7px 0 var(--blue); }
.article__photos { margin-top: 1rem; }
.article__back { margin-top: 2rem; }

.prose { background: #fff; padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--radius); border: 2px solid #d6e2ef; overflow-wrap: anywhere; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; } .prose h3 { font-size: 1.3rem; margin-top: 1.3em; } .prose h4 { font-size: 1.12rem; }
.prose img { border-radius: 12px; height: auto !important; }
.prose iframe { max-width: 100%; border: 3px solid var(--ink); border-radius: 14px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li::marker { color: var(--red); font-weight: 800; }
.prose blockquote { margin: 1.2em 0; padding: .8em 1.2em; border-left: 6px solid var(--green); background: var(--sky); border-radius: 0 14px 14px 0; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid #c9d6e5; padding: .45em .6em; }
.prose hr { border: 0; height: 6px; margin: 2em 0; background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--indigo), var(--violet)); border-radius: 3px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.photo-grid--wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.photo-grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; border: 2px solid var(--ink); background: var(--sky); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.photo-grid a:hover img { transform: scale(1.05); }
.lead-text { font-size: 1.15rem; max-width: 46em; background: #fff; }

/* ===== strona treści ===== */
.page-layout { display: grid; gap: 2rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-layout--aside { grid-template-columns: minmax(0, 1fr) 290px; align-items: start; }
.page-layout__main { max-width: 820px; }
.side-nav { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.1rem; box-shadow: 6px 6px 0 var(--green); position: sticky; top: 1rem; }
.side-nav__title { font-size: 1.25rem; margin-bottom: .6rem; }
.side-nav__title a { color: var(--ink); text-decoration: none; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li a { display: block; padding: .4rem .6rem; margin-bottom: .2rem; border-left: 5px solid var(--c); border-radius: 4px 10px 10px 4px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .97rem; }
.side-nav li a:hover, .side-nav li a[aria-current] { background: color-mix(in srgb, var(--c) 18%, white); }
@media (max-width: 900px) { .page-layout--aside { grid-template-columns: 1fr; } .side-nav { position: static; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 1.6rem; }
.tile { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem 1.2rem; background: #fff; border: 3px solid var(--ink); border-top: 12px solid var(--c); border-radius: 14px; color: var(--ink); text-decoration: none; transition: transform .15s ease; }
.tile:hover { transform: translateY(-3px); color: var(--ink); }
.tile__title { font: 600 1.2rem/1.2 var(--font-display); }
.tile__text { font-size: .93rem; color: var(--ink-soft); }

.contact-card { margin-top: 1.4rem; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: 6px 6px 0 var(--orange); }
.contact-card h2 { font-size: 1.4rem; }
.contact-card p:last-child { margin: 0; }
.result-list { background: #fff; border-radius: 14px; padding: 1rem 1rem 1rem 2.2rem; border: 2px solid #d6e2ef; }
.result-list li { margin: .3rem 0; font-weight: 700; }

/* ===== stronicowanie ===== */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; margin-top: 2.6rem; }
.pager a, .pager span { min-width: 2.6rem; padding: .45rem .8rem; text-align: center; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; font: 600 1rem var(--font-display); }
.pager a:hover { background: var(--yellow); }
.pager .is-current { background: var(--ink); color: #fff; }
.pager .pager__gap { border-color: transparent; background: none; }

/* ===== błąd ===== */
.error-page { text-align: center; }
.error-page__code { font: 700 clamp(5rem, 16vw, 9rem)/1 var(--font-display); margin: 0; background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--indigo), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page p { background: #fff; }

/* ===== stopka ===== */
.site-foot { color: #fff; margin-top: 1rem; }
.site-foot__wave { display: block; width: 100%; height: 40px; fill: var(--ink); }
.site-foot__inner { background: var(--ink); padding: 2.2rem 0 1.4rem; }
.site-foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.site-foot__title { font-size: 1.35rem; color: var(--yellow); }
.site-foot address { font-style: normal; line-height: 1.7; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--yellow); }
.site-foot__links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.site-foot__links li { margin-bottom: .35rem; break-inside: avoid; }
.site-foot__bottom { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .9rem; color: #c7d1e3; }
.site-foot__admin { margin-left: auto; opacity: .7; }
@media (max-width: 800px) { .site-foot__grid { grid-template-columns: 1fr; } }

/* ===== lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 28, 44, .94); display: grid; grid-template-columns: 4rem 1fr 4rem; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; max-height: 100vh; padding: 1rem 0; }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 6rem); object-fit: contain; border: 4px solid #fff; border-radius: 8px; background: #fff; }
.lightbox__fig figcaption { color: #fff; font-weight: 700; text-align: center; }
.lightbox button { background: none; border: 0; color: #fff; font: 600 3rem/1 var(--font-display); cursor: pointer; width: 4rem; height: 4rem; border-radius: 50%; }
.lightbox button:hover { background: rgba(255, 255, 255, .12); }
.lightbox__close { position: absolute; top: .5rem; right: .5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .rainbow__arc { stroke-dashoffset: 0; }
}
@media print {
  .site-head, .site-foot, .stripe, .hero__art, .note::before { display: none; }
  body { background: none; }
}
