/* ─────────────────────────────────────────
   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; }

/* ─── 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;
  }
}

/* ─── 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;
}

/* ─── 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;
  }
}

/* ─── 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;
}
.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; }

/* ═══════════════════════════════════════════
   KIERUNKI KSZTAŁCENIA – KARUZELA 3D (WYSOKIE KARTY)
   ═══════════════════════════════════════════ */

.kierunki-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding i min-height dziedziczone z .carousel-wrapper */
}

.kierunki-carousel {
  /* Aliasowane przez .carousel */
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

/* KARTA */
.kierunek-card {
  position: absolute;
  top: 20px;
  width: 340px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: box-shadow 0.45s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease, filter 0.6s ease;
  box-shadow: 0 4px 24px rgba(30, 50, 100, 0.1);
  cursor: pointer;
}

.kierunek-card:hover {
  box-shadow: 0 8px 36px rgba(30, 50, 100, 0.18);
}

/* Środkowa */
.kierunek-card.active {
  transform: translateX(0) scale(1);
  z-index: 10;
  opacity: 1;
  filter: none;
  cursor: pointer;
}

/* Hover na aktywnej */
.kierunek-card.active:hover {
  transform: translateX(0);
  z-index: 30;
  overflow: visible;
  box-shadow: 0 24px 64px rgba(30, 50, 100, 0.35);
}

/* Lewa */
.kierunek-card.prev {
  transform: translateX(-380px) scale(0.85);
  z-index: 5;
  opacity: 0.75;
  filter: brightness(0.92);
}

/* Prawa */
.kierunek-card.next {
  transform: translateX(380px) scale(0.85);
  z-index: 5;
  opacity: 0.75;
  filter: brightness(0.92);
}

/* Ukryte */
.kierunek-card.hidden {
  transform: translateX(0) scale(0.6);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

/* OBRAZ – absolute overlay najeżdżający na treść */
.kierunek-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: var(--blue-lt);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: var(--blue);
  overflow: hidden;
  z-index: 2;
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px 24px 0 0;
}

.kierunek-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.kierunek-card.active:hover .kierunek-card-img img {
  object-fit: cover;
  object-position: center top;
}

.kierunek-card-img svg {
  width: 72px;
  height: 72px;
  stroke-width: 1.25;
  opacity: 0.7;
  margin-top: 34px;
}

.kierunek-card.active .kierunek-card-img {
  background: var(--navy);
  color: #fff;
}

.kierunek-card.active .kierunek-card-img svg {
  opacity: 1;
}

.kierunek-card.active:hover .kierunek-card-img {
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
}

/* NAZWA */
.kierunek-card-name {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  padding: 158px 24px 10px;
  line-height: 1.3;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* RESZTA */
.kierunek-card-rest {
  padding: 0 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

/* Badge */
.kierunek-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 20px;
  background: var(--blue-lt);
  color: var(--blue);
  border: 1px solid rgba(46, 95, 170, 0.15);
}

.kierunek-card-badge--gold {
  background: var(--gold-lt);
  color: var(--gold);
  border-color: rgba(184, 137, 42, 0.2);
}

.kierunek-card-badge--br {
  background: #f0f0f0;
  color: var(--muted);
  border-color: var(--border);
}

/* Opis */
.kierunek-card-desc {
  font-size: 14.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
  margin: 0;
}

/* Meta */
.kierunek-card-meta {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.kierunek-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.kierunek-card-meta svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
  stroke-width: 2;
}

/* STRZAŁKI */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.25s ease;
  box-shadow: 0 2px 14px rgba(30, 50, 100, 0.12);
}

.carousel-arrow:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 4px 20px rgba(26, 42, 74, 0.3);
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
}

.carousel-arrow--left { left: 0; }
.carousel-arrow--right { right: 0; }

