/* ─────────────────────────────────────────
   ZS nr 1 Tarnobrzeg – style.css
   Punkt wejścia. Wszystkie strony wciąż linkują tylko ten plik
   (nic w PHP nie trzeba było zmieniać) — on z kolei doklada
   mniejsze, nazwane pliki z css/style/. Każdy plik odpowiada
   za jeden komponent/sekcję, więc łatwo znaleźć "który jest do
   którego": nazwa pliku = nazwa sekcji.

   Kolejność importów ma znaczenie (kaskada CSS) — nie zmieniaj
   bez potrzeby.

   Kopia oryginalnego, niepodzielonego pliku: style.css.bak
   ───────────────────────────────────────── */

/* ── Fundamenty: reset, zmienne kolorów, typografia bazowa, ikony ── */

/* ═════ style/base.css ═════ */
/* ══════════════════════════════════════════════════
   BASE – reset, zmienne CSS, html/body, ikony Lucide
   (wydzielone ze style.css, linie 1-61)
   ══════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   ZS nr 1 Tarnobrzeg – style.css
   ───────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:    #1a2a4a;
  --navy2:   #22386a;
  --blue:    #2e5faa;
  --blue-lt: #e8eef8;
  --gold:    #b8892a;
  --gold-lt: #fdf5e4;
  --text:    #1c1c1e;
  --muted:   #6b7280;
  --border:  #dde3ed;
  --bg:      #f7f8fb;
  --white:   #ffffff;
  --radius:  10px;
  --shadow:  0 2px 16px rgba(30, 50, 100, .08);
}

html { 
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
}

/* ─── LUCIDE ICONS ─── */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.75;
}
.icon-sm svg  { width: 14px; height: 14px; }
.icon-md svg  { width: 18px; height: 18px; }
.icon-lg svg  { width: 22px; height: 22px; }



/* ── Górna belka nawigacji (widoczna na każdej stronie) ── */

/* ═════ style/navbar.css ═════ */
/* ══════════════════════════════════════════════════
   NAVBAR – górne menu + dropdown
   (wydzielone ze style.css, linie 62-286)
   ══════════════════════════════════════════════════ */

/* ─── NAVBAR ─── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}
.navbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
}
.logo-crest {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-crest svg { width: 26px; height: 26px; }
.logo-text { line-height: 1.2; }
.logo-text .l1 {
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.logo-text .l2 {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .01em;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: .1rem;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.nav-links a:hover {
  background: var(--blue-lt);
  color: var(--blue);
}
.nav-btn {
  background: var(--navy) !important;
  color: #fff !important;
  padding: .45rem 1.1rem !important;
  border-radius: 7px !important;
  font-size: 13px !important;
  white-space: nowrap;
}
.nav-btn:hover {
  background: var(--blue) !important;
  color: #fff !important;
}

/* ─── NAV DROPDOWN ─── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
}
.nav-dropdown-btn:hover {
  background: var(--blue-lt);
  color: var(--blue);
}
.nav-dropdown.open .nav-dropdown-btn {
  background: var(--blue-lt);
  color: var(--blue);
}
.dropdown-chevron {
  transition: transform .2s ease;
  flex-shrink: 0;
}
.nav-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(30, 50, 100, .12);
  list-style: none;
  padding: .4rem;
  z-index: 200;
  animation: fadeUp .15s ease both;
}
.nav-dropdown.open .dropdown-menu {
  display: block;
}
.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .85rem;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.dropdown-menu li a:hover {
  background: var(--blue-lt);
  color: var(--blue);
}
/* Przycisk menu domyślnie ukryty */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 700px) {
  .mobile-menu-btn {
    display: block; /* Pokazujemy na komórkach */
  }

  .nav-links {
    display: none; /* Ukrywamy standardową listę */
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
  }

  /* Klasa aktywująca dropdown */
  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 14px;
  }

  .nav-btn {
    text-align: center;
    justify-content: center;
  }

  /* Dropdown w mobile */
  .nav-dropdown-btn {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg) !important;
    justify-content: flex-start;
    font-size: 14px;
    border-radius: 8px;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0 0 0 1rem;
    animation: none;
  }
  .dropdown-menu li a {
    background: transparent;
    padding: 10px 12px;
  }
}



/* ── Sekcje strony głównej (index.php), w kolejności występowania ── */

/* ═════ style/hero.css ═════ */
/* ══════════════════════════════════════════════════
   HERO – sekcja powitalna strony głównej
   (wydzielone ze style.css, linie 287-425)
   ══════════════════════════════════════════════════ */

/* ─── HERO ─── */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 90px 2rem 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Prevent content from being cut off on mobile */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Video background */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Nakładka na film */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18, 32, 64, 0.72) 0%,
    rgba(18, 32, 64, 0.55) 50%,
    rgba(18, 32, 64, 0.80) 100%
  );
  z-index: 1;
}

/* Cała zawartość nad video i overlayem */
.hero > *:not(.hero-video) {
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: .4rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  padding: .3rem 1rem;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, .85);
  max-width: 240px;
}
.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.22;
  max-width: 720px;
  margin: 0 auto 1rem;
}
.hero h1 em { font-style: normal; color: #f0c060; }
.hero-sub {
  font-size: 15.5px;
  color: rgba(255, 255, 255, .72);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  padding: .75rem 1.7rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1.5px solid rgba(255, 255, 255, .45);
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 500;
  padding: .75rem 1.7rem;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .08);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  flex-wrap: wrap;
}
.hero-stat .num {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #f0c060;
  line-height: 1;
}
.hero-stat .lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  margin-top: .3rem;
  letter-spacing: .02em;
}



/* ═════ style/sponsors.css ═════ */
/* ══════════════════════════════════════════════════
   SPONSORZY – pasek partnerów/sponsorów
   (wydzielone ze style.css, linie 426-500)
   ══════════════════════════════════════════════════ */

