/* ── Team block ── */

.team-block {
	padding-block: clamp(60px, 8vw, 120px);
}

.team-block__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--space-m);
	max-width: 680px;
	margin-inline: auto;
	margin-bottom: clamp(40px, 5vw, 72px);
}

/* ── Grid ── */

.team-block__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(12px, 1.5vw, 20px);
}

/* ── Card ── */

.team-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(25, 32, 35, 0.1);
}

.team-card__photo {
	background: #EEECEA;
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

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

.team-card__info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: clamp(16px, 2vw, 24px);
	border-top: 1px solid rgba(25, 32, 35, 0.08);
}

.team-card__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.team-card__name {
	margin: 0;
	font-size: clamp(15px, 1.2vw, 18px);
	font-weight: 600;
	color: #192023;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.team-card__role {
	margin: 0;
	font-size: clamp(12px, 1vw, 14px);
	font-weight: 400;
	color: #192023;
	opacity: 0.55;
	line-height: 1.4;
}

.team-card__linkedin {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(25, 32, 35, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #192023;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.team-card__linkedin:hover {
	background: #0A66C2;
	border-color: #0A66C2;
	color: #fff;
}

/* ── Responsive ── */

@media (max-width: 900px) {
	.team-block__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.team-block__grid {
		grid-template-columns: 1fr;
	}
}
