/* Основные стили */
.team-section {
	padding: 60px 0;
}

.team-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

.team-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 20px;
}

/* Карточка сотрудника */
.team-card {
	background: #ffffff;
	overflow: hidden;


}

.team-card-inner {
	padding: 0;
	text-align: center;
}

/* Фото */
.team-photo {
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #e9ecef;
	position: relative;
}

.team-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;

}

/* Информация */
.team-name {
	font-size: 20px;
	font-weight: 600;
	color: #fff;
	margin: 0 0 8px 0;
	font-family:  "Oswald", sans-serif;
}

.team-name a {
	color: inherit;
	text-decoration: none;
}

.team-name a:hover {
	color: #0056b3;
}

.team-position {
	font-size: 14px;
	color: #FFFFFFBF;
	margin-bottom: 0px;
	font-weight: 400;
}

.team-description {
	font-size: 14px;
	color: #495057;
	line-height: 1.6;
	margin-bottom: 15px;
}

/* Контакты */
.team-contacts {
	opacity: 0;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	position: absolute;
	bottom: 0;
	background: #000000b3;
	padding: 16px 10px;
	width: 100%;
	transition: all 0.5s ease;
	height: 0;
}
.team-card:hover .team-contacts {
	height: auto;
	opacity: 1;
	display: flex;
	transition: all 0.5s ease;

}
.team-info {
	background: #333;
	color: #fff;
	padding: 16px 6px;
}
.team-card:hover .team-info {
	background: #f7b70b;

}

.team-contact {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #495057;
}

.team-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: #6c757d;
}

.team-contact-link {
	color: #fff!important;
	text-decoration: none;
	transition: color 0.2s;
	word-break: break-all;
}

.team-contact-link:hover {
	color: #fff;
	text-decoration: none;
}
.team-contact-link a{
	color: #fff !important;
}
/* Адаптив */
@media (max-width: 992px) {
	.team-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 25px;
	}
}

@media (max-width: 576px) {
	.team-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.team-section {
		padding: 40px 0;
	}

	.team-photo {
		width: 130px;
		height: 130px;
	}

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