/* style.css - ladowany tylko na frontend */


@font-face {
  font-family: 'Inter';
  src: url('/fonty-google/inter-v20-latin_latin-ext-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonty-google/inter-v20-latin_latin-ext-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonty-google/inter-v20-latin_latin-ext-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonty-google/inter-v20-latin_latin-ext-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonty-google/inter-v20-latin_latin-ext-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonty-google/inter-v20-latin_latin-ext-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  src: url('/fonty-google/great-vibes-v21-latin-ext-regular.woff2') format('woff2');
  font-display: block;
}
:root {
  --bg: #f0ede8;
  --shadow: 0 24px 60px rgba(0,0,0,.22);
  --shadow2: 0 12px 32px rgba(0,0,0,.14);
  --shadow3: 0 4px 16px rgba(0,0,0,.08);
  --rHero: 28px;
  --rCard: 14px;
  --rPill: 999px;
  --accent: #8a6a3f;
  --accent2: #d5c3a5;
  --accentDark: #6b4f2d;
  --font: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --fontScale: 1;
  --letterSpacingExtra: 0em;
  --wordSpacingExtra: 0em;
  --lineHeightExtra: 0;
  --focusColor: #2563eb;
  --focusWidth: 3px;
}

* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
  font-family: var(--font);
  background: var(--bg);
  color: #1a1a1a;
  min-height: 100vh;
  font-size: 16.5px;
  letter-spacing: var(--letterSpacingExtra);
  word-spacing: var(--wordSpacingExtra);
  transition: background .3s, color .3s;
}

button, input { font: inherit }

/* =======================
   LINKI GLOBALNE
   ======================= */

a {
  color: inherit;
  text-decoration: none;
  position: relative;
}

a:hover::after {
  opacity: 0.6;
}

a:hover {
  color: #2563eb;
}

/* =======================
   SKIP LINKS
   ======================= */

.skip-links {
  position: absolute;
  top: 0; left: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 14px 24px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 12px 0;
  text-decoration: none;
  z-index: 999999;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.skip-link:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
  outline: 3px solid #fff;
  outline-offset: -3px;
}

/* =======================
   FOCUS
   ======================= */

*:focus-visible {
  outline: var(--focusWidth) solid var(--focusColor);
  outline-offset: 2px;
  border-radius: 4px;
}
*:focus:not(:focus-visible) {
  outline: none;
}

/* =======================
   SR ONLY
   ======================= */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =======================
   NOSCRIPT
   ======================= */

.noscript-a11y {
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.noscript-a11y h2 {
  margin: 0 0 0.5rem;
  color: #92400e;
  font-size: 1.1rem;
}
.noscript-a11y ul {
  margin: 0.5rem 0 0 1.5rem;
}
.noscript-a11y li {
  margin-bottom: 0.25rem;
}

/* =======================
   A11Y HIGH CONTRAST
   ======================= */

body.a11y-highContrast {
  background: #000 !important;
  color: #fff !important;
}
body.a11y-highContrast .navPill,
body.a11y-highContrast .belowCard,
body.a11y-highContrast .panel,
body.a11y-highContrast .article,
body.a11y-highContrast .acc-header,
body.a11y-highContrast .desktopMenu,
body.a11y-highContrast .mobileMenu a,
body.a11y-highContrast .heroRight {
  background: #111 !important;
  color: #fff !important;
  border-color: #666 !important;
}
body.a11y-highContrast .acc-header {
  background: #222 !important;
}
body.a11y-highContrast .catList li a,
body.a11y-highContrast .tpItem a,
body.a11y-highContrast .content p,
body.a11y-highContrast .meta,
body.a11y-highContrast .navLinks > a,
body.a11y-highContrast .dropBtn,
body.a11y-highContrast .desktopMenu a,
body.a11y-highContrast .pagerBtn,
body.a11y-highContrast .footer p,
body.a11y-highContrast .footer a,
body.a11y-highContrast .title,
body.a11y-highContrast .kicker,
body.a11y-highContrast .brandName {
  color: #fff !important;
}
body.a11y-highContrast .catList li a:hover,
body.a11y-highContrast .navLinks > a:hover,
body.a11y-highContrast .navLinks > a.active,
body.a11y-highContrast .tpItem:hover {
  background: #333 !important;
}
body.a11y-highContrast .searchRow input {
  background: #222 !important;
  color: #fff !important;
  border-color: #666 !important;
}
body.a11y-highContrast .heroMedia::after {
  background: rgba(0,0,0,.5) !important;
}
body.a11y-highContrast .articleImgWrap::after {
  background: linear-gradient(transparent,#111) !important;
}
body.a11y-highContrast .pager {
  border-color: #333 !important;
}
body.a11y-highContrast .pagerBtn {
  background: #222 !important;
  border-color: #555 !important;
}
body.a11y-highContrast .footerTop {
  background: #0a0a0a !important;
}
body.a11y-highContrast a {
  color: #6db3f2 !important;
  text-decoration: underline !important;
}
body.a11y-highContrast *:focus-visible {
  outline-color: #ffff00 !important;
  outline-width: 3px !important;
}
body.a11y-highContrast #main-content,
body.a11y-highContrast #main-content * {
  color: #f5f1f1 !important;
  background-color: #000000;
}
/* Wymuszenie ciemnego tła dla bloków pobierania w trybie wysokiego kontrastu */
body.a11y-highContrast .pobranie {
    background: #000000 !important; /* Ciemne tło */
    border: 2px solid #ffffff !important; /* Jasna ramka, żeby bloki były widoczne */
}

/* Zapewnienie, że tekst w środku będzie jasny */
body.a11y-highContrast .pobranie, 
body.a11y-highContrast .pobranie * {
    color: #ffff00 !important; /* Żółty tekst (często najlepiej widoczny) lub #ffffff */
}
/* =======================
   A11Y NEGATYW / JASNE / CIEMNE / INNE
   ======================= */

body.a11y-negative {
  filter: invert(1) hue-rotate(180deg);
}
body.a11y-negative img,
body.a11y-negative video,
body.a11y-negative .mark,
body.a11y-negative .mIcon,
body.a11y-negative .badge,
body.a11y-negative .bimLogo {
  filter: invert(1) hue-rotate(180deg);
}

body.a11y-brightBg {
  background: #fff !important;
}
body.a11y-brightBg .belowCard,
body.a11y-brightBg .panel,
body.a11y-brightBg .article {
  background: #fff !important;
  border-color: #ccc !important;
}

body.a11y-darkBg {
  background: #1a1a2e !important;
  color: #e0e0e0 !important;
}
body.a11y-darkBg .navPill,
body.a11y-darkBg .belowCard,
body.a11y-darkBg .panel,
body.a11y-darkBg .article {
  background: #16213e !important;
  color: #e0e0e0 !important;
  border-color: #2a3a5c !important;
}
body.a11y-darkBg .acc-header {
  background: #1a2744 !important;
  color: #e0e0e0 !important;
}
body.a11y-darkBg .catList li a,
body.a11y-darkBg .tpItem a,
body.a11y-darkBg .content p,
body.a11y-darkBg .meta,
body.a11y-darkBg .title,
body.a11y-darkBg .brandName,
body.a11y-darkBg .navLinks > a,
body.a11y-darkBg .dropBtn,
body.a11y-darkBg .pagerBtn {
  color: #d0d0d0 !important;
}
body.a11y-darkBg .searchRow input {
  background: #1a2744 !important;
  color: #e0e0e0 !important;
  border-color: #3a4a6c !important;
}

body.a11y-underline a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

body.a11y-grayscale {
  filter: grayscale(1);
}

body.a11y-bigCursor,
body.a11y-bigCursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 4l28 20H20l12 16-4 3-12-16-8 10z' fill='%23000' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 4 4, auto !important;
}