@media (max-width: 768px) {
  .carousel-arrow {
    width: 40px;
    height: 40px;
    box-shadow: 0 1px 8px rgba(30,50,100,.15);
    /* Larger tap target */
    touch-action: manipulation;
  }
  .carousel-arrow svg { width: 18px; height: 18px; }
  /* Prevent arrows from overlapping cards on very small screens */
  .carousel-arrow--left  { left: 2px; }
  .carousel-arrow--right { right: 2px; }
}

/* KROPKI */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: var(--blue);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--navy);
  width: 28px;
  border-radius: 5px;
}

/* RESPONSIVE – kierunek-card (wsteczna kompatybilność) */
@media (max-width: 1000px) {
  .kierunek-card { width: 300px; }
  .kierunek-card.prev { transform: translateX(-330px) scale(0.82); }
  .kierunek-card.next { transform: translateX(330px) scale(0.82); }
  .kierunek-card-img { height: 120px; }
  .kierunek-card-img svg { width: 60px; height: 60px; }
  .kierunek-card.active:hover .kierunek-card-img { height: 240px; }
}

/* ─── 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;
}

/* ─── 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;
  }
}

/* ─── PROJEKTY ERASMUS ─── */
#projekty { background: var(--navy); color: #fff; }
#projekty .sec-label { color: #f0c060; }
#projekty .sec-title { color: #fff; }
#projekty .sec-desc  { color: rgba(255, 255, 255, .65); }

.projekty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.projekt-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: background .2s;
}
.projekt-card:hover { background: rgba(255, 255, 255, .1); }
.projekt-card-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .6rem;
}
.projekt-card-header svg { width: 16px; height: 16px; color: #f0c060; stroke-width: 2; }
.projekt-year {
  font-size: 11px;
  font-weight: 700;
  color: #f0c060;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.projekt-title {
  font-weight: 600;
  font-size: 14.5px;
  color: #fff;
  margin-bottom: .4rem;
}
.projekt-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.55;
}

/* ─── KONTAKT ─── */
#kontakt { background: var(--bg); }

.kontakt-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  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; }

.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;
}
footer a {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
}
footer a:hover { color: #fff; }
.footer-divider { margin: 0 .5rem; opacity: .4; }

/* ─── 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; }

/* ─── 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: auto; }
  .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,
  .projekty-grid { grid-template-columns: 1fr; }
}
/* ═══════════════════════════════════════════
   PODSTRONY – komponenty współdzielone
   ═══════════════════════════════════════════ */

/* ─── PAGE HERO ─── */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 52px 2rem 48px;
}
.page-hero .container { max-width: 860px; }
.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;
}
.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;
}

/* ─── 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;
}

.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 {
    /* FIX: większy baner na telefonach */
    min-height: 70svh;
    padding: 48px 1.25rem 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .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; }
  .projekty-grid { grid-template-columns: 1fr; gap: .85rem; }
  .kontakt-card  { padding: 1.25rem 1rem; }
}
/* ═══════════════════════════════════════════
   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; }

  /* Projekt karty – pełna szerokość */
  .projekty-grid {
    grid-template-columns: 1fr;
    gap: .85rem;
  }
  .projekt-card { padding: 1.1rem 1.15rem; }

  /* 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 {
    /* FIX: większy baner na małych telefonach */
    min-height: 75svh;
    padding: 40px 1rem 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .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; }
}

/* ═══════════════════════════════════════════
   MOBILE FIX – scroll snap carousel (REPAIRED)
   ═══════════════════════════════════════════ */

html, body { overflow-x: hidden; }

