.module-team {
	margin-bottom: 37px;
}

.module-team-text {
	margin-bottom: 39px;
}

.module-team-text h2 {
	text-transform: capitalize;
}

.module-team-text h2 span {
	color: var(--color-primary);
}

.module-team-text .button.no-button {
	color: var(--color-primary);
}

.module-team-text .button.no-button:after {
	background-image: url('../../images/arrow-right.svg');
	transition: all 0.35s ease;
}
.module-team-text .button.no-button:hover:after {
	transform: translateX(10px);
}



.module-team-slider {
	margin: 0 calc(var(--gutter-size) * -1);
}

.module-team-slider .swiper-wrapper {
	display: flex;
	gap: 15px;
	justify-content: center;
}

.block-team {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	color: var(--color-white);
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	text-align: center;
}

.block-team:before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, rgba(101, 24, 31, 0) 75.42%, #65181F 93.99%);
	pointer-events: none;
	content: '';
}

.block-team-image {
	height: 100%;
}

.block-team-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.block-team-text {
	padding: 13px 14px;
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 1;
	font-size: 0.875rem;
	line-height: 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.block-team-text strong {
	margin-bottom: 5px;
	display: block;
	font-size: 1.063rem;
	font-weight: 600;
}

.block-team-text p {
	opacity: 0.7;
}

.block-team-text p:last-of-type {
	margin-bottom: 0;
}

.block-team:focus,
.block-team:hover {
	color: var(--color-white);
}

.module-team .block-team {
	width: 81px;
	height: 289px;
	transition: width 0.25s ease;
}

/* .module-team .block-team.active,
.module-team .block-team:hover,
.module-team .block-team:focus {
	width: 201px;
} */

/* .module-team .block-team.active .block-team-text,
.module-team .block-team:hover .block-team-text,
.module-team .block-team:focus .block-team-text {
	opacity: 1;
	visibility: visible;
	transition-delay: 0.1s;
} */

@media screen and (max-width: 767px) {
	.module-team-slider {
		overflow: hidden;
	}

	.module-team-slider .swiper-wrapper {
		gap: 0;
		justify-content: flex-start;
	}

	.module-team .block-team {
		width: 54%;
		height: auto;
		aspect-ratio: 402 / 580;
		transition: none;
	}

	.module-team .block-team-text {
		width: 100%;
		padding-bottom: 20px;
		text-align: center;
	}

	.module-team .block-team.swiper-slide-active .block-team-text {
		opacity: 1;
		visibility: visible;
		transition-delay: 0.1s;
	}
}

@media screen and (min-width: 768px) {
	.module-team {
		margin-bottom: 100px;
	}

	.module-team-text h2 {
		margin-bottom: 24px;
		font-size: 2.625rem;
	}

	.block-team {
		border-radius: 20px;
		text-align: left;
	}

	.block-team-text {
		padding: 40px 32px;
	}

	.block-team-text strong {
		margin-bottom: 7px;
		font-size: 1.5rem;
	}

	.module-team-slider .swiper-wrapper {
		gap: 30px;
	}

	.module-team .block-team {
		width: 150px;
		height: 541px;
	}
}

@media screen and (min-width: 1025px) {

	.module-team .block-team.active .block-team-text,
	.module-team .block-team:hover .block-team-text,
	.module-team .block-team:focus .block-team-text {
		opacity: 1;
		visibility: visible;
		transition-delay: 0.1s;
	}

	.module-team .block-team.active,
	.module-team .block-team:focus,
	.module-team .block-team:hover {
		width: 376px;
	}

	.module-team {
		margin-bottom: 121px;
	}

	.module-team-row {
		display: flex;
	}

	.module-team-text {
		margin-top: 6px;
		margin-bottom: 0;
		margin-left: auto;
		width: 390px;
		flex: 0 0 auto;
		order: 2;
	}

	.module-team-slider {
		margin-left: -170px;
		padding-right: 23px;
		order: 1;
		width: calc(610px + 150px);
		flex: 0 0 auto;
	}
}

@media screen and (min-width: 1200px) {
	.module-team-slider {
		margin-left: -118px;
		padding-right: 90px;
		width: calc(732px + 118px);
	}
}

@media screen and (min-width: 1280px) {
	.module-team-slider {
		margin-left: -118px;
		padding-right: 112px;
		width: calc(732px + 118px);
	}
}
