/* ==========================================================================
   PIERWSZA SPOŁECZNA SZKOŁA PODSTAWOWA W CHEŁMIE
   Styl strony: Jasnożółte tło (#FFFDE8) + Kobaltowy granat (#1E2B82) + Słoneczny żółty (#F8C830)
   W pełni responsywny layout dostosowany do telefonów, tabletów i ekranów 4K
   ========================================================================== */

:root {
  /* Kolory tła (Jasnożółta paleta zgodnie z wytycznymi) */
  --bg-page: #FFFDE8;              /* Główne jasnożółte tło strony */
  --bg-warm: #FFF8D6;              /* Cieplejsze jasnożółte tło sekcji */
  --bg-card: #FFFFFF;              /* Tło kart i elementów informacyjnych */
  --bg-header: #FFFEEA;            /* Jasnożółte tło nagłówka */
  --bg-footer: #101642;            /* Ciemnogranatowe tło stopki */

  /* Kolory wiodące (Kobalt/Granat ze zdjęcia + Słoneczny Żółty) */
  --color-primary: #1E2B82;        /* Głęboki kobaltowy granat */
  --color-primary-dark: #121A58;   /* Ciemniejszy odcień granatu */
  --color-primary-light: #2D3DA8;
  --color-primary-soft: #FFF5C2;   /* Miękki żółty akcent tła */

  --color-accent: #F8C830;         /* Słoneczny żółty */
  --color-accent-dark: #D4A312;
  --color-accent-light: #FDECA8;
  --color-accent-soft: #FFFBE6;

  /* Baner Hero */
  --hero-bg-primary: #2596be;
  --hero-wave-accent: #F8C830;
  --hero-badge-bg: #F8C830;
  --hero-badge-text: #1E2B82;
  --hero-badge-script: #1E2B82;

  /* Typografia i teksty */
  --text-primary: #141A46;
  --text-muted: #4A5568;
  --text-light: #718096;
  --text-white: #FFFFFF;

  /* Obramowania i cienie */
  --border-color: #EBDFA8;         /* Ciepła, dopasowana ramka */
  --border-light: #F2E8BE;
  --shadow-sm: 0 2px 6px rgba(30, 43, 130, 0.05);
  --shadow-md: 0 6px 18px rgba(30, 43, 130, 0.08);
  --shadow-lg: 0 14px 35px rgba(30, 43, 130, 0.12);
  --shadow-hover: 0 16px 36px rgba(248, 200, 48, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1260px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-wide {
  width: calc(100% - clamp(20px, 3.5vw, 56px));
  max-width: 1720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* ==========================================================================
   DOSTĘPNOŚĆ CYFROWA (WCAG 2.1 AA) - BAZOWE STYLE I KLAWISZ TAB
   ========================================================================== */

/* 1. Mechanizm Skip Link (Przejście do treści) */
.skip-link {
  position: absolute;
  top: -120px;
  left: 20px;
  background: #101642;
  color: #F8C830;
  padding: 14px 22px;
  font-size: 1.05rem;
  font-weight: 800;
  border: 3px solid #F8C830;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  z-index: 999999;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: top 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 18px;
  outline: 3px solid #F8C830 !important;
  outline-offset: 4px !important;
}

/* 2. Wyraźny stan skupienia klawiatury (:focus-visible) - WCAG 2.4.7 */
:focus-visible {
  outline: 3px solid #1E2B82 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(248, 200, 48, 0.95) !important;
  border-radius: 4px;
}

/* 3. Skalowanie rozmiaru czcionki (do 200% bez psucia layoutu na jednostkach rem) */
html.font-scale-120 {
  font-size: 19.2px !important; /* 120% na desktopie */
}
html.font-scale-150 {
  font-size: 24px !important;   /* 150% na desktopie */
}
html.font-scale-200 {
  font-size: 32px !important;   /* 200% na desktopie */
}

/* Responsywne dopasowanie skalowania na tabletach i telefonach (WCAG 1.4.4 & 1.4.10 Reflow) */
@media (max-width: 768px) {
  html.font-scale-120 {
    font-size: 17.5px !important;
  }
  html.font-scale-150 {
    font-size: 20px !important;
  }
  html.font-scale-200 {
    font-size: 24px !important;
  }
}

@media (max-width: 430px) {
  html.font-scale-120 {
    font-size: 16.5px !important;
  }
  html.font-scale-150 {
    font-size: 18.5px !important;
  }
  html.font-scale-200 {
    font-size: 21.5px !important;
  }
}

/* Globalne zabezpieczenie przed poziomym wychodzeniem treści poza ekran na telefonach */
html.font-scale-120,
html.font-scale-150,
html.font-scale-200 {
  overflow-x: hidden !important;
}

html.font-scale-120 body,
html.font-scale-150 body,
html.font-scale-200 body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Automatyczne bezpieczne łamanie długich słów, linków, nagłówków i adresów e-mail */
html.font-scale-120 h1, html.font-scale-150 h1, html.font-scale-200 h1,
html.font-scale-120 h2, html.font-scale-150 h2, html.font-scale-200 h2,
html.font-scale-120 h3, html.font-scale-150 h3, html.font-scale-200 h3,
html.font-scale-120 h4, html.font-scale-150 h4, html.font-scale-200 h4,
html.font-scale-120 h5, html.font-scale-150 h5, html.font-scale-200 h5,
html.font-scale-120 h6, html.font-scale-150 h6, html.font-scale-200 h6,
html.font-scale-120 p, html.font-scale-150 p, html.font-scale-200 p,
html.font-scale-120 a, html.font-scale-150 a, html.font-scale-200 a,
html.font-scale-120 .subpage-title, html.font-scale-150 .subpage-title, html.font-scale-200 .subpage-title,
html.font-scale-120 .subpage-desc, html.font-scale-150 .subpage-desc, html.font-scale-200 .subpage-desc,
html.font-scale-120 .contact-val, html.font-scale-150 .contact-val, html.font-scale-200 .contact-val,
html.font-scale-120 .contact-label, html.font-scale-150 .contact-label, html.font-scale-200 .contact-label {
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

/* ==========================================================================
   OCHRONA NAKLEJKI BANERA (HERO STICKER BADGE) PRZED ROZPADANIEM NAPISÓW
   Napisy na okrągłym stemplu ("wiedza pasja sukces") zachowują spójność
   ========================================================================== */
html.font-scale-120 .hero-sticker-badge,
html.font-scale-150 .hero-sticker-badge,
html.font-scale-200 .hero-sticker-badge {
  overflow: visible !important;
}

html.font-scale-120 .hero-sticker-badge .badge-word,
html.font-scale-150 .hero-sticker-badge .badge-word,
html.font-scale-200 .hero-sticker-badge .badge-word {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

html.font-scale-120 .hero-sticker-badge .badge-word-1,
html.font-scale-120 .hero-sticker-badge .badge-word-2,
html.font-scale-150 .hero-sticker-badge .badge-word-1,
html.font-scale-150 .hero-sticker-badge .badge-word-2,
html.font-scale-200 .hero-sticker-badge .badge-word-1,
html.font-scale-200 .hero-sticker-badge .badge-word-2 {
  font-size: 34px !important;
  line-height: 1.1 !important;
}

html.font-scale-120 .hero-sticker-badge .badge-word-3,
html.font-scale-150 .hero-sticker-badge .badge-word-3,
html.font-scale-200 .hero-sticker-badge .badge-word-3 {
  font-size: 46px !important;
  line-height: 0.9 !important;
  margin-top: -4px !important;
}

@media (max-width: 992px) {
  html.font-scale-120 .hero-sticker-badge .badge-word-1,
  html.font-scale-120 .hero-sticker-badge .badge-word-2,
  html.font-scale-150 .hero-sticker-badge .badge-word-1,
  html.font-scale-150 .hero-sticker-badge .badge-word-2,
  html.font-scale-200 .hero-sticker-badge .badge-word-1,
  html.font-scale-200 .hero-sticker-badge .badge-word-2 {
    font-size: 29px !important;
  }
  html.font-scale-120 .hero-sticker-badge .badge-word-3,
  html.font-scale-150 .hero-sticker-badge .badge-word-3,
  html.font-scale-200 .hero-sticker-badge .badge-word-3 {
    font-size: 39px !important;
  }
}

@media (max-width: 860px) {
  html.font-scale-120 .hero-sticker-badge .badge-word-1,
  html.font-scale-120 .hero-sticker-badge .badge-word-2,
  html.font-scale-150 .hero-sticker-badge .badge-word-1,
  html.font-scale-150 .hero-sticker-badge .badge-word-2,
  html.font-scale-200 .hero-sticker-badge .badge-word-1,
  html.font-scale-200 .hero-sticker-badge .badge-word-2 {
    font-size: 26px !important;
  }
  html.font-scale-120 .hero-sticker-badge .badge-word-3,
  html.font-scale-150 .hero-sticker-badge .badge-word-3,
  html.font-scale-200 .hero-sticker-badge .badge-word-3 {
    font-size: 35px !important;
  }
}

@media (max-width: 600px) {
  html.font-scale-120 .hero-sticker-badge .badge-word-1,
  html.font-scale-120 .hero-sticker-badge .badge-word-2,
  html.font-scale-150 .hero-sticker-badge .badge-word-1,
  html.font-scale-150 .hero-sticker-badge .badge-word-2,
  html.font-scale-200 .hero-sticker-badge .badge-word-1,
  html.font-scale-200 .hero-sticker-badge .badge-word-2 {
    font-size: 16px !important;
  }
  html.font-scale-120 .hero-sticker-badge .badge-word-3,
  html.font-scale-150 .hero-sticker-badge .badge-word-3,
  html.font-scale-200 .hero-sticker-badge .badge-word-3 {
    font-size: 24px !important;
  }
}

@media (max-width: 420px) {
  html.font-scale-120 .hero-sticker-badge .badge-word-1,
  html.font-scale-120 .hero-sticker-badge .badge-word-2,
  html.font-scale-150 .hero-sticker-badge .badge-word-1,
  html.font-scale-150 .hero-sticker-badge .badge-word-2,
  html.font-scale-200 .hero-sticker-badge .badge-word-1,
  html.font-scale-200 .hero-sticker-badge .badge-word-2 {
    font-size: 14px !important;
  }
  html.font-scale-120 .hero-sticker-badge .badge-word-3,
  html.font-scale-150 .hero-sticker-badge .badge-word-3,
  html.font-scale-200 .hero-sticker-badge .badge-word-3 {
    font-size: 20px !important;
  }
}

/* Zabezpieczenie kontenerów flexowych na kartach kontaktu przed rozpychaniem */
html.font-scale-120 .contact-item,
html.font-scale-150 .contact-item,
html.font-scale-200 .contact-item {
  min-width: 0 !important;
  max-width: 100% !important;
}

html.font-scale-120 .contact-item > div:not(.contact-icon),
html.font-scale-150 .contact-item > div:not(.contact-icon),
html.font-scale-200 .contact-item > div:not(.contact-icon) {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

html.font-scale-120 .contact-val,
html.font-scale-150 .contact-val,
html.font-scale-200 .contact-val {
  font-size: 0.95rem !important;
  line-height: 1.35 !important;
}

html.font-scale-120 .contact-info-card,
html.font-scale-150 .contact-info-card,
html.font-scale-200 .contact-info-card,
html.font-scale-120 .contact-form-card,
html.font-scale-150 .contact-form-card,
html.font-scale-200 .contact-form-card,
html.font-scale-120 .container,
html.font-scale-150 .container,
html.font-scale-200 .container {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

@media (max-width: 600px) {
  html.font-scale-120 .contact-info-card,
  html.font-scale-150 .contact-info-card,
  html.font-scale-200 .contact-info-card,
  html.font-scale-120 .contact-form-card,
  html.font-scale-150 .contact-form-card,
  html.font-scale-200 .contact-form-card {
    padding: 20px 14px !important;
  }

  html.font-scale-120 .contact-item,
  html.font-scale-150 .contact-item,
  html.font-scale-200 .contact-item {
    gap: 12px !important;
    margin-bottom: 18px !important;
  }

  html.font-scale-120 .contact-icon,
  html.font-scale-150 .contact-icon,
  html.font-scale-200 .contact-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 15px !important;
  }

  html.font-scale-120 .container,
  html.font-scale-150 .container,
  html.font-scale-200 .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* ==========================================================================
   KONTROLA ROZMIARU IKON PRZY SKALOWANIU TEKSTU (WCAG 1.4.4)
   Powiększa się treść tekstowa, a nie ikony graficzne
   ========================================================================== */
html.font-scale-120 i[class*="fa-"],
html.font-scale-150 i[class*="fa-"],
html.font-scale-200 i[class*="fa-"],
html.font-scale-120 span[class*="fa-"],
html.font-scale-150 span[class*="fa-"],
html.font-scale-200 span[class*="fa-"],
html.font-scale-120 svg.svg-inline--fa,
html.font-scale-150 svg.svg-inline--fa,
html.font-scale-200 svg.svg-inline--fa {
  font-size: 16px !important;
  line-height: 1 !important;
  vertical-align: -0.125em;
}

/* Zachowanie zbalansowanych proporcji specyficznych ikon */
html.font-scale-120 .social-btn,
html.font-scale-150 .social-btn,
html.font-scale-200 .social-btn {
  width: 38px !important;
  height: 38px !important;
  font-size: 16px !important;
}

html.font-scale-120 .social-btn i,
html.font-scale-150 .social-btn i,
html.font-scale-200 .social-btn i {
  font-size: 16px !important;
}

@media (max-width: 400px) {
  html.font-scale-120 .social-btn,
  html.font-scale-150 .social-btn,
  html.font-scale-200 .social-btn {
    width: 33px !important;
    height: 33px !important;
  }
}

html.font-scale-120 .header-phone-btn i,
html.font-scale-150 .header-phone-btn i,
html.font-scale-200 .header-phone-btn i {
  font-size: 16px !important;
}

html.font-scale-120 .nav-home-btn,
html.font-scale-150 .nav-home-btn,
html.font-scale-200 .nav-home-btn,
html.font-scale-120 .nav-home-btn i,
html.font-scale-150 .nav-home-btn i,
html.font-scale-200 .nav-home-btn i {
  font-size: 18px !important;
}

html.font-scale-120 .breadcrumb-trail i,
html.font-scale-150 .breadcrumb-trail i,
html.font-scale-200 .breadcrumb-trail i {
  font-size: 12px !important;
}

html.font-scale-120 .gallery-section-heading i,
html.font-scale-150 .gallery-section-heading i,
html.font-scale-200 .gallery-section-heading i {
  font-size: 22px !important;
}

html.font-scale-120 .section-tag i,
html.font-scale-150 .section-tag i,
html.font-scale-200 .section-tag i,
html.font-scale-120 .poster-badge i,
html.font-scale-150 .poster-badge i,
html.font-scale-200 .poster-badge i {
  font-size: 14px !important;
}

html.font-scale-120 .pillar-icon-box i,
html.font-scale-150 .pillar-icon-box i,
html.font-scale-200 .pillar-icon-box i,
html.font-scale-120 .offer-icon i,
html.font-scale-150 .offer-icon i,
html.font-scale-200 .offer-icon i {
  font-size: 32px !important;
}

html.font-scale-120 .modal-close-btn i,
html.font-scale-150 .modal-close-btn i,
html.font-scale-200 .modal-close-btn i,
html.font-scale-120 .lightbox-btn i,
html.font-scale-150 .lightbox-btn i,
html.font-scale-200 .lightbox-btn i {
  font-size: 20px !important;
}

html.font-scale-120 .custom-sort-arrow,
html.font-scale-150 .custom-sort-arrow,
html.font-scale-200 .custom-sort-arrow {
  font-size: 13px !important;
}

/* ==========================================================================
   IZOLACJA PANELU DOSTĘPNOŚCI (WCAG WIDGET) PRZED SKALOWANIEM
   Panel i jego przycisk zachowują stały, optymalny rozmiar i czytelność
   ========================================================================== */
html.font-scale-120 #a11y-trigger,
html.font-scale-150 #a11y-trigger,
html.font-scale-200 #a11y-trigger,
html.font-scale-120 .a11y-widget-trigger,
html.font-scale-150 .a11y-widget-trigger,
html.font-scale-200 .a11y-widget-trigger {
  font-size: 14px !important;
  padding: 10px 18px !important;
  border-radius: 50px !important;
  gap: 8px !important;
  height: auto !important;
  width: auto !important;
  line-height: 1.2 !important;
}

@media (max-width: 768px) {
  html.font-scale-120 #a11y-trigger,
  html.font-scale-150 #a11y-trigger,
  html.font-scale-200 #a11y-trigger,
  html.font-scale-120 .a11y-widget-trigger,
  html.font-scale-150 .a11y-widget-trigger,
  html.font-scale-200 .a11y-widget-trigger {
    padding: 0 !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
  }
}

html.font-scale-120 #a11y-trigger i,
html.font-scale-150 #a11y-trigger i,
html.font-scale-200 #a11y-trigger i,
html.font-scale-120 .a11y-widget-trigger i,
html.font-scale-150 .a11y-widget-trigger i,
html.font-scale-200 .a11y-widget-trigger i {
  font-size: 18px !important;
}

html.font-scale-120 #a11y-modal,
html.font-scale-150 #a11y-modal,
html.font-scale-200 #a11y-modal,
html.font-scale-120 .a11y-modal-backdrop,
html.font-scale-150 .a11y-modal-backdrop,
html.font-scale-200 .a11y-modal-backdrop {
  font-size: 15px !important;
}

html.font-scale-120 .a11y-modal-container,
html.font-scale-150 .a11y-modal-container,
html.font-scale-200 .a11y-modal-container {
  font-size: 15px !important;
  line-height: 1.4 !important;
  max-width: 520px !important;
  width: 100% !important;
  max-height: 90vh !important;
}

html.font-scale-120 .a11y-modal-header,
html.font-scale-150 .a11y-modal-header,
html.font-scale-200 .a11y-modal-header {
  padding: 14px 20px !important;
}

html.font-scale-120 .a11y-header-icon,
html.font-scale-150 .a11y-header-icon,
html.font-scale-200 .a11y-header-icon {
  font-size: 20px !important;
}

html.font-scale-120 .a11y-modal-title,
html.font-scale-150 .a11y-modal-title,
html.font-scale-200 .a11y-modal-title {
  font-size: 18px !important;
  line-height: 1.3 !important;
}

html.font-scale-120 .a11y-close-btn,
html.font-scale-150 .a11y-close-btn,
html.font-scale-200 .a11y-close-btn {
  width: 34px !important;
  height: 34px !important;
  font-size: 16px !important;
}

html.font-scale-120 .a11y-close-btn i,
html.font-scale-150 .a11y-close-btn i,
html.font-scale-200 .a11y-close-btn i {
  font-size: 16px !important;
}

html.font-scale-120 .a11y-modal-body,
html.font-scale-150 .a11y-modal-body,
html.font-scale-200 .a11y-modal-body {
  padding: 16px 20px !important;
  gap: 14px !important;
}

html.font-scale-120 .a11y-section,
html.font-scale-150 .a11y-section,
html.font-scale-200 .a11y-section {
  padding: 12px 14px !important;
  border-radius: 12px !important;
}

html.font-scale-120 .a11y-section-title,
html.font-scale-150 .a11y-section-title,
html.font-scale-200 .a11y-section-title {
  font-size: 13px !important;
  margin-bottom: 10px !important;
  gap: 8px !important;
}

html.font-scale-120 .a11y-section-title i,
html.font-scale-150 .a11y-section-title i,
html.font-scale-200 .a11y-section-title i {
  font-size: 14px !important;
}

html.font-scale-120 .a11y-font-badge,
html.font-scale-150 .a11y-font-badge,
html.font-scale-200 .a11y-font-badge {
  font-size: 12px !important;
  padding: 3px 8px !important;
}

html.font-scale-120 .a11y-contrast-grid,
html.font-scale-150 .a11y-contrast-grid,
html.font-scale-200 .a11y-contrast-grid {
  gap: 8px !important;
}

html.font-scale-120 .a11y-contrast-btn,
html.font-scale-150 .a11y-contrast-btn,
html.font-scale-200 .a11y-contrast-btn {
  padding: 8px 10px !important;
  font-size: 13px !important;
  gap: 8px !important;
  border-radius: 8px !important;
}

html.font-scale-120 .a11y-preview-circle,
html.font-scale-150 .a11y-preview-circle,
html.font-scale-200 .a11y-preview-circle {
  width: 24px !important;
  height: 24px !important;
  font-size: 12px !important;
}

html.font-scale-120 .a11y-font-grid,
html.font-scale-150 .a11y-font-grid,
html.font-scale-200 .a11y-font-grid {
  gap: 5px !important;
}

html.font-scale-120 .a11y-font-btn,
html.font-scale-120 .a11y-font-step-btn,
html.font-scale-120 .a11y-font-size-btn,
html.font-scale-150 .a11y-font-btn,
html.font-scale-150 .a11y-font-step-btn,
html.font-scale-150 .a11y-font-size-btn,
html.font-scale-200 .a11y-font-btn,
html.font-scale-200 .a11y-font-step-btn,
html.font-scale-200 .a11y-font-size-btn {
  padding: 8px 4px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
}

html.font-scale-120 .a11y-font-step-btn i,
html.font-scale-150 .a11y-font-step-btn i,
html.font-scale-200 .a11y-font-step-btn i {
  font-size: 12px !important;
}

html.font-scale-120 .a11y-toggle-item,
html.font-scale-150 .a11y-toggle-item,
html.font-scale-200 .a11y-toggle-item {
  gap: 12px !important;
}

html.font-scale-120 .a11y-toggle-label strong,
html.font-scale-150 .a11y-toggle-label strong,
html.font-scale-200 .a11y-toggle-label strong {
  font-size: 14px !important;
}

html.font-scale-120 .a11y-toggle-label small,
html.font-scale-150 .a11y-toggle-label small,
html.font-scale-200 .a11y-toggle-label small {
  font-size: 12px !important;
}

html.font-scale-120 .a11y-switch-slider,
html.font-scale-150 .a11y-switch-slider,
html.font-scale-200 .a11y-switch-slider {
  width: 44px !important;
  height: 24px !important;
}

html.font-scale-120 .a11y-switch-slider::after,
html.font-scale-150 .a11y-switch-slider::after,
html.font-scale-200 .a11y-switch-slider::after {
  width: 18px !important;
  height: 18px !important;
}

html.font-scale-120 .a11y-checkbox:checked + .a11y-switch-slider::after,
html.font-scale-150 .a11y-checkbox:checked + .a11y-switch-slider::after,
html.font-scale-200 .a11y-checkbox:checked + .a11y-switch-slider::after {
  transform: translateX(20px) !important;
}

html.font-scale-120 .a11y-modal-footer,
html.font-scale-150 .a11y-modal-footer,
html.font-scale-200 .a11y-modal-footer {
  gap: 10px !important;
  padding-top: 4px !important;
}

html.font-scale-120 .a11y-reset-btn,
html.font-scale-120 .a11y-decl-link,
html.font-scale-150 .a11y-reset-btn,
html.font-scale-150 .a11y-decl-link,
html.font-scale-200 .a11y-reset-btn,
html.font-scale-200 .a11y-decl-link {
  padding: 8px 14px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
}

html.font-scale-120 .a11y-reset-btn i,
html.font-scale-120 .a11y-decl-link i,
html.font-scale-150 .a11y-reset-btn i,
html.font-scale-150 .a11y-decl-link i,
html.font-scale-200 .a11y-reset-btn i,
html.font-scale-200 .a11y-decl-link i {
  font-size: 14px !important;
}

/* ==========================================================================
   DOPASOWANIE UKŁADU NAGŁÓWKA, E-DZIENNIKA I NAWIGACJI PODSTRON (WCAG 1.4.10)
   Zapobiega ucinaniu napisów i poziomemu przewijaniu strony
   ========================================================================== */
html.font-scale-120 .header-top,
html.font-scale-150 .header-top,
html.font-scale-200 .header-top {
  flex-wrap: wrap !important;
  gap: 16px !important;
  padding: 12px 0 !important;
}

html.font-scale-120 .brand-titles,
html.font-scale-150 .brand-titles,
html.font-scale-200 .brand-titles {
  max-width: 100% !important;
}

html.font-scale-120 .header-actions,
html.font-scale-150 .header-actions,
html.font-scale-200 .header-actions {
  flex-wrap: wrap !important;
  gap: 10px !important;
}

/* Pełne dopasowanie przycisku E-DZIENNIK do powiększonego tekstu */
html.font-scale-120 .vulcan-btn,
html.font-scale-150 .vulcan-btn,
html.font-scale-200 .vulcan-btn {
  min-width: max-content !important;
  width: auto !important;
  height: auto !important;
  min-height: 40px !important;
  padding: 8px 16px !important;
  overflow: hidden !important;
}

html.font-scale-120 .vulcan-label,
html.font-scale-150 .vulcan-label,
html.font-scale-200 .vulcan-label {
  font-size: 0.82rem !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

html.font-scale-120 .header-phone-btn,
html.font-scale-150 .header-phone-btn,
html.font-scale-200 .header-phone-btn {
  height: auto !important;
  min-height: 40px !important;
  padding: 8px 16px !important;
  white-space: nowrap !important;
  font-size: 0.82rem !important;
}

/* Elastyczne zawijanie paska nawigacji podstron (zapobiega obcinaniu menu) */
@media (min-width: 861px) {
  html.font-scale-120 .navbar-container,
  html.font-scale-150 .navbar-container,
  html.font-scale-200 .navbar-container {
    height: auto !important;
    padding: 4px 0 !important;
    max-width: 100% !important;
  }

  html.font-scale-120 .nav-menu,
  html.font-scale-150 .nav-menu,
  html.font-scale-200 .nav-menu {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 4px 8px !important;
    width: 100% !important;
    height: auto !important;
    position: static !important;
  }

  html.font-scale-120 .nav-item,
  html.font-scale-150 .nav-item,
  html.font-scale-200 .nav-item {
    flex-shrink: 0 !important;
  }

  html.font-scale-120 .nav-link,
  html.font-scale-150 .nav-link,
  html.font-scale-200 .nav-link {
    padding: 10px 10px !important;
    white-space: nowrap !important;
    border-radius: 0 !important;
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--text-primary) !important;
  }

  html.font-scale-120 .nav-link:hover,
  html.font-scale-150 .nav-link:hover,
  html.font-scale-200 .nav-link:hover,
  html.font-scale-120 .nav-item.active .nav-link,
  html.font-scale-150 .nav-item.active .nav-link,
  html.font-scale-200 .nav-item.active .nav-link {
    background: transparent !important;
    color: var(--color-primary) !important;
    border: none !important;
  }
}

@media (max-width: 860px) {
  html.font-scale-120 .nav-menu,
  html.font-scale-150 .nav-menu,
  html.font-scale-200 .nav-menu {
    width: 320px !important;
    max-width: 90vw !important;
  }
  html.font-scale-120 .header-phone-btn,
  html.font-scale-150 .header-phone-btn,
  html.font-scale-200 .header-phone-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }
  html.font-scale-120 .header-phone-btn span,
  html.font-scale-150 .header-phone-btn span,
  html.font-scale-200 .header-phone-btn span {
    display: none !important;
  }
}

/* Skalowanie banera podstron i sekcji galerii */
html.font-scale-120 .subpage-banner,
html.font-scale-150 .subpage-banner,
html.font-scale-200 .subpage-banner {
  padding: 32px 0 26px !important;
  overflow: visible !important;
}

html.font-scale-120 .subpage-title,
html.font-scale-150 .subpage-title,
html.font-scale-200 .subpage-title {
  font-size: 1.55rem !important;
  word-break: break-word !important;
  line-height: 1.25 !important;
}

html.font-scale-120 .subpage-desc,
html.font-scale-150 .subpage-desc,
html.font-scale-200 .subpage-desc {
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  max-width: 100% !important;
}

html.font-scale-120 .gallery-top-bar,
html.font-scale-150 .gallery-top-bar,
html.font-scale-200 .gallery-top-bar {
  flex-wrap: wrap !important;
  gap: 14px !important;
}

html.font-scale-150 .stat-number,
html.font-scale-200 .stat-number {
  height: auto !important;
  min-height: auto !important;
}

html.font-scale-150 .hero-slider-section,
html.font-scale-200 .hero-slider-section {
  min-height: 480px !important;
  max-height: none !important;
}

html.font-scale-150 .hero-slider-wrapper,
html.font-scale-200 .hero-slider-wrapper {
  height: 460px !important;
}

html.font-scale-150 .hero-content,
html.font-scale-200 .hero-content {
  padding-top: 30px;
  padding-bottom: 30px;
}

html.font-scale-150 .btn,
html.font-scale-200 .btn {
  white-space: normal;
  text-align: center;
  height: auto;
  min-height: 48px;
}

/* 4. Zwiększone odstępy między wierszami i literami (dla osób z dysleksją - WCAG 1.4.12) */
html.dyslexia-mode body,
html.dyslexia-mode p,
html.dyslexia-mode h1,
html.dyslexia-mode h2,
html.dyslexia-mode h3,
html.dyslexia-mode h4,
html.dyslexia-mode h5,
html.dyslexia-mode h6,
html.dyslexia-mode a,
html.dyslexia-mode span,
html.dyslexia-mode li,
html.dyslexia-mode label,
html.dyslexia-mode button,
html.dyslexia-mode input,
html.dyslexia-mode textarea,
html.dyslexia-mode td,
html.dyslexia-mode th {
  font-family: Arial, "Helvetica Neue", Helvetica, Verdana, sans-serif !important;
  letter-spacing: 0.12em !important;
  word-spacing: 0.18em !important;
  line-height: 1.95 !important;
}

/* 5. Podkreślenie wszystkich linków dla lepszej widoczności */
html.underline-links a:not(.btn):not(.social-btn):not(.a11y-widget-trigger):not(.a11y-btn) {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* 6. Zatrzymanie animacji i efektów ruchowych (WCAG 2.2.2 / 2.3.1) */
html.stop-motion *,
html.stop-motion *::before,
html.stop-motion *::after {
  animation-duration: 0.0001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.0001s !important;
  scroll-behavior: auto !important;
}


/* --------------------------------------------------------------------------
   GÓRNY NAGŁÓWEK (HEADER)
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--bg-header);
  position: relative;
  z-index: 100;
  border-bottom: 2px solid var(--border-color);
}

.header-top {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  flex: 1;
}

.brand-logo-img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.06) rotate(2deg);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 900;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.25;
}

.brand-subname {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-motto-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  background: var(--bg-page);
  color: var(--color-primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 800;
  border: 1px solid var(--color-accent);
}

.brand-affil {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.1rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.social-btn.facebook { background: #1877F2; }
.social-btn.instagram { background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%); }
.social-btn.youtube { background: #FF0000; }

.social-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ---- Przycisk Dziennika Elektronicznego (E-DZIENNIK -> VULCAN na hover) ---- */
.vulcan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  height: 38px;
  min-width: max-content;
  width: auto;
  padding: 0 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color);
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(30, 43, 130, 0.05);
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  text-decoration: none;
  box-sizing: border-box;
}

/* Domyślnie: napis E-DZIENNIK w normalnym przepływie (auto-dopasowanie szerokości przycisku) */
.vulcan-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo VULCAN ukryte pod spodem, wyjeżdża po najechaniu */
.vulcan-logo {
  height: 24px;
  width: auto;
  max-width: 82px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 12px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efekt przejścia po najechaniu (hover / focus) */
.vulcan-btn:hover,
.vulcan-btn:focus {
  border-color: #E11D48;
  background: #FFF1F2;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.vulcan-btn:hover .vulcan-label,
.vulcan-btn:focus .vulcan-label {
  opacity: 0;
  transform: translateY(-12px);
}

.vulcan-btn:hover .vulcan-logo,
.vulcan-btn:focus .vulcan-logo {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  font-size: 1.6rem;
  color: var(--color-primary);
  padding: 8px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-nav-close-btn {
  display: none;
}

.header-phone-btn,
.nav-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-primary);
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(30, 43, 130, 0.18);
  text-decoration: none;
  flex-shrink: 0;
}

.header-phone-btn:hover,
.nav-phone-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(248, 200, 48, 0.45);
  transform: translateY(-2px);
}

.header-phone-btn i,
.nav-phone-btn i {
  color: var(--color-accent);
}

.header-phone-btn:hover i,
.nav-phone-btn:hover i {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   PASEK NAWIGACJI (MENU STRONY)
   -------------------------------------------------------------------------- */
.navbar-section {
  border-top: 1px solid var(--border-color);
  background: var(--bg-header);
  position: relative;
}

.navbar-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  flex-wrap: nowrap;
  width: 100%;
}

.nav-home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  color: var(--color-primary);
  font-size: 1.2rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-home-btn:hover {
  color: var(--color-accent-dark);
  transform: scale(1.15);
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 16px 7px;
  font-size: 0.80rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.25px;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 75%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 3px 3px 0 0;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-item.active .nav-link {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
  transform: translateX(-50%) scaleX(1);
}

/* --------------------------------------------------------------------------
   GŁÓWNY BANER (HERO SLIDER)
   -------------------------------------------------------------------------- */
.hero-slider-section {
  position: relative;
  background: var(--hero-bg-primary);
  overflow: hidden;
  min-height: 480px;
  max-height: 560px;
  display: flex;
  align-items: center;
  contain: layout paint;
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.65s step-end;
  display: flex;
  align-items: center;
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-wave-cream {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
  height: 100%;
  fill: var(--bg-page);
  opacity: 0.98;
}

.hero-wave-bottom {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 60%;
  height: 55%;
  fill: var(--hero-wave-accent);
}

.hero-doodle {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

.hero-doodle-racket {
  top: 25px;
  right: 18%;
  width: 160px;
  height: 160px;
  color: #FFFFFF;
  opacity: 0.45;
  animation: floatRacket 6s ease-in-out infinite alternate;
}

.hero-doodle-shuttlecock {
  top: 40px;
  left: 40px;
  width: 60px;
  height: 60px;
  animation: floatBirdie 5s ease-in-out infinite alternate;
}

@keyframes floatRacket {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-14px) rotate(8deg); }
}

@keyframes floatBirdie {
  0% { transform: translateY(0px) rotate(-5deg); }
  100% { transform: translateY(16px) rotate(18deg); }
}

.hero-slide-content {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.hero-image-box {
  width: 64%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.hero-image-box picture {
  display: contents;
}

.hero-photo {
  max-height: 440px;
  width: 100%;
  max-width: 640px;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  border: none;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-slide.active .hero-photo {
  transform: translateZ(0);
}

.hero-text-box {
  width: 36%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-left: -45px;
  z-index: 5;
}

.hero-sticker-badge {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--hero-badge-bg);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22), inset 0 0 0 6px #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  position: relative;
  transform: rotate(-3deg) translateZ(0);
  border: 4px dashed rgba(255, 255, 255, 0.7);
  backface-visibility: hidden;
}

.hero-slide .hero-sticker-badge {
  animation: none;
}

.hero-slide.active .hero-sticker-badge {
  animation: pulseSticker 4s ease-in-out infinite alternate;
}

@keyframes pulseSticker {
  0% { transform: rotate(-3deg) scale(1); }
  100% { transform: rotate(1deg) scale(1.04); }
}

.badge-word {
  display: block;
  text-transform: lowercase;
  line-height: 1.1;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.badge-word-1,
.badge-word-2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--hero-badge-text);
  letter-spacing: -0.5px;
}

.badge-word-3 {
  font-family: 'Caveat', 'Dancing Script', cursive;
  font-size: 3rem;
  font-weight: 700;
  color: var(--hero-badge-script);
  margin-top: -4px;
}

/* Przyciski nawigacyjne */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: all 0.25s ease;
  z-index: 10;
  cursor: pointer;
  border: 2px solid #FFFFFF;
}

.slider-arrow:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

/* Kropki slajdów */
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.dot.active {
  background: var(--color-accent);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(0,0,0,0.25);
}

/* --------------------------------------------------------------------------
   BANER PODSTRON
   -------------------------------------------------------------------------- */
.subpage-banner {
  background: linear-gradient(135deg, #2596be 0%, #166d8b 100%);
  color: #FFFFFF;
  padding: 50px 0 42px;
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--color-accent);
}

.subpage-banner-content {
  position: relative;
  z-index: 2;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: 12px;
  font-weight: 700;
  flex-wrap: wrap;
}

.breadcrumb-trail a {
  color: #FFFFFF;
  opacity: 0.85;
}

.breadcrumb-trail a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.subpage-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 10px;
}

.subpage-desc {
  font-size: 1rem;
  opacity: 0.92;
  max-width: 720px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   SEKCJA: 4 ATUTY (QUICK PILLARS)
   -------------------------------------------------------------------------- */
.pillars-section {
  position: relative;
  z-index: 12;
  margin-top: -36px;
  margin-bottom: 50px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  border-bottom: 4px solid var(--color-primary);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--color-accent);
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-warm);
  color: var(--color-primary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.pillar-card:hover .pillar-icon-box {
  background: var(--color-primary);
  color: var(--color-accent);
  transform: rotate(6deg) scale(1.05);
}

.pillar-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.pillar-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   SEKCJE WSPÓLNE I PRZYCISKI
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 70px 0;
}

.bg-warm {
  background-color: var(--bg-warm);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-primary);
  background: var(--bg-header);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  border: 1.5px solid var(--color-accent);
}

.section-header {
  margin-bottom: 32px;
  text-align: left;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 820px;
  margin: 0;
}

.motto-quote {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-primary);
  border-left: 4px solid var(--color-accent);
  padding-left: 18px;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #FFFFFF;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(30, 43, 130, 0.25);
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(248, 200, 48, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.92rem;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   DOKUMENTY I REGULAMINY
   -------------------------------------------------------------------------- */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.doc-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.doc-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
}

.doc-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--bg-warm);
  color: var(--color-primary);
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.doc-icon {
  font-size: 2.2rem;
  color: #DC2626;
  margin-bottom: 14px;
}

.doc-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.doc-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-primary);
  transition: var(--transition);
}