/* ─── SPONSORZY ─── */
.sponsors-slider {
  background: var(--white);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.sponsors-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.slider-container {
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.slider-track:hover {
  animation-play-state: paused;
}

.slide {
  width: 200px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  flex-shrink: 0;
}

.slide img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Animacja – przesuwa o połowę track (duplikat slajdów = płynna pętla) */
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobilne */
@media (max-width: 768px) {
  .slide {
    width: 140px;
    padding: 0 20px;
  }
}



/* ═════ style/news.css ═════ */
/* ══════════════════════════════════════════════════
   AKTUALNOŚCI – siatka najnowszych wiadomości
   (wydzielone ze style.css, linie 501-609)
   ══════════════════════════════════════════════════ */

/* ─── SECTIONS ─── */
section { padding: 72px 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.sec-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .55rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.sec-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .75rem;
  line-height: 1.3;
}
.sec-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ─── NEWS ─── */
#aktualnosci { background: var(--white); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.news-thumb {
  height: 160px;
  background: var(--blue-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  color: var(--blue);
}
@media (max-width: 640px) {
  .news-thumb { height: 140px; }
}
.news-thumb svg { width: 48px; height: 48px; stroke-width: 1.25; opacity: .6; }
.news-body {
  padding: 1.15rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-date {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: .5rem;
}
.news-date svg { width: 12px; height: 12px; }
.news-title {
  font-family: 'Lora', serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: .55rem;
}
.news-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.news-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: 1rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.news-link:hover { text-decoration: underline; }
.news-link svg { width: 13px; height: 13px; }



/* ═════ style/about.css ═════ */
/* ══════════════════════════════════════════════════
   O SZKOLE – sekcja z opisem i faktami
   (wydzielone ze style.css, linie 925-990)
   ══════════════════════════════════════════════════ */

/* ─── O SZKOLE ─── */
#o-szkole { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 1rem;
}
.about-visual {
  background: var(--blue-lt);
  border-radius: 14px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-fact {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.about-fact-icon {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.about-fact-icon svg { width: 16px; height: 16px; stroke-width: 1.75; }
.about-fact-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}
.about-fact-text span {
  font-size: 12.5px;
  color: var(--muted);
}
.about-text p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 1rem;
  line-height: 1.75;
}
.about-text .highlight {
  background: var(--gold-lt);
  border-left: 3px solid var(--gold);
  padding: .9rem 1.1rem;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--text);
  margin-top: 1.5rem;
  font-style: italic;
}



/* ═════ style/social.css ═════ */
/* ══════════════════════════════════════════════════
   SOCIAL MEDIA – linki FB/TikTok/Instagram
   (wydzielone ze style.css, linie 991-1078)
   ══════════════════════════════════════════════════ */

/* ─── SOCIAL MEDIA MINI ─── */
#social-media {
  background: var(--white);
  padding: 40px 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.social-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.social-mini-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color .2s;
}

.social-mini-item:hover {
  color: var(--navy);
}

.social-mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.social-mini-icon svg {
  width: 16px;
  height: 16px;
}

/* Facebook */
.social-mini-item--fb .social-mini-icon {
  background: rgba(24, 119, 242, .1);
  color: #1877f2;
}
.social-mini-item--fb:hover .social-mini-icon {
  background: #1877f2;
  color: #fff;
  transform: scale(1.1);
}

/* TikTok */
.social-mini-item--tiktok .social-mini-icon {
  background: rgba(0, 0, 0, .06);
  color: #000;
}
.social-mini-item--tiktok:hover .social-mini-icon {
  background: #000;
  color: #fff;
  transform: scale(1.1);
}

/* Instagram */
.social-mini-item--ig .social-mini-icon {
  background: rgba(225, 48, 108, .08);
  color: #e1306c;
}
.social-mini-item--ig:hover .social-mini-icon {
  background: #e1306c;
  color: #fff;
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .social-mini {
    gap: 1.5rem;
  }
  .social-mini-item > span:last-child {
      display: none;
  }
}



/* ═════ style/projects.css ═════ */
/* ══════════════════════════════════════════════════
   PROJEKTY ERASMUS+ – sekcja na stronie głównej
   Układ dwukolumnowy: po lewej akredytacja i trwałe liczby, po prawej
   to, co program daje uczniom, nauczycielom i szkole.
   Sekcja celowo nie wymienia pojedynczych roczników projektu — te żyją
   na /erasmus i są zarządzane z panelu. Dzięki temu strona główna nie
   wymaga poprawek na starcie każdego roku szkolnego.
   ══════════════════════════════════════════════════ */

/* ─── TŁO SEKCJI ─── */
#projekty { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
#projekty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
/* Delikatna złota poświata w rogu — zamiast jednolitej płaszczyzny granatu. */
#projekty::after {
  content: '';
  position: absolute;
  top: -180px; right: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(240, 192, 96, .1), transparent 62%);
  pointer-events: none;
}
#projekty .container { position: relative; z-index: 1; }
#projekty .sec-label { color: #f0c060; }
#projekty .sec-title { color: #fff; }
#projekty .sec-desc  { color: rgba(255, 255, 255, .65); }

/* ─── UKŁAD ─── */
.projekty-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 3.5rem;
  align-items: start;
}

/* ══════ LEWA KOLUMNA ══════ */
.projekty-intro .sec-desc { margin-bottom: 1.75rem; }

/* ─── Wyróżnienie: akredytacja — fundament całego programu w szkole ─── */
.projekty-akred {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(240, 192, 96, .3);
  border-left: 3px solid #f0c060;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, rgba(240, 192, 96, .12), rgba(240, 192, 96, .03));
}
.projekty-akred-ikona {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 192, 96, .15);
  color: #f0c060;
}
.projekty-akred-ikona svg { width: 19px; height: 19px; stroke-width: 1.9; }
.projekty-akred-tresc strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: .15rem;
}
.projekty-akred-tresc span {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
}

/* ─── Liczby ─── */
.projekty-liczby {
  display: flex;
  gap: 1.75rem;
  margin: 1.75rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.projekty-liczba { position: relative; }
.projekty-liczba + .projekty-liczba { padding-left: 1.75rem; }
.projekty-liczba + .projekty-liczba::before {
  content: '';
  position: absolute;
  left: 0; top: .2rem; bottom: .2rem;
  width: 1px;
  background: rgba(255, 255, 255, .12);
}
.projekty-liczba b {
  display: block;
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.15;
  color: #f0c060;
}
.projekty-liczba span {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .55);
  margin-top: .2rem;
  max-width: 130px;
}