body.a11y-focusHighlight *:focus-visible {
  outline: 4px solid #ff6600 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(255,102,0,.3) !important;
}

body.a11y-highlightParagraphs p {
  background: rgba(255,255,0,.15) !important;
  border-left: 3px solid #f0c000 !important;
  padding-left: 8px !important;
}

body.a11y-noAnimations *:not(.a11y-toggle):not(.a11y-toggle *):not(.a11y-panel):not(.a11y-panel *) {
  animation: none !important;
  transition: none !important;
}

body.a11y-readableFont,
body.a11y-readableFont * {
  font-family: Arial, Helvetica, sans-serif !important;
}

body.a11y-dyslexiaFont,
body.a11y-dyslexiaFont * {
  font-family: 'Comic Sans MS', 'OpenDyslexic', cursive !important;
  letter-spacing: 0.05em !important;
  word-spacing: 0.12em !important;
}

body.a11y-hideImages img {
  opacity: 0.1 !important;
  filter: blur(4px) !important;
}

body.a11y-saturateHigh {
  filter: saturate(2);
}
body.a11y-saturateLow {
  filter: saturate(0.3);
}

/* =======================
   READING LINE / MASK
   ======================= */

.readingLine {
  position: fixed;
  left: 0; right: 0;
  height: 8px;
  background: rgba(255,102,0,.35);
  pointer-events: none;
  z-index: 99998;
  display: none;
  transition: top 0.05s linear;
  box-shadow: 0 0 20px rgba(255,102,0,.3);
}
body.a11y-readingLine .readingLine {
  display: block;
}

.readingMaskTop, .readingMaskBottom {
  position: fixed;
  left: 0; right: 0;
  background: rgba(0,0,0,.55);
  pointer-events: none;
  z-index: 99997;
  display: none;
  transition: all 0.05s linear;
}
.readingMaskTop { top: 0; }
.readingMaskBottom { bottom: 0; }
body.a11y-readingMask .readingMaskTop,
body.a11y-readingMask .readingMaskBottom {
  display: block;
}

.tts-highlight {
  background: rgba(37,99,235,.15) !important;
  outline: 2px solid rgba(37,99,235,.4) !important;
  border-radius: 4px !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =======================
   A11Y PANEL TOGGLE.szukajka
   ======================= */

.a11y-toggle {
  position: fixed;
  right: 0;
  top: 50vh;
  transform: translateY(-50%);
  z-index: 999;
}

.a11y-toggleBtn {
  width: 62px;
  height: 52px;
  border: none;
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 4px 20px rgba(37,99,235,.4);
  transition: all .25s;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}
.a11y-toggleBtn:hover {
  background: linear-gradient(135deg,#1d4ed8,#1e40af);
  width: 60px;
}
.a11y-toggleBtn:focus-visible {
  outline: 3px solid #ffff00;
  outline-offset: 2px;
}
.a11y-toggleBtn svg {
  width: 24px; height: 24px; fill: #fff;
}
.a11y-toggleBtn span {
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* =======================
   A11Y PANEL
   ======================= */

.a11y-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 92vw;
  height: 100vh;
  background: #fff;
  z-index: 100001;
  box-shadow: -10px 0 60px rgba(0,0,0,.25);
  transition: right .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 14px !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  line-height: 1.5 !important;
}

.a11y-panel *,
.a11y-panel button,
.a11y-panel input,
.a11y-panel label,
.a11y-panel span,
.a11y-panel div {
  font-size: inherit;
  letter-spacing: normal;
  word-spacing: normal;
}

.a11y-panel.open {
  right: 0;
}

.a11y-panelHeader {
  padding: 20px 24px 16px;
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.a11y-panelHeader h2 {
  font-size: 16px !important;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.a11y-panelHeader h2 svg {
  width: 22px; height: 22px; fill: #fff;
}

.a11y-closeBtn {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 18px !important;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.a11y-closeBtn:hover {
  background: rgba(255,255,255,.25);
  transform: rotate(90deg);
}

.a11y-panelBody {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 100px;
}

.a11y-section {
  margin-bottom: 20px;
}
.a11y-sectionTitle {
  font-size: 10px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em !important;
  color: #94a3b8;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.a11y-sectionTitle::before {
  content: "";
  width: 12px; height: 2px;
  background: linear-gradient(90deg,#2563eb,#60a5fa);
  border-radius: 999px;
}

.a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.a11y-grid.cols3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.a11y-grid.cols1 {
  grid-template-columns: 1fr;
}

.a11y-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  min-height: 80px;
  font-size: 14px !important;
}
.a11y-btn:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.1);
}
.a11y-btn.active {
  border-color: #2563eb;
  background: #dbeafe;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.a11y-btn svg {
  width: 22px; height: 22px;
  fill: #64748b;
  flex-shrink: 0;
}
.a11y-btn.active svg {
  fill: #2563eb;
}
.a11y-btn .a11y-label {
  font-size: 10.5px !important;
  font-weight: 600;
  color: #475569;
  line-height: 1.3;
}
.a11y-btn.active .a11y-label {
  color: #1d4ed8;
}

.a11y-sliderRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  margin-bottom: 8px;
  min-width: 0;
}
.a11y-sliderRow label {
  font-size: 11px !important;
  font-weight: 700;
  color: #475569;
  min-width: 80px;
  flex-shrink: 0;
}
.a11y-sliderRow input[type=range] {
  flex: 1;
  accent-color: #2563eb;
  height: 6px;
  width: 0;
  min-width: 0;
  font-size: 14px !important;
}
.a11y-sliderRow .a11y-val {
  font-size: 12px !important;
  font-weight: 800;
  color: #2563eb;
  min-width: 36px;
  max-width: 44px;
  text-align: center;
  flex-shrink: 0;
}

.a11y-resetBtn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
  font-weight: 700;
  font-size: 13px !important;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.a11y-resetBtn:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.a11y-resetBtn svg {
  width: 16px; height: 16px;
}

.a11y-ttsRow {
  display: flex;
  gap: 8px;
}
.a11y-ttsBtn {
  flex: 1;
  padding: 12px 10px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px !important;
  font-weight: 700;
  color: #475569;
  transition: all .2s;
}
.a11y-ttsBtn:hover {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1d4ed8;
}
.a11y-ttsBtn.active {
  border-color: #16a34a;
  background: #dcfce7;
  color: #16a34a;
}
.a11y-ttsBtn svg {
  width: 16px; height: 16px;
  fill: currentColor;
}

.a11y-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.a11y-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.a11y-status {
  padding: 10px 20px;
  background: #f0fdf4;
  border-top: 1px solid #bbf7d0;
  font-size: 10.5px !important;
  color: #166534;
  font-weight: 600;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
}
.a11y-status::before {
  content: "?";
  width: 18px; height: 18px;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px !important;
  flex-shrink: 0;
}

.a11y-profileGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.a11y-profileBtn {
  padding: 12px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
  transition: all .2s;
  font-size: 14px !important;
}
.a11y-profileBtn:hover {
  border-color: #2563eb;
  background: #eff6ff;
}
.a11y-profileBtn.active {
  border-color: #2563eb;
  background: #dbeafe;
}
.a11y-profileBtn .profileIcon {
  font-size: 24px !important;
  margin-bottom: 4px;
}
.a11y-profileBtn .profileName {
  font-size: 13px !important;
  font-weight: 700;
  color: #334155;
}

/* =======================
   A11Y FONT SIZE SLIDER
   ======================= */

.a11y-fontSliderWrap {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 8px;
}

.a11y-fontSliderTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.a11y-fontA {
  font-weight: 900;
  color: #475569;
  line-height: 1;
}
.a11y-fontA.small { font-size: 12px !important; }
.a11y-fontA.large { font-size: 22px !important; }

.a11y-fontLabel {
  flex: 1;
  text-align: center;
  font-size: 15px !important;
  font-weight: 800;
  color: #2563eb;
}

.a11y-fontSliderWrap .a11y-sliderRow {
  margin-bottom: 4px;
  padding: 8px 10px;
}

.a11y-fontMarks {
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  margin-bottom: 10px;
}
.a11y-fontMarks span {
  font-size: 9px !important;
  color: #94a3b8;
  font-weight: 600;
}

.a11y-fontPresets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.a11y-fontPresetBtn {
  padding: 6px 4px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  background: #fff;
  font-size: 11px !important;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.a11y-fontPresetBtn:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #2563eb;
}
.a11y-fontPresetBtn.active {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1d4ed8;
}

.a11y-panel .a11y-autoread-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px !important;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}
.a11y-panel .a11y-autoread-label input {
  font-size: 14px !important;
}

.a11y-resetBtnSmall {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 11px !important;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.a11y-resetBtnSmall:hover {
  background: rgba(220,38,38,.7);
  border-color: rgba(220,38,38,.5);
}
.a11y-resetBtnSmall svg {
  width: 13px;
  height: 13px;
}

#a11yReset {
  background: #e04949;
}

/* =======================
   PAGE LAYOUT
   ======================= */

.page { max-width: 1200px; margin: 12px auto 48px; padding: 0 16px }

/* =======================
   HERO
   ======================= */

.heroWrap {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 28px;
}

.heroMedia {
  position: relative;
  height: 340px;
  border-radius: var(--rHero);
  /* box-shadow: var(--shadow); */
  overflow: hidden;
  /* background: #1a1210; */
}
.heroMedia::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg, url('img/naglowki_strony/szkola.jpg'));
    background-size: cover;
    background-position: var(--hero-pos, center 50%);
    transform: scale(1.04);
    transition: transform 2s ease;
    /* filter: saturate(1.1); */
}
.heroMedia:hover::before { transform: scale(1.0) }
.heroMedia::after {
  content: "";
  position: absolute; inset: 0;
  /* background: linear-gradient(135deg,
    rgba(15,10,5,.35) 0%,
    rgba(15,10,5,.3) 45%,
    rgba(180,143,99,.18) 75%,
    rgba(180,143,99,.32) 100%
  ); */
}

