.team {
	--team-radius: 16px;
	--team-gap: 10px;
}

.team__header {
	position: relative;
	margin-bottom: 40px;
	min-height: 48px;
}

.team__eyebrow {
	position: absolute;
	left: 0;
	top: 2px;
	z-index: 1;
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
	font-weight: 700;
	line-height: 0.9;
	text-decoration: underline;
	text-decoration-thickness: 5%;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.team__title {
	margin: 0;
	color: var(--white);
	font-family: var(--secondary-font);
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.team__title-line1,
.team__title-line2 {
	display: block;
}

.team__title-line1 {
	padding-left: 165px;
}

.team__title-line2 {
	padding-left: 82px;
}

.team__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px var(--team-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.team__item {
	min-width: 0;
	color: var(--white);
}

.team__photo {
	overflow: hidden;
	aspect-ratio: 237 / 273;
	margin-bottom: 14px;
	border-radius: var(--team-radius);
	background: #17171e;
}

.team__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.6s ease;
}

@media (hover: hover) and (pointer: fine) {
	.team__item:hover .team__photo img {
		transform: scale(1.04);
	}
}

.team__name {
	margin: 0 0 6px;
	color: var(--white);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.2;
}

.team__position {
	margin: 0;
	max-width: 240px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
}

@media (max-width: 1100px) {
	.team__title {
		font-size: clamp(18px, 2.2vw, 24px);
	}

	.team__title-line1 {
		padding-left: clamp(80px, 13vw, 165px);
	}

	.team__title-line2 {
		padding-left: clamp(40px, 7vw, 82px);
	}
}

@media (max-width: 900px) {
	.team__header {
		margin-bottom: 28px;
	}

	.team__eyebrow {
		position: static;
		display: inline-block;
		margin-bottom: 8px;
	}

	.team__title-line1,
	.team__title-line2 {
		padding-left: 0;
	}

	.team__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 8px;
	}
}

@media (max-width: 640px) {
	.team__name {
		font-size: 16px;
	}
}

.team__text {
	max-width: none;
	margin: 20px 0 0;
	padding-left: 0;
	color: rgba(255, 255, 255, 0.6);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
}


@media (max-width: 900px) {
	.team__text {
		max-width: none;
		padding-left: 0;
	}
}