/* ══════ PRAWA KOLUMNA — CO DAJE PROGRAM ══════ */
/* ══════ PRAWA KOLUMNA: lata projektu ══════ */
.projekty-lata {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  overflow: hidden;
}
.projekty-lata-head {
  padding: .8rem 1.25rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #f0c060;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
/* Około 5 lat mieści się bez przewijania; kolejne są dostępne po przewinięciu listy. */
.projekty-lata-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 390px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 192, 96, .45) transparent;
}
.projekty-lata-lista::-webkit-scrollbar { width: 6px; }
.projekty-lata-lista::-webkit-scrollbar-thumb { background: rgba(240, 192, 96, .45); border-radius: 3px; }
.projekty-lata-lista:focus-visible { outline: 2px solid #f0c060; outline-offset: -2px; }
.projekty-lata-lista li + li { border-top: 1px solid rgba(255, 255, 255, .08); }

.projekty-rok {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .95rem 1.25rem;
  color: #fff;
  text-decoration: none;
  transition: background .15s;
}
.projekty-rok:hover { background: rgba(255, 255, 255, .06); }
.projekty-rok-lata {
  flex-shrink: 0;
  min-width: 88px;
  font-family: 'Lora', serif;
  font-size: 15px;
  font-weight: 600;
  color: #f0c060;
}
.projekty-rok-tresc { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.projekty-rok-tresc strong { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.projekty-rok-tresc > span { font-size: 13px; color: rgba(255, 255, 255, .6); }
.projekty-rok-tresc em { font-style: normal; font-weight: 600; margin-right: .5rem; }
.projekty-rok-status--upcoming { color: #f0c060; }
.projekty-rok-status--active   { color: #7fd49a; }
.projekty-rok-status--done     { color: #9cc0f5; }
.projekty-rok-strzalka { width: 16px; height: 16px; flex-shrink: 0; color: rgba(255, 255, 255, .4); }
.projekty-rok:hover .projekty-rok-strzalka { color: #f0c060; }

/* ─── RESPONSYWNOŚĆ ─── */
@media (max-width: 900px) {
  .projekty-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .projekty-intro .sec-desc { max-width: none; }
}
@media (max-width: 560px) {
  /* Na wąskim ekranie liczby układają się w siatkę — pionowe kreski przy
     zawijaniu wierszy zostawiały krzywe wcięcia, więc tu ich nie ma. */
  .projekty-liczby { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1rem; }
  .projekty-liczba + .projekty-liczba { padding-left: 0; }
  .projekty-liczba + .projekty-liczba::before { display: none; }
  .projekty-liczba span { max-width: none; }
  .projekty-akred { padding: 1rem; gap: .85rem; }
  .projekty-rok { padding: .85rem 1rem; gap: .75rem; }
  .projekty-rok-lata { min-width: 74px; font-size: 14px; }
}



/* ═════ style/contact-footer.css ═════ */
/* ══════════════════════════════════════════════════
   KONTAKT + STOPKA
   (wydzielone ze style.css, linie 1133-1269)
   ══════════════════════════════════════════════════ */

/* ─── KONTAKT ─── */
#kontakt { background: var(--bg); }

.kontakt-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.kontakt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.kontakt-card-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.kontakt-card-title svg { width: 15px; height: 15px; color: var(--blue); stroke-width: 2; }
.kontakt-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
}
.kontakt-item:last-child { border-bottom: none; }
.kontakt-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.kontakt-item-icon svg { width: 16px; height: 16px; stroke-width: 1.75; }
.kontakt-item-label {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: .15rem;
}
.kontakt-item-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}
.kontakt-item-val a {
  color: var(--blue);
  text-decoration: none;
}
.kontakt-item-val a:hover { text-decoration: underline; }

.kontakt-map {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.kontakt-map iframe {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

.hours-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--navy);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.hours-title svg { width: 14px; height: 14px; color: var(--blue); stroke-width: 2; }
.hour-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: .4rem 0;
  border-bottom: 1px dashed var(--border);
}
.hour-row:last-child { border-bottom: none; }
.hour-row .day { color: var(--muted); }
.hour-row .time { font-weight: 500; color: var(--navy); }

.quick-links-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--navy);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.quick-links-title svg { width: 14px; height: 14px; color: var(--blue); stroke-width: 2; }
.quick-links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.quick-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 13.5px;
  color: var(--blue);
  text-decoration: none;
}
.quick-link:hover { text-decoration: underline; }
.quick-link svg { width: 13px; height: 13px; stroke-width: 2; flex-shrink: 0; }

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .5);
  text-align: center;
  font-size: 12.5px;
  padding: 1.25rem 1rem;
  line-height: 1.8;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
footer > div {
  position: relative;
}
footer a {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
}
footer a:hover { color: #fff; }
.footer-divider { margin: 0 .5rem; opacity: .4; }



/* ═════ style/animations.css ═════ */
/* ══════════════════════════════════════════════════
   ANIMACJE – fade-up itp.
   (wydzielone ze style.css, linie 1270-1279)
   ══════════════════════════════════════════════════ */

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }



/* ═════ style/home-responsive.css ═════ */
/* ══════════════════════════════════════════════════
   RESPONSYWNOŚĆ – strona główna (hero/news/projekty)
   (wydzielone ze style.css, linie 1280-1298)
   ══════════════════════════════════════════════════ */

/* ─── RESPONSIVE ─── */
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
  .kontakt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .topbar        { display: none; }
  .navbar-inner  { padding: 0 1rem; }
  .nav-links     { display: none; }
  .hero          { padding: 72px 1.25rem 56px; min-height: 100svh; }
  .hero-stats    { gap: 1.25rem; margin-top: 2.5rem; padding-top: 2rem; }
  .hero-stat .num { font-size: 1.6rem; }
  section        { padding: 48px 1.25rem; }
  .news-grid,
  .kierunki-grid { grid-template-columns: 1fr; }
}


/* ── Sekcja "Kierunki kształcenia" + karuzela (index.php, komponent includes/carousel.php) ── */

/* ═════ style/kierunki-section.css ═════ */
/* ══════════════════════════════════════════════════
   SEKCJA KIERUNKI – ciemny nagłówek + układ na stronie głównej
   (wydzielone ze style.css, linie 3078-3214)
   ══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   KIERUNKI SECTION – ciemny nagłówek + nowa karuzela
   ═══════════════════════════════════════════════════════════════ */

/* ─── KIERUNKI-LEFT: ciemne tło ─── */
#kierunki .kierunki-left {
  background: linear-gradient(135deg, #1a2a4a 0%, #22386a 100%);
  color: #fff;
  padding: 64px 2rem 48px;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#kierunki .kierunki-left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46, 95, 170, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#kierunki .kierunki-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

#kierunki .kierunki-left > * {
  position: relative;
  z-index: 1;
}

#kierunki .kierunki-left .sec-label {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
}

#kierunki .kierunki-left .sec-label svg,
#kierunki .kierunki-left .sec-label i {
  stroke: #f0c060;
  color: #f0c060;
}

#kierunki .kierunki-left .sec-title {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 0.75rem;
}

#kierunki .kierunki-left .sec-desc {
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
}

#kierunki .kierunki-left .kierunki-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

#kierunki .kierunki-left .kierunki-count-num {
  font-family: 'Lora', serif;
  font-size: 3rem;
  font-weight: 600;
  color: #f0c060;
  line-height: 1;
}

#kierunki .kierunki-left .kierunki-count-lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

/* ─── KIERUNKI-RIGHT: jasne tło dla karuzeli ─── */
#kierunki .kierunki-right {
  background: var(--bg);
  padding: 48px 1rem 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── KIERUNKI-INNER: layout ─── */
#kierunki {
  padding: 0 !important;
}

