/* ============================================================
   ODDZIAL.CSS – Style strony Oddziału
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #2d3748;
  background: #f7f9fc;
  line-height: 1.7;
}

/* ---------- Nawigacja (topbar) ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.3s ease;
}

.topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar__back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4a6274;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}
.topbar__back:hover { color: #1a2d3a; }

.topbar__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #7a8ea0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  min-width: min(420px, 54vw);
  padding: 0.45rem 0.75rem;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(236,250,251,0.84)),
    rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.58);
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
  text-decoration: none;
}

.topbar__brand img {
  display: block;
  width: 170px;
  height: auto;
  max-height: 34px;
  flex-shrink: 0;
}

.topbar__brand span {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(33,49,59,0.16);
}

.topbar__brand strong {
  color: #21313b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.topbar__brand em {
  color: rgba(33,49,59,0.58);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.1;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,13,20,0.86) 0%, rgba(18,45,54,0.72) 43%, rgba(18,45,54,0.22) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(8,13,20,0.18) 48%, rgba(8,13,20,0.78) 100%),
    url('assets/oddzial-hero.jpg') center 48% / cover no-repeat;
  z-index: 0;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.14) 0 10%, transparent 10% 20%, rgba(255,255,255,0.08) 20% 30%, transparent 30% 100%),
    radial-gradient(circle at 72% 38%, rgba(247,255,255,0.34), transparent 34%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero__badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem;
}

/* Statystyki w hero */
.hero__stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  min-width: 120px;
}

.stat__number {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  font-weight: 800;
  color: #7ee8ff;
}

.stat__label {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ---------- SEKCJE ---------- */
.section {
  padding: 5rem 1.5rem;
}

.section--alt {
  background: #eef2f7;
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__icon {
  display: inline-block;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #1a2d3a;
  margin-bottom: 0.75rem;
}

.section__lead {
  font-size: 1.05rem;
  color: #5a6f80;
  max-width: 650px;
  margin: 0 auto;
}

.section__note {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(91, 184, 212, 0.08);
  border-left: 3px solid #3a9ab5;
  border-radius: 0 12px 12px 0;
  color: #4a5e6d;
  font-size: 0.95rem;
}

/* ---------- Karty zaburzeń ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.card {
  padding: 1.75rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #c7d4df;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.card--accent1 { border-top: 3px solid #5bb8d4; }
.card--accent2 { border-top: 3px solid #7c6dd8; }
.card--accent3 { border-top: 3px solid #d4a05b; }
.card--accent4 { border-top: 3px solid #5bd49b; }

.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2d3a;
  margin-bottom: 0.75rem;
}

.card__list {
  list-style: none;
  padding: 0;
}

.card__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #4a5e6d;
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b0c4d4;
}

/* ---------- Info box ---------- */
.info-box {
  padding: 1.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.info-box--blue {
  background: rgba(91, 184, 212, 0.08);
  border: 1px solid rgba(91, 184, 212, 0.25);
}

.info-box__title {
  font-size: 1rem;
  font-weight: 700;
  color: #5bb8d4;
  margin-bottom: 0.75rem;
}

.info-box__list {
  list-style: none;
  padding: 0;
}
.info-box__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #3d5565;
}
.info-box__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #5bb8d4;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------- Alert ---------- */
.alert {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  align-items: flex-start;
}

.alert--warning {
  background: #fef8ee;
  border: 1px solid #f0d9a8;
}

.alert--info {
  background: #eef7fa;
  border: 1px solid #c5e3ed;
}

.alert__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.alert__text {
  font-size: 0.9rem;
  color: #5a4a30;
}
.alert--warning .alert__text {
  color: #5a4a30;
}
.alert--warning .alert__text strong {
  color: #b8860b;
}

.alert--info .alert__text {
  color: #3d5565;
}
.alert--info .alert__text strong {
  color: #1a2d3a;
}

/* ---------- Siatka terapii ---------- */
.therapy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.therapy-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #4a5e6d;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.therapy-item:hover {
  background: #f0f7fa;
  border-color: #b5d5e2;
  transform: translateY(-2px);
}

/* Rozwijalne boksy */
.therapy-item--expandable {
  display: block;
  cursor: pointer;
  position: relative;
}

.therapy-item__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.therapy-item__header span {
  flex: 1;
}

.therapy-item__chevron {
  flex-shrink: 0;
  color: #b0c4d4;
  transition: transform 0.3s ease, color 0.3s ease;
}

.therapy-item__desc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding: 0 0 0 2.35rem;
  font-size: 0.85rem;
  line-height: 1.65;
  color: #5a6f80;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin-top 0.3s ease;
}

.therapy-item__desc strong {
  color: #1a2d3a;
}

/* Desktop: rozwijanie na hover */
@media (hover: hover) and (pointer: fine) {
  .therapy-item--expandable:hover .therapy-item__desc {
    max-height: 600px;
    opacity: 1;
    margin-top: 0.75rem;
  }
  .therapy-item--expandable:hover .therapy-item__chevron {
    transform: rotate(180deg);
    color: #2a8fa8;
  }
}