.heroInner {
  position: absolute; inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 32px 34px 28px;
  z-index: 2;
}
.heroLeft {
    display: flex;
    flex-direction: column; /* Układa elementy w pionie */
    align-items: flex-start; /* Dosuwa wszystko do lewej */
}

.heroEyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	border-radius: var(--rPill);
	background: rgb(69, 64, 60);
	border: 1px solid rgba(255,255,255,.2);
	backdrop-filter: blur(6px);
	color: rgba(255,255,255,.95);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: 14px;
}
.heroEyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1) }
  50% { opacity: .5; transform: scale(.7) }
}
.heroTitle {
    position: relative;
    padding: 15px 25px;
    color: var(--hero-school-name-color, #ffffff);
    font-weight: 900;
    font-size: var(--hero-school-name-font-size, 38px);
    
    /* Szerokość wymusza łamanie, ale 'max-width' jest bezpieczniejszy */
    width: 390px; 
    max-width: 100%; /* Zapobiega wychodzeniu poza ekran na telefonach */
    
    /* Zwiększamy interlinię, bo inaczej br "sklei" wiersze */
    line-height: 1.25; 
    
    display: inline-block; 
    overflow: hidden; 
    z-index: 1;
    text-align: left;
    text-shadow: 1px 0 10px rgb(101, 71, 30);
    transition: text-shadow 0.3s;
}
.heroTitle:hover {
	text-shadow: 0 0 10px #7a4d01;
}

.heroRight {
  max-width: 310px;
  color: #fff;
  font-size: 13px;
  line-height: 1.65;
  flex-shrink: 0;
  background: rgba(0,0,0,0.35);
  padding: 13px;
  border-radius: 18px;
  font-weight: bold;
}
/* =======================
   STAŁE POZYCJE ELEMENTÓW HERO
   ======================= */

.heroWelcome {
  position: absolute;
  left: 34px;
  top: var(--hero-welcome-top, 95px);
  bottom: auto;
  margin-bottom: 0;
  z-index: 3;
}

.heroSchoolName {
  position: absolute;
  left: var(--hero-school-name-left, 34px);
  bottom: var(--hero-school-name-bottom, 28px);
  max-width: calc(100% - 68px);
  z-index: 3;
  font-family: var(--hero-school-name-font, 'Inter', verdana, Arial, Helvetica, sans-serif);
}

.heroStatsBox {
  position: absolute;
  left: var(--hero-stats-box-left, 796px);
  right: auto;
  bottom: var(--hero-stats-box-bottom, 28px);
  z-index: 3;
}
/* Animowana linia - część 1 (pozioma) */
.heroTitle::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent2));
    animation: run1 3s linear infinite;
}

@keyframes run1 {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Animowana linia - część 2 (pionowa) */
.heroTitle::after {
    content: "";
    position: absolute;
    top: -100%;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--accent2));
    animation: run2 3s linear infinite;
    animation-delay: 0.75s; /* Opóźnienie, by linia "skręciła" */
}

@keyframes run2 {
    0% { top: -100%; }
    50%, 100% { top: 100%; }
}

.heroTitleText {
  display: inline-block;
  position: relative;
  z-index: 2;
}
.tracking-in-expand-fwd-top {
  -webkit-animation: tracking-in-expand-fwd-top .8s cubic-bezier(.215,.61,.355,1.000) both;
  animation: tracking-in-expand-fwd-top .8s cubic-bezier(.215,.61,.355,1.000) both;

  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;

}

@-webkit-keyframes tracking-in-expand-fwd-top {
  0% {
    -webkit-transform: translateZ(-700px) translateY(-500px);
    transform: translateZ(-700px) translateY(-500px);
    opacity: 0;
  }

  40% {
    opacity: .6;
  }

  100% {
    -webkit-transform: translateZ(0) translateY(0);
    transform: translateZ(0) translateY(0);
    opacity: 1;
  }
}

@keyframes tracking-in-expand-fwd-top {
  0% {
    -webkit-transform: translateZ(-700px) translateY(-500px);
    transform: translateZ(-700px) translateY(-500px);
    opacity: 0;
  }

  40% {
    opacity: .6;
  }

  100% {
    -webkit-transform: translateZ(0) translateY(0);
    transform: translateZ(0) translateY(0);
    opacity: 1;
  }
}


.heroStats { display: flex; gap: 20px; margin-top: 14px; margin-bottom: 14px }
.heroStat strong { display: block; font-size: 23px; font-weight: 900; color: #fff }
.heroStat span {
  font-size: 10.5px;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.heroBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 19px;
  border-radius: var(--rPill);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  box-shadow: 0 8px 24px rgba(180,143,99,.5);
  transition: all .22s;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}
.heroBtn:hover {
 background: #2157dc;
  transform: translateY(-2px);
  color:white;
}
.heroBtn svg { width: 14px; height: 14px }

/* =======================
   NAV PILL
   ======================= */

.navPill {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 106px);
  height: 58px;
  border-radius: var(--rPill);
 
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow2), 0 0 0 1px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  padding: 0 11px 0 15px;
  gap: 12px;
  z-index: 10;
  overflow: visible;