#kierunki .kierunki-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (max-width: 900px) {
  #kierunki .kierunki-left {
    padding: 48px 1.5rem 36px;
  }

  #kierunki .kierunki-left .sec-desc {
    margin: 0 auto;
  }

  #kierunki .kierunki-right {
    padding: 32px 0.5rem 48px;
  }
}

@media (max-width: 480px) {
  #kierunki .kierunki-left {
    padding: 36px 1rem;
  }

  #kierunki .kierunki-left .sec-title {
    font-size: 1.5rem;
  }

  #kierunki .kierunki-left .kierunki-count-num {
    font-size: 2.5rem;
  }
}




/* ═════ style/carousel.css ═════ */
/* ══════════════════════════════════════════════════
   KARUZELA (carousel-alt) – używana przez includes/carousel.php
   (wydzielone ze style.css, linie 3215-3714)
   ══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   CAROUSEL ALT – nowoczesna karuzela (bez nagłówka)
   ═══════════════════════════════════════════════════════════════ */

.carousel-alt-wrapper {
  --ca-gap: 24px;
  --ca-card-width: 340px;
  --ca-radius: 20px;
  --ca-transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
  /* FIX: overflow visible by cień nie był ucinany */
  overflow: visible;
}

/* ─── HEADER: licznik + pasek postępu ─── */
.carousel-alt-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 0 4px;
}

.carousel-alt-counter {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: 'Lora', serif;
  font-weight: 600;
  color: var(--navy);
  flex-shrink: 0;
}

.carousel-alt-counter-current {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--blue);
}

.carousel-alt-counter-sep {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0.1rem;
}

.carousel-alt-counter-total {
  font-size: 0.9rem;
  color: var(--muted);
}

.carousel-alt-progress {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.carousel-alt-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--navy2));
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── VIEWPORT + TRACK ─── */
.carousel-alt-viewport {
  overflow: hidden;
  cursor: grab;
  border-radius: var(--ca-radius);
  /* FIX: padding zwiększony by cień nie był ucinany */
  margin: -1rem;
  padding: 2rem 1.5rem;
}

.carousel-alt-viewport:active {
  cursor: grabbing;
}

.carousel-alt-track {
  display: flex;
  gap: var(--ca-gap);
  transition: var(--ca-transition);
  will-change: transform;
}

/* ─── CARD ─── */
.carousel-alt-card {
  flex: 0 0 var(--ca-card-width);
  width: var(--ca-card-width);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--ca-radius);
  overflow: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0.5;
  transform: scale(0.94);
  cursor: pointer;
}

.carousel-alt-card.is-active {
  opacity: 1;
  transform: scale(1);
  
  border-color: rgba(46, 95, 170, 0.25);
}

.carousel-alt-card.is-prev,
.carousel-alt-card.is-next {
  opacity: 0.7;
  transform: scale(0.97);
}



.carousel-alt-card.is-active:hover {
  transform: scale(1.02);
}

/* Animacja wejścia */
.carousel-alt-card {
  animation: caFadeUp 0.6s ease both;
  animation-delay: calc(var(--index, 0) * 0.08s);
}

@keyframes caFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.94);
  }
  to {
    opacity: 0.5;
    transform: translateY(0) scale(0.94);
  }
}

.carousel-alt-card.is-active {
  animation: caFadeUpActive 0.6s ease both;
  animation-delay: calc(var(--index, 0) * 0.08s);
}

@keyframes caFadeUpActive {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─── CARD VISUAL (obraz + badge) ─── */
.carousel-alt-card-visual {
  position: relative;
  overflow: hidden;
}

.carousel-alt-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--blue-lt) 0%, #dbe4f3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.carousel-alt-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-alt-card:hover .carousel-alt-card-img img {
  transform: scale(1.06);
}

.carousel-alt-card-img svg {
  width: 56px;
  height: 56px;
  stroke-width: 1.25;
  opacity: 0.5;
  color: var(--blue);
}

/* Badge overlay */
.carousel-alt-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  
}

.carousel-alt-card-badge--br {
  background: rgba(240, 240, 240, 0.95);
  color: var(--muted);
}

.carousel-alt-card-badge--date {
  background: var(--navy);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

/* ─── CARD BODY ─── */
.carousel-alt-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.carousel-alt-card-title {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin: 0;
}

.carousel-alt-card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── META ─── */
.carousel-alt-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.25rem;
}

.carousel-alt-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.carousel-alt-meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--blue);
  stroke-width: 2;
  flex-shrink: 0;
}

/* ─── LINK ─── */
.carousel-alt-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.5rem;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.2s ease;
  align-self: flex-start;
}

.carousel-alt-card-link:hover {
  gap: 10px;
  color: var(--navy);
}

.carousel-alt-card-link svg {
  transition: transform 0.2s ease;
}

.carousel-alt-card-link:hover svg {
  transform: translateX(3px);
}

/* ─── NAVIGACJA ─── */
.carousel-alt-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
  padding: 0 1rem;
}

/* Przyciski */
.carousel-alt-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(30, 50, 100, 0.06);
}

.carousel-alt-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 4px 16px rgba(26, 42, 74, 0.25);
  transform: scale(1.05);
}

.carousel-alt-btn:active {
  transform: scale(0.95);
}

.carousel-alt-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

/* Kropki */
.carousel-alt-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-alt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-alt-dot:hover {
  background: var(--blue);
  transform: scale(1.3);
}

.carousel-alt-dot.active {
  width: 32px;
  border-radius: 6px;
  background: var(--navy);
}

.carousel-alt-dot-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: inherit;
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE – POPRAWIONA KARUZELA
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .carousel-alt-wrapper {
    --ca-card-width: 300px;
    --ca-gap: 18px;
  }

  .carousel-alt-card-img {
    height: 170px;
  }

  .carousel-alt-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .carousel-alt-wrapper {
    --ca-card-width: 82vw;
    --ca-gap: 14px;
    /* FIX: padding daje przestrzeń na cień karty */
    padding: 1rem 0.75rem 1.5rem;
    overflow: visible;
  }

  .carousel-alt-viewport {
    margin: -1rem -0.75rem;
    padding: 1.5rem 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: default;
  }

  .carousel-alt-viewport::-webkit-scrollbar {
    display: none;
  }

  .carousel-alt-track {
    transition: none;
  }

  .carousel-alt-card {
    scroll-snap-align: center;
    scroll-snap-stop: always;
    opacity: 1;
    transform: scale(1);
    
  }

  .carousel-alt-card-img {
    height: 180px;
  }

  .carousel-alt-card-body {
    padding: 1.1rem 1.1rem 1.4rem;
  }

  .carousel-alt-card-title {
    font-size: 1rem;
  }

  .carousel-alt-header {
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }

  .carousel-alt-nav {
    margin-top: 1.25rem;
    gap: 1rem;
  }

  .carousel-alt-btn {
    width: 42px;
    height: 42px;
  }

  .carousel-alt-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .carousel-alt-wrapper {
    --ca-card-width: 88vw;
    /* FIX: padding na najmniejszych ekranach */
    padding: 0.75rem 0.5rem 1.25rem;
    overflow: visible;
  }

  .carousel-alt-card-img {
    height: 160px;
  }

  .carousel-alt-card-badge {
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 10.5px;
  }

  .carousel-alt-counter-current {
    font-size: 1.25rem;
  }
}