/* Mobile + desktop: rozwijanie na kliknięcie (klasa JS) */
.therapy-item--expandable.is-open .therapy-item__desc {
  max-height: 600px;
  opacity: 1;
  margin-top: 0.75rem;
}
.therapy-item--expandable.is-open .therapy-item__chevron {
  transform: rotate(180deg);
  color: #2a8fa8;
}

.therapy-item__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ---------- Ścieżka przyjęcia ---------- */
.admission-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 auto 3rem;
  padding: 1.5rem;
  border: 1px solid rgba(153, 221, 218, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(153,221,218,0.16), rgba(255,255,255,0.04)),
    rgba(255,255,255,0.035);
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,0.18);
}

.admission-path::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 8%, rgba(255,255,255,0.12) 8% 18%, transparent 18% 100%);
  opacity: 0.7;
  pointer-events: none;
}

.admission-path__track {
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 4.1rem;
  height: 3px;
  background: linear-gradient(90deg, #99ddda, #f1dca7, #a7e4bc);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(153,221,218,0.35);
}

.admission-node {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  text-align: center;
  padding: 0.25rem 0.4rem 0;
}

.admission-node__icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7ffff, #bdeae8);
  color: #14313a;
  font-size: 1.7rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(45, 125, 137, 0.28);
}

.admission-node strong {
  color: #1a2d3a;
  font-size: 0.95rem;
  line-height: 1.25;
}

.admission-node span:not(.admission-node__icon) {
  max-width: 130px;
  color: #5a6f80;
  font-size: 0.8rem;
  line-height: 1.35;
}

/* ---------- Kroki kwalifikacji ---------- */
.steps {
  position: relative;
  padding-left: 2rem;
}
.steps::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #5bb8d4, rgba(91,184,212,0.1));
  border-radius: 2px;
}

.step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
}

.step__number {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #5bb8d4, #3a8da8);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(91, 184, 212, 0.3);
  z-index: 1;
}

.step__body {
  padding-top: 0.15rem;
}

.step__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2d3a;
  margin-bottom: 0.4rem;
}

.step__body p {
  font-size: 0.9rem;
  color: #5a6f80;
}

/* ---------- Organizacja ---------- */
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.org-card {
  padding: 1.75rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.org-card:hover {
  border-color: #c7d4df;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.org-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a2d3a;
  margin-bottom: 0.5rem;
}

.org-card__desc {
  font-size: 0.9rem;
  color: #5a6f80;
  margin-bottom: 0.75rem;
}

.org-card__note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #8a9baa;
  font-style: italic;
}

/* Harmonogram */
.schedule {
  margin: 0.75rem 0;
}

.schedule__row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  background: #eef7fa;
}

.schedule__day {
  font-size: 0.9rem;
  font-weight: 500;
  color: #3d5565;
}

.schedule__time {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2a8fa8;
}

/* ---------- Informacje praktyczne ---------- */
.practical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.practical-card {
  padding: 1.75rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.practical-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2d3a;
  margin-bottom: 0.75rem;
}

.practical-card p {
  font-size: 0.9rem;
  color: #5a6f80;
  margin-bottom: 0.5rem;
}

.practical-card__list {
  list-style: none;
  padding: 0;
}
.practical-card__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #3d5565;
}
.practical-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #5bd49b;
  font-weight: 700;
}

.practical-card__note {
  font-style: italic;
  color: #8a9baa !important;
  font-size: 0.85rem !important;
}

/* ---------- Karty porównawcze (Psychiatra/Psychoterapeuta/Psycholog) ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.compare-card {
  padding: 2rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #ccc;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.compare-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.07);
}

.compare-card--teal   { border-top-color: #2a8fa8; }
.compare-card--purple { border-top-color: #7c6dd8; }
.compare-card--amber  { border-top-color: #d4a05b; }

.compare-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.compare-card__emoji {
  font-size: 2rem;
}

.compare-card__header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a2d3a;
}

.compare-card__intro {
  font-size: 0.9rem;
  color: #5a6f80;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.compare-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2a8fa8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1rem 0 0.5rem;
}

.compare-card ul {
  list-style: none;
  padding: 0;
}

.compare-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: #4a5e6d;
}
.compare-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2a8fa8;
  font-weight: 700;
  font-size: 0.8rem;
}

.compare-card--purple li::before { color: #7c6dd8; }
.compare-card--amber li::before  { color: #d4a05b; }

.compare-card__note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #f0f7fa;
  font-size: 0.85rem;
  color: #3d5565;
  border-left: 3px solid #2a8fa8;
}

.compare-card--purple .compare-card__note { border-left-color: #7c6dd8; background: #f5f3ff; }
.compare-card--amber .compare-card__note  { border-left-color: #d4a05b; background: #fef8ee; }

/* ---------- Grupy kadry ---------- */
.staff-group {
  margin-bottom: 3.5rem;
}
.staff-group:last-child {
  margin-bottom: 0;
}