background:rgba(255,255,255,.72);
    backdrop-filter:blur(16px) saturate(160%);
    -webkit-backdrop-filter:blur(16px) saturate(160%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 90px;
  flex-shrink: 0;
}
.mark {
  width: 33px; height: 33px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 6px 14px rgba(180,143,99,.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mark svg { width: 17px; height: 17px; fill: #fff }
.brandName {
  font-weight: 800;
  color: #2a2a2a;
  font-size: 16px;
  letter-spacing: -.01em;
}

/* =======================
   HAMBURGER CHECKBOX HACK
   ======================= */

.hamb-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.hamb {
  display: none;
  border: 1.5px solid rgba(0,0,0,.1);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  transition: background .2s;
  flex-shrink: 0;
}
.hamb:hover { background: #f5f0ea }
.hamb span {
  display: block;
  width: 18px;
  height: 2px;
  background: #555;
  border-radius: 999px;
  transition: all .3s;
  transform-origin: center;
}

.hamb-check:focus-visible ~ .hamb {
  outline: var(--focusWidth) solid var(--focusColor);
  outline-offset: 2px;
}

/* =======================
   NAV LINKS
   ======================= */

.navLinks {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.navLinks > a, .dropBtn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px 13px;
  border-radius: var(--rPill);
  color: #3a3a3a;
  font-size: 13px;
  font-weight: 500;
  transition: all .18s;
  white-space: nowrap;
}
.navLinks > a:hover,
.dropBtn:hover,
.navLinks > a.active {
  background: #f2ede8;
  color: #1a1a1a;
}

.cta { min-width: 150px; display: flex; flex-shrink: 0 }
.ctaBtn {
  padding: 10px 19px;
  border-radius: var(--rPill);
  background: linear-gradient(135deg, var(--accent), var(--accentDark));
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  box-shadow: 0 6px 18px rgba(180,143,99,.38);
  border: none;
  cursor: pointer;
  transition: all .22s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.ctaBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(180,143,99,.5);
}

/* =======================
   DROPDOWN CSS ONLY
   ======================= */

.drop { position: relative }
.dropBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.acc-header-link {
  display: flex;
  text-decoration: none;
  cursor: pointer;
}
.acc-header-link:hover {
  background: linear-gradient(135deg, #f5f0ea, #ede8df);
}
.caret {
  width: 8px; height: 8px;
  display: inline-block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .2s;
  flex-shrink: 0;
}
.drop::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
  background: transparent;
}
.desktopMenu {
  position: absolute;
  left: 0;
  top: calc(100% + 0px);
  width: 285px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.16);
  padding: 9px;
  opacity: 0;
  transform: translateY(8px) scale(.97);
  pointer-events: none;
  transition: all .22s cubic-bezier(.34,1.56,.64,1);
  z-index: 200;
}
a.read-more {
	position: relative;
	display: inline-block;
	cursor: pointer;
	outline: none;
	vertical-align: middle;
	text-decoration: none;
	background: transparent;
	padding: 0;
	font-size: 12px;
	font-family: Arial, sans-serif;
	width: 9.2rem;
	height: 1.8rem;
	overflow: hidden;
	-webkit-tap-highlight-color: transparent;
}

a.read-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  width: 1.8rem;
  height: 1.8rem;
  background: #282936ad;
  border-radius: 2rem;
  
}

a.read-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
}

a.read-more .circle .icon.arrow {
  left: 0.35rem;
  width: 0.7rem;
  height: 0.08rem;
  background: transparent;
}

a.read-more .circle .icon.arrow::before {
  content: "";
  position: absolute;
  top: -0.18rem;
  right: 0.05rem;
  width: 0.38rem;
  height: 0.38rem;
  border-top: 0.08rem solid #fff;
  border-right: 0.08rem solid #fff;
  transform: rotate(45deg);
}

a.read-more .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1.3rem;
  color: #585858;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  font-size: 12px;
}

a.read-more:hover .circle,
a.read-more:active .circle {
  width: 100%;
}

a.read-more:hover .circle .icon.arrow,
a.read-more:active .circle .icon.arrow {
  background: #fff;
  transform: translateX(0.55rem);
}

a.read-more:hover .button-text,
a.read-more:active .button-text {
  color: #fff;
}
.drop:hover > .desktopMenu,
.drop:focus-within > .desktopMenu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.drop:hover .caret,
.drop:focus-within .caret {
  transform: rotate(225deg) translateY(-1px);
}

.drop.open > .desktopMenu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.drop.open .caret {
  transform: rotate(225deg) translateY(-1px);
}

.desktopMenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 13px;
  color: #3a3a3a;
  font-weight: 500;
  transition: all .15s;
}
.desktopMenu a:hover {
  background: #f5f0ea;
  color: #1a1a1a;
}

.mIcon {
  width: 31px; height: 31px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mIcon svg { width: 14px; height: 14px; fill: #fff }
.menuDivider {
  height: 1px;
  background: rgba(0,0,0,.06);
  margin: 6px 0;
}

/* =======================
   KONTAKT BOX
   ======================= */

.cta {
  position: relative;
  display: inline-block;
}

.kontaktBox {
  position: absolute;
  top: 48px;
  right: 0;
  width: 320px;
  background: rgb(252,252,252);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.22s ease;
  z-index: 999;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.kontaktBox.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.closeBtn {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  background: #f1f1f1;
  border-radius: 50%;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
}
.closeBtn:hover {
  background: rgb(153,124,84);
  transform: scale(1.1);
}

.kontaktTitle {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111827;
}

.kontaktText {
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
}

.kontaktText a {
  color: #2563eb;
  text-decoration: none;
}

.kontaktText a:hover {
  text-decoration: underline;
}

#kontaktBox {
  z-index: 9999 !important;
}

@media (max-width: 768px) {
  #kontaktBox {
    position: absolute;
    top: 100%;
    right: 0;
    width: 90vw;
    max-width: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  }
}

/* =======================
   MOBILE NAV
   ======================= */

.mobileMenu { display: none }

@media (max-width: 940px) {
  .heroWrap { padding-top: 0 }
  .cta {
    display: none !important;
  }
  .navPill {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 54px;
    border-radius: 16px;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 12px;
    gap: 8px;
    margin-bottom: 12px;
    overflow: visible;
  }

  .brand { flex: 1 }
  .hamb { display: flex }
  .cta { display: none }

  .navLinks {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 0 2px;
  }

  .hamb-check:checked ~ .navLinks {
    display: flex;
  }

  .hamb-check:checked ~ .hamb span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .hamb-check:checked ~ .hamb span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hamb-check:checked ~ .hamb span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .navPill.mobileOpen .navLinks { display: flex }
  .navPill.mobileOpen .hamb span:nth-child(1) { transform: translateY(6px) rotate(45deg) }
  .navPill.mobileOpen .hamb span:nth-child(2) { opacity: 0; transform: scaleX(0) }
  .navPill.mobileOpen .hamb span:nth-child(3) { transform: translateY(-6px) rotate(-45deg) }

  .navLinks > a {
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 13px;
    text-align: left;
    display: block;
  }

  .drop { width: 100% }
  .dropBtn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 13px;
  }

  .desktopMenu { display: none !important }

  .mobileMenu {
    display: block;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: rgba(180,143,99,.06);
    border-radius: 12px;
    margin-top: 2px;
  }

  .drop:hover > .mobileMenu,
  .drop:focus-within > .mobileMenu,
  .drop.open .mobileMenu {
    max-height: 500px;
  }

  .mobileMenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    color: #3a3a3a;
    font-weight: 500;
    transition: all .15s;
  }
  .mobileMenu a:hover {
    background: #f5f0ea;
    color: #1a1a1a;
  }
  .mobileMenu .menuDivider {
    height: 1px;
    background: rgba(0,0,0,.06);
    margin: 4px 8px;
  }
}