.doc-btn:hover {
  color: var(--color-accent-dark);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   AKTUALNOŚCI I KARTY (UKŁAD PINTEREST / MASONRY)
   -------------------------------------------------------------------------- */
.news-grid {
  position: relative;
  width: 100%;
  display: block;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease, top 0.25s ease, left 0.25s ease;
  display: flex;
  flex-direction: column;
  height: auto;
  box-sizing: border-box;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   TABLICA OGŁOSZEŃ I PLAKATY (POSTERS)
   -------------------------------------------------------------------------- */
.posters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: stretch;
}

.poster-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .poster-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
  }
}

.poster-img-wrap {
  position: relative;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  min-height: 400px;
  max-height: 460px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.poster-img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease;
  image-rendering: -webkit-optimize-contrast;
}

.poster-card:hover .poster-img {
  transform: scale(1.03);
}

.poster-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-primary);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.poster-badge.eco {
  background: #0D9488;
}

.poster-zoom-cue {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(18, 26, 88, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.poster-card:hover .poster-zoom-cue {
  background: var(--color-primary);
  color: var(--color-accent);
}

.poster-body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.poster-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.poster-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.poster-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Pojedynczy wyróżniony plakat (np. na podstronie Oferta, Sukcesy) */
.poster-showcase-wrapper {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.poster-card-featured {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.poster-card-featured .poster-img-wrap {
  min-height: 420px;
  max-height: 580px;
  padding: 24px 20px;
}

.poster-card-featured .poster-img {
  max-height: 540px;
}

@media (min-width: 920px) {
  .poster-card-featured {
    flex-direction: row;
    align-items: stretch;
  }

  .poster-card-featured .poster-img-wrap {
    flex: 0 0 460px;
    max-width: 460px;
    min-height: 560px;
    max-height: 620px;
    border-bottom: none;
    border-right: 1px solid var(--border-color);
  }

  .poster-card-featured .poster-img {
    max-height: 570px;
  }

  .poster-card-featured .poster-body {
    padding: 38px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
  }

  .poster-card-featured .poster-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .poster-card-featured .poster-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 22px;
  }
}

@media (max-width: 768px) {
  .poster-card-featured .poster-img-wrap {
    min-height: 280px;
    max-height: 440px;
    padding: 14px;
  }
  .poster-card-featured .poster-img {
    max-height: 410px;
  }
}

/* Lista laureatów konkursów przedmiotowych */
.laureates-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.laureates-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.90rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.laureates-list li i {
  color: var(--color-primary);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.laureates-list li strong {
  color: var(--color-primary-dark);
}

.badge-tag {
  display: inline-block;
  background: rgba(248, 200, 48, 0.25);
  color: #854D0E;
  border: 1px solid rgba(248, 200, 48, 0.6);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 4px;
}

/* Modal powiększenia plakatu */
.poster-modal-window {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.poster-modal-window .modal-close-btn {
  top: -46px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.poster-modal-window .modal-close-btn:hover {
  background: #E53E3E;
  color: #FFFFFF;
  border-color: #E53E3E;
}

.poster-modal-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
  background: #FFFFFF;
  image-rendering: -webkit-optimize-contrast;
}

.poster-modal-caption {
  margin-top: 12px;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 860px) {
  .posters-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .poster-img-wrap {
    min-height: 280px;
    max-height: 380px;
    padding: 12px;
  }
  .poster-img {
    max-height: 340px;
  }
}

.news-card-img-wrap {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img {
  transform: scale(1.08);
}

.news-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--color-primary);
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.news-card-body {
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  flex-grow: 0;
  justify-content: flex-start;
}

.news-date {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.news-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: 14px;
  transition: color 0.25s ease;
}

.news-card:hover .news-card-title {
  color: var(--color-accent-dark);
}

.news-excerpt {
  font-size: 1rem;
  color: #334155;
  line-height: 1.72;
  margin-bottom: 18px;
  flex-grow: 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  white-space: pre-line;
}

.news-excerpt p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  margin-bottom: 12px;
}

.news-card-footer {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

.btn-more-gallery {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-primary);
  background: var(--bg-warm);
  border: 1px solid var(--border-color);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  text-decoration: none;
  width: 100%;
  justify-content: center;
}

.btn-more-gallery:hover {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-primary);
  transform: translateX(2px);
}

.btn-more-gallery i.fa-arrow-right {
  font-size: 0.78rem;
  transition: transform 0.2s ease;
}

.btn-more-gallery:hover i.fa-arrow-right {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   PAGINACJA AKTUALNOŚCI (STYL PINTEREST / NOWOCZESNY)
   -------------------------------------------------------------------------- */
.news-pagination-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  margin-bottom: 24px;
}

.news-pagination-info {
  font-size: 0.92rem;
  color: #64748B;
  font-weight: 500;
  letter-spacing: 0.02em;
  user-select: none;
}

.news-pagination-info strong {
  color: #1E293B;
  font-weight: 700;
}

.news-top-page-info {
  font-size: 0.95rem;
  color: #64748B;
  font-weight: 500;
  letter-spacing: 0.02em;
  user-select: none;
  padding-bottom: 4px;
}

.news-top-page-info strong {
  color: #1E293B;
  font-weight: 700;
}

.custom-pagination {
  display: inline-flex;
  align-items: stretch;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1E293B;
  background: #FFFFFF;
  border: none;
  border-right: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  text-decoration: none;
}

.pagination-btn:last-child {
  border-right: none;
}

.pagination-btn:hover:not(:disabled):not(.active) {
  background: #F1F5F9;
  color: #0052CC;
}

.pagination-btn.active {
  background: #0052CC; /* wyrazisty niebieski jak na załączonym wzorze */
  color: #FFFFFF;
  font-weight: 700;
  cursor: default;
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #FAFAFA;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 44px;
  padding: 0 8px;
  color: #94A3B8;
  font-size: 0.95rem;
  font-weight: 600;
  border-right: 1px solid #E2E8F0;
  background: #FFFFFF;
  user-select: none;
}

@media (max-width: 640px) {
  .pagination-btn {
    min-width: 38px;
    height: 40px;
    padding: 0 10px;
    font-size: 0.88rem;
  }
  .pagination-ellipsis {
    min-width: 30px;
    height: 40px;
    padding: 0 4px;
  }
}

/* --------------------------------------------------------------------------
   OFERTA EDUKACYJNA
   -------------------------------------------------------------------------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.offer-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.offer-card:hover::before {
  transform: scaleX(1);
}

.offer-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--bg-warm);
  border: 1px solid var(--border-color);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.offer-card:hover .offer-icon {
  background: var(--color-primary);
  color: var(--color-accent);
  transform: rotate(6deg) scale(1.05);
}

.offer-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.offer-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.offer-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed var(--border-color);
  padding-top: 16px;
}

.offer-feature {
  font-size: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.offer-feature i {
  color: #10B981;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   LICZNIKI STATYSTYK
   -------------------------------------------------------------------------- */
.stats-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0F1640 100%);
  color: #FFFFFF;
  padding: 65px 0;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  position: relative;
  z-index: 2;
  align-items: start;
}

.stat-item {
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.stat-number {
  font-size: clamp(2.3rem, 3.8vw, 3.2rem);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1.1;
  height: clamp(52px, 5.5vw, 68px);
  min-height: clamp(52px, 5.5vw, 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #E2E8F0;
  letter-spacing: 0.3px;
  line-height: 1.45;
  max-width: 250px;
  margin: 0 auto;
}

/* Animacja i odznaka TOP */
.stat-badge-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-badge-top i {
  color: var(--color-accent);
  font-size: 0.88em;
  display: inline-block;
  transition: transform 0.5s ease;
}

.stat-badge-top.animated {
  animation: badgePopIn 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.stat-badge-top.animated i {
  animation: awardGleam 2.2s ease-in-out infinite alternate 1.1s;
}

@keyframes badgePopIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }
  60% {
    opacity: 1;
    transform: scale(1.15) translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes awardGleam {
  0% {
    transform: rotate(-6deg) scale(1);
    filter: drop-shadow(0 0 2px rgba(248, 200, 48, 0.3));
  }
  50% {
    transform: rotate(6deg) scale(1.12);
    filter: drop-shadow(0 0 10px rgba(248, 200, 48, 0.8));
  }
  100% {
    transform: rotate(-6deg) scale(1);
    filter: drop-shadow(0 0 2px rgba(248, 200, 48, 0.3));
  }
}

/* --------------------------------------------------------------------------
   STREFA DLA RODZICÓW
   -------------------------------------------------------------------------- */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.zone-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.zone-tile:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
}

.zone-tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 1px solid var(--border-color);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  transition: var(--transition);
}

.zone-tile:hover .zone-tile-icon {
  background: var(--color-primary);
  color: var(--color-accent);
}

.zone-tile-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   BANER REKRUTACJA (CTA)
   -------------------------------------------------------------------------- */
.cta-banner-section {
  padding: 70px 0;
  position: relative;
}

.cta-banner-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 55px) clamp(25px, 5vw, 60px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 15px 35px rgba(30, 43, 130, 0.35);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(248, 200, 48, 0.35);
}

.cta-banner-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
}