/* ── MOBILE CAROUSEL: horizontal scroll-snap slider ── */
@media (max-width: 768px) {

  /* HERO */
  .hero { min-height: auto !important; padding: 64px 1.25rem 56px; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero-sub { font-size: 14px; margin-bottom: 2rem; }
  .hero-stats { gap: 1.25rem; margin-top: 2.5rem; padding-top: 1.5rem; }
  .hero-stat .num { font-size: 1.6rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn-primary,
  .hero-cta .btn-ghost { width: 100%; max-width: 280px; justify-content: center; }

  /* SECTIONS */
  section { padding: 48px 1.25rem; }
  #kierunki { padding: 0 0 40px !important; }
  .kierunki-left { padding: 40px 1.25rem; }
  .news-grid { grid-template-columns: 1fr !important; gap: 1rem; margin-top: 1.75rem; }

  /* ── CAROUSEL MOBILE RESET ── */
  .carousel-wrapper,
  .kierunki-carousel-wrapper {
    padding: 0 24px !important;        /* minimal padding, cards dominate viewport */
    min-height: unset !important;
    overflow: visible !important;
  }

  /* Track: horizontal scroll container */
  .carousel,
  .kierunki-carousel {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    height: auto !important;
    min-height: unset !important;
    position: static !important;
    perspective: none !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding-bottom: 0 !important;
  }

  .carousel::-webkit-scrollbar,
  .kierunki-carousel::-webkit-scrollbar { display: none !important; }

  /* Cards: wide and visually appealing, with peek of next/prev cards */
  .carousel-wrapper .carousel-card,
  .kierunki-carousel-wrapper .kierunek-card,
  .kierunki-carousel-wrapper .carousel-card {
    position: relative !important;
    flex: 0 0 78vw !important;
    width: 78vw !important;
    max-width: 420px !important;
    margin-right: 16px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(30, 50, 100, 0.12) !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    z-index: auto !important;
    display: block !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    margin-right: 10px !important;
    left: auto !important;
    top: auto !important;
    cursor: default !important;
  }

  /* Last card margin fix */
  .carousel .carousel-card:last-child,
  .kierunki-carousel .carousel-card:last-child,
  .kierunki-carousel .kierunek-card:last-child {
    margin-right: 0 !important;
  }

  /* Card image: relative positioning */
  .carousel-card-img,
  .kierunek-card-img {
    position: relative !important;
    height: clamp(160px, 32svh, 240px) !important;
    width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
  }

  .carousel-card-img svg,
  .kierunek-card-img svg {
    width: 56px !important;
    height: 56px !important;
    margin-top: 0 !important;
  }

  /* Card name: static positioning */
  .carousel-card-name,
  .kierunek-card-name {
    position: static !important;
    padding: 18px 22px 12px !important;
    font-size: 18px !important;
    line-height: 1.35 !important;
  }

  /* Card body */
  .carousel-card-rest,
  .kierunek-card-rest {
    padding: 0 22px 26px !important;
    gap: 12px !important;
  }

  .carousel-card-desc,
  .kierunek-card-desc {
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: var(--muted) !important;
  }

  /* ── ARROWS ── */
  .carousel-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 30 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 2px 14px rgba(30, 50, 100, 0.15) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.2s, background 0.2s !important;
  }
  .carousel-arrow:active {
    background: var(--navy) !important;
    color: #fff !important;
    transform: translateY(-50%) scale(0.92) !important;
  }
  .carousel-arrow--left  { left: 6px !important; }
  .carousel-arrow--right { right: 6px !important; }
  .carousel-arrow svg { 
    width: 20px !important; 
    height: 20px !important; 
    display: block !important;
  }
  /* Ensure arrows never disappear on mobile */
  .carousel-arrow:focus,
  .carousel-arrow:focus-visible,
  .carousel-arrow:hover,
  .carousel-arrow:not(:hover) {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
  }


  /* ── DOTS ── */
  .carousel-dots {
    position: static !important;
    transform: none !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    justify-content: center;
    padding: 20px 0 12px;
    gap: 10px;
  }
  .carousel-dot {
    width: 8px !important;
    height: 8px !important;
    background: #d1d5db !important;
    transition: all 0.3s ease !important;
  }
  .carousel-dot.active {
    background: var(--navy) !important;
    width: 24px !important;
  }
}

@media (max-width: 480px) {
  section { padding: 40px 1rem; }
  .news-thumb { height: 130px; }

  .carousel-wrapper .carousel-card,
  .kierunki-carousel-wrapper .carousel-card,
  .kierunki-carousel-wrapper .kierunek-card {
    flex: 0 0 82vw !important;
    width: 82vw !important;
    margin-right: 12px !important;
  }

  .carousel-arrow {
    width: 40px !important;
    height: 40px !important;
  }
  .carousel-arrow svg { width: 18px !important; height: 18px !important; }
}
/* ═══════════════════════════════════════════
   MOBILE CAROUSEL – clean modern design
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Wrapper */
  .carousel-wrapper,
  .kierunki-carousel-wrapper {
    padding: 0 16px !important;
    overflow: visible !important;
  }

  /* Track */
  .carousel,
  .kierunki-carousel {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    height: auto !important;
    min-height: unset !important;
    position: static !important;
    perspective: none !important;
    gap: 0 !important;
    padding: 8px 4px 16px !important;
  }

  .carousel::-webkit-scrollbar,
  .kierunki-carousel::-webkit-scrollbar { display: none !important; }

  /* Cards */
  .carousel .carousel-card,
  .kierunki-carousel .carousel-card,
  .kierunki-carousel .kierunek-card {
    position: relative !important;
    flex: 0 0 82vw !important;
    width: 82vw !important;
    margin-right: 16px !important;
    border-radius: 20px !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    z-index: 1 !important;
    display: block !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    overflow: hidden !important;
  }

  .carousel .carousel-card:last-child,
  .kierunki-carousel .carousel-card:last-child,
  .kierunki-carousel .kierunek-card:last-child {
    margin-right: 0 !important;
  }

  /* Image */
  .carousel-card-img,
  .kierunek-card-img {
    position: relative !important;
    height: 200px !important;
    width: 100% !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #e8eef8 !important;
  }

  .carousel-card-img img,
  .kierunek-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .carousel-card-img svg,
  .kierunek-card-img svg {
    width: 48px !important;
    height: 48px !important;
    margin: auto !important;
    display: block !important;
    opacity: 0.5 !important;
  }

  /* Name */
  .carousel-card-name,
  .kierunek-card-name {
    padding: 20px 20px 6px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1a2a4a !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }

  /* Body */
  .carousel-card-rest,
  .kierunek-card-rest {
    padding: 0 20px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }

  /* Badge */
  .carousel-card-badge,
  .kierunek-card-badge {
    font-size: 12px !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
  }

  /* Description */
  .carousel-card-desc,
  .kierunek-card-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #6b7280 !important;
    text-align: center !important;
    margin: 0 !important;
  }

  /* Meta */
  .carousel-card-meta,
  .kierunek-card-meta {
    display: flex !important;
    gap: 16px !important;
    margin-top: 4px !important;
    justify-content: center !important;
  }

  .carousel-card-meta span,
  .kierunek-card-meta span {
    font-size: 13px !important;
    color: #6b7280 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
  }

  /* Link */
  .carousel-card-link,
  .kierunek-card-link {
    margin-top: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2e5faa !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  /* ── ARROWS: minimal, inside card image area ── */
  .carousel-arrow {
    position: absolute !important;
    top: 100px !important;
    width: 36px !important;
    height: 36px !important;
    z-index: 10 !important;
    background: rgba(255,255,255,0.9) !important;
    border: none !important;
    color: #1a2a4a !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .carousel-arrow svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.5 !important;
  }

  .carousel-arrow--left { left: 24px !important; }
  .carousel-arrow--right { right: 24px !important; }

  .carousel-arrow:active {
    background: #1a2a4a !important;
    color: #fff !important;
    transform: scale(0.9) !important;
  }

  /* ── DOTS ── */
  .carousel-dots {
    display: flex !important;
    justify-content: center !important;
    padding: 12px 0 8px !important;
    gap: 8px !important;
    position: static !important;
    transform: none !important;
  }

  .carousel-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #d1d5db !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
  }

  .carousel-dot.active {
    background: #1a2a4a !important;
    width: 24px !important;
    border-radius: 4px !important;
  }
}