/* =======================
   BELOW WRAP / GRID
   ======================= */

.belowWrap {
  max-width: 1075px;
  margin: -18px auto 0;
  position: relative;
  z-index: 6;
  padding: 0 10px;
}
.belowCard {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0,0,0,.11);
  overflow: hidden;
}
.grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  padding: 19px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-right: 19px;
  align-self: start;
}
.sidebar .panel {
  height: auto;
}

/* =======================
   PANELS
   ======================= */

.panel {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--rCard);
  overflow: hidden;
  transition: box-shadow .2s;
}
.panel:hover { box-shadow: var(--shadow3) }

/* =======================
   ACCORDION details/summary
   ======================= */

.acc-panel {
  border: none;
  margin: 0;
}

.acc-panel > summary {
  list-style: none;
}
.acc-panel > summary::-webkit-details-marker {
  display: none;
}
.acc-panel > summary::marker {
  display: none;
  content: "";
}

.acc-header {
  padding: 13px 17px;
  background: linear-gradient(135deg, #faf9f7, #f5f0ea);
  
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-weight: 700;
  font-size: 11.5px;
  color: #2f2f2f;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background .18s;
}
.acc-header:hover {
  background: linear-gradient(135deg, #f5f0ea, #ede8df);
}

.acc-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.acc-header-left::before {
  content: "";
  width: 3px; height: 15px;
  border-radius: 999px;
  flex-shrink: 0;
  background: linear-gradient(var(--accent2), var(--accent));
}

.acc-arrow {
  width: 16px; height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .25s;
}
.acc-arrow svg {
  width: 10px; height: 10px;
  stroke: #555;
  fill: none;
  stroke-width: 2.5;
}

.acc-panel[open] > .acc-header .acc-arrow {
  transform: rotate(180deg);
}

.acc-body {
  overflow: hidden;
}
.acc-body .bd {
  padding: 15px 17px;
}

/* Standardowa animacja rozwijania */
.acc-panel[open] > .acc-body {
  animation: accordionSlideDown 0.3s ease;
}

/* Wyłączenie animacji tylko dla akordeonów otwartych przez PHP na starcie */
.acc-panel.no-anim[open] > .acc-body {
  animation: none !important;
}
@keyframes accordionSlideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 600px;
  }
}

/* =======================
   CATEGORY LIST
   ======================= */

.catList {
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: #444;
}
.catList li a {
  display: flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 10px;
  font-weight: 500;
  transition: all .15s;
  gap: 6px;
}
.catList li a:hover {
  background: #f5f0ea;
  color: #1a1a1a;
  padding-left: 15px;
}
.catList li a::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: .6;
}

/* =======================
   SEARCH ROW
   ======================= */

.bd.wyszukiwarka {
  margin: 6px;
}

.searchRow { display: flex; gap: 8px }
.searchRow input {
  flex: 1;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1.5px solid rgba(0,0,0,.15);
  outline: none;
  font-size: 13px;
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s;
}
.searchRow input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180,143,99,.2);
  background: #fff;
}
.wyczysc-wyszukiwanie, .searchRow button {
  padding: 8px 9px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  transition: all .2s;
}
.searchRow button:hover { transform: scale(1.05) }

/* =======================
   TOP POSTS / INSTAGRAM GRID
   ======================= */

.topPosts { display: grid; gap: 11px }
.tpItem {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 6px;
  border-radius: 10px;
  transition: background .15s;
}
.tpItem:hover { background: #f8f5f0 }
.badge {
  width: 23px; height: 23px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 10.5px;
  flex: 0 0 auto;
  margin-top: 1px;
}
.tpItem a {
  font-size: 12.5px;
  color: #3a3a3a;
  line-height: 1.5;
  font-weight: 500;
}
.tpItem:hover a { color: #1a1a1a }

.instaGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.thumb {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
  display: block;
}
.thumb:hover img { transform: scale(1.1) }

/* =======================
   ARTICLE
   ======================= */

.article {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--rCard);
  overflow: hidden;
}
.articleImgWrap {
  overflow: hidden;
  position: relative;
}
.articleImgWrap::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(255,255,255,.9));
}
.articleImg {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}
.article:hover .articleImg { transform: scale(1.02) }

.articleInner { padding: 21px 23px 13px }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.kicker::before {
  content: "";
  width: 17px; height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.title, .naglowek_newsa {
  margin-bottom: 40px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.naglowek_newsa_rozwiniety {
  margin-top: 18px;
}

.naglowek_newsa, .naglowek_newsa_rozwiniety {
  color: #1f2d3d;
  margin: 27px 0 20px 0;
  font-size: 20px;
}

.naglowek_newsa::after, .naglowek_newsa_rozwiniety::after {
  content: "";
  display: block;
  width: 250px;
  height: 1px;
  background: #4c4d4f;
  margin-top: 1px;
  border-radius: 2px;
}

.naglowek_newsa.wewn {
  text-decoration: none;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 19px;
  font-size: 12px;
  color: #666;
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding-bottom: 15px;
  margin-bottom: 17px;
}
.meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.meta svg {
  width: 13px; height: 13px;
  opacity: .6;
  flex-shrink: 0;
}

.content p {
  margin-bottom: 14px;
  color: #3a3a3a;
  line-height: 1.73;
  font-size: 14px;
}

.inlineImg {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.inlineImg img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.readMoreBtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 19px;
  border-radius: var(--rPill);
  background: #f5f0ea;
  color: var(--accentDark);
  font-weight: 700;
  font-size: 12.5px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  margin-top: 4px;
}
.readMoreBtn:hover {
  background: var(--accent);
  color: #fff;
}
.readMoreBtn svg {
  width: 14px; height: 14px;
  transition: transform .2s;
}
.readMoreBtn:hover svg { transform: translateX(3px) }

/* =======================
   PAGER
   ======================= */

.pager {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 23px 19px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.pagerBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #4a4a4a;
  padding: 9px 15px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fafafa;
  font-weight: 600;
  transition: all .18s;
  cursor: pointer;
  text-decoration: none;
}
.pagerBtn:hover {
  background: #f5f0ea;
  color: var(--accentDark);
  border-color: var(--accent2);
}
.pagerBtn svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
}

/* =======================
   PAGINATION
   ======================= */

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 20px 0 10px 0;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  height: 35px;
  padding: 0 10px;
  border: 1px solid #ddd;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.2s;
  font-size: 0.9rem;
  background: #fff;
  color: #333;
}

.pagination-link:hover {
  border-color: #0056b3;
  color: #0056b3;
}

.pagination-link.active {
  background: #0056b3;
  color: #fff;
  border-color: #0056b3;
}

.pagination-link.active:hover {
  color: #fff;
}

.poprzednia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  padding: 0 15px;
  border: 1px solid #ddd;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  color: #0056b3;
  background: #fff;
  font-size: 0.85rem;
}

/* =======================
   DATY
   ======================= */

.data {
  margin-top: -30px;
  float: left;
  font-size: 12px;
}

.data_news, .data {
  display: block;
  text-align: left;
  margin-bottom: -2px;
  font-size: 12px;
  font-weight: bold;
}

.data_news, .data {
  	color: #868788;
	font-weight: 600;
}

.data::before, .data_news::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* =======================
   MAIN CONTENT
   ======================= */