.cta-banner-text p {
  font-size: 1.02rem;
  opacity: 0.95;
  max-width: 620px;
}

.cta-banner-actions,
.cta-btn-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-white {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 900;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  text-decoration: none;
}

.btn-white:hover {
  background: #FFFFFF;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 800;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline-white:hover {
  background: #FFFFFF;
  color: var(--color-primary);
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

/* --------------------------------------------------------------------------
   FORMULARZ KONTAKTOWY, TABELE I STOPKA
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 45px;
}

.contact-info-card {
  background: var(--bg-card);
  padding: 35px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-warm);
  border: 1px solid var(--border-color);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.contact-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
}

.contact-form-card {
  background: var(--bg-card);
  padding: 35px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  font-family: inherit;
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 43, 130, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B365D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px;
  cursor: pointer;
  min-height: 48px;
  line-height: 1.4;
  color: var(--text-primary);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(248, 200, 48, 0.2);
}

select.form-control::-ms-expand {
  display: none;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* STOPKA */
.site-footer {
  background: var(--bg-footer);
  color: #A0AEC0;
  padding-top: 60px;
  padding-bottom: 25px;
  border-top: 4px solid var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h4 {
  font-size: 1.15rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   OKNO MODALNE
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 22, 66, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-window {
  background: #FFFFFF;
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-window {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.4rem;
  color: var(--text-light);
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #DC2626;
}

/* --------------------------------------------------------------------------
   RESPONSYWNOŚĆ (MEDIA QUERIES) - ZAPEWNIENIE PERFEKCYJNEGO SKALOWANIA
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .nav-link {
    padding: 14px 6px;
    font-size: 0.76rem;
    letter-spacing: 0.2px;
  }
  .brand-logo-img {
    width: 76px;
    height: 76px;
  }
}

@media (max-width: 1024px) {
  .nav-link {
    padding: 14px 4px;
    font-size: 0.71rem;
    letter-spacing: 0;
  }
  .nav-home-btn {
    padding: 14px 8px;
    font-size: 1.1rem;
  }
}

@media (max-width: 1100px) {
  .pillars-grid,
  .docs-grid,
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .zone-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .navbar-container {
    justify-content: space-between;
  }
  .nav-phone-btn {
    padding: 7px 14px;
    font-size: 0.82rem;
  }
  .hero-text-box {
    padding-right: 20px;
  }
  .hero-sticker-badge {
    width: 220px;
    height: 220px;
  }
  .badge-word-1, .badge-word-2 {
    font-size: 1.9rem;
  }
  .badge-word-3 {
    font-size: 2.6rem;
  }
}

@media (max-width: 860px) {
  .header-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .brand-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .brand-subname {
    justify-content: center;
  }
  .header-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
  }
  .social-links {
    gap: 6px;
    flex-shrink: 0;
  }
  .social-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }
  .header-phone-btn span {
    display: none !important;
  }
  .header-phone-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-shrink: 0;
  }
  .header-phone-btn i {
    font-size: 1.05rem;
    color: #FFFFFF;
  }
  .vulcan-btn {
    height: 38px;
    min-width: 96px;
    padding: 0 8px;
    flex-shrink: 0;
  }
  .vulcan-label {
    font-size: 0.70rem;
    letter-spacing: 0.6px;
  }
  .vulcan-logo {
    height: 22px;
    max-width: 76px;
    width: auto;
    object-fit: contain;
  }
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 255px;
    max-width: 74vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    background: var(--bg-header);
    border-left: 3px solid var(--color-accent);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: max(16px, env(safe-area-inset-top, 16px)) 16px max(70px, env(safe-area-inset-bottom, 70px));
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.22);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) transparent;
  }
  .nav-menu::-webkit-scrollbar {
    width: 4px;
  }
  .nav-menu::-webkit-scrollbar-track {
    background: transparent;
  }
  .nav-menu::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
  }
  .nav-menu.open {
    transform: translateX(0);
  }
  .nav-home-btn {
    display: none;
  }
  .mobile-nav-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    position: sticky;
    top: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card, #FFFFFF);
    color: var(--color-primary, #1B365D);
    border: 2px solid var(--color-accent, #F8C830);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1010;
    margin-bottom: 6px;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav-close-btn:active {
    background: #E53E3E;
    color: #FFFFFF;
    border-color: #E53E3E;
    transform: scale(0.92);
  }
  @media (hover: hover) and (pointer: fine) {
    .mobile-nav-close-btn:hover {
      background: #E53E3E;
      color: #FFFFFF;
      border-color: #E53E3E;
      transform: scale(1.08) rotate(90deg);
    }
  }
  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
  }
  .nav-item:last-of-type {
    border-bottom: none;
    margin-bottom: 24px;
  }
  .nav-link {
    display: flex;
    align-items: center;
    padding: clamp(9px, 1.25vh, 12px) 0;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: var(--text-primary);
    width: 100%;
    line-height: 1.35;
    -webkit-tap-highlight-color: rgba(248, 200, 48, 0.2);
  }
  .nav-phone-btn {
    display: none;
  }

  /* Mobilne pola formularzy i select - min. 16px zapobiega auto-zoomowi i zacinaniu się na iOS/Safari */
  .form-control,
  select.form-control,
  input.form-control,
  textarea.form-control {
    font-size: 16px !important;
    min-height: 48px;
  }

  /* Kompaktowe dopasowanie paska nawigacji na niskich ekranach i w poziomie (landscape) */
  @media (max-height: 650px) {
    .nav-menu {
      padding-top: max(10px, env(safe-area-inset-top, 10px));
      padding-bottom: max(60px, env(safe-area-inset-bottom, 60px));
    }
    .mobile-nav-close-btn {
      width: 36px;
      height: 36px;
      font-size: 1.1rem;
      margin-bottom: 4px;
    }
    .nav-link {
      padding: 6px 0;
      font-size: 0.82rem;
    }
  }
  
  /* Hero Slider na tabletach i smartfonach - zachowanie płynnego slajdera jak na komputerze */
  .hero-slider-section {
    min-height: 380px;
    max-height: 450px;
    padding: 20px 0;
  }
  .hero-slider-wrapper {
    height: 380px;
    position: relative;
  }
  .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
  }
  .hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
  }
  .hero-slide-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 16px;
  }
  .hero-image-box {
    width: 64%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
  }
  .hero-photo {
    max-height: 340px;
    height: 320px;
    width: 100%;
    object-fit: cover;
    border-radius: 18px;
    border: none;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  }
  .hero-text-box {
    width: 36%;
    padding: 0;
    margin-left: -35px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-sticker-badge {
    width: 200px;
    height: 200px;
  }
  .slider-arrow {
    display: flex;
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
  .slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
  }
  .contact-grid,
  .cta-banner-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .pillars-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .news-card-img-wrap {
    height: auto;
  }
  .news-card-body {
    padding: 20px 18px;
  }
  .news-card-title {
    font-size: 1.18rem;
  }
  .offer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }
  .offer-card {
    padding: 20px 15px;
    border-radius: var(--radius-md);
  }
  .offer-icon {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
    border-radius: 12px;
    margin-bottom: 12px;
  }
  .offer-card-title {
    font-size: 0.98rem;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  .offer-card-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }
  .offer-features {
    gap: 6px;
    padding-top: 10px;
  }
  .offer-feature {
    font-size: 0.75rem;
    line-height: 1.35;
    gap: 6px;
  }
  .offer-feature i {
    font-size: 0.68rem;
    margin-top: 2px;
    flex-shrink: 0;
  }
  .docs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .doc-card {
    padding: 16px 14px;
    border-radius: 12px;
  }
  .doc-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    margin-bottom: 8px;
  }
  .doc-icon {
    font-size: 1.65rem;
    margin-bottom: 8px;
  }
  .doc-title {
    font-size: 0.88rem;
    line-height: 1.25;
    margin-bottom: 6px;
  }
  .doc-desc {
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }
  .doc-btn {
    font-size: 0.76rem;
    gap: 4px;
  }
  .zone-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-slider-section {
    min-height: 290px;
    max-height: 340px;
    padding: 12px 0 20px;
  }
  .hero-slider-wrapper {
    height: 270px;
  }
  .hero-slide-content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 10px;
  }
  .hero-image-box {
    width: 66%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
  }
  .hero-photo {
    max-height: 220px;
    height: 210px;
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
    border: none;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  }
  .hero-text-box {
    width: 34%;
    padding: 0;
    margin-left: -30px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-sticker-badge {
    width: 120px;
    height: 120px;
    padding: 8px;
    border: 3px dashed rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 22px rgba(0,0,0,0.22), inset 0 0 0 4px #FFFFFF;
  }
  .badge-word-1, .badge-word-2 {
    font-size: 1.05rem;
  }
  .badge-word-3 {
    font-size: 1.55rem;
    margin-top: -2px;
  }
  .slider-arrow {
    display: none !important;
  }
  .slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    gap: 6px;
  }
  .dot {
    width: 8px;
    height: 8px;
  }
  .dot.active {
    width: 20px;
    border-radius: 4px;
  }
  .contact-info-card,
  .contact-form-card {
    padding: 24px 18px;
  }
  .modal-window {
    padding: 25px 20px;
  }
}