@media (max-width: 480px) {
  .carousel .carousel-card,
  .kierunki-carousel .carousel-card,
  .kierunki-carousel .kierunek-card {
    flex: 0 0 85vw !important;
    width: 85vw !important;
    margin-right: 12px !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
  }

  .carousel-card-img,
  .kierunek-card-img {
    height: 170px !important;
  }

  .carousel-card-name,
  .kierunek-card-name {
    font-size: 17px !important;
    padding: 18px 18px 6px !important;
  }

  .carousel-card-rest,
  .kierunek-card-rest {
    padding: 0 18px 20px !important;
  }

  .carousel-arrow {
    top: 85px !important;
    width: 32px !important;
    height: 32px !important;
  }

  .carousel-arrow svg {
    width: 16px !important;
    height: 16px !important;
  }

  .carousel-arrow--left { left: 20px !important; }
  .carousel-arrow--right { right: 20px !important; }
}



/* ═══════════════════════════════════════════════════════════════
   CAROUSEL ALT v2 – poprawki: sekcja nagłówkowa + mobile
   ═══════════════════════════════════════════════════════════════ */

/* ─── POPRAWIONY WRAPPER ─── */
.carousel-alt-wrapper {
  --ca-gap: 24px;
  --ca-card-width: 360px;
  --ca-radius: 20px;
  --ca-transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
}

