/* ============================================================
   PORADNIE.CSS – Style strony Poradni (jasna tonacja)
   ============================================================ */

/* ---------- 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 {
  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;
}

.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__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/poradnie-hero.png') 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: 850px;
}

.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: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

.stat__label {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  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.4);
  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: 700px;
  margin: 0 auto;
}

/* ---------- 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: 1.1rem;
  font-weight: 700;
  color: #2a8fa8;
  margin-bottom: 0.5rem;
}

.info-box__text {
  font-size: 0.95rem;
  color: #3d5565;
}

.info-box__note {
  font-size: 0.85rem;
  color: #7a8ea0;
  margin-top: 0.35rem;
}

.phone-link {
  color: #2a8fa8;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}
.phone-link:hover { color: #1c6e82; }

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

.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: #3d5565;
}
.alert__text strong {
  color: #1a2d3a;
}

/* ---------- Karty oferty ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

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

.offer-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

.offer-card__desc {
  font-size: 0.9rem;
  color: #5a6f80;
}

/* ---------- 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__value .phone-link {
  font-size: 1.2rem;
}

.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__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,
.offer-card,
.compare-card,
.staff-card,
.contact-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: 100px;
  }

  .stat__number {
    font-size: 1rem;
  }

  .section {
    padding: 3rem 1.25rem;
  }

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

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

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

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

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

  .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-group__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}