#main-content {
  line-height: 1.7;
  color: #2b2b2b;
  font-size: 14px;
  margin-top: 10px;
  background-color: white;
}

#main-content .title {
  margin-top: 20px;
  font-size: 25px;
  font-weight: 700;
  color: #1f2d3d;
  line-height: 1.3;
}

#main-content .title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #0b5ed7;
  margin-top: 10px;
  border-radius: 2px;
}

/* =======================
   NEWS
   ======================= */

.naglowek_news {
  margin: 5px 0 20px 0;
  font-size: 1.4rem;
  color: #0056b3;
 line-height: 1.2;
  text-decoration: none;
}


.news-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 10px;
  flex-wrap: wrap;
}

.news-nav-left,
.news-nav-center,
.news-nav-right {
  flex: 1;
  display: flex;
}

.news-nav-left { justify-content: flex-start; }
.news-nav-center { justify-content: center; }
.news-nav-right { justify-content: flex-end; }

.news-nav-link {
  display: inline-block;
  padding: 2px 6px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 25px;
  color: #0c0c0c7a;
}

.news-nav-link:hover {
  background: #2563eb;
  color: #fff;
}

/* =======================
   CZYTAJ WIECEJ
   ======================= */

.czytaj_wiecej {
  display: inline-block;
  padding: 9px 18px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  background: #0056b3;
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all .2s;
}

.czytaj_wiecej:hover {
  background: #1a73e8;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  color: white;
}

.czytaj_wiecej:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.czytaj_wiecej::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );
  transition: all 0.5s;
}

.czytaj_wiecej:hover::after {
  left: 120%;
}

/* =======================
   WYSZUKIWANIE
   ======================= */

.search-hit,
mark.search-hit {
  background: #ffeb3b;
  color: #000;
  border-radius: 3px;
}

.wroc-do-wynikow {
  margin-bottom: 15px;
  display: inline-block;
  padding: 2px 9px;
  color: #0c0c0c7a;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  transition: background 0.2s, color 0.2s;
}

.wroc-do-wynikow:hover {
  background: #1d4ed8;
  color: white;
}

/* =======================
   OGLOSZENIE
   ======================= */

.ogloszenie-wrap {
  width: 100%;
  padding: 12px 16px;
  box-sizing: border-box;
  display: block;
  animation: banerWjazd 1.5s ease-out 0.3s both;
}

.ogloszenie-wrap.ukryty {
  display: none;
}

@keyframes banerWjazd {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ogloszenie-box {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  box-shadow: inset 0px 1px 0px 0px #ffffff;
  background: linear-gradient(to bottom, #ffffff 5%, #f6f6f6 100%);
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #dcdcdc;
  color: #666666;
  font-size: 15px;
  font-weight: bold;
  padding: 10px 18px 10px 20px;
  text-shadow: 0px 1px 0px #ffffff;
  text-align: left;
  box-sizing: border-box;
}

.ogloszenie-tytul {
  font-size: 20px;
  font-weight: bold;
  color: #666666;
  margin: 0 0 10px 0;
  display: block;
}

.ogloszenie-tresc {
  font-weight: normal;
  color: #666666;
  line-height: 1.6;
  display: block;
}

.ogloszenie-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #8a6a3f;
  text-decoration: none;
  border: 1px solid #d5c3a5;
  padding: 6px 14px;
  border-radius: 999px;
  background: #faf8f5;
  transition: all .2s;
  text-shadow: none;
}
.ogloszenie-link:hover {
  background: #f5f0ea;
  border-color: #8a6a3f;
}
.ogloszenie-link svg {
  width: 13px;
  height: 13px;
}

.ogloszenie-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #f0f0f0;
  border: 1px solid #dcdcdc;
  color: #888;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  text-shadow: none;
  font-weight: normal;
}
.ogloszenie-close:hover {
  background: #e0e0e0;
  color: #444;
}
.ogloszenie-close:focus-visible {
  outline: 2px solid #8a6a3f;
  outline-offset: 2px;
}

/* =======================
   FOOTER
   ======================= */

.footer {
  max-width: 1140px;
  margin: 22px auto 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
}
.footerTop {
  background: linear-gradient(135deg, #2a2520, #1a1a18);
  padding: 34px 30px 26px;
}
.footerGrid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 26px;
  align-items: start;
}
.boxTitle {
  margin-bottom: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent2);
}
.bimLogo {
  width: 126px;
  height: 51px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: .2em;
  color: #fff;
  font-size: 23px;
  box-shadow: 0 8px 24px rgba(244,206,161,0.4);
  margin-bottom: 15px;
}
.footer p,
.footer a {
  font-size: 13px;
  line-height: 1.72;
  color: rgba(255,255,255,.7);
}
.footer p { margin-bottom: 8px }
.footer a:hover { color: var(--accent2) }
.footer ul {
  list-style: none;
  display: grid;
  gap: 5px;
}
.footerSubmenu > li > a {
  padding: 2px 2px 2px 25px;
}
.footer ul li a {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
}
.footer ul li a::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transition: transform .15ms;
}
.footer ul li a:hover::before { transform: scale(1.5) }

.footerBottom {
  background: #111;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footerBottom p {
  font-size: 11.5px;
  color: rgba(255,255,255,.4);
  margin: 0;
}
.footerSocials { display: flex; gap: 9px }
.socialBtn {
  width: 31px; height: 31px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
}
.socialBtn:hover {
  background: rgba(180,143,99,.25);
  border-color: var(--accent);
}
.socialBtn svg {
  width: 14px; height: 14px;
  fill: rgba(255,255,255,.5);
}
.socialBtn:hover svg { fill: var(--accent2) }

.footerDropBtn {
  color: #b2b1b0;
}

/* =======================
   TOAST
   ======================= */

.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  padding: 13px 21px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
  transform: translateY(80px);
  opacity: 0;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toast::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
}

/* =======================
   SCROLL TO TOP
   ======================= */

.scrollTop {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(180,143,99,.45);
  z-index: 9999;
  text-decoration: none;
  opacity: 1;
  transform: translateY(0);
  transition: all .3s;
}
.scrollTop.js-controlled {
  opacity: 0;
  transform: translateY(20px);
}
.scrollTop.js-controlled.visible {
  opacity: 1;
  transform: translateY(0);
}
.scrollTop:hover { transform: translateY(-3px) }
.scrollTop svg { width: 17px; height: 17px; fill: #fff }

/* =======================
   ACCESSIBILITY STATEMENT
   ======================= */

.accessibility-statement {
  max-width: 1075px;
  margin: 22px auto 0;
  padding: 0 10px;
}
.a11y-statement-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 30px 34px;
}
.a11y-statement-card h2 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 10px;
}
.a11y-statement-card h2 svg {
  width: 24px; height: 24px;
  fill: var(--accent);
}
.a11y-statement-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #2a2a2a;
  margin: 18px 0 8px;
}
.a11y-statement-card p,
.a11y-statement-card li {
  font-size: 14px;
  line-height: 1.72;
  color: #444;
  margin-bottom: 6px;
}
.a11y-statement-card ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}
.a11y-statement-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.a11y-statement-card a:hover { color: var(--accentDark) }