/* ─── HEADER: licznik + pasek postępu ─── */
.carousel-alt-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  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.75rem;
  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: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.carousel-alt-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--navy2));
  border-radius: 4px;
  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);
  margin: 0 -0.5rem;
  padding: 1rem 0.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.55;
  transform: scale(0.92);
  cursor: pointer;
  
}

  .carousel-alt-card:first-child {
    margin-left: calc((100vw - 85vw) / 2 - 0.75rem);
  }

  .carousel-alt-card:last-child {
    margin-right: calc((100vw - 85vw) / 2 - 0.75rem);
  }

.carousel-alt-card.is-active {
  opacity: 1;
  transform: scale(1);
  
  border-color: rgba(46, 95, 170, 0.2);
}

.carousel-alt-card.is-prev,
.carousel-alt-card.is-next {
  opacity: 0.75;
  transform: scale(0.96);
}



.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(24px) scale(0.92); }
  to   { opacity: 0.55; transform: translateY(0) scale(0.92); }
}

.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(24px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── CARD VISUAL ─── */
.carousel-alt-card-visual {
  position: relative;
  overflow: hidden;
}

.carousel-alt-card-img {
  height: 220px;
  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.is-active:hover .carousel-alt-card-img img {
  transform: scale(1.08);
}

.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: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  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(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  
}

.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.15rem;
  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: 2rem;
  padding: 0 1rem;
}

/* Przyciski */
.carousel-alt-btn {
  width: 52px;
  height: 52px;
  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 12px rgba(30, 50, 100, 0.08);
}

.carousel-alt-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 6px 24px rgba(26, 42, 74, 0.3);
  transform: scale(1.08);
}

