/**
 * Front page: «Команда Фазис» (BEM: fazis-team).
 */

.fazis-team {
	--fazis-team-surface: rgb(226 238 255);
	--fazis-team-navy: rgb(0 16 53);
	--fazis-team-card-text: rgb(19 43 82);
	--fazis-team-border: rgb(226 238 255);
}

.fazis-team__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2rem;
	width: 100%;
}

.fazis-team__title {
	margin: 0;
	color: var(--fazis-team-navy);
	font-size: clamp(2.25rem, 2.5vw + 1.5rem, 4rem);
	font-weight: 700;
	line-height: 1.15;
	text-align: left;
}

.fazis-team__stack {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: clamp(1.5rem, 2vw, 2.25rem);
	width: 100%;
}

.fazis-team__grid {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	margin-top: 2rem;
	gap: 1rem;
	width: 100%;
}

.fazis-team__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1 1 15rem;
	min-width: min(100%, 15rem);
	max-width: 100%;
	gap: clamp(3rem, 5vw, 4rem);
	padding: clamp(1.5rem, 2vw, 2rem);
	background-color: rgb(255 255 255);
	border: 1px solid var(--fazis-team-border);
	border-radius: 1rem;
	box-sizing: border-box;
}

.fazis-team__icon-wrap {
	flex-shrink: 0;
	width: 4rem;
	height: 4rem;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.fazis-team__icon {
	display: block;
	width: 4rem;
	height: 4rem;
	max-width: 100%;
	object-fit: contain;
}

.fazis-team__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(1rem, 1.5vw, 1.5rem);
	width: 100%;
	min-width: 0;
}

.fazis-team__card-title {
	margin: 0;
	color: var(--fazis-team-navy);
	font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem);
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
}

.fazis-team__card-text {
	margin: 0;
	color: var(--fazis-team-card-text);
	font-size: clamp(1rem, 0.25vw + 0.9rem, 1.25rem);
	line-height: 1.5;
	text-align: left;
}

.fazis-team__note {
	width: 100%;
	padding: clamp(1.5rem, 2vw, 2.25rem);
	background-color: var(--fazis-team-surface);
	border-radius: 1rem;
	box-sizing: border-box;
}

.fazis-team__note-text {
	margin: 0;
	color: var(--fazis-team-card-text);
	font-size: clamp(1rem, 0.35vw + 0.85rem, 1.5rem);
	line-height: 1.5;
	text-align: left;
}

.fazis-team__note-text--mobile {
	display: none;
}

@media (max-width: 550px) {
	.fazis-team__grid {
		flex-direction: column;
		gap: 0.75rem;
		margin-top: 0;
	}

	.fazis-team__card {
		flex: 1 1 auto;
		width: 100%;
		gap: 3rem;
	}

	.fazis-team__icon-wrap {
		width: 3rem;
		height: 3rem;
	}

	.fazis-team__icon {
		width: 3rem;
		height: 3rem;
	}

	.fazis-team__note-text--desktop {
		display: none;
	}

	.fazis-team__note-text--mobile {
		display: block;
	}
}
