/*
Theme Name: Bajka 2026
Theme URI: https://skala.pl/
Author: Żłobek Samorządowy Bajka w Skale
Description: Nowoczesny, dostępny motyw dla Żłobka Samorządowego „Bajka” w Skale.
Version: 1.2.2
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: bajka-2026
*/

:root {
  --ink: #29334d;
  --ink-soft: #59627a;
  --purple: #6657c7;
  --purple-dark: #5142a9;
  --purple-pale: #ece9ff;
  --coral: #ff7b70;
  --coral-pale: #fff0eb;
  --yellow: #ffd365;
  --yellow-pale: #fff6d9;
  --mint: #70c8af;
  --mint-pale: #e5f7f1;
  --cream: #fffaf0;
  --paper: #fffefd;
  --white: #fff;
  --line: #e9e5dd;
  --shadow: 0 24px 70px rgba(49, 43, 91, .12);
  --shadow-soft: 0 12px 40px rgba(49, 43, 91, .09);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --wrap: 1200px;
  --font-scale: 1;
  --font-display: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-font-scale="small"] { --font-scale: .92; }
html[data-font-scale="large"] { --font-scale: 1.1; }
html[data-font-scale="xlarge"] { --font-scale: 1.2; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
  font-size: calc(16px * var(--font-scale));
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-is-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -.035em;
}

p { margin: 0; }

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

.wrap--narrow { max-width: 820px; }

.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;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: #fff;
  background: #121212;
  border-radius: 8px;
  transform: translateY(-150%);
}

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

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

.utility-bar {
  min-height: 36px;
  color: #f7f5ff;
  background: #4e4396;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.utility-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.accessibility-tools { display: flex; align-items: center; gap: 7px; }
.accessibility-label { margin-right: 4px; opacity: .82; }

.a11y-button {
  width: 29px;
  height: 25px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 7px;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
}

.a11y-button:hover,
.a11y-button[aria-pressed="true"] { color: #332b6f; background: var(--yellow); }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 254, 253, .94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: box-shadow .25s ease, border-color .25s ease;
}

.site-header.is-scrolled {
  border-color: rgba(55, 48, 92, .08);
  box-shadow: 0 10px 35px rgba(42, 38, 71, .08);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img { flex: 0 0 auto; }
.brand .official-brand-logo {
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(56, 48, 93, .1);
  border-radius: 18px;
  box-shadow: 0 7px 20px rgba(49, 43, 91, .1);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong {
  color: var(--purple-dark);
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: -.035em;
}
.brand-copy small { margin-top: 4px; color: var(--ink-soft); font-size: .68rem; font-weight: 750; }

.primary-navigation { display: flex; align-items: center; gap: 25px; }
.main-menu { display: flex; align-items: center; gap: 27px; margin: 0; padding: 0; list-style: none; }
.main-menu a {
  position: relative;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}

.main-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  background: var(--coral);
  border-radius: 999px;
  transform: scaleX(0);
  transition: transform .2s ease;
}

.main-menu a:hover::after,
.main-menu a:focus-visible::after { transform: scaleX(1); }

.header-contact {
  padding: 11px 19px;
  color: #fff;
  background: var(--purple);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(102, 87, 199, .22);
  font-size: .87rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.header-contact:hover { background: var(--purple-dark); transform: translateY(-2px); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 20%, rgba(255, 211, 101, .24) 0 90px, transparent 91px),
    linear-gradient(135deg, #fffaf2 0%, #faf8ff 54%, #f0fbf7 100%);
}

.hero::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -170px;
  width: 480px;
  height: 480px;
  border: 2px dashed rgba(102, 87, 199, .14);
  border-radius: 50%;
}

.hero-dots {
  position: absolute;
  top: 55px;
  left: 3vw;
  width: 90px;
  height: 90px;
  opacity: .35;
  background-image: radial-gradient(var(--coral) 2px, transparent 2.5px);
  background-size: 16px 16px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 625px;
  display: grid;
  grid-template-columns: .93fr 1.07fr;
  align-items: center;
  gap: 20px;
  padding-block: 55px 80px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--purple-dark);
  font-size: .77rem;
  font-weight: 850;
  letter-spacing: .115em;
  text-transform: uppercase;
}

.eyebrow span { color: var(--coral); font-size: .68rem; }
.eyebrow--purple { color: var(--purple); }
.eyebrow--coral { color: #d8534a; }
.eyebrow--light { color: #dcd5ff; }

.hero h1 {
  max-width: 640px;
  color: var(--ink);
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  font-weight: 900;
}

.hero h1 em { color: var(--purple); font-style: normal; }

.hero-lead {
  max-width: 590px;
  margin-top: 27px;
  color: var(--ink-soft);
  font-size: 1.09rem;
  line-height: 1.78;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }

.button {
  min-height: 51px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 23px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: .91rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.button:hover { transform: translateY(-3px); }
.button--primary { color: #fff; background: var(--purple); box-shadow: 0 14px 30px rgba(102, 87, 199, .25); }
.button--primary:hover { background: var(--purple-dark); box-shadow: 0 17px 34px rgba(102, 87, 199, .3); }
.button--ghost { color: var(--ink); background: rgba(255,255,255,.8); border-color: #ddd7ee; }
.button--ghost:hover { border-color: var(--purple); }
.button--light { color: var(--purple-dark); background: #fff; box-shadow: 0 14px 30px rgba(31, 26, 83, .2); }
.button--yellow { color: #342a67; background: var(--yellow); }
.button--outline-light { color: #fff; background: transparent; border-color: rgba(255,255,255,.48); }
.button--facebook { min-width: 150px; color: #fff; background: #1877f2; }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 750;
}

.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); font-size: .69rem; }
.trust-icon--mint { background: var(--mint-pale); color: #16795f; }
.trust-icon--yellow { background: var(--yellow-pale); }

.hero-art { position: relative; padding: 0 0 10px 22px; }
.hero-art > img { position: relative; z-index: 1; width: min(100%, 650px); margin-left: auto; }

.floating-note {
  position: absolute;
  z-index: 3;
  display: grid;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.floating-note--phone {
  bottom: 65px;
  left: 0;
  grid-template-columns: 42px auto;
  gap: 0 10px;
  padding: 13px 20px 13px 13px;
  border-radius: 18px;
}

.floating-note--phone > span { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--coral); border-radius: 13px; }
.floating-note--phone small { color: var(--ink-soft); font-size: .68rem; }
.floating-note--phone a { color: var(--ink); font-size: .89rem; font-weight: 850; text-decoration: none; }
.floating-note--heart { top: 73px; right: 8px; width: 54px; height: 54px; place-items: center; color: var(--coral); border-radius: 50%; font-size: 1.45rem; transform: rotate(9deg); }

.hero-wave {
  position: absolute;
  z-index: 2;
  right: -2%;
  bottom: -33px;
  left: -2%;
  height: 74px;
  background: var(--paper);
  border-radius: 50% 50% 0 0 / 90% 90% 0 0;
}

.quick-links { position: relative; z-index: 4; margin-top: -48px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }

.quick-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 21px;
  background: #fff;
  border: 1px solid rgba(56, 48, 93, .07);
  border-radius: 23px;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.quick-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; font-family: var(--font-display); font-size: 1.25rem; }
.quick-card--coral .quick-icon { color: #c83e36; background: var(--coral-pale); }
.quick-card--yellow .quick-icon { color: #725c0c; background: var(--yellow-pale); }
.quick-card--mint .quick-icon { color: #17765f; background: var(--mint-pale); }
.quick-card strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.quick-card small { display: block; margin-top: 5px; color: var(--ink-soft); font-size: .72rem; }
.quick-card > i { color: var(--purple); font-style: normal; font-size: 1.25rem; transition: transform .2s ease; }
.quick-card:hover > i { transform: translateX(4px); }

.section { padding-block: 115px; }
.section-heading--split { display: grid; grid-template-columns: 1fr .78fr; align-items: end; gap: 80px; margin-bottom: 52px; }
.section-heading h2,
.documents-intro h2,
.parent-intro h2,
.contact-copy h2 { font-size: clamp(2.5rem, 4.2vw, 4rem); }
.section-heading h2 span,
.parent-intro h2 span { color: var(--purple); }
.section-heading--split > p { max-width: 540px; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.8; }

.bento-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-template-rows: 260px 230px; gap: 18px; }
.bento-card { position: relative; overflow: hidden; padding: 30px; border: 1px solid rgba(50, 43, 86, .07); border-radius: var(--radius-md); }
.bento-card h3 { margin-top: 16px; font-size: 1.38rem; }
.bento-card p { max-width: 420px; margin-top: 12px; color: var(--ink-soft); font-size: .89rem; }
.bento-card--large { grid-row: 1 / 3; padding: 40px; }
.bento-card--large h3 { max-width: 330px; margin-top: 62px; font-size: 2rem; }
.bento-card--large p { color: rgba(255,255,255,.79); }
.bento-card--purple { color: #fff; background: linear-gradient(145deg, #7465d9, #5243a5); border: 0; }
.bento-card--cream { background: var(--coral-pale); }
.bento-card--mint { background: var(--mint-pale); }
.bento-card--wide { grid-column: 2 / 4; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 25px; }
.bento-card--photo { background: #fff; box-shadow: var(--shadow-soft); }
.bento-symbol { width: 51px; height: 51px; display: grid; place-items: center; background: rgba(255,255,255,.17); border-radius: 16px; font-size: 1.5rem; }
.bento-symbol--coral { color: #fff; background: var(--coral); }
.bento-decoration { position: absolute; top: -52px; right: -28px; width: 210px; height: 210px; border: 2px dashed rgba(255,255,255,.25); border-radius: 50%; }
.bento-decoration span { position: absolute; width: 17px; height: 17px; background: var(--yellow); border-radius: 50%; }
.bento-decoration span:nth-child(1) { top: 58px; left: 3px; }
.bento-decoration span:nth-child(2) { right: 37px; bottom: 4px; background: var(--mint); }
.bento-decoration span:nth-child(3) { top: 43px; right: 26px; width: 9px; height: 9px; background: var(--coral); }
.mini-landscape { position: relative; height: 160px; overflow: hidden; background: linear-gradient(#f2efff 0 58%, #dff4e5 58%); border-radius: 20px; }
.mini-sun { position: absolute; top: 22px; right: 28px; width: 37px; height: 37px; background: var(--yellow); border-radius: 50%; }
.mini-cloud { position: absolute; top: 31px; left: 26px; width: 65px; height: 23px; background: #fff; border-radius: 30px; }
.mini-cloud::before { content: ""; position: absolute; top: -13px; left: 14px; width: 30px; height: 30px; background: #fff; border-radius: 50%; }
.mini-hill { position: absolute; right: -30px; bottom: -55px; left: -30px; height: 125px; background: var(--mint); border-radius: 50% 50% 0 0; }
.mini-house { position: absolute; z-index: 2; right: 60px; bottom: 32px; width: 60px; height: 55px; display: grid; place-items: center; color: #fff; background: var(--coral); border-radius: 14px 14px 7px 7px; font-size: 1.4rem; }
.mini-label { color: var(--purple); font-size: .71rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.bento-card--wide h3 { margin-top: 10px; font-size: 1.45rem; }
.bento-card--wide a { display: inline-flex; margin-top: 18px; color: var(--purple-dark); font-size: .81rem; font-weight: 850; text-decoration: none; }

.parent-zone { position: relative; overflow: hidden; color: #fff; background: #5c4eb8; }
.parent-zone::before { content: ""; position: absolute; top: -150px; left: -170px; width: 440px; height: 440px; border: 1px dashed rgba(255,255,255,.2); border-radius: 50%; }
.parent-zone-shape { position: absolute; right: -110px; bottom: -150px; width: 430px; height: 430px; background: rgba(112,200,175,.18); border-radius: 45% 55% 61% 39%; transform: rotate(23deg); }
.parent-layout { position: relative; z-index: 2; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 100px; }
.parent-intro > p:not(.eyebrow) { max-width: 520px; margin-top: 24px; color: rgba(255,255,255,.76); }
.parent-intro h2 span { color: var(--yellow); }
.parent-intro .button { margin-top: 30px; }
.steps-list { margin: 0; padding: 0; list-style: none; }
.steps-list li { display: grid; grid-template-columns: 72px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.17); }
.steps-list li:first-child { padding-top: 0; }
.steps-list li:last-child { padding-bottom: 0; border: 0; }
.step-number { width: 62px; height: 62px; display: grid; place-items: center; color: var(--yellow); background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.17); border-radius: 20px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 900; }
.steps-list h3 { font-size: 1.25rem; }
.steps-list p { max-width: 530px; margin-top: 8px; color: rgba(255,255,255,.71); font-size: .9rem; }

.news-section { background: var(--cream); }
.section-heading--row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 46px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--purple-dark); font-size: .85rem; font-weight: 850; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { overflow: hidden; background: #fff; border: 1px solid rgba(50,43,86,.07); border-radius: var(--radius-md); box-shadow: 0 9px 35px rgba(46,40,80,.06); transition: transform .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.news-visual { height: 205px; display: block; overflow: hidden; background: var(--purple-pale); }
.news-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-visual img { transform: scale(1.04); }
.news-placeholder { position: relative; width: 100%; height: 100%; display: block; overflow: hidden; background: linear-gradient(135deg, var(--purple-pale), var(--mint-pale)); }
.news-placeholder i { position: absolute; right: 38px; bottom: 40px; width: 105px; height: 105px; background: var(--yellow); border-radius: 50%; }
.news-placeholder b { position: absolute; bottom: -45px; left: -25px; width: 260px; height: 150px; background: var(--mint); border-radius: 50% 50% 0 0; transform: rotate(4deg); }
.news-placeholder em { position: absolute; top: 30px; left: 38px; width: 70px; height: 42px; background: #fff; border-radius: 30px; }
.news-body { padding: 25px; }
.news-body time { color: #8a819c; font-size: .7rem; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
.news-body h3,
.news-body h2 { margin-top: 10px; font-size: 1.2rem; line-height: 1.25; }
.news-body h3 a,
.news-body h2 a { text-decoration: none; }
.news-body h3 a:hover,
.news-body h2 a:hover { color: var(--purple); }
.news-body p { margin-top: 12px; color: var(--ink-soft); font-size: .83rem; line-height: 1.7; }
.card-link { display: inline-flex; gap: 8px; margin-top: 20px; color: var(--purple); font-size: .78rem; font-weight: 850; text-decoration: none; }
.facebook-strip { min-height: 130px; display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 24px; margin-top: 24px; padding: 25px 30px; background: #fff; border: 1px solid #e4e8f5; border-radius: var(--radius-md); }
.facebook-icon { width: 62px; height: 62px; display: grid; place-items: end center; color: #fff; background: #1877f2; border-radius: 19px; font-family: Arial, sans-serif; font-size: 3.1rem; font-weight: 800; line-height: .91; }
.facebook-strip h3 { margin-top: 6px; font-size: 1.24rem; }

.document-layout { display: grid; grid-template-columns: .74fr 1.26fr; gap: 95px; }
.documents-intro { position: sticky; top: 130px; align-self: start; }
.documents-intro > p:not(.eyebrow) { margin: 22px 0 24px; color: var(--ink-soft); }
.document-list { display: grid; gap: 12px; }
.document-card { min-height: 100px; display: grid; grid-template-columns: 53px 1fr auto; align-items: center; gap: 18px; padding: 19px 23px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 7px 26px rgba(52,45,87,.055); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.document-card:hover { border-color: #c8c0ec; box-shadow: var(--shadow-soft); transform: translateX(5px); }
.file-icon { width: 53px; height: 60px; display: grid; place-items: center; border-radius: 12px 12px 12px 5px; font-family: var(--font-display); font-size: .88rem; font-weight: 900; }
.file-icon--coral { color: #b54138; background: var(--coral-pale); }
.file-icon--mint { color: #17765f; background: var(--mint-pale); }
.file-icon--yellow { color: #755e0c; background: var(--yellow-pale); }
.file-icon--purple { color: var(--purple-dark); background: var(--purple-pale); }
.document-card strong { display: block; font-family: var(--font-display); font-size: 1rem; line-height: 1.3; }
.document-card small { display: block; margin-top: 5px; color: var(--ink-soft); font-size: .72rem; }
.document-card > i { color: var(--purple); font-style: normal; font-size: 1.25rem; }

.contact-section { padding-top: 25px; background: linear-gradient(var(--paper) 0 50%, #302a60 50%); }
.contact-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr .82fr; gap: 75px; padding: 65px; color: #fff; background: linear-gradient(135deg, #6253bf, #493c9b); border-radius: var(--radius-lg); box-shadow: 0 30px 75px rgba(44,36,98,.24); }
.contact-card::before { content: ""; position: absolute; right: -70px; bottom: -140px; width: 390px; height: 390px; border: 2px dashed rgba(255,255,255,.17); border-radius: 50%; }
.contact-copy, .contact-details { position: relative; z-index: 2; }
.contact-copy > p:not(.eyebrow) { max-width: 580px; margin-top: 22px; color: rgba(255,255,255,.76); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.contact-details { display: grid; gap: 18px; align-content: center; }
.contact-row { display: grid; grid-template-columns: 48px 1fr; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.16); }
.contact-row:last-child { padding-bottom: 0; border: 0; }
.contact-row > span { width: 46px; height: 46px; display: grid; place-items: center; color: var(--yellow); background: rgba(255,255,255,.11); border-radius: 14px; font-weight: 900; }
.contact-row small { display: block; color: rgba(255,255,255,.59); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.contact-row strong { display: block; margin-top: 2px; font-size: .92rem; }
.contact-row a { color: inherit; }
.contact-row div > a { display: inline-block; margin-top: 5px; color: var(--yellow); font-size: .72rem; font-weight: 800; text-decoration: none; }
.contact-stars { position: absolute; inset: 0; pointer-events: none; }
.contact-stars i { position: absolute; color: var(--yellow); font-style: normal; opacity: .65; }
.contact-stars i:nth-child(1) { top: 30px; right: 32px; font-size: 1.25rem; }
.contact-stars i:nth-child(2) { bottom: 38px; left: 52%; font-size: 1.4rem; }
.contact-stars i:nth-child(3) { top: 38px; left: 45%; color: var(--coral); font-size: .7rem; }

.site-footer { padding: 77px 0 25px; color: rgba(255,255,255,.76); background: #302a60; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .65fr 1fr; gap: 70px; padding-bottom: 48px; }
.brand--footer .brand-copy strong { color: #fff; }
.brand--footer .brand-copy small { color: rgba(255,255,255,.6); }
.footer-brand > p { margin-top: 20px; color: rgba(255,255,255,.56); font-size: .83rem; }
.footer-grid h2 { margin-bottom: 18px; color: #fff; font-size: .89rem; letter-spacing: .02em; }
.footer-links { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: rgba(255,255,255,.68); font-size: .78rem; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.11); color: rgba(255,255,255,.43); font-size: .7rem; }

.inner-main { min-height: 60vh; }
.inner-hero { padding: 90px 0 72px; background: linear-gradient(135deg, var(--cream), var(--purple-pale)); }
.inner-hero h1 { font-size: clamp(2.6rem, 5vw, 4.7rem); }
.inner-hero > .wrap > p:not(.eyebrow) { max-width: 600px; margin-top: 18px; color: var(--ink-soft); }
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding-block: 70px 110px; }
.news-card--archive { min-height: 240px; }
.pagination { grid-column: 1 / -1; margin-top: 25px; }
.nav-links { display: flex; gap: 8px; }
.page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--purple); }
.inner-hero--article { padding-block: 75px; }
.inner-hero--article time { display: block; margin: 24px 0 13px; color: var(--purple); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.back-link { color: var(--purple-dark); font-size: .82rem; font-weight: 800; text-decoration: none; }
.entry-content { padding-block: 65px 110px; color: #3f475e; }
.entry-content > * { max-width: 760px; margin-right: auto; margin-left: auto; }
.entry-content h2 { margin-top: 2.2em; color: var(--ink); font-size: 2rem; }
.entry-content h3 { margin-top: 1.8em; color: var(--ink); font-size: 1.45rem; }
.entry-content p,
.entry-content ul,
.entry-content ol { margin-top: 1.3em; }
.entry-content a { color: var(--purple-dark); font-weight: 700; text-underline-offset: 3px; }
.single-thumbnail { max-width: 920px; margin: 0 auto 45px; overflow: hidden; border-radius: var(--radius-md); }
.not-found-page { min-height: 70vh; display: grid; place-items: center; padding-block: 80px; text-align: center; background: linear-gradient(135deg, var(--cream), var(--purple-pale)); }
.not-found-code { color: var(--purple-pale); font-family: var(--font-display); font-size: clamp(7rem, 20vw, 13rem); font-weight: 900; line-height: .8; text-shadow: -1px -1px 0 var(--purple), 1px -1px 0 var(--purple), -1px 1px 0 var(--purple), 1px 1px 0 var(--purple); }
.not-found-page .eyebrow { justify-content: center; margin-top: 36px; }
.not-found-page h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.not-found-page .wrap > p:not(.eyebrow):not(.not-found-code) { margin: 20px auto 28px; color: var(--ink-soft); }

.gallery-page { min-height: 70vh; background: var(--paper); }
.gallery-hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 82px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 211, 101, .3) 0 130px, transparent 132px),
    linear-gradient(135deg, var(--cream), var(--purple-pale));
}
.gallery-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -65px;
  width: 230px;
  height: 230px;
  border: 2px dashed rgba(102, 87, 199, .2);
  border-radius: 50%;
}
.gallery-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr .72fr; align-items: end; gap: 80px; }
.gallery-hero h1 { max-width: 720px; font-size: clamp(3rem, 6vw, 5.6rem); }
.gallery-hero h1 span { color: var(--purple); }
.gallery-hero-copy { color: var(--ink-soft); font-size: 1.03rem; }
.privacy-badge { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; padding: 9px 14px; color: #176e58; background: var(--mint-pale); border-radius: 999px; font-size: .75rem; font-weight: 850; }
.privacy-badge::before { content: "✓"; width: 22px; height: 22px; display: grid; place-items: center; color: #fff; background: var(--mint); border-radius: 50%; }
.gallery-content { padding-block: 82px 115px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.gallery-item { margin: 0; }
.gallery-link { position: relative; height: 440px; display: block; overflow: hidden; background: var(--purple-pale); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.gallery-link::after { content: "Powiększ  ↗"; position: absolute; right: 18px; bottom: 18px; padding: 10px 15px; color: #fff; background: rgba(38, 32, 75, .78); border-radius: 999px; font-size: .72rem; font-weight: 850; opacity: 0; transform: translateY(8px); transition: .25s ease; backdrop-filter: blur(8px); }
.gallery-link:hover::after,
.gallery-link:focus-visible::after { opacity: 1; transform: translateY(0); }
.gallery-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.gallery-link:hover img { transform: scale(1.035); }
.gallery-item figcaption { padding: 16px 4px 0; }
.gallery-item figcaption strong { display: block; font-family: var(--font-display); font-size: 1.08rem; }
.gallery-item figcaption span { display: block; margin-top: 5px; color: var(--ink-soft); font-size: .78rem; }
.gallery-credit { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 48px; padding: 22px 25px; color: var(--ink-soft); background: var(--cream); border: 1px solid var(--line); border-radius: 18px; font-size: .78rem; }
.gallery-credit a { color: var(--purple-dark); font-weight: 850; }
.empty-gallery { padding: 45px; background: var(--cream); border-radius: var(--radius-md); text-align: center; }
.gallery-lightbox { width: min(94vw, 1180px); max-height: 94vh; padding: 0; overflow: visible; background: transparent; border: 0; }
.gallery-lightbox::backdrop { background: rgba(20, 18, 38, .88); backdrop-filter: blur(8px); }
.gallery-lightbox figure { margin: 0; overflow: hidden; background: #fff; border-radius: 24px; box-shadow: 0 28px 90px rgba(0,0,0,.4); }
.gallery-lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #17152a; }
.gallery-lightbox figcaption { padding: 16px 22px; color: var(--ink); font-size: .86rem; }
.lightbox-close { position: absolute; z-index: 2; top: -17px; right: -13px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; color: #fff; background: var(--coral); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 8px 20px rgba(0,0,0,.25); font-size: 1.25rem; line-height: 1; }

.album-index { padding-block: 82px 115px; }
.album-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.album-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow-soft); transition: transform .25s ease, box-shadow .25s ease; }
.album-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.album-card-cover { position: relative; height: 390px; display: block; overflow: hidden; background: var(--purple-pale); }
.album-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.album-card:hover .album-card-cover img { transform: scale(1.035); }
.album-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--purple); font-size: 4rem; }
.album-count { position: absolute; right: 18px; bottom: 18px; padding: 9px 14px; color: #fff; background: rgba(38,32,75,.82); border-radius: 999px; font-size: .72rem; font-weight: 850; backdrop-filter: blur(8px); }
.album-card-body { padding: 27px 29px 30px; }
.album-card-body time { color: var(--purple); font-size: .69rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.album-card-body h2 { margin-top: 9px; font-size: 1.55rem; }
.album-card-body h2 a { text-decoration: none; }
.album-card-body h2 a:hover { color: var(--purple); }
.album-card-body p { margin-top: 12px; color: var(--ink-soft); font-size: .86rem; line-height: 1.72; }
.album-enter { display: inline-flex; gap: 9px; margin-top: 22px; color: var(--purple-dark); font-size: .78rem; font-weight: 850; text-decoration: none; }
.album-detail-hero .back-link { display: inline-block; margin-bottom: 34px; }
.album-detail-hero h1 { max-width: 900px; }
.album-lead { max-width: 720px; margin-top: 21px; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.8; }
.album-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.album-meta > * { padding: 8px 12px; color: var(--purple-dark); background: rgba(255,255,255,.72); border: 1px solid rgba(102,87,199,.12); border-radius: 999px; font-size: .7rem; font-weight: 820; }
.album-entry.entry-content { padding-top: 82px; }
.album-entry.entry-content > * { max-width: none; }
.album-entry .wp-block-gallery,
.album-entry .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; }
.album-entry .wp-block-gallery > figure,
.album-entry .gallery-item { width: auto !important; margin: 0 !important; overflow: hidden; border-radius: 24px; box-shadow: var(--shadow-soft); }
.album-entry .wp-block-gallery a,
.album-entry .gallery-item a { height: 430px; display: block; background: var(--purple-pale); }
.album-entry .wp-block-gallery img,
.album-entry .gallery-item img { width: 100% !important; height: 100% !important; object-fit: cover; border: 0 !important; transition: transform .4s ease; }
.album-entry .wp-block-gallery a:hover img,
.album-entry .gallery-item a:hover img { transform: scale(1.035); }
.album-entry figcaption { padding: 10px 14px !important; color: var(--ink-soft) !important; background: #fff !important; font-size: .76rem !important; text-align: left !important; }

.documents-page { min-height: 70vh; background: var(--paper); }
.documents-hero { position: relative; overflow: hidden; padding: 92px 0 80px; background: radial-gradient(circle at 88% 15%, rgba(112,200,175,.28) 0 145px, transparent 147px), linear-gradient(135deg, var(--cream), var(--purple-pale)); }
.documents-hero-grid { display: grid; grid-template-columns: 1.15fr .75fr; align-items: end; gap: 85px; }
.documents-hero h1 { max-width: 820px; font-size: clamp(3rem, 5.8vw, 5.5rem); }
.documents-hero h1 span { color: var(--purple); }
.documents-hero-grid > div:last-child > p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.8; }
.archive-total { display: inline-flex; margin-top: 21px; padding: 9px 14px; color: #176e58; background: var(--mint-pale); border-radius: 999px; font-size: .74rem; font-weight: 850; }
.documents-archive { padding-block: 65px 115px; }
.document-filters { position: sticky; z-index: 5; top: 98px; display: grid; grid-template-columns: 1.5fr 1fr .65fr auto; align-items: end; gap: 13px; padding: 20px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-soft); backdrop-filter: blur(14px); }
.document-filters label > span { display: block; margin: 0 0 7px 3px; color: var(--ink-soft); font-size: .67rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.document-filters input,
.document-filters select { width: 100%; min-height: 48px; padding: 0 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 13px; font: inherit; font-size: .81rem; }
.document-filters input:focus,
.document-filters select:focus { border-color: var(--purple); outline: 3px solid rgba(102,87,199,.15); }
.filter-reset { min-height: 48px; padding: 0 17px; color: var(--purple-dark); background: var(--purple-pale); border: 0; border-radius: 13px; font-size: .76rem; font-weight: 850; cursor: pointer; }
.document-results { margin: 26px 3px 13px; color: var(--ink-soft); font-size: .76rem; }
.archive-document-list { display: grid; gap: 12px; }
.archive-document { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 20px 23px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 6px 24px rgba(52,45,87,.045); }
.archive-document[hidden] { display: none; }
.archive-file-icon { width: 58px; height: 65px; display: grid; place-items: center; color: var(--purple-dark); background: var(--purple-pale); border-radius: 14px 14px 14px 5px; font-family: var(--font-display); font-size: .75rem; font-weight: 900; }
.archive-document-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: #81798f; font-size: .66rem; font-weight: 760; }
.archive-document-meta span { position: relative; }
.archive-document-meta span::before { content: "·"; position: absolute; left: -9px; }
.archive-document h2 { margin-top: 7px; font-size: 1.02rem; line-height: 1.35; }
.archive-document-copy > p { margin-top: 5px; color: var(--ink-soft); font-size: .7rem; }
.archive-document-actions { min-width: 142px; display: grid; justify-items: end; gap: 7px; }
.document-download { min-width: 112px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 14px; color: #fff; background: var(--purple); border-radius: 999px; font-size: .73rem; font-weight: 850; text-decoration: none; }
.document-download:hover { background: var(--purple-dark); }
.document-source { color: var(--ink-soft); font-size: .63rem; text-underline-offset: 3px; }
.document-empty { padding: 45px; color: var(--ink-soft); background: var(--cream); border-radius: 22px; text-align: center; }
.document-empty[hidden] { display: none; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.high-contrast {
  --ink: #000;
  --ink-soft: #111;
  --paper: #fff;
  --cream: #fff;
  --purple: #28147d;
  --purple-dark: #19076b;
  --line: #222;
}

.high-contrast body { color: #000; background: #fff; }
.high-contrast .site-header { background: #fff; border-bottom-color: #000; }
.high-contrast .hero,
.high-contrast .news-section,
.high-contrast .inner-hero { background: #fff; }
.high-contrast .quick-card,
.high-contrast .news-card,
.high-contrast .document-card,
.high-contrast .bento-card { border: 2px solid #000; }

@media (max-width: 1080px) {
  .primary-navigation { gap: 15px; }
  .main-menu { gap: 16px; }
  .main-menu a { font-size: .82rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .parent-layout { gap: 60px; }
  .document-layout { gap: 55px; }
  .contact-card { gap: 45px; padding: 52px; }
}

@media (max-width: 880px) {
  .utility-inner > p { display: none; }
  .utility-inner { justify-content: flex-end; }
  .menu-toggle { width: 47px; height: 47px; display: grid; place-items: center; padding: 0; background: var(--purple-pale); border: 0; border-radius: 14px; }
  .menu-toggle-lines { width: 21px; display: grid; gap: 4px; }
  .menu-toggle-lines i { width: 100%; height: 2px; display: block; background: var(--purple-dark); border-radius: 4px; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .primary-navigation { position: fixed; z-index: 999; top: 118px; right: 16px; left: 16px; max-height: calc(100vh - 135px); display: block; overflow-y: auto; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .2s ease; }
  .primary-navigation.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-menu { display: grid; gap: 0; }
  .main-menu a { display: block; padding: 13px 3px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-menu a::after { display: none; }
  .header-contact { display: flex; margin-top: 17px; justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 80px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-art { max-width: 650px; margin: -20px auto 0; padding-left: 0; }
  .hero-art > img { margin: auto; }
  .floating-note--phone { left: 5%; }
  .quick-links { margin-top: -5px; }
  .quick-grid { grid-template-columns: 1fr; max-width: 650px; }
  .section-heading--split { grid-template-columns: 1fr; gap: 23px; }
  .bento-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bento-card--large { grid-row: auto; min-height: 360px; }
  .bento-card--wide { grid-column: 1 / 3; }
  .parent-layout { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card:last-child { grid-column: 1 / 3; }
  .document-layout { grid-template-columns: 1fr; }
  .documents-intro { position: static; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / 3; }
  .gallery-hero-grid { grid-template-columns: 1fr; gap: 25px; }
  .documents-hero-grid { grid-template-columns: 1fr; gap: 25px; }
  .document-filters { position: static; grid-template-columns: 1fr 1fr; }
  .document-search { grid-column: 1 / 3; }
  .archive-document { grid-template-columns: 55px minmax(0, 1fr); }
  .archive-document-actions { grid-column: 2; min-width: 0; justify-items: start; grid-template-columns: auto auto; align-items: center; }
}

@media (max-width: 600px) {
  .wrap { width: min(calc(100% - 28px), var(--wrap)); }
  .accessibility-label { display: none; }
  .header-inner { min-height: 74px; }
  .brand img { width: 48px; height: 48px; }
  .brand-copy strong { font-size: 1.42rem; }
  .brand-copy small { max-width: 155px; font-size: .58rem; }
  .primary-navigation { top: 110px; }
  .hero { min-height: auto; }
  .hero-grid { min-height: 0; padding: 62px 0 86px; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4.15rem); }
  .hero-lead { font-size: .99rem; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .trust-list { justify-content: center; }
  .hero-art { margin-top: 6px; }
  .floating-note--phone { bottom: 15px; left: 0; }
  .floating-note--heart { top: 30px; right: 0; }
  .quick-card { min-height: 103px; grid-template-columns: 48px 1fr auto; padding: 17px; }
  .quick-icon { width: 48px; height: 48px; }
  .section { padding-block: 80px; }
  .section-heading h2, .documents-intro h2, .parent-intro h2, .contact-copy h2 { font-size: 2.55rem; }
  .bento-grid { display: grid; grid-template-columns: 1fr; }
  .bento-card--large { min-height: 335px; }
  .bento-card--wide { grid-column: auto; grid-template-columns: 1fr; }
  .parent-layout { gap: 55px; }
  .steps-list li { grid-template-columns: 56px 1fr; gap: 15px; }
  .step-number { width: 53px; height: 53px; border-radius: 16px; }
  .section-heading--row { align-items: start; flex-direction: column; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card:last-child { grid-column: auto; }
  .facebook-strip { grid-template-columns: 50px 1fr; padding: 22px; }
  .facebook-icon { width: 50px; height: 50px; border-radius: 15px; font-size: 2.5rem; }
  .facebook-strip .button { grid-column: 1 / 3; }
  .document-card { grid-template-columns: 46px 1fr auto; gap: 13px; padding: 16px; }
  .file-icon { width: 46px; height: 53px; }
  .contact-card { width: min(calc(100% - 20px), var(--wrap)); padding: 42px 25px; border-radius: 28px; }
  .contact-actions { flex-direction: column; }
  .contact-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .archive-grid { grid-template-columns: 1fr; }
  .gallery-hero { padding-block: 65px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-link { height: 300px; }
  .gallery-credit { align-items: flex-start; flex-direction: column; gap: 8px; }
  .gallery-lightbox { width: calc(100vw - 24px); }
  .lightbox-close { top: -13px; right: -3px; }
  .album-grid { grid-template-columns: 1fr; }
  .album-card-cover { height: 300px; }
  .album-entry .wp-block-gallery,
  .album-entry .gallery { grid-template-columns: 1fr; }
  .album-entry .wp-block-gallery a,
  .album-entry .gallery-item a { height: 330px; }
  .documents-hero { padding-block: 65px; }
  .document-filters { grid-template-columns: 1fr; }
  .document-search { grid-column: auto; }
  .archive-document { grid-template-columns: 46px minmax(0, 1fr); align-items: start; gap: 14px; padding: 17px; }
  .archive-file-icon { width: 46px; height: 54px; font-size: .64rem; }
  .archive-document-meta span:last-child { display: none; }
  .archive-document-actions { grid-column: 1 / 3; justify-items: stretch; grid-template-columns: 1fr auto; }
  .document-download { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