.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: 320px;
    --ca-gap: 16px;
  }

  .carousel-alt-card-img {
    height: 190px;
  }

  .carousel-alt-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .carousel-alt-section-header {
    padding: 48px 1.5rem 36px;
  }

  .carousel-alt-section-header .kierunki-count-num {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  /* Sekcja nagłówkowa */
  .carousel-alt-section-header {
    padding: 40px 1.25rem 32px;
    text-align: center;
  }

  .carousel-alt-section-header .sec-title {
    font-size: 1.5rem;
  }

  .carousel-alt-section-header .kierunki-count {
    justify-content: center;
    margin-top: 1.25rem;
  }

  .carousel-alt-section-body {
    padding: 32px 0.5rem 48px;
  }

  /* Karuzela mobile */
  .carousel-alt-wrapper {
    --ca-card-width: 85vw;
    --ca-gap: 12px;
    /* FIX: padding daje przestrzeń na cień karty */
    padding: 1rem 0.75rem 1.5rem;
    overflow: visible;
  }

  .carousel-alt-header {
    margin-bottom: 1.25rem;
    padding: 0 0.75rem;
  }

  .carousel-alt-counter-current {
    font-size: 1.4rem;
  }

  .carousel-alt-viewport {
    /* FIX: większy padding by cień nie był ucinany przez overflow-x */
    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;
    display: flex;
    justify-content: flex-start;
  }

  .carousel-alt-viewport::-webkit-scrollbar {
    display: none;
  }

  .carousel-alt-track {
    transition: none;
    padding: 0 0.5rem;
  }

  /* Karty na mobile – pełna szerokość, większe obrazki */
  .carousel-alt-card {
    flex: 0 0 85vw;
    width: 85vw;
    max-width: 380px;
    margin-right: 12px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    opacity: 1;
    transform: scale(1);
    
    border-radius: 16px;
  }

  .carousel-alt-card.is-active {
    
  }

  .carousel-alt-card:last-child {
    margin-right: 0;
  }

  /* Większe obrazki na mobile */
  .carousel-alt-card-img {
    height: 200px;
    border-radius: 16px 16px 0 0;
  }

  .carousel-alt-card-img img {
    border-radius: 0;
  }

  .carousel-alt-card-img svg {
    width: 48px;
    height: 48px;
  }

  /* Większy tekst na mobile */
  .carousel-alt-card-body {
    padding: 1.1rem 1.1rem 1.4rem;
    gap: 0.6rem;
  }

  .carousel-alt-card-title {
    font-size: 1.05rem;
  }

  .carousel-alt-card-desc {
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 4;
  }

  .carousel-alt-card-meta {
    gap: 10px;
  }

  .carousel-alt-meta-item {
    font-size: 12px;
  }

  .carousel-alt-card-badge {
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    font-size: 10.5px;
  }

  /* Nawigacja */
  .carousel-alt-nav {
    margin-top: 1.25rem;
    gap: 1rem;
  }

  .carousel-alt-btn {
    width: 44px;
    height: 44px;
  }

  .carousel-alt-btn svg {
    width: 18px;
    height: 18px;
  }

  .carousel-alt-dots {
    gap: 8px;
  }

  .carousel-alt-dot {
    width: 8px;
    height: 8px;
  }

  .carousel-alt-dot.active {
    width: 24px;
  }
}

@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 {
    flex: 0 0 88vw;
    width: 88vw;
    border-radius: 14px;
  }

  .carousel-alt-card-img {
    height: 180px;
    border-radius: 14px 14px 0 0;
  }

  .carousel-alt-card-body {
    padding: 1rem 1rem 1.25rem;
  }

  .carousel-alt-card-title {
    font-size: 1rem;
  }

  .carousel-alt-card-badge {
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 10px;
  }

  .carousel-alt-section-header {
    padding: 32px 1rem 28px;
  }

  .carousel-alt-section-header .sec-title {
    font-size: 1.35rem;
  }

  .carousel-alt-section-header .sec-desc {
    font-size: 14px;
  }

  .carousel-alt-section-header .kierunki-count-num {
    font-size: 2rem;
  }

  .carousel-alt-section-body {
    padding: 24px 0.25rem 40px;
  }
}



/* ═══════════════════════════════════════════════════════════════
   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 > * {
  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;
  }
}


/* ═══════════════════════════════════════════════════════════════
   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;
  }
}