.a11y-feedback-form {
  background: #f8f6f2;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 20px;
  margin-top: 16px;
}
.a11y-feedback-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #444;
  margin-bottom: 4px;
  margin-top: 12px;
}
.a11y-feedback-form label:first-child { margin-top: 0 }
.a11y-feedback-form input,
.a11y-feedback-form textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.a11y-feedback-form input:focus-visible,
.a11y-feedback-form textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180,143,99,.15);
  outline: none;
}
.a11y-feedback-form textarea {
  min-height: 100px;
  resize: vertical;
}
.a11y-feedback-form button {
  margin-top: 14px;
  padding: 13px 26px;
  border-radius: var(--rPill);
  background: linear-gradient(135deg, var(--accent), var(--accentDark));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.a11y-feedback-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(180,143,99,.4);
}
.featured-container {
    position: relative;
    display: flex;
    flex-direction: column;
}
.featured-overlay {
   
  background: #ffffff;
  display: block;
  border-top: 1px solid #eeeeee;
}
.featured-title-overlay {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  color: #1f2d3d;
  line-height: 1.3;
  display: block;
  text-align: left;
}
 
.featured-date-row {
	display: flex;
	align-items: center;
	color: #666;
	margin-top: 7px;
	margin-bottom: 12px;
}
.news-featured .data_news {
	color: #868788;
	font-weight: 600;
}
/* =======================
   RESPONSIVE
   ======================= */
/* --- UKŁAD SIATKI (GRID) --- */
/* --- UKŁAD SIATKI (GRID) --- */
.news-list-wrapper.grid-layout {
    display: flex;
    flex-wrap: wrap; /* Pozwala przechodzić do nowych linii */
    gap: 25px;
}

/* W gridzie news wyróżniony (featured) */
/* Każdy zwykły news zajmuje połowę (minus odstęp), ale może rosnąć */
.news-list-wrapper.grid-layout .news-preview {
    flex: 1 1 calc(50% - 25px); 
    min-width: 300px; /* Szerokość minimalna dla kafelka */
}

/* Wyróżniony (Featured) zawsze zajmuje 100% szerokości */
/* .news-list-wrapper.grid-layout .news-featured {
    flex: 1 1 100% !important;
} */

/* Karta newsa wewnątrz grida */
.news-list-wrapper.grid-layout .news-preview:not(.news-featured) {
    display: flex;
    flex-direction: column; /* Tekst pod zdjęciem */
    height: 100%;
    background: #fff;
    padding: 0; /* Resetujemy padding, aby obrazek był do krawędzi */
    border-radius: 12px;
    border-left: none; /* Usuwamy niebieski pasek w trybie siatki */
    border: 1px solid #eee;
    overflow: hidden;
}

/* Kontener na treść wewnątrz małej karty newsa */
.news-list-wrapper.grid-layout .news-preview:not(.news-featured) .news-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Obrazki w boksach grida */
.news-list-wrapper:not(.grid-layout) .news-featured-img-link {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0;
    max-height: 360px;
}

.news-list-wrapper:not(.grid-layout) .news-featured-img {
    width: 100%;
height: auto;  
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.news-list-wrapper.grid-layout .news-preview:not(.news-featured) .news-list-thumb {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

/* Naprawa nagłówków w małych boksach grida */
.news-list-wrapper.grid-layout .news-preview:not(.news-featured) .naglowek_news {
    font-size: 1.1rem;
    margin: 10px 0;
    line-height: 1.3;
}

/* Usuwamy linię ozdobną pod nagłówkiem w małych boksach, żeby było czyściej */
.news-list-wrapper.grid-layout .news-preview:not(.news-featured) .naglowek_news::after {
    display: none;
}


.news-preview {
 
 
	padding: 15px;
 
	border-radius: 12px;
 
 
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
}
.news-preview::before {
	content: "";
	position: absolute;
	top: 8px;
	z-index: 9;
	right: 8px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1), inset -2px -2px 4px rgb(255, 255, 255), 0 1px 1px rgba(255, 255, 255, 0.8);
	border: 1px solid #302e2e2b;
}
.news-list-wrapper.grid-layout .news-preview .news-list-thumb {
    float: none !important;
    margin: 0 0 15px 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 200px !important; 
    object-fit: cover !important;
}
/* RWD */
@media (max-width: 800px) {
    .news-list-wrapper.grid-layout {
        grid-template-columns: 1fr;
    }
    .news-list-wrapper.grid-layout .news-featured {
        grid-column: span 1;
    }
        .news-list-thumb {
        float: none !important;
        display: block;
        margin: 0 auto 15px auto !important;
    }
}
@media (max-width: 1100px) {
  .heroRight { display: none }
}

@media (max-width: 1000px) {
  .grid { grid-template-columns: 1fr; gap: 14px }
  .sidebar { padding-right: 0 }
  .navPill { width: calc(100% - 32px) }
  .footerGrid { grid-template-columns: 1fr 1fr }
  .heroInner { flex-direction: column; align-items: flex-start }
  .heroRight { max-width: 100% }
  
}

@media (max-width: 600px) {
  .footerGrid { grid-template-columns: 1fr }
  .heroMedia { height: 260px }
  .footerBottom { flex-direction: column; text-align: center }
  .a11y-grid { grid-template-columns: 1fr 1fr }
  .a11y-statement-card { padding: 20px 16px }

  .heroInner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 16px 16px;
  }

  .heroWelcome,
  .heroSchoolName {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }

  .heroWelcome {
    margin-bottom: 0;
    font-size: 9.5px;
    padding: 4px 10px;
  }

  .heroSchoolName {
    width: auto;
    max-width: 100%;
    font-size: 25px;
    padding: 10px 14px;
    line-height: 1.2;
  }
}
/* Naprawa opływania obrazka głównego w trybie pojedynczego newsa na telefonach */
@media (max-width: 768px) {
    .full-content img.main-thumb,
    .article-full img.main-thumb {
        float: none !important; /* Wyłącza opływanie z lewej/prawej */
        display: block !important; /* Wymusza zachowanie blokowe (tekst ląduje pod spodem) */
        width: 100% !important; /* Obrazek zajmuje całą dostępną szerokość */
        max-width: 100% !important; /* Zapobiega ograniczeniom szerokości */
        margin: 0 auto 15px auto !important; /* Centruje obrazek i dodaje margines na dole przed tekstem */
        height: auto !important; /* Zachowuje proporcje zdjęcia */
    }
}
/* ===================================================
   MOBILNE ZWIJANIE LEWEGO MENU (SIDEBAR) NA TELEFONACH
   =================================================== */

/* Ukrycie technicznego checkboxa */
.sidebar-check {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
    pointer-events: none;
}

/* Przycisk menu bocznego - domyślnie ukryty na komputerach */
.sidebar-toggle-btn {
    display: none;
}

/* Style aktywowane wyłącznie na ekranach mobilnych (RWD) */
@media (max-width: 1000px) {
    /* Stylizacja mobilnego przycisku lewego menu */
    .sidebar-toggle-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-height: 50px;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(0,0,0,.04);
        cursor: pointer;
        user-select: none;
        font-weight: 700;
        font-size: 14px;
        color: #3a3a3a;
       
        transition: background 0.2s, box-shadow 0.2s;
    }