/* ── Współdzielone komponenty podstron: page-hero, page-content,
      feature-grid, check-list, page-cta (kierunki/*, kadra, dokumenty…) ── */

/* ═════ style/subpage-components.css ═════ */
/* ══════════════════════════════════════════════════
   KOMPONENTY PODSTRON – page-hero, page-content, feature-grid, check-list, page-cta (używane m.in. przez strony kierunków)
   (wydzielone ze style.css, linie 1299-1495)
   ══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   PODSTRONY – komponenty współdzielone
   ═══════════════════════════════════════════ */

/* ─── PAGE HERO ─── */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 52px 2rem 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero .container { max-width: 860px; position: relative; }
.page-hero .sec-label { color: rgba(255,255,255,.6); margin-bottom: .9rem; }
.page-hero-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: .9rem;
  color: #fff;
}
.page-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,.72);
  max-width: 680px;
  line-height: 1.7;
}
/* ─── PAGE HERO – wariant wyśrodkowany (komponent, styl z deklaracji dostępności) ─── */
.page-hero-centered {
  padding: 3.5rem 2rem 3rem;
  text-align: center;
}
.page-hero-centered .page-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: .75rem;
}
.page-hero-centered .page-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}
.page-hero-centered .kierunek-meta-row { justify-content: center; }

.kierunek-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.4rem;
}
.kierunek-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: .3rem .9rem;
  font-size: 12.5px;
  color: rgba(255,255,255,.85);
}

/* ─── PAGE CONTENT ─── */
.page-content {
  padding: 52px 2rem 72px;
  background: var(--bg);
}
.page-content .container { max-width: 1600px; }

/* ─── PAGE BLOCK ─── */
.page-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  margin-bottom: 1.5rem;
}
.page-block-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1.4rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--border);
}

/* ─── FEATURE GRID ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}
.feature-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .15s, background .15s;
}
.feature-card:hover {
  border-color: var(--blue);
  background: var(--blue-lt);
}
.feature-card-icon {
  width: 36px;
  height: 36px;
  background: var(--blue-lt);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.feature-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

/* ─── CHECK LIST ─── */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}

/* ─── PARTNER TAGS ─── */
.partner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.partner-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .9rem;
  background: var(--blue-lt);
  border: 1px solid #c5d5ef;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}

/* ─── PAGE CTA ─── */
.page-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.4rem 2rem;
  flex-wrap: wrap;
}
.page-cta-text {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  line-height: 1.55;
}
.page-cta-text strong {
  display: block;
  color: #fff;
  font-size: 15px;
  margin-bottom: .2rem;
}



/* ── Strona /kadra – siatka pracowników ── */

/* ═════ style/staff.css ═════ */
/* ══════════════════════════════════════════════════
   KADRA – siatka pracowników na /kadra
   (wydzielone ze style.css, linie 1496-1888)
   ══════════════════════════════════════════════════ */

/* ─── STAFF GRID ─── */
.staff-group { margin-bottom: 2.5rem; }
.staff-group-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .3rem .85rem;
  margin-bottom: 1rem;
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .85rem;
}
.staff-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  transition: border-color .15s;
}
.staff-card:hover { border-color: var(--blue); }
.staff-avatar {
  width: 48px;
  height: 48px;
  background: var(--blue-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.staff-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.staff-role {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: .1rem;
}
.staff-mail {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
  margin-top: .35rem;
}
.staff-mail:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════
   KADRA – NOWY LAYOUT (sidebar + content)
   ═══════════════════════════════════════════ */

/* Główny kontener kadry */
.kadra-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Sidebar z listą grup */
.kadra-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.kadra-sidebar::-webkit-scrollbar {
  display: none;
}

.kadra-sidebar-title {
  font-family: 'Lora', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--border);
}

/* Lista grup w sidebar */
.kadra-group-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.kadra-group-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s ease;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid transparent;
  background: var(--white);
}

.kadra-group-item:hover {
  background: var(--blue-lt);
  color: var(--blue);
  border-color: var(--border);
}

.kadra-group-item.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.kadra-group-item .group-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .7;
}

.kadra-group-item.active .group-icon {
  opacity: 1;
  color: #f0c060;
}

.kadra-group-item .group-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg);
  color: var(--muted);
  padding: .15rem .5rem;
  border-radius: 10px;
}

.kadra-group-item.active .group-count {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* Główna zawartość */
.kadra-main {
  flex: 1;
  min-width: 0;
}

/* Nagłówek aktywnej grupy */
.kadra-group-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.kadra-group-header-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0c060;
  flex-shrink: 0;
}

.kadra-group-header-icon svg {
  width: 22px;
  height: 22px;
}

.kadra-group-header-text h2 {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .2rem;
}

.kadra-group-header-text p {
  font-size: 13px;
  color: var(--muted);
}

/* Grid nauczycieli */
.kadra-teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* Karta nauczyciela – nowy wygląd */
.kadra-teacher-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}

.kadra-teacher-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue);
}

/* Avatar */
.kadra-teacher-avatar {
  width: 72px;
  height: 72px;
  background: var(--blue-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--blue);
  position: relative;
}

.kadra-teacher-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: border-color .2s;
}

.kadra-teacher-card:hover .kadra-teacher-avatar::after {
  border-color: var(--blue);
}

.kadra-teacher-avatar svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

/* Imię i nazwisko */
.kadra-teacher-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .35rem;
  line-height: 1.4;
}

/* Rola */
.kadra-teacher-role {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-lt);
  padding: .25rem .7rem;
  border-radius: 20px;
  margin-top: .3rem;
}

.kadra-teacher-role--gold {
  background: var(--gold-lt);
  color: var(--gold);
}

/* Tytuł naukowy badge */
.kadra-teacher-title {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  padding: .2rem .5rem;
  border-radius: 4px;
}

/* Panel mobilny – select zamiast sidebar */
.kadra-mobile-select {
  display: none;
  width: 100%;
  margin-bottom: 1.5rem;
}