.staff-group__header {
  margin-bottom: 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #dde5ed;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.staff-group__badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.staff-group__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.staff-group__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a2d3a;
}

.staff-group__desc {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

/* ---------- Karty kadry ---------- */
.staff-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.staff-card {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.3s ease;
}
.staff-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.staff-card__photo {
  flex-shrink: 0;
  width: 180px;
  height: 230px;
  min-width: 180px;
  max-width: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: #eef2f7;
}

.staff-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.staff-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f7fa 0%, #e1eff5 100%);
  border: 1px solid #d3e5ed;
  color: #2a8fa8;
}

.staff-card__placeholder-icon {
  width: 56px;
  height: 56px;
  stroke: #2a8fa8;
  opacity: 0.85;
  display: block;
  margin: 0;
}

.staff-card__body {
  flex: 1;
  min-width: 0;
}

.staff-card__name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a2d3a;
  margin-bottom: 0.25rem;
}

.staff-card__role {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2a8fa8;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.staff-card__bio {
  font-size: 0.9rem;
  color: #4a5e6d;
  position: relative;
  max-height: 4.5em;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.staff-card__bio::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.staff-card__bio.is-expanded {
  max-height: 2000px;
}

.staff-card__bio.is-expanded::after {
  opacity: 0;
}

.staff-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid #d0dbe4;
  border-radius: 50px;
  background: #f0f7fa;
  color: #2a8fa8;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.staff-card__toggle:hover {
  background: #e0f0f5;
  border-color: #2a8fa8;
}

.staff-card__toggle svg {
  transition: transform 0.3s ease;
}

.staff-card__toggle.is-expanded svg {
  transform: rotate(180deg);
}

.staff-card__bio p {
  margin-bottom: 0.75rem;
}

.staff-card__bio h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2a8fa8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1rem 0 0.5rem;
}

.staff-card__bio ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0.75rem;
}

.staff-card__bio li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: #4a5e6d;
}
.staff-card__bio li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #2a8fa8;
  font-weight: 700;
}

.staff-card__quote {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid #2a8fa8;
  background: #f0f7fa;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #3d5565;
  font-size: 0.95rem;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
  border-color: #3a9ab5;
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(58, 154, 181, 0.12);
}

.contact-card__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.contact-card__title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a8ea0;
  margin-bottom: 0.5rem;
}

.contact-card__value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2a8fa8;
  margin-bottom: 0.5rem;
}

.contact-card__note {
  font-size: 0.85rem;
  color: #7a8ea0;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid #dde5ed;
  padding: 2rem 1.5rem;
  background: #eef2f7;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer p {
  font-size: 0.8rem;
  color: #8a9baa;
}

.footer__credit {
  margin-top: 0.3rem;
  font-size: 0.75rem !important;
  color: #a0aebf !important;
}

.footer__link {
  color: #5a6f80;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s ease;
}
.footer__link:hover { color: #2a8fa8; }

/* ---------- ANIMACJE WEJŚCIA ---------- */
.section__header,
.card,
.therapy-item,
.admission-path,
.admission-node,
.step,
.org-card,
.practical-card,
.contact-card,
.staff-card,
.compare-card,
.info-box,
.alert {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
    padding: 5rem 1.25rem 2rem;
  }

  .hero__stats {
    gap: 0.75rem;
  }

  .stat {
    padding: 0.75rem 1rem;
    min-width: 90px;
  }

  .stat__number {
    font-size: 1.25rem;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .admission-path {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1.2rem;
  }

  .admission-path__track {
    left: 2.2rem;
    right: auto;
    top: 2rem;
    bottom: 2rem;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, #99ddda, #f1dca7, #a7e4bc);
  }

  .admission-node {
    min-height: auto;
    display: grid;
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "icon title"
      "icon text";
    align-items: center;
    justify-items: start;
    text-align: left;
    column-gap: 1rem;
    padding: 0.4rem 0;
  }

  .admission-node__icon {
    grid-area: icon;
    margin-bottom: 0;
  }

  .admission-node strong {
    grid-area: title;
  }

  .admission-node:not(:has(span:not(.admission-node__icon))) strong {
    grid-row: 1 / 3;
    align-self: center;
  }

  .admission-node span:not(.admission-node__icon) {
    grid-area: text;
    max-width: none;
  }

  .steps {
    padding-left: 1.5rem;
  }

  .topbar__brand {
    min-width: 0;
    width: min(190px, 48vw);
    padding: 0.4rem 0.55rem;
  }

  .topbar__brand img {
    width: 100%;
    max-height: 30px;
  }

  .topbar__brand span {
    display: none;
  }

  .staff-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }

  .staff-card__photo {
    width: 150px;
    height: 190px;
    min-width: 150px;
    max-width: 150px;
  }

  .staff-card__bio {
    text-align: left;
  }

  .staff-card__quote {
    text-align: left;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .staff-group__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}