#main-content {
 
	margin-top: 0 !important;
 
}
    .sidebar-toggle-btn:hover {
        background: #f5f0ea;
        box-shadow: 0 6px 20px rgba(0,0,0,.08);
    }

    /* Ikona "hamburgera" dla przycisku bocznego */
    .sidebar-toggle-icon {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex-shrink: 0;
    }
    
    .sidebar-toggle-icon span {
        display: block;
        width: 18px; height: 2px;
        background: #555;
        border-radius: 999px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    /* Kontener z menu - domyślnie całkowicie ukryty i zwinięty na telefonie */
    .sidebar-menu-wrapper {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s cubic-bezier(0, 0, 0.2, 1), opacity 0.25s ease;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    /* EFEKT KLIKNIĘCIA: Gdy checkbox jest zaznaczony, pokaż menu i zrób animację */
    .sidebar-check:checked ~ .sidebar-menu-wrapper {
        max-height: 2000px; /* Wysoka wartość, aby zmieścić rozwinięte akordeony */
        opacity: 1;
        margin-top: 5px;
    }

    /* Animacja hamburgera przy otwartym menu bocznym */
    .sidebar-check:checked ~ .sidebar-toggle-btn .sidebar-toggle-icon span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .sidebar-check:checked ~ .sidebar-toggle-btn .sidebar-toggle-icon span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .sidebar-check:checked ~ .sidebar-toggle-btn .sidebar-toggle-icon span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Delikatne podświetlenie focusu dla dostępności (a11y) */
    .sidebar-check:focus-visible ~ .sidebar-toggle-btn {
        outline: var(--focusWidth) solid var(--focusColor);
        outline-offset: 2px;
    }
}
.szukajka{
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.szukajka::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #e8e8e8;
    z-index: -1;
    box-shadow: 4px 8px 19px -3px rgba(22,22,22,0.27);
    transition: width 250ms ease;
}
.szukajka:hover{
    color: #212121;
}
.szukajka:hover::before{
    width: 100%;
}
.kontener2-zdjecie {
    overflow: hidden;
}

.kontener2-zdjecie img {
    display: block;
    width: 100%;
    transition: transform .35s ease;
}

.kontener2-zdjecie:hover img {
    transform: scale(1.03);
}
body.szuflada-open {
  overflow: hidden;
}

/* ===== OVERLAY ===== */
.szuflada-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 999;
}

.szuflada-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===== SZUFLADA BAZA ===== */
.szuflada {
  position: fixed;
  background: #fff;
  z-index: 1000;
  transition: transform 0.3s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  border-radius: 20px;
}

/* ===== GÓRA ===== */
.szuflada-gora {
  top: 0;
  left: 0;
  right: 0;
  max-height: 80vh;
  transform: translateY(-100%);
  border-radius: 0 0 16px 16px;
}

.szuflada-gora.active {
  transform: translateY(0);
}

/* ===== DÓŁ ===== */
.szuflada-dol {
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 80vh;
  transform: translateY(100%);
  border-radius: 16px 16px 0 0;
}

.szuflada-dol.active {
  transform: translateY(0);
}

/* ===== LEWA ===== */
.szuflada-lewa {
  top: 0;
  bottom: 0;
  left: 0;
  width: 360px;
  max-width: 85vw;
  transform: translateX(-100%);
  border-radius: 0 16px 16px 0;
}

.szuflada-lewa.active {
  transform: translateX(0);
}

/* ===== PRAWA ===== */
.szuflada-prawa {
  top: 0;
  bottom: 0;
  right: 0;
  width: 360px;
  max-width: 85vw;
  transform: translateX(100%);
  border-radius: 16px 0 0 16px;
}

.szuflada-prawa.active {
  transform: translateX(0);
}

/* ===== UCHWYT (góra/dół) ===== */
.szuflada-uchwyt {
  width: 50px;
  height: 5px;
  background: #ccc;
  border-radius: 999px;
  margin: 12px auto 8px;
}

/* ===== TREŚĆ ===== */
.szuflada-content {
  padding: 24px 28px 24px;
  position: relative;
}

.szuflada-content h2 {
  font-size: 1.125rem;
  font-weight: 800;
  color: #1a2547;
  margin: 8px 0 7px;
  letter-spacing: -0.5px;
}

.szuflada-content p {
	font-size: 1rem;
	color: #515151;
	line-height: 1.5;
	margin: 0 0 4px;
}
.szuflada-ikona {
  width:30px;
  height:30px;
  border-radius: 50%;
  background: #fdf4e3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #e8a93c;
  margin-bottom: 8px;
}

.szuflada-kreska {
  width: 40px;
  height: 3px;
  background: #e8a93c;
  border-radius: 999px;
  margin: 12px 0 4px;
}

.szuflada-zamknij-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: #1a2547;
  transition: all 0.15s ease;
}

.szuflada-zamknij-x:hover {
  background: #f3f4f6;
}

.szuflada-srodek-ikona {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 20px;
  color: #e8a93c;
  font-size: 1.2rem;
}

.szuflada-srodek-ikona::before,
.szuflada-srodek-ikona::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.szuflada-content ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.szuflada-content ul li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.szuflada-content a {
  color: #111;
  text-decoration: none;
}

.szuflada-content a:hover {
  text-decoration: underline;
}

.szuflada-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  background: #1a2547;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 8px;
  overflow: hidden;
  transition: color 0.4s ease;
  z-index: 0;
  background:linear-gradient(to bottom, #f9f9f9 5%, #e9e9e9 100%);
	background-color:#f9f9f9;
	border-radius:6px;box-shadow:inset 0px 1px 0px 0px #ffffff;
	border:1px solid #dcdcdc;color:#666666;

}

.szuflada-btn::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 100%;
	background: #e5e6e7;
	transition: width 0.4s ease;
	z-index: -1;
}

.szuflada-btn:hover {
  color: #1a2547;
}

.szuflada-btn:hover::after {
  width: 100%;
}

 
.szuflada-gora .szuflada-btn,
.szuflada-dol .szuflada-btn {
  width: 300px;
  
}
.szuflada-uchwyt {
  display: none;
}
.szuflada-naglowek {
  display: flex;
  align-items: center;
  gap: 14px;
 
}

.szuflada-naglowek h2 {
  margin: 0;
}

.szuflada-naglowek .szuflada-ikona {
  margin-bottom: 0;
  flex-shrink: 0;
}
.ogloszenie1{  
	background: #efefef;
	padding: 10px;
	border-radius: 14px;
	border: 1px solid #dcdcdc; 
}


/* ===== Dolny pasek nawigacyjny ===== */
.bottom-bar {
	position: fixed;
	right: 6px;
	bottom:  70px;
	/* transform: translateX(-50%); */
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	padding: 4px 4px;
	background: #ffffff;
	border: 2px solid #5a8fd6;
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
	z-index: 9998;
}

.bottom-bar-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #1f2d3d;
	font-size: 12px;
	font-weight: 600;
	/* padding: 6px 4px; */
	border-radius: 10px;
	min-width: 55px;
 
  transition: 
    background .25s ease,
    color .25s ease,
    transform .25s ease,
    box-shadow .25s ease;
}

.bottom-bar-item:hover,
.bottom-bar-item:focus-visible {
 
 
  transform: translateY(-3px);
 
  outline: none;
}
.bb-icon {
  width: 26px;
  height: 26px;
  color: #2b6cb0; /* niebieska ikona jak na obrazku */
  margin-bottom: 2px;
}

.bb-label {
  font-size: 9px;
  line-height: 1;
  color: #1f2d3d;
  white-space: nowrap;
}

/* Aby pasek nie zasłaniał treści/footer'a, dodaj odstęp na dole strony */
body {
  padding-bottom: 80px;
}

/* Aby nie kolidował z przyciskiem "do góry" (scrollTop) */
#scrollTop {
  bottom: 90px !important;
}

/* == NAKŁADKA SEZONOWA NA STRONĘ == */
.page {
  position: relative;
  overflow: visible;
}

.seasonalDecoration {
  position: absolute;
  left: var(--seasonal-decoration-left, -45px);
  top: var(--seasonal-decoration-top, 105px);
  width: var(--seasonal-decoration-width, 140px);
  z-index: 60;
  pointer-events: none;
}

.seasonalDecoration img {
  display: block;
  width: 100%;
  height: auto;
}
 
/* Na telefonach ozdoby sezonowe są stale wyłączone */
@media (max-width: 940px) {
  .seasonalDecoration {
    display: none !important;
  }
}