@media (max-width: 420px) {
  .hero-slider-section {
    min-height: 250px;
    max-height: 290px;
    padding: 8px 0 16px;
  }
  .hero-slider-wrapper {
    height: 235px;
  }
  .hero-image-box {
    width: 68%;
  }
  .hero-photo {
    max-height: 190px;
    height: 185px;
    border-radius: 12px;
  }
  .hero-text-box {
    width: 32%;
    margin-left: -26px;
  }
  .hero-sticker-badge {
    width: 104px;
    height: 104px;
    padding: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2), inset 0 0 0 3px #FFFFFF;
  }
  .badge-word-1, .badge-word-2 {
    font-size: 0.92rem;
  }
  .badge-word-3 {
    font-size: 1.35rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .zone-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   DODATKOWE KLASY RESPONSIVE DLA PODSTRON I ZAJAWEK (MOBILE, TABLET, DESKTOP)
   ========================================================================== */
.recruitment-grid,
.two-col-grid,
.split-grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: flex-start;
}

.two-col-grid.equal,
.split-grid-2.equal {
  grid-template-columns: 1fr 1fr;
}

.banner-cta-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Sekcja O Szkole (Zajawka na stronie głównej) */
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.about-preview-image-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.about-preview-image-box picture {
  display: contents;
}

