.af-zespol-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	width: 100%;
}

.af-zespol-card {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	box-shadow: 0 10px 30px rgba(37, 51, 67, 0.1);
	background-color: #253343;
}

.af-zespol-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.af-zespol-card.af-zespol-zoom:hover img {
	transform: scale(1.05);
}

.af-zespol-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 22px 22px 20px;
	color: #f8efe0;
}

.af-zespol-name {
	font-family: 'Playfair Display', serif;
	font-size: 19px;
	font-weight: 600;
	color: #f8efe0;
	margin-bottom: 2px;
}

.af-zespol-role {
	font-family: 'Inter', sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #dfc290;
	margin-bottom: 14px;
}

.af-zespol-contact {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.35s ease, opacity 0.3s ease;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.af-zespol-card:hover .af-zespol-contact,
.af-zespol-card:focus-within .af-zespol-contact {
	max-height: 80px;
	opacity: 1;
}

.af-zespol-contact a {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: rgba(248, 239, 224, 0.85);
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.af-zespol-contact i,
.af-zespol-contact svg {
	color: #dfc290;
	width: 14px;
	text-align: center;
	flex-shrink: 0;
}

.af-zespol-hint {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(248, 239, 224, 0.15);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #f8efe0;
	border: 1px solid rgba(248, 239, 224, 0.3);
	z-index: 2;
	transition: opacity 0.25s ease;
}

.af-zespol-card:hover .af-zespol-hint {
	opacity: 0;
}

/* Uzytkownicy dotykowi (bez hover) - kontakt zawsze widoczny */
@media (hover: none) {
	.af-zespol-contact {
		max-height: none;
		opacity: 1;
	}
	.af-zespol-hint {
		display: none;
	}
}

@media (max-width: 767px) {
	.af-zespol-grid {
		grid-template-columns: 1fr !important;
	}
}