.kadra-mobile-select select {
  width: 100%;
  padding: .75rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  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='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* Animacja przejścia */
.kadra-group-content {
  animation: fadeUp .3s ease both;
}

/* Responsywność */
@media (max-width: 900px) {
  .kadra-layout {
    flex-direction: column;
  }

  .kadra-sidebar {
    display: none;
  }

  .kadra-mobile-select {
    display: block;
  }

  .kadra-main {
    width: 100%;
  }

  .kadra-teachers-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 640px) {
  .kadra-teachers-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .kadra-group-header {
    flex-direction: column;
    text-align: center;
  }

  .kadra-teacher-card {
    padding: 1.25rem 1rem;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .page-hero {
    padding: 32px 1.25rem 28px;
  }
  .page-content { padding: 28px 1rem 48px; }
  .page-block   { padding: 1rem 1rem; }
  .page-cta     { flex-direction: column; align-items: flex-start; }
  .feature-grid { grid-template-columns: 1fr; }
  .staff-grid   { grid-template-columns: 1fr; }
  .news-grid    { grid-template-columns: 1fr; gap: 1rem; }
  .news-card    { border-radius: 8px; }
  .kontakt-card  { padding: 1.25rem 1rem; }
}


/* ── Strona /erasmus – zakładki lat projektu Erasmus+ ── */

/* ═════ style/erasmus.css ═════ */
/* ══════════════════════════════════════════════════
   STRONA /erasmus – akredytacja, lata + wyjazdy,
   partnerzy, kontakt, FAQ
   Treści pochodzą z bazy i są zarządzane w /panel/erasmus.
   ══════════════════════════════════════════════════ */

.erasmus-container { max-width: 900px; }

/* ─── WSPÓLNE ─── */
.erasmus-sec { margin-bottom: 2.75rem; }
.erasmus-sec-title {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--gold);
}
.erasmus-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.erasmus-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-top: .6rem;
}
.erasmus-muted { font-size: 14px; color: var(--muted); }
.erasmus-box a,
.erasmus-points a { color: var(--blue); }
.erasmus-box a:hover,
.erasmus-points a:hover { color: var(--navy); }
.erasmus-link { display: inline-block; margin-top: .35rem; font-size: 14px; }

