.wizytowki-page {
  padding: 2.5rem 0 4rem;
}

.wizytowki-intro {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.wizytowki-intro .h1 {
  margin-bottom: 0.75rem;
}

.wizytowki-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft, #334155);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .team-card {
    grid-column: span 2;
  }

  .team-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .team-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #fff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26, 60, 88, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.team-card:hover {
  border-color: rgba(45, 125, 210, 0.35);
  box-shadow: 0 8px 24px rgba(26, 60, 88, 0.08);
}

.team-card__photo-wrap {
  flex: 0 0 auto;
  width: 100%;
  background: #e8eef4;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line, #e2e8f0);
}

/* Wysokość bloku zdjęcia (1:1) — ten sam ze zdjęciem i bez; wyższy niż wcześniejsze 4:3 */
.team-card__photo-wrap::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.team-card__photo-wrap--empty {
  background: linear-gradient(160deg, #eef3f8 0%, #dce6f0 48%, #e8eef4 100%);
}

.team-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.team-card__initials {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 50%;
  background: var(--ink, #1a3c58);
  color: #fff;
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(26, 60, 88, 0.22);
}

.team-card__body {
  padding: 1.2rem 1.25rem 1.3rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

.team-card__head {
  flex: 0 0 auto;
}

.team-card__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink, #1a3c58);
  line-height: 1.3;
}

.team-card__role {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: var(--accent-blue, #2d7dd2);
  font-weight: 500;
  line-height: 1.4;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.team-card__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-contact-tile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line, #e2e8f0);
  background: var(--band, #f4f7fa);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.team-contact-tile:hover {
  border-color: rgba(45, 125, 210, 0.45);
  background: #fff;
  box-shadow: 0 2px 10px rgba(26, 60, 88, 0.06);
}

.team-contact-tile:focus-visible {
  outline: 2px solid var(--accent-blue, #2d7dd2);
  outline-offset: 2px;
}

.team-contact-tile__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink, #1a3c58);
  border: 1px solid rgba(26, 60, 88, 0.08);
}

.team-contact-tile--phone .team-contact-tile__icon {
  color: var(--accent-blue, #2d7dd2);
}

.team-contact-tile--email .team-contact-tile__icon {
  color: var(--ink, #1a3c58);
}

.team-contact-tile--linkedin .team-contact-tile__icon {
  color: #0a66c2;
}

.team-contact-tile__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.25;
}

.team-contact-tile__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #5a6b7d);
}

.team-contact-tile__value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft, #334155);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.team-contact-tile--linkedin .team-contact-tile__value {
  font-weight: 500;
  color: #0a66c2;
}

.wizytowki-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 767px) {
  .wizytowki-page {
    padding: 2rem 0 3rem;
  }

  .wizytowki-intro {
    margin-bottom: 1.75rem;
  }

  .wizytowki-lead {
    font-size: 1rem;
  }

  .wizytowki-actions .btn-ink,
  .wizytowki-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .team-contact-tile {
    min-height: 3.25rem;
  }
}

@media (min-width: 768px) {
  .team-grid {
    gap: 1.25rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .team-card:hover {
    transform: translateY(-2px);
  }

  .team-contact-tile:hover .team-contact-tile__value {
    color: var(--ink, #1a3c58);
  }

  .team-contact-tile--linkedin:hover .team-contact-tile__value {
    color: #004182;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-contact-tile {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .team-card:hover {
    transform: none;
  }
}
