.team-page {
	background: #181c39;
	color: #fcfcfc;
}

.team-section {
	padding: 100px 0;
	background: #181c39;
	color: #fcfcfc;
}

.team-header {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 64px;
	max-width: 841px;
}

.team-title {
	margin: 0;
	font-family: var(--font-inter-tight, 'Inter Tight', sans-serif);
	font-weight: 500;
	font-size: 48px;
	line-height: 1;
	letter-spacing: -0.8px;
	color: #fcfcfc;
}

.team-subtitle {
	margin: 0;
	max-width: 600px;
	font-family: var(--font-inter-tight, 'Inter Tight', sans-serif);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: -0.6px;
	color: #fcfcfc;
}

.team-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px;
}

.team-card {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: 405px;
	padding: 24px;
	background: #f6f1eb;
	border-radius: 16px;
	box-sizing: border-box;
}

.team-card-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 187px;
	height: 187px;
	margin: 0 auto;
	border-radius: 50%;
	overflow: hidden;
	background: #fff;
	flex-shrink: 0;
}

.team-card-photo--placeholder {
	background: #181c39;
}

.team-card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 100% 20%;
	display: block;
}

.team-card-photo--placeholder .team-card-photo-icon {
	width: 106px;
	height: 106px;
	object-fit: contain;
}

.team-card-photo--placeholder .team-card-photo-icon {
	object-position: center;
}

.team-card-body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 1;
}

.team-card-identity {
	text-align: center;
}

.team-card-role {
	margin: 0 0 4px;
	font-family: var(--font-inter-tight, 'Inter Tight', sans-serif);
	font-weight: 500;
	font-size: 14px;
	line-height: 1.2;
	text-transform: uppercase;
	color: #181c39;
}

.team-card-name {
	margin: 0;
	font-family: var(--font-inter-tight, 'Inter Tight', sans-serif);
	font-weight: 500;
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: -0.72px;
	color: #181c39;
}

.team-card-divider {
	width: 100%;
	height: 2px;
	border-radius: 100px;
	background: #ddcab2;
	opacity: 0.5;
}

.team-card-bio-block {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.team-card-bio {
	margin: 0;
	font-family: var(--font-inter-tight, 'Inter Tight', sans-serif);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.35;
	letter-spacing: -0.48px;
	color: #353a5d;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	line-clamp: 5;
	overflow: hidden;
}

.team-card.is-expanded .team-card-bio {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	overflow: visible;
}

.team-card-toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-family: var(--font-inter-tight, 'Inter Tight', sans-serif);
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: -0.48px;
	color: #181c39;
	align-self: flex-start;
}

.team-card-toggle[hidden] {
	display: none !important;
}

.team-card-toggle-icon {
	width: 14px;
	height: 7px;
	display: block;
	transition: transform 0.2s ease;
}

.team-card.is-expanded .team-card-toggle-icon {
	transform: rotate(180deg);
}

.team-card-contacts {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	margin-top: auto;
}

.team-card-contact {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	font-family: var(--font-inter-tight, 'Inter Tight', sans-serif);
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: -0.48px;
	color: #181c39;
	word-break: break-word;
}

.team-card-contact img {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.team-card-contact:hover,
.team-card-contact:focus-visible {
	opacity: 0.75;
}

@media (max-width: 1279px) {
	.team-section {
		padding: 80px 0;
	}

	.team-title {
		font-size: 40px;
	}

	.team-header {
		margin-bottom: 48px;
	}
}

@media (max-width: 1023px) {
	.team-grid {
		gap: 24px;
	}

	.team-card {
		max-width: calc(50% - 12px);
	}
}

@media (max-width: 767px) {
	.team-section {
		padding: 64px 0;
	}

	.team-title {
		font-size: 32px;
		letter-spacing: -0.5px;
	}

	.team-subtitle {
		font-size: 18px;
	}

	.team-header {
		gap: 16px;
		margin-bottom: 32px;
	}

	.team-card {
		max-width: 100%;
	}

	.team-card-photo {
		width: 160px;
		height: 160px;
	}

	.team-card-name {
		font-size: 22px;
	}
}