.about-preview-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}

.about-badge-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 110px;
  height: 110px;
  background: #FFFFFF;
  border-radius: 50%;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-badge-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-preview-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-preview-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-gray-dark);
  margin-bottom: 25px;
}

.about-director-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #FFFFFF;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
  margin-bottom: 25px;
  width: 100%;
}

.about-director-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FEF3C7;
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.about-director-name {
  margin: 0 0 4px;
  color: var(--color-primary);
  font-size: 1.05rem;
  font-weight: 700;
}

.about-director-affil {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-gray);
  line-height: 1.4;
}

.about-preview-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Klasy wspólne dla galerii i formularza */
.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 900px) {
  .recruitment-grid,
  .two-col-grid,
  .split-grid-2,
  .split-grid-2.equal {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .banner-cta-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }
  .about-preview-grid {
    grid-template-columns: 1fr !important;
    gap: 35px !important;
  }
  .about-preview-img {
    height: 280px !important;
  }
  .about-badge-float {
    width: 90px !important;
    height: 90px !important;
    bottom: -15px !important;
    right: 15px !important;
  }
  .about-preview-btns {
    flex-direction: column !important;
    width: 100% !important;
  }
  .about-preview-btns a {
    width: 100% !important;
    justify-content: center !important;
  }
  .gallery-photo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

@media (max-width: 520px) {
  .gallery-photo-grid {
    grid-template-columns: 1fr !important;
  }
  .about-preview-img {
    height: 230px !important;
  }
  .about-badge-float {
    width: 75px !important;
    height: 75px !important;
    bottom: -12px !important;
    right: 12px !important;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 0.95rem !important;
  }
  .subpage-title {
    font-size: 1.7rem !important;
  }
  .section-title {
    font-size: 1.6rem !important;
  }
  .hero-slide-heading {
    font-size: 1.8rem !important;
  }
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .offer-grid {
    gap: 10px !important;
  }
  .offer-card {
    padding: 16px 12px !important;
  }
  .offer-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.15rem !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
  }
  .offer-card-title {
    font-size: 0.88rem !important;
    margin-bottom: 6px !important;
  }
  .offer-card-desc {
    font-size: 0.74rem !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
  }
  .offer-features {
    padding-top: 8px !important;
    gap: 5px !important;
  }
  .offer-feature {
    font-size: 0.70rem !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 420px) {
  .docs-grid {
    gap: 8px !important;
  }
  .doc-card {
    padding: 12px 10px !important;
  }
  .doc-title {
    font-size: 0.82rem !important;
  }
  .doc-desc {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
  }
  .doc-btn {
    font-size: 0.72rem !important;
  }
}

@media (max-width: 400px) {
  .header-actions {
    gap: 5px !important;
  }
  .social-links {
    gap: 4px !important;
  }
  .social-btn {
    width: 33px !important;
    height: 33px !important;
    font-size: 0.95rem !important;
  }
  .header-phone-btn {
    width: 33px !important;
    height: 33px !important;
    min-width: 33px !important;
  }
  .vulcan-btn {
    min-width: 76px !important;
    height: 33px !important;
    padding: 0 6px !important;
  }
  .vulcan-label {
    font-size: 0.58rem !important;
    letter-spacing: 0.5px !important;
  }
  .vulcan-logo {
    height: 18px !important;
    max-width: 60px !important;
  }
  .mobile-nav-toggle {
    width: 33px !important;
    height: 33px !important;
    font-size: 1.35rem !important;
  }
}

/* ==========================================================================
   SEKCJA KADRA PEDAGOGICZNA (kadra.html) - NOWOCZESNY I PRZEJRZYSTY UKŁAD
   ========================================================================== */
.staff-search-wrapper {
  position: relative;
  max-width: 520px;
  margin: 0 auto 28px;
}

.staff-search-input {
  width: 100%;
  padding: 14px 22px 14px 48px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(30, 43, 130, 0.06);
  transition: var(--transition);
}

.staff-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(30, 43, 130, 0.12);
}

.staff-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray);
  font-size: 1.05rem;
  pointer-events: none;
}

.staff-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 45px;
}

.staff-filter-btn {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: #FFFFFF;
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.staff-filter-btn:hover,
.staff-filter-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 43, 130, 0.22);
}

.staff-filter-btn .count-badge {
  font-size: 0.74rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(30, 43, 130, 0.1);
  color: inherit;
  font-weight: 800;
}

.staff-filter-btn.active .count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.staff-category-block {
  margin-bottom: 50px;
}

.staff-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(30, 43, 130, 0.1);
}

.staff-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.staff-category-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 35px;
}

.management-card {
  background: #FFFFFF;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  box-shadow: 0 8px 24px rgba(30, 43, 130, 0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.management-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, transparent 50%, rgba(248, 200, 48, 0.18) 50%);
  pointer-events: none;
}

.management-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(30, 43, 130, 0.15);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.staff-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.staff-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 20px rgba(30, 43, 130, 0.1);
}

.staff-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.staff-avatar.management {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0F1640 100%);
  color: var(--color-accent);
  font-size: 1.5rem;
  border: 2.5px solid var(--color-accent);
}

.staff-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.staff-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.3;
}