/* ─── ROZWIJANE: akredytacja + FAQ ─── */
.erasmus-accred { margin-bottom: 2.75rem; overflow: hidden; }
.erasmus-accred summary { background: var(--gold-lt); }
.erasmus-accred[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.erasmus-accred summary,
.erasmus-faq summary {
  padding: .9rem 1.2rem;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.erasmus-accred summary:hover,
.erasmus-faq summary:hover { text-decoration: underline; }
.erasmus-accred summary::marker { color: var(--gold); }
.erasmus-faq summary::marker { color: var(--blue); }
.erasmus-faq[open] summary { background: var(--blue-lt); }
.erasmus-faq[open] .erasmus-text { padding-top: .8rem; }
.erasmus-accred-body { padding: 0 1.2rem 1.1rem; }
.erasmus-accred-body .erasmus-text:first-child { margin-top: 0; }

.erasmus-faq + .erasmus-faq { border-top: 1px solid var(--border); }
.erasmus-faq .erasmus-text { margin: 0; padding: 0 1.2rem 1rem 2.2rem; }

/* ─── ZAKŁADKI LAT (klasyczne „teczki” doklejone do ramki) ─── */
.erasmus-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}
.erasmus-tab {
  background: var(--blue-lt);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: .55rem 1.1rem;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.erasmus-tab:hover { color: var(--navy); background: #dbe6f7; }
.erasmus-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: inset 0 3px 0 var(--gold);
  padding-bottom: calc(.55rem + 1px);
}

/* ─── KARTA ROKU ─── */
.erasmus-panel {
  padding: 1.5rem 1.6rem 1.6rem;
  border-top-left-radius: 0;
}
.erasmus-panel-title {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
}
.erasmus-status { font-size: 14px; color: var(--muted); margin-top: .15rem; }
.erasmus-status span { font-weight: 600; }
.erasmus-status--upcoming { color: #b07d12; }
.erasmus-status--active   { color: #2e8b4f; }
.erasmus-status--done     { color: var(--blue); }

/* ─── PUNKTY (tekst lub link) ─── */
.erasmus-points {
  margin: .8rem 0 0;
  padding-left: 1.3rem;
  list-style: disc;
}
.erasmus-points li {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: .2rem;
}
.erasmus-points li::marker { color: var(--gold); }

/* ─── TABELE: wyjazdy, partnerzy ─── */
.erasmus-sub {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.6rem 0 .6rem;
}
.erasmus-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.erasmus-table th {
  text-align: left;
  font-weight: 600;
  font-size: 13.5px;
  color: #fff;
  background: var(--navy2, var(--navy));
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--border);
}
.erasmus-table td {
  padding: .75rem .8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}
.erasmus-table tbody tr:last-child td { border-bottom: none; }
.erasmus-table tbody tr:nth-child(even) td { background: #f7f9fc; }
.erasmus-table td:not(:first-child) { white-space: nowrap; }
.erasmus-panel .erasmus-table { border: 1px solid var(--border); }
.erasmus-box > .erasmus-table { border-radius: 6px; overflow: hidden; }
.erasmus-box:has(> .erasmus-table) { overflow: hidden; }
.erasmus-cell-desc { font-size: 14px; color: var(--muted); margin-top: .25rem; line-height: 1.55; }

/* ─── KONTAKT ─── */
.erasmus-contact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  background: var(--blue-lt);
  border-color: #d3deef;
}
.erasmus-person {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: 1rem 1.2rem;
  font-size: 14.5px;
  color: var(--text);
  border-right: 1px solid #d3deef;
}
.erasmus-person:last-child { border-right: none; }
.erasmus-person strong { color: var(--navy); font-size: 15px; }

/* ─── MOBILE: wiersze tabel jako bloki ─── */
@media (max-width: 640px) {
  .erasmus-panel { padding: 1.1rem 1rem; }
  .erasmus-tab { padding: .5rem .8rem; font-size: 13.5px; }
  .erasmus-table thead { display: none; }
  .erasmus-table tr { display: block; padding: .6rem 0; border-bottom: 1px solid var(--border); }
  .erasmus-table tbody tr:last-child { border-bottom: none; }
  .erasmus-table td { display: block; border: none; padding: .15rem .8rem; white-space: normal !important; }
  .erasmus-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  .erasmus-person { border-right: none; border-bottom: 1px solid #d3deef; }
  .erasmus-person:last-child { border-bottom: none; }
  .erasmus-table tbody tr:nth-child(even) { background: #f7f9fc; }
}


/* ── Globalne poprawki pod dotyk/mobile (dotyczą wielu stron) ── */

/* ═════ style/mobile-ux.css ═════ */
/* ══════════════════════════════════════════════════
   MOBILE UX – globalne poprawki dotykowe/mobilne
   (wydzielone ze style.css, linie 1889-1969)
   ══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   MOBILE UX – globalne poprawki
   ═══════════════════════════════════════════ */

/* Przyciski – minimalny tap target 44px */
@media (max-width: 768px) {
  .btn-primary,
  .btn-ghost {
    padding: .85rem 1.6rem;
    font-size: 15px;
    min-height: 44px;
  }

  .hero-cta {
    gap: .75rem;
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-ghost {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Sekcja "o szkole" – lepiej czytać na wąskim */
  .about-text p { font-size: 14px; }

  /* Kontakt */
  .kontakt-grid { grid-template-columns: 1fr; gap: 1rem; }
  .kontakt-card { padding: 1.25rem 1.1rem; }

  /* Footer czytelniejszy */
  footer { font-size: 13px; padding: 1.25rem 1rem; line-height: 2; }

  /* Lepszy scroll na touch */
  .kadra-sidebar { -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  /* Sekcje – mniejszy padding pionowy */
  section { padding: 40px 1rem; }
  .page-hero {
    padding: 28px 1rem 24px;
  }
  .page-content { padding: 24px 1rem 40px; }

  /* hero badge – nie obcinać tekstu */
  .hero-badge { font-size: 11px; padding: .3rem .85rem; }

  /* Karta nauczyciela – bardziej kompaktowa */
  .kadra-teacher-avatar { width: 60px; height: 60px; }
  .kadra-teacher-name   { font-size: 14px; }

  /* Staff card poziome – nie tłoczą się */
  .staff-card { padding: .85rem 1rem; gap: .75rem; }
  .staff-avatar { width: 40px; height: 40px; }
  .staff-name   { font-size: 13.5px; }

  /* Przycisk w page-cta */
  .page-cta { padding: 1.1rem 1rem; }
  .page-cta-text { font-size: 13px; }

  /* News siatka */
  .news-grid { gap: .85rem; }
  .news-body { padding: 1rem 1rem 1.2rem; }
  .news-title { font-size: 15px; }

  /* Kierunki – sekcja lewa */
  .kierunki-left { padding: 36px 1rem; }
  .kierunki-count-num { font-size: 2.4rem; }
}



/* ── Widget dostępności (A11Y) – na każdej stronie przez includes/accessibility.php ── */

/* ═════ style/accessibility-widget.css ═════ */
/* ══════════════════════════════════════════════════
   WIDGET DOSTĘPNOŚCI (A11Y)
   (wydzielone ze style.css, linie 3716-3926)
   ══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   WIDGET DOSTĘPNOŚCI (A11Y)
   ═══════════════════════════════════════════ */

.a11y-toggle {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px 0 0 10px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  box-shadow: -2px 2px 12px rgba(0,0,0,.2);
  transition: background .15s, width .15s;
}
.a11y-toggle:hover,
.a11y-toggle:focus-visible { background: var(--navy); width: 48px; }
.a11y-toggle svg { width: 22px; height: 22px; stroke-width: 1.75; }

.a11y-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .35);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.a11y-overlay.open { opacity: 1; pointer-events: auto; }

.a11y-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 86vw;
  height: 100%;
  background: var(--white);
  box-shadow: -6px 0 28px rgba(0,0,0,.2);
  z-index: 10000;
  transition: right .28s ease;
  overflow-y: auto;
  padding: 1.4rem 1.25rem 2rem;
}
.a11y-panel.open { right: 0; }

.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.3rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--border);
}
.a11y-panel-title {
  font-family: 'Lora', serif;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.a11y-panel-title svg { width: 18px; height: 18px; stroke: var(--blue); }
.a11y-close {
  border: none;
  background: var(--blue-lt);
  color: var(--blue);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.a11y-close:hover { background: var(--blue); color: #fff; }
.a11y-close svg { width: 15px; height: 15px; }

.a11y-group { margin-bottom: 1.3rem; }
.a11y-group-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .6rem;
}

.a11y-fontsize-row { display: flex; gap: .5rem; }
.a11y-btn {
  flex: 1;
  padding: .55rem 0;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: var(--navy);
  transition: background .15s, border-color .15s, color .15s;
}
.a11y-btn:hover { border-color: var(--blue); color: var(--blue); }
.a11y-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.a11y-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem .8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: .55rem;
}
.a11y-toggle-row-label {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
}
.a11y-toggle-row-label svg { width: 16px; height: 16px; stroke: var(--blue); flex-shrink: 0; }

.a11y-switch {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 99px;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.a11y-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.a11y-switch.on { background: var(--blue); }
.a11y-switch.on::after { transform: translateX(16px); }

.a11y-reset {
  width: 100%;
  margin-top: .4rem;
  padding: .6rem 0;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.a11y-reset:hover { border-color: #dc2626; color: #dc2626; }

@media (max-width: 480px) {
  .a11y-toggle { width: 40px; height: 40px; }
  .a11y-toggle svg { width: 19px; height: 19px; }
}

/* ── EFEKTY: aplikowane na <html> ── */
html.a11y-contrast {
  filter: invert(1) hue-rotate(180deg);
  background: #fff;
}
html.a11y-contrast img,
html.a11y-contrast video,
html.a11y-contrast .logo-crest img,
html.a11y-contrast picture {
  filter: invert(1) hue-rotate(180deg);
}

html.a11y-underline a { text-decoration: underline !important; }

html.a11y-cursor,
html.a11y-cursor * {
  cursor: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMyAyIEwzIDIwIEw4IDE2IEwxMSAyMiBMMTQgMjAuNSBMMTEgMTQuNSBMMTggMTQuNSBaIiBmaWxsPSJibGFjayIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjMiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=') 4 4, auto !important;
}
html.a11y-cursor a,
html.a11y-cursor button,
html.a11y-cursor [role="button"],
html.a11y-cursor input,
html.a11y-cursor select,
html.a11y-cursor textarea,
html.a11y-cursor label,
html.a11y-cursor .news-card,
html.a11y-cursor .carousel-alt-card {
  cursor: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNOSAxMS41VjQuNWExLjUgMS41IDAgMCAxIDMgMHY2TTEyIDEwLjV2LTJhMS41IDEuNSAwIDAgMSAzIDB2M00xNSAxMS41di0xYTEuNSAxLjUgMCAwIDEgMyAwdjQuNWMwIDMtMiA2LTYgNnMtNS41LTItNi41LTRMNCAxM2MtLjUtMSAwLTIgMS0yLjMuOC0uMyAxLjYgMCAyIC44bDEgMiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIxLjQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPjxwYXRoIGQ9Ik05IDExLjVWNC41YTEuNSAxLjUgMCAwIDEgMyAwdjZNMTIgMTAuNXYtMmExLjUgMS41IDAgMCAxIDMgMHYzTTE1IDExLjV2LTFhMS41IDEuNSAwIDAgMSAzIDB2NC41YzAgMy0yIDYtNiA2cy01LjUtMi02LjUtNEw0IDEzYy0uNS0xIDAtMiAxLTIuMy44LS4zIDEuNiAwIDIgLjhsMSAyIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjkiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHlsZT0icGFpbnQtb3JkZXI6IHN0cm9rZTsgei1pbmRleDotMSIvPjwvc3ZnPg==') 4 4, pointer !important;
}



/* ── Popup ogłoszeń – na każdej stronie przez includes/announcements.php ── */

/* ═════ style/announcements.css ═════ */
/* ══════════════════════════════════════════════════
   OGŁOSZENIA – popup na środku ekranu
   (wydzielone ze style.css, linie 3927-$)
   ══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   OGŁOSZENIA (popup na środku ekranu)
   ═══════════════════════════════════════════ */

.ann-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.ann-overlay.open { opacity: 1; pointer-events: auto; }

.ann-modal {
  position: fixed;
  inset: 0;
  z-index: 9991;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.ann-modal.open { opacity: 1; pointer-events: auto; }

.ann-modal-card {
  position: relative;
  background: #ffffff;
  border: 3px solid #f59e0b;
  border-radius: 14px;
  width: 100%;
  max-width: 500px;
  max-height: 82vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  transform: translateY(8px) scale(.98);
  transition: transform .18s ease, opacity .18s ease, border-color .15s ease;
}
.ann-modal.open .ann-modal-card { transform: translateY(0) scale(1); }
.ann-modal-card.important { border-color: #dc2626; }

.ann-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 30px 28px 0;
}

.ann-modal-icon-ring { display: contents; }

.ann-modal-icon {
  width: 46px; height: 46px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: #fef3c7;
  color: #b45309;
}
.ann-modal-card.important .ann-modal-icon {
  background: #fee2e2;
  color: #dc2626;
}
.ann-modal-icon svg { width: 22px; height: 22px; stroke-width: 2px; }

.ann-modal-title {
  font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 600; color: #18181b; line-height: 1.4;
  max-width: 380px;
}
.ann-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  border: none; background: transparent; color: #71717a; cursor: pointer;
  width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.ann-modal-close:hover { background: #f4f4f5; color: #18181b; }
.ann-modal-close svg { width: 15px; height: 15px; }

.ann-modal-divider {
  height: 1px;
  margin-top: 22px;
  background: #e4e4e7;
}

.ann-modal-body {
  padding: 16px 28px 22px;
  font-size: 14px; line-height: 1.7; color: #52525b;
  white-space: pre-line;
  text-align: center;
}

.ann-modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 28px; border-top: 1px solid #e4e4e7;
}
.ann-modal-progress { display: flex; align-items: center; gap: 6px; }
.ann-modal-counter { font-size: 12px; color: #71717a; font-variant-numeric: tabular-nums; }
.ann-modal-dots { display: flex; align-items: center; gap: 4px; }
.ann-modal-dot { width: 5px; height: 5px; border-radius: 50%; background: #e4e4e7; transition: background .15s, transform .15s; }
.ann-modal-dot.current { background: #d97706; transform: scale(1.4); }
.ann-modal-card.important .ann-modal-dot.current { background: #dc2626; }

.ann-modal-next {
  border: none; background: #f59e0b; color: #fff;
  padding: .5rem 1.1rem; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background .15s ease;
}
.ann-modal-next:hover { background: #d97706; }
.ann-modal-card.important .ann-modal-next { background: #dc2626; }
.ann-modal-card.important .ann-modal-next:hover { background: #b91c1c; }

@media (max-width: 480px) {
  .ann-modal-card { max-width: 100%; }
  .ann-modal-header { padding: 20px 18px 0; }
  .ann-modal-body { padding: 12px 18px 16px; }
  .ann-modal-footer { padding: 12px 18px; }
}

/* ── Baner zgody na cookies – na każdej stronie przez includes/cookie-consent.php ── */

/* ═════ style/cookie-consent.css ═════ */
/* ══════════════════════════════════════════════════
   BANER ZGODY NA COOKIES + PLACEHOLDER OSADZONYCH TREŚCI
   (includes/cookie-consent.php)
   ══════════════════════════════════════════════════ */

/* Atrybut [hidden] musi wygrywać z jakimkolwiek innym "display" ustawionym
   dla tych elementów gdzie indziej (np. .kontakt-map iframe ma display:block
   w contact-footer.css) — bez tego JS ustawiające el.hidden=true nic
   wizualnie nie zmienia, bo zwykła reguła autora nadpisuje domyślne [hidden]
   przeglądarki. */
[data-consent-embed][hidden],
.consent-embed-placeholder[hidden] {
  display: none !important;
}

/* ─── PASEK NA DOLE EKRANU ─── */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9980;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .18);
  padding: 1rem 1.25rem;
}
.cookie-bar[hidden] { display: none; }

.cookie-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-bar-text {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  flex: 1;
  min-width: 240px;
}
.cookie-bar-icon { flex-shrink: 0; margin-top: .15rem; color: #f0c060; }
.cookie-bar-text p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
  margin: 0;
}
.cookie-bar-text a { color: #f0c060; text-decoration: underline; }

.cookie-bar-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-bar-btn {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: .55rem 1.1rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s, opacity .15s, border-color .15s;
}
.cookie-bar-btn--primary { background: #fff; color: var(--navy); }
.cookie-bar-btn--primary:hover { transform: translateY(-1px); }
.cookie-bar-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
  color: rgba(255, 255, 255, .85);
}
.cookie-bar-btn--ghost:hover { border-color: rgba(255, 255, 255, .6); }

@media (max-width: 640px) {
  .cookie-bar-inner { flex-direction: column; align-items: stretch; }
  .cookie-bar-actions { justify-content: flex-end; }
}

/* ─── PLACEHOLDER OSADZONEJ TREŚCI (np. mapa) DOPÓKI BRAK ZGODY ─── */
.consent-embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
  padding: 1.75rem 1.25rem;
  min-height: 220px;
  justify-content: center;
  background: var(--blue-lt);
  border-radius: var(--radius);
  color: var(--navy);
}
.consent-embed-placeholder svg,
.consent-embed-placeholder i { color: var(--blue); }
.consent-embed-placeholder p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 320px;
}
.consent-embed-accept-btn {
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: .55rem 1.1rem;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s;
}
.consent-embed-accept-btn:hover { background: var(--navy); }
.consent-embed-placeholder a {
  font-size: 12.5px;
  color: var(--blue);
  text-decoration: none;
}
.consent-embed-placeholder a:hover { text-decoration: underline; }