.management-card .staff-name {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

/* System etykiet (Badges) */
.staff-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.staff-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.badge-director {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  box-shadow: 0 2px 6px rgba(30, 43, 130, 0.18);
}

.badge-vicedirector {
  background: #1E2B82;
  color: #FFFFFF;
  border: 1px solid rgba(248, 200, 48, 0.6);
  box-shadow: 0 2px 6px rgba(30, 43, 130, 0.18);
}

.badge-subject {
  background: #EFF6FF;
  color: #1E3A8A;
  border: 1px solid #DBEAFE;
}

.badge-early {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.badge-specialist {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.badge-admin {
  background: #F8FAFC;
  color: #475569;
  border: 1px solid #E2E8F0;
}

@media (max-width: 992px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .management-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }
  .management-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .management-card .staff-badges-wrap {
    justify-content: center;
  }
  .cta-banner-card .cta-btn-wrap {
    flex-direction: column;
    width: 100%;
  }
  .cta-banner-card .cta-btn-wrap a {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   TRYBY WYSOKIEGO KONTRASTU (WCAG 2.1 AA)
   Czarne / Żółte, Czarne / Białe, Żółte / Czarne
   ========================================================================== */

/* 1. CZARNE TŁO / ŻÓŁTY TEKST */
html[data-contrast="black-yellow"],
html[data-contrast="black-yellow"] body {
  background: #000000 !important;
  color: #FFFF00 !important;
}

html[data-contrast="black-yellow"] * {
  background-color: transparent !important;
  color: #FFFF00 !important;
  border-color: #FFFF00 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-contrast="black-yellow"] body,
html[data-contrast="black-yellow"] header,
html[data-contrast="black-yellow"] nav,
html[data-contrast="black-yellow"] main,
html[data-contrast="black-yellow"] section,
html[data-contrast="black-yellow"] footer,
html[data-contrast="black-yellow"] .site-header,
html[data-contrast="black-yellow"] .site-footer,
html[data-contrast="black-yellow"] .nav-bar,
html[data-contrast="black-yellow"] .nav-menu,
html[data-contrast="black-yellow"] .card,
html[data-contrast="black-yellow"] .feature-card,
html[data-contrast="black-yellow"] .offer-card,
html[data-contrast="black-yellow"] .stat-item,
html[data-contrast="black-yellow"] .staff-card,
html[data-contrast="black-yellow"] .management-card,
html[data-contrast="black-yellow"] .news-card,
html[data-contrast="black-yellow"] .contact-card,
html[data-contrast="black-yellow"] .doc-card,
html[data-contrast="black-yellow"] .recruitment-card,
html[data-contrast="black-yellow"] .schedule-card,
html[data-contrast="black-yellow"] .table-card,
html[data-contrast="black-yellow"] .gallery-item,
html[data-contrast="black-yellow"] .modal-content,
html[data-contrast="black-yellow"] .modal-inner,
html[data-contrast="black-yellow"] .a11y-modal-container,
html[data-contrast="black-yellow"] .a11y-section,
html[data-contrast="black-yellow"] .a11y-modal-body,
html[data-contrast="black-yellow"] .hero-banner-inner,
html[data-contrast="black-yellow"] .hero-slide,
html[data-contrast="black-yellow"] .cta-banner-card,
html[data-contrast="black-yellow"] .brand-motto-pill,
html[data-contrast="black-yellow"] .stat-badge-top,
html[data-contrast="black-yellow"] .staff-role-badge,
html[data-contrast="black-yellow"] .badge,
html[data-contrast="black-yellow"] input,
html[data-contrast="black-yellow"] textarea,
html[data-contrast="black-yellow"] select {
  background-color: #000000 !important;
  color: #FFFF00 !important;
  border: 2px solid #FFFF00 !important;
}

html[data-contrast="black-yellow"] a {
  color: #FFFF00 !important;
  text-decoration: underline !important;
}

html[data-contrast="black-yellow"] button,
html[data-contrast="black-yellow"] .btn,
html[data-contrast="black-yellow"] .social-btn,
html[data-contrast="black-yellow"] .slider-btn,
html[data-contrast="black-yellow"] .a11y-widget-trigger,
html[data-contrast="black-yellow"] .a11y-btn {
  background-color: #000000 !important;
  color: #FFFF00 !important;
  border: 2px solid #FFFF00 !important;
}

html[data-contrast="black-yellow"] button:hover,
html[data-contrast="black-yellow"] button:focus,
html[data-contrast="black-yellow"] .btn:hover,
html[data-contrast="black-yellow"] .btn:focus,
html[data-contrast="black-yellow"] .social-btn:hover,
html[data-contrast="black-yellow"] .social-btn:focus,
html[data-contrast="black-yellow"] .slider-btn:hover,
html[data-contrast="black-yellow"] .a11y-btn.active,
html[data-contrast="black-yellow"] .a11y-btn:hover {
  background-color: #FFFF00 !important;
  color: #000000 !important;
}

html[data-contrast="black-yellow"] button:hover *,
html[data-contrast="black-yellow"] button:focus *,
html[data-contrast="black-yellow"] .btn:hover *,
html[data-contrast="black-yellow"] .btn:focus *,
html[data-contrast="black-yellow"] .social-btn:hover *,
html[data-contrast="black-yellow"] .slider-btn:hover *,
html[data-contrast="black-yellow"] .a11y-btn.active *,
html[data-contrast="black-yellow"] .a11y-btn:hover * {
  color: #000000 !important;
}

html[data-contrast="black-yellow"] img {
  border: 2px solid #FFFF00 !important;
}

html[data-contrast="black-yellow"] :focus-visible {
  outline: 3px solid #FFFF00 !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}


/* 2. CZARNE TŁO / BIAŁY TEKST */
html[data-contrast="black-white"],
html[data-contrast="black-white"] body {
  background: #000000 !important;
  color: #FFFFFF !important;
}

html[data-contrast="black-white"] * {
  background-color: transparent !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-contrast="black-white"] body,
html[data-contrast="black-white"] header,
html[data-contrast="black-white"] nav,
html[data-contrast="black-white"] main,
html[data-contrast="black-white"] section,
html[data-contrast="black-white"] footer,
html[data-contrast="black-white"] .site-header,
html[data-contrast="black-white"] .site-footer,
html[data-contrast="black-white"] .nav-bar,
html[data-contrast="black-white"] .nav-menu,
html[data-contrast="black-white"] .card,
html[data-contrast="black-white"] .feature-card,
html[data-contrast="black-white"] .offer-card,
html[data-contrast="black-white"] .stat-item,
html[data-contrast="black-white"] .staff-card,
html[data-contrast="black-white"] .management-card,
html[data-contrast="black-white"] .news-card,
html[data-contrast="black-white"] .contact-card,
html[data-contrast="black-white"] .doc-card,
html[data-contrast="black-white"] .recruitment-card,
html[data-contrast="black-white"] .schedule-card,
html[data-contrast="black-white"] .table-card,
html[data-contrast="black-white"] .gallery-item,
html[data-contrast="black-white"] .modal-content,
html[data-contrast="black-white"] .modal-inner,
html[data-contrast="black-white"] .a11y-modal-container,
html[data-contrast="black-white"] .a11y-section,
html[data-contrast="black-white"] .a11y-modal-body,
html[data-contrast="black-white"] .hero-banner-inner,
html[data-contrast="black-white"] .hero-slide,
html[data-contrast="black-white"] .cta-banner-card,
html[data-contrast="black-white"] .brand-motto-pill,
html[data-contrast="black-white"] .stat-badge-top,
html[data-contrast="black-white"] .staff-role-badge,
html[data-contrast="black-white"] .badge,
html[data-contrast="black-white"] input,
html[data-contrast="black-white"] textarea,
html[data-contrast="black-white"] select {
  background-color: #000000 !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
}

html[data-contrast="black-white"] a {
  color: #FFFFFF !important;
  text-decoration: underline !important;
}

html[data-contrast="black-white"] button,
html[data-contrast="black-white"] .btn,
html[data-contrast="black-white"] .social-btn,
html[data-contrast="black-white"] .slider-btn,
html[data-contrast="black-white"] .a11y-widget-trigger,
html[data-contrast="black-white"] .a11y-btn {
  background-color: #000000 !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
}

html[data-contrast="black-white"] button:hover,
html[data-contrast="black-white"] button:focus,
html[data-contrast="black-white"] .btn:hover,
html[data-contrast="black-white"] .btn:focus,
html[data-contrast="black-white"] .social-btn:hover,
html[data-contrast="black-white"] .social-btn:focus,
html[data-contrast="black-white"] .slider-btn:hover,
html[data-contrast="black-white"] .a11y-btn.active,
html[data-contrast="black-white"] .a11y-btn:hover {
  background-color: #FFFFFF !important;
  color: #000000 !important;
}

html[data-contrast="black-white"] button:hover *,
html[data-contrast="black-white"] button:focus *,
html[data-contrast="black-white"] .btn:hover *,
html[data-contrast="black-white"] .btn:focus *,
html[data-contrast="black-white"] .social-btn:hover *,
html[data-contrast="black-white"] .slider-btn:hover *,
html[data-contrast="black-white"] .a11y-btn.active *,
html[data-contrast="black-white"] .a11y-btn:hover * {
  color: #000000 !important;
}

html[data-contrast="black-white"] img {
  border: 2px solid #FFFFFF !important;
}

html[data-contrast="black-white"] :focus-visible {
  outline: 3px solid #FFFFFF !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}


/* 3. ŻÓŁTE TŁO / CZARNY TEKST */
html[data-contrast="yellow-black"],
html[data-contrast="yellow-black"] body {
  background: #FFFF00 !important;
  color: #000000 !important;
}

html[data-contrast="yellow-black"] * {
  background-color: transparent !important;
  color: #000000 !important;
  border-color: #000000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-contrast="yellow-black"] body,
html[data-contrast="yellow-black"] header,
html[data-contrast="yellow-black"] nav,
html[data-contrast="yellow-black"] main,
html[data-contrast="yellow-black"] section,
html[data-contrast="yellow-black"] footer,
html[data-contrast="yellow-black"] .site-header,
html[data-contrast="yellow-black"] .site-footer,
html[data-contrast="yellow-black"] .nav-bar,
html[data-contrast="yellow-black"] .nav-menu,
html[data-contrast="yellow-black"] .card,
html[data-contrast="yellow-black"] .feature-card,
html[data-contrast="yellow-black"] .offer-card,
html[data-contrast="yellow-black"] .stat-item,
html[data-contrast="yellow-black"] .staff-card,
html[data-contrast="yellow-black"] .management-card,
html[data-contrast="yellow-black"] .news-card,
html[data-contrast="yellow-black"] .contact-card,
html[data-contrast="yellow-black"] .doc-card,
html[data-contrast="yellow-black"] .recruitment-card,
html[data-contrast="yellow-black"] .schedule-card,
html[data-contrast="yellow-black"] .table-card,
html[data-contrast="yellow-black"] .gallery-item,
html[data-contrast="yellow-black"] .modal-content,
html[data-contrast="yellow-black"] .modal-inner,
html[data-contrast="yellow-black"] .a11y-modal-container,
html[data-contrast="yellow-black"] .a11y-section,
html[data-contrast="yellow-black"] .a11y-modal-body,
html[data-contrast="yellow-black"] .hero-banner-inner,
html[data-contrast="yellow-black"] .hero-slide,
html[data-contrast="yellow-black"] .cta-banner-card,
html[data-contrast="yellow-black"] .brand-motto-pill,
html[data-contrast="yellow-black"] .stat-badge-top,
html[data-contrast="yellow-black"] .staff-role-badge,
html[data-contrast="yellow-black"] .badge,
html[data-contrast="yellow-black"] input,
html[data-contrast="yellow-black"] textarea,
html[data-contrast="yellow-black"] select {
  background-color: #FFFF00 !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}

html[data-contrast="yellow-black"] a {
  color: #000000 !important;
  text-decoration: underline !important;
}

html[data-contrast="yellow-black"] button,
html[data-contrast="yellow-black"] .btn,
html[data-contrast="yellow-black"] .social-btn,
html[data-contrast="yellow-black"] .slider-btn,
html[data-contrast="yellow-black"] .a11y-widget-trigger,
html[data-contrast="yellow-black"] .a11y-btn {
  background-color: #FFFF00 !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}

html[data-contrast="yellow-black"] button:hover,
html[data-contrast="yellow-black"] button:focus,
html[data-contrast="yellow-black"] .btn:hover,
html[data-contrast="yellow-black"] .btn:focus,
html[data-contrast="yellow-black"] .social-btn:hover,
html[data-contrast="yellow-black"] .social-btn:focus,
html[data-contrast="yellow-black"] .slider-btn:hover,
html[data-contrast="yellow-black"] .a11y-btn.active,
html[data-contrast="yellow-black"] .a11y-btn:hover {
  background-color: #000000 !important;
  color: #FFFF00 !important;
}

html[data-contrast="yellow-black"] button:hover *,
html[data-contrast="yellow-black"] button:focus *,
html[data-contrast="yellow-black"] .btn:hover *,
html[data-contrast="yellow-black"] .btn:focus *,
html[data-contrast="yellow-black"] .social-btn:hover *,
html[data-contrast="yellow-black"] .slider-btn:hover *,
html[data-contrast="yellow-black"] .a11y-btn.active *,
html[data-contrast="yellow-black"] .a11y-btn:hover * {
  color: #FFFF00 !important;
}

html[data-contrast="yellow-black"] img {
  border: 2px solid #000000 !important;
}

html[data-contrast="yellow-black"] :focus-visible {
  outline: 3px solid #000000 !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}


/* --------------------------------------------------------------------------
   PRZYCISK POWROTU NA GÓRĘ (SCROLL TO TOP)
   -------------------------------------------------------------------------- */
.back-to-top-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(30, 43, 130, 0.65);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 999;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hover wyłącznie dla urządzeń ze wskaźnikiem myszy (desktop) */
@media (hover: hover) and (pointer: fine) {
  .back-to-top-btn:hover {
    background: var(--color-primary, #1E2B82);
    color: var(--color-accent, #F8C830);
    border-color: var(--color-accent, #F8C830);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 24px rgba(30, 43, 130, 0.45);
  }
}

.back-to-top-btn:active {
  transform: scale(0.92);
  opacity: 0.85;
}

@media (max-width: 640px) {
  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    background: rgba(30, 43, 130, 0.65) !important;
    color: #FFFFFF !important;
  }
}

html[data-contrast="black-yellow"] .back-to-top-btn {
  background: #000000 !important;
  color: #FFFF00 !important;
  border-color: #FFFF00 !important;
}

html[data-contrast="black-white"] .back-to-top-btn {
  background: #000000 !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
}

html[data-contrast="yellow-black"] .back-to-top-btn {
  background: #FFFF00 !important;
  color: #000000 !important;
  border-color: #000000 !important;
}

/* ==========================================================================
   WIDGET DOSTĘPNOŚCI (ACCESSIBILITY MENU PANEL - WCAG 2.1 AA)
   ========================================================================== */

/* Pływający przycisk otwierający menu dostępności */
.a11y-widget-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  background: var(--color-primary);
  color: var(--color-accent);
  border: 2.5px solid var(--color-accent);
  border-radius: 50px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(30, 43, 130, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.a11y-widget-trigger i {
  font-size: 1.35rem;
  color: var(--color-accent);
}

.a11y-widget-trigger:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(30, 43, 130, 0.55);
}

.a11y-widget-trigger:active {
  transform: translateY(0) scale(0.98);
}

/* Tło i modal panelu ułatwień dostępu */
.a11y-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 22, 66, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.a11y-modal-backdrop[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.a11y-modal-container {
  background: #FFFFFF;
  color: var(--text-primary);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  border: 3px solid var(--color-primary);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  animation: a11yModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes a11yModalIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.a11y-modal-header {
  background: var(--color-primary);
  color: #FFFFFF;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--color-accent);
}

.a11y-modal-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.a11y-header-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
}

.a11y-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.3px;
}

.a11y-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.a11y-close-btn:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: rotate(90deg);
}

.a11y-modal-body {
  padding: 22px 24px;
  background: var(--bg-header);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.a11y-section {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(30, 43, 130, 0.04);
}

.a11y-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.a11y-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.a11y-section-header .a11y-section-title {
  margin-bottom: 0;
}

.a11y-font-badge {
  background: var(--color-primary);
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Siatka kontrastu */
.a11y-contrast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.a11y-contrast-btn {
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.a11y-contrast-btn:hover {
  border-color: var(--color-primary);
  background: #F8FAFC;
}

.a11y-contrast-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.a11y-preview-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.preview-default {
  background: var(--bg-header);
  color: var(--color-primary);
  border: 1px solid var(--border-color);
}

.preview-by {
  background: #000000;
  color: #FFFF00;
  border: 1px solid #FFFF00;
}

.preview-bw {
  background: #000000;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
}

.preview-yb {
  background: #FFFF00;
  color: #000000;
  border: 1px solid #000000;
}

/* Siatka rozmiaru czcionki */
.a11y-font-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.a11y-font-btn,
.a11y-font-step-btn,
.a11y-font-size-btn {
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: 8px;
  padding: 9px 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.a11y-font-size-btn:hover,
.a11y-font-step-btn:hover {
  border-color: var(--color-primary);
  background: #F8FAFC;
}

.a11y-font-size-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

/* Przełączniki (toggles) */
.a11y-toggles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.a11y-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}

.a11y-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.a11y-toggle-label strong {
  font-size: 0.92rem;
  color: var(--text-primary);
}

.a11y-toggle-label small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.a11y-switch-slider {
  position: relative;
  width: 50px;
  height: 28px;
  background: #CBD5E1;
  border-radius: 28px;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.a11y-switch-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

.a11y-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.a11y-checkbox:checked + .a11y-switch-slider {
  background: var(--color-primary);
}

.a11y-checkbox:checked + .a11y-switch-slider::after {
  transform: translateX(22px);
}

.a11y-checkbox:focus-visible + .a11y-switch-slider {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Dolne akcje i Deklaracja Dostępności */
.a11y-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.a11y-reset-btn {
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  color: var(--text-muted);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.a11y-reset-btn:hover {
  background: #FEE2E2;
  color: #B91C1C;
  border-color: #FCA5A5;
}

.a11y-decl-link {
  background: var(--color-primary);
  color: var(--color-accent) !important;
  border: 2px solid var(--color-accent);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.a11y-decl-link:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* Stopka - stały link do deklaracji */
.footer-bottom-links {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-link {
  color: #E2E8F0;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom-link:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  /* Na telefonach i tabletach: tylko ikona ludzika, bez napisu "Dostępność" */
  .a11y-widget-trigger {
    bottom: 16px;
    left: 14px;
    padding: 0;
    font-size: 0.85rem;
    gap: 0;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .a11y-widget-trigger .a11y-trigger-text {
    display: none !important;
  }
  .a11y-widget-trigger i {
    font-size: 1.35rem;
    margin: 0;
  }
  .a11y-modal-backdrop {
    padding: 12px;
  }
  .a11y-contrast-grid {
    grid-template-columns: 1fr;
  }
  .a11y-font-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .a11y-modal-footer {
    flex-direction: column;
    width: 100%;
  }
  .a11y-reset-btn,
  .a11y-decl-link {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   INTERAKTYWNA GALERIA FOLDERÓW ZE ZDJĘCIAMI (STRAPI + NEON + CLOUDINARY)
   ========================================================================== */

.gallery-dark-wrap {
  background: #111827;
  color: #FFFFFF;
  border-radius: var(--radius-lg, 16px);
  padding: 32px 28px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  margin-top: 10px;
}

.gallery-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-section-heading {
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.2;
}

.gallery-section-heading i {
  color: #F8C830;
}

.gallery-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.heading-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #F8C830;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-0.08em);
}

/* Siatka folderów / albumów (4 kolumny jak na zdjęciu wzorcowym) */
.gallery-albums-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .gallery-albums-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .gallery-albums-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .gallery-dark-wrap {
    padding: 16px 10px;
    border-radius: 12px;
  }
  .gallery-albums-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .album-overlay {
    padding: 10px 8px;
  }
  .album-title {
    font-size: 0.88rem;
    line-height: 1.22;
    margin-bottom: 2px;
  }
  .album-meta {
    font-size: 0.72rem;
    gap: 3px;
  }
  .album-badge-folder {
    top: 6px;
    right: 6px;
    padding: 3px 6px;
    font-size: 0.7rem;
  }
}

/* Pojedynczy kafel albumu */
.album-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #1F2937;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
  text-decoration: none;
  padding: 0;
  width: 100%;
  text-align: left;
}

.album-card:hover,
.album-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
}

.album-card:focus-visible {
  outline: 3px solid #F8C830;
  outline-offset: 3px;
}

.album-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}

.album-card:hover .album-cover-img {
  transform: scale(1.08);
}

.album-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 16px;
  pointer-events: none;
}

.album-title {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 4px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.album-meta {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.album-badge-folder {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(4px);
  color: #F8C830;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Widok szczegółów otwartego albumu */
.album-details-view {
  display: none;
}

.album-details-view.active {
  display: block;
  animation: fadeInAlbum 0.3s ease;
}

@keyframes fadeInAlbum {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.album-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.album-back-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.gallery-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Ukryty semantyczny select dla asystentów i czytników */
.gallery-sort-native-hidden {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  clip: rect(0, 0, 0, 0) !important;
  overflow: hidden !important;
}

.gallery-sort-wrap {
  position: relative;
  display: inline-block;
}

/* Niezawodny, w pełni klikalny selektor sortowania na każdy telefon i komputer */
.custom-sort-dropdown {
  position: relative;
  display: inline-block;
  min-width: 175px;
}

.custom-sort-trigger {
  width: 100%;
  min-height: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.2s ease;
}

.custom-sort-trigger:hover,
.custom-sort-trigger:focus-visible,
.custom-sort-dropdown.open .custom-sort-trigger {
  border-color: #F8C830;
  background: rgba(255, 255, 255, 0.18);
}

.custom-sort-arrow {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease;
}

.custom-sort-dropdown.open .custom-sort-arrow {
  transform: rotate(180deg);
  color: #F8C830;
}

.custom-sort-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 180px;
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
  animation: fadeInMenu 0.15s ease-out;
}

.custom-sort-dropdown.open .custom-sort-menu {
  display: flex;
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-sort-option {
  width: 100%;
  min-height: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: #E2E8F0;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease;
}

.custom-sort-option i {
  font-size: 0.85rem;
  color: transparent;
  width: 16px;
  text-align: center;
}

.custom-sort-option:hover,
.custom-sort-option:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.custom-sort-option.active {
  background: rgba(248, 200, 48, 0.15);
  color: #F8C830;
}

.custom-sort-option.active i {
  color: #F8C830;
}

@media (max-width: 600px) {
  .gallery-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
  }
  .gallery-top-actions {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
  }
  .gallery-sort-wrap,
  .custom-sort-dropdown {
    flex: 1;
    min-width: 150px;
  }
  .custom-sort-trigger {
    min-height: 44px;
    height: 44px;
    font-size: 15px;
  }
  .custom-sort-option {
    min-height: 44px;
    height: 44px;
    font-size: 15px;
  }
  .gallery-top-actions .album-back-btn {
    height: 44px !important;
    min-height: 44px;
    padding: 0 16px;
    font-size: 15px !important;
  }
}

.album-back-btn:hover {
  background: #F8C830;
  color: #111827;
  border-color: #F8C830;
}

.album-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.album-slideshow-btn {
  background: #F8C830;
  color: #111827;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.album-slideshow-btn:hover {
  background: #E5B824;
  transform: translateY(-2px);
}

.album-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .album-photos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .album-photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .album-photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.photo-thumb-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #1F2937;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  width: 100%;
}

.photo-skeleton-card {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: photoSkeletonPulse 1.6s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

@keyframes photoSkeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.photo-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.photo-thumb-card:hover img {
  transform: scale(1.08);
}

.photo-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #FFFFFF;
  font-size: 1.6rem;
}

.photo-thumb-card:hover .photo-thumb-overlay,
.photo-thumb-card:focus-visible .photo-thumb-overlay {
  opacity: 1;
}

.photo-thumb-card:focus-visible {
  outline: 3px solid #F8C830;
  outline-offset: 2px;
}

/* Lightbox dla pełnego widoku zdjęcia */
.gallery-lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
}

.gallery-lightbox-modal.active {
  display: flex;
}

.lightbox-main-img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  user-select: none;
}

.lightbox-controls {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  gap: 12px;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-btn:hover {
  background: #F8C830;
  color: #111827;
  border-color: #F8C830;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFF;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-nav-btn.prev {
  left: 24px;
}

.lightbox-nav-btn.next {
  right: 24px;
}

.lightbox-nav-btn:hover {
  background: #F8C830;
  color: #111827;
  border-color: #F8C830;
}

.lightbox-info {
  margin-top: 14px;
  color: #E2E8F0;
  font-size: 0.98rem;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Dostosowania dla trybów wysokiego kontrastu WCAG 2.1 AA */
html[data-contrast="black-yellow"] .gallery-dark-wrap {
  background: #000000 !important;
  border: 2px solid #FFFF00 !important;
}
html[data-contrast="black-yellow"] .album-card,
html[data-contrast="black-yellow"] .gazetka-card,
html[data-contrast="black-yellow"] .photo-thumb-card {
  border: 2px solid #FFFF00 !important;
}
html[data-contrast="black-yellow"] .album-title,
html[data-contrast="black-yellow"] .gazetka-title,
html[data-contrast="black-yellow"] .album-meta,
html[data-contrast="black-yellow"] .heading-count-badge,
html[data-contrast="black-yellow"] .gallery-section-heading {
  color: #FFFF00 !important;
}
html[data-contrast="black-yellow"] .album-back-btn,
html[data-contrast="black-yellow"] .album-slideshow-btn {
  background: #000000 !important;
  color: #FFFF00 !important;
  border: 2px solid #FFFF00 !important;
}
html[data-contrast="black-yellow"] .gallery-sort-select {
  background-color: #000000 !important;
  color: #FFFF00 !important;
  border: 2px solid #FFFF00 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FFFF00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}
html[data-contrast="black-yellow"] .custom-sort-trigger,
html[data-contrast="black-yellow"] .custom-sort-menu {
  background: #000000 !important;
  color: #FFFF00 !important;
  border: 2px solid #FFFF00 !important;
}
html[data-contrast="black-yellow"] .custom-sort-arrow {
  color: #FFFF00 !important;
}
html[data-contrast="black-yellow"] .custom-sort-option {
  color: #FFFF00 !important;
}
html[data-contrast="black-yellow"] .custom-sort-option.active {
  background: #FFFF00 !important;
  color: #000000 !important;
}
html[data-contrast="black-yellow"] .custom-sort-option.active i {
  color: #000000 !important;
}

html[data-contrast="black-white"] .gallery-dark-wrap {
  background: #000000 !important;
  border: 2px solid #FFFFFF !important;
}
html[data-contrast="black-white"] .album-card,
html[data-contrast="black-white"] .gazetka-card,
html[data-contrast="black-white"] .photo-thumb-card {
  border: 2px solid #FFFFFF !important;
}
html[data-contrast="black-white"] .album-title,
html[data-contrast="black-white"] .gazetka-title,
html[data-contrast="black-white"] .album-meta,
html[data-contrast="black-white"] .heading-count-badge,
html[data-contrast="black-white"] .gallery-section-heading {
  color: #FFFFFF !important;
}
html[data-contrast="black-white"] .album-back-btn,
html[data-contrast="black-white"] .album-slideshow-btn {
  background: #000000 !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
}
html[data-contrast="black-white"] .gallery-sort-select {
  background-color: #000000 !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}
html[data-contrast="black-white"] .custom-sort-trigger,
html[data-contrast="black-white"] .custom-sort-menu {
  background: #000000 !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
}
html[data-contrast="black-white"] .custom-sort-arrow {
  color: #FFFFFF !important;
}
html[data-contrast="black-white"] .custom-sort-option {
  color: #FFFFFF !important;
}
html[data-contrast="black-white"] .custom-sort-option.active {
  background: #FFFFFF !important;
  color: #000000 !important;
}
html[data-contrast="black-white"] .custom-sort-option.active i {
  color: #000000 !important;
}

html[data-contrast="yellow-black"] .gallery-dark-wrap {
  background: #FFFF00 !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}
html[data-contrast="yellow-black"] .album-card,
html[data-contrast="yellow-black"] .gazetka-card,
html[data-contrast="yellow-black"] .photo-thumb-card {
  border: 2px solid #000000 !important;
}
html[data-contrast="yellow-black"] .album-title,
html[data-contrast="yellow-black"] .gazetka-title,
html[data-contrast="yellow-black"] .album-meta,
html[data-contrast="yellow-black"] .heading-count-badge,
html[data-contrast="yellow-black"] .gallery-section-heading {
  color: #000000 !important;
}
html[data-contrast="yellow-black"] .album-back-btn,
html[data-contrast="yellow-black"] .album-slideshow-btn {
  background: #FFFF00 !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}
html[data-contrast="yellow-black"] .gallery-sort-select {
  background-color: #FFFF00 !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}
html[data-contrast="yellow-black"] .custom-sort-trigger,
html[data-contrast="yellow-black"] .custom-sort-menu {
  background: #FFFF00 !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}
html[data-contrast="yellow-black"] .custom-sort-arrow {
  color: #000000 !important;
}
html[data-contrast="yellow-black"] .custom-sort-option {
  color: #000000 !important;
}
html[data-contrast="yellow-black"] .custom-sort-option.active {
  background: #000000 !important;
  color: #FFFF00 !important;
}
html[data-contrast="yellow-black"] .custom-sort-option.active i {
  color: #FFFF00 !important;
}

/* ======================================================================
   KAFLE GAZETKI SZKOLNEJ (GAZETKA.HTML)
   ====================================================================== */
.gazetka-albums-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .gazetka-albums-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .gazetka-albums-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .gazetka-albums-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .gazetka-overlay {
    padding: 8px 6px;
    background: linear-gradient(
      to top,
      rgba(15, 23, 42, 0.94) 0%,
      rgba(15, 23, 42, 0.5) 22%,
      transparent 40%
    );
  }
  .gazetka-title {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-bottom: 2px;
  }
  .gazetka-action-cue {
    font-size: 0.68rem;
  }
  .gazetka-badge-pdf {
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    font-size: 0.65rem;
  }
}

.gazetka-card {
  position: relative;
  aspect-ratio: 1 / 1.414;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0;
  width: 100%;
  text-align: left;
}

.gazetka-card:hover,
.gazetka-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55), 0 0 0 2px #F8C830;
  border-color: #F8C830;
}

.gazetka-card:focus-visible {
  outline: 3px solid #F8C830;
  outline-offset: 3px;
}

.gazetka-cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}

.gazetka-card:hover .gazetka-cover-img {
  transform: scale(1.03);
}

.gazetka-badge-pdf {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #E53E3E;
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 3;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gazetka-card:hover .gazetka-badge-pdf {
  transform: scale(1.06);
  background: #C53030;
}

.gazetka-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.45) 20%,
    transparent 38%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 12px;
  pointer-events: none;
}

.gazetka-title {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 6px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.gazetka-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
}

.gazetka-action-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #F8C830;
  font-weight: 700;
  font-size: 0.82rem;
}

/* ======================================================================
   STYLIZACJA PODSTRONY GAZETKA ZE SPECJALNYM LOGO (GAZETKA.HTML)
   ====================================================================== */
.gazetka-hero-banner {
  padding: 42px 0 38px;
}

.gazetka-banner-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  align-items: center;
  gap: 40px;
}

.gazetka-banner-text {
  max-width: 680px;
}

.gazetka-banner-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.gazetka-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gazetka-pill i {
  color: var(--color-accent);
}

.gazetka-banner-emblem-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.gazetka-banner-emblem {
  max-width: 290px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.28));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
  animation: floatEmblem 4s ease-in-out infinite alternate;
}

.gazetka-banner-emblem:hover {
  transform: scale(1.05) rotate(-1deg);
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.38));
}

@keyframes floatEmblem {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-8px);
  }
}

@media (max-width: 860px) {
  .gazetka-banner-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }
  .gazetka-banner-text {
    max-width: 100%;
  }
  .gazetka-hero-banner .breadcrumb-trail {
    justify-content: center;
  }
  .gazetka-banner-badges {
    justify-content: center;
  }
  .gazetka-banner-emblem-wrap {
    order: -1;
  }
  .gazetka-banner-emblem {
    max-width: 210px;
  }
}

/* ==========================================================================
   ELIMINACJA "LEPKIEGO HOVERA" NA URZĄDZENIACH DOTYKOWYCH I MOBILNYCH
   Na ekranach dotykowych stuknięcie nie powinno trwale unosić ani podświetlać
   kart/przycisków po otwarciu i powrocie z dokumentu czy podstrony.
   ========================================================================== */
@media (hover: none), (pointer: coarse), (max-width: 860px) {
  /* Neutralizacja uniesienia, obramowań i cieni po stuknięciu w karty */
  .doc-card:hover,
  .doc-card:focus,
  .doc-card:focus-visible,
  .album-card:hover,
  .album-card:focus,
  .album-card:focus-visible,
  .gazetka-card:hover,
  .gazetka-card:focus,
  .gazetka-card:focus-visible,
  .pillar-card:hover,
  .pillar-card:focus,
  .pillar-card:focus-visible,
  .news-card:hover,
  .news-card:focus,
  .news-card:focus-visible,
  .offer-card:hover,
  .offer-card:focus,
  .offer-card:focus-visible,
  .zone-tile:hover,
  .zone-tile:focus,
  .zone-tile:focus-visible,
  .management-card:hover,
  .management-card:focus,
  .management-card:focus-visible,
  .staff-card:hover,
  .staff-card:focus,
  .staff-card:focus-visible,
  .poster-card:hover,
  .poster-card:focus,
  .poster-card:focus-visible,
  .photo-thumb-card:hover,
  .photo-thumb-card:focus,
  .gazetka-banner-emblem:hover {
    transform: none !important;
  }

  .doc-card:hover,
  .doc-card:focus,
  .doc-card:focus-visible {
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
  }

  .album-card:hover,
  .album-card:focus,
  .album-card:focus-visible {
    border-color: rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  }

  .gazetka-card:hover,
  .gazetka-card:focus,
  .gazetka-card:focus-visible {
    border-color: rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  }

  .pillar-card:hover,
  .pillar-card:focus {
    box-shadow: var(--shadow-md) !important;
    border-bottom-color: var(--border-color) !important;
  }

  .news-card:hover,
  .news-card:focus {
    box-shadow: var(--shadow-md) !important;
  }

  .offer-card:hover,
  .offer-card:focus {
    box-shadow: var(--shadow-md) !important;
  }

  .zone-tile:hover,
  .zone-tile:focus {
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
  }

  .management-card:hover,
  .management-card:focus {
    box-shadow: var(--shadow-sm) !important;
  }

  .staff-card:hover,
  .staff-card:focus {
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
  }

  .poster-card:hover,
  .poster-card:focus {
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
  }

  /* Neutralizacja powiększania zdjęć i przesunięć ikon na dotyku */
  .poster-card:hover .poster-img,
  .poster-card:focus .poster-img,
  .album-card:hover .album-cover-img,
  .album-card:focus .album-cover-img,
  .gazetka-card:hover .gazetka-cover-img,
  .gazetka-card:focus .gazetka-cover-img,
  .news-card:hover .news-card-img,
  .news-card:focus .news-card-img,
  .photo-thumb-card:hover img,
  .photo-thumb-card:focus img {
    transform: none !important;
  }

  .pillar-card:hover .pillar-icon-box,
  .offer-card:hover .offer-icon,
  .zone-tile:hover .zone-tile-icon,
  .doc-card:hover .doc-btn,
  .doc-btn:hover {
    transform: none !important;
  }

  /* Przyciski - brak unoszenia przy dotknięciu */
  .btn-primary:hover,
  .btn-primary:focus,
  .btn-secondary:hover,
  .btn-secondary:focus,
  .btn-white:hover,
  .btn-white:focus,
  .btn-outline-white:hover,
  .btn-outline-white:focus,
  .social-btn:hover,
  .social-btn:focus,
  .vulcan-btn:hover,
  .vulcan-btn:focus,
  .header-phone-btn:hover,
  .header-phone-btn:focus,
  .nav-phone-btn:hover,
  .nav-phone-btn:focus,
  .staff-filter-btn:hover,
  .staff-filter-btn:focus,
  .album-slideshow-btn:hover,
  .album-slideshow-btn:focus,
  .album-back-btn:hover,
  .album-back-btn:focus {
    transform: none !important;
  }

  /* Całkowite wyłączenie efektów podświetlenia hover na kartach dla ekranów dotykowych */
  .doc-card:hover,
  .album-card:hover,
  .gazetka-card:hover,
  .pillar-card:hover,
  .news-card:hover,
  .offer-card:hover,
  .zone-tile:hover,
  .management-card:hover,
  .staff-card:hover,
  .poster-card:hover,
  .photo-thumb-card:hover {
    box-shadow: var(--shadow-sm) !important;
    border-color: var(--border-color) !important;
  }

  .pillar-card:hover {
    border-bottom-color: var(--color-primary) !important;
    box-shadow: var(--shadow-md) !important;
  }

  .pillar-card:hover .pillar-icon-box {
    background: var(--bg-warm) !important;
    color: var(--color-primary) !important;
  }

  .news-card:hover .news-card-title {
    color: var(--color-primary) !important;
  }

  .offer-card:hover .offer-icon,
  .zone-tile:hover .zone-tile-icon {
    background: var(--bg-warm) !important;
    color: var(--color-primary) !important;
  }

  /* Przyciski akcji - subtelna reakcja wyłącznie w momencie celowego stuknięcia (:active) */
  .btn:active,
  .btn-primary:active,
  .btn-secondary:active,
  .btn-white:active,
  .btn-outline-white:active,
  .social-btn:active,
  .vulcan-btn:active,
  .header-phone-btn:active,
  .nav-phone-btn:active,
  .staff-filter-btn:active,
  .album-slideshow-btn:active,
  .album-back-btn:active,
  .mobile-nav-close-btn:active,
  .modal-close-btn:active,
  .lightbox-btn:active,
  .lightbox-nav-btn:active {
    transform: scale(0.96) !important;
    opacity: 0.9 !important;
    transition: transform 0.08s ease, opacity 0.08s ease !important;
  }
}

/* ==========================================================================
   BLOKOWANIE EFEKTÓW HOVER I PODŚWIETLANIA PODCZAS PRZEWIJANIA
   Podczas ruchu palcem po ekranie (scroll / touchmove) wskaźnik jest wyłączony,
   co w 100% eliminuje przypadkowe podświetlanie się elementów pod palcem.
   ========================================================================== */
body.is-scrolling,
body.is-scrolling * {
  pointer-events: none !important;
}




