body {
	font-family: Arial, Helvetica, sans-serif;
}
.animated-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background: linear-gradient(130deg, #fff, #d4c9ab, #baac86, #a1d1ca, #cae6e1);
	background-size: 400% 400%;
	animation: gradientAnimation 15s ease infinite;
	opacity: 0.8;
}

@keyframes gradientAnimation {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}
.img {
	position: relative;
	width: 100%;
	height: 90vh; /* Высота контейнера на весь экран */
	margin: 0 auto;
	overflow: hidden; /* Прячет части изображения, выходящие за пределы контейнера */
}

.img img {
	width: 100%;
	height: 100%; /* Задаем высоту 100% для картинки */
	object-fit: cover; /* Изображение обрезается, но сохраняет пропорции */
}

.centered-heading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 5rem;
	font-weight: bold;
	text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Для улучшения видимости текста на фоне */
	text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
	.centered-heading {
		font-size: 3rem; /* Уменьшение шрифта на мобильных устройствах */
	}
}

@media (max-width: 480px) {
	.centered-heading {
		font-size: 2rem; /* Еще меньше шрифт для маленьких экранов */
	}
}

#team {
	display: grid; /* Используем CSS Grid */
	grid-template-columns: repeat(3, 1fr); /* Автоматическое размещение колонок */
	gap: 60px 20px; /* Расстояние между элементами */
	width: 100%;
	margin-top: 30px;
	margin: 30px auto;
}
.team-container {
	max-width: 400px;
	margin: 0 auto; /* Центрируем по горизонтали */
	display: flex; /* Включаем flexbox */
	justify-content: center; /* Центрируем содержимое по горизонтали */
	align-items: center; /* Центрируем содержимое по вертикали */
	height: 80vh; /* Устанавливаем высоту на весь экран */
}
/* Стили для каждого члена команды */
.our-team {
	position: relative;
	text-align: center;
	color: #fff;
	overflow: hidden; /* Скрываем лишние элементы */
	background-color: #f9f9f9;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	border-radius: 30px;
}

/* Задний фон при наведении */
.our-team:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	transition: all 0.3s ease 0s;
	opacity: 0;
}

.our-team:hover:before {
	opacity: 1;
}

/* Изображение */
.our-team img {
	width: 100%;
	height: auto;
	display: block;
}

/* Контент команды */
.our-team .team-content {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 30px 0;
	background-color: rgba(134, 16, 74, 0.9);
	text-align: center;
	transition: all 0.3s ease 0s;
}

.our-team:hover .team-content {
	bottom: 20%;
}

/* Имя члена команды */
.our-team .team-content .name {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 7px;
	display: block;
	transition: all 0.3s ease 0s;
}

.our-team:hover .team-content .name {
	transform: translateY(30px);
	transition-delay: 0.3s;
}

/* Должность */
.our-team .team-content .post {
	font-size: 17px;
	color: #fff;
	text-transform: capitalize;
	display: block;
	transition: all 0.3s ease 0s;
}

.our-team:hover .team-content .post {
	transform: translateY(-45px);
	transition-delay: 0.3s;
}

/* Адаптивность для мелких экранов */
@media screen and (max-width: 576px) {
	#team {
		gap: 20px; /* Уменьшаем расстояние между элементами на маленьких экранах */
		grid-template-columns: repeat(1, 1fr);
	}
	.team-container {
		max-width: 250px;
		display: flex;
		justify-content: center;
		height: 60vh;
	}
	.name {
		font-size: 14px !important;
	}
	.post {
		font-size: 14px !important;
	}
}

/* Video Section Styles */
.video-section {
	background-color: var(--steel-blue);
	color: var(--white);
	padding: 3rem 2rem;
	text-align: center;
	animation: fadeIn 1.5s ease;
}

.video-section h2 {
	font-size: 2rem;
	color: var(--light-blue);
	margin-bottom: 2rem;
	animation: slideInDown 1.2s ease-in;
}

.video-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	margin-top: 50px;
}

.video-card {
	display: none;
	background-color: var(--dark-red);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 8px var(--shadow);
	width: 30%;
	position: relative;
	height: 350px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 12px var(--shadow);
}

.video-card video {
	width: 100%;
	height: 70%; 
    object-fit: cover; 
	border-radius: 10px;
}

.video-card p {
	padding: 1rem;
	font-size: 1rem;
	color: var(--white);
	flex-shrink: 0; 
}

/* Responsive Design for Video Section */
@media (max-width: 768px) {
	.video-card {
		width: 80%;
	}
}

h1 {
	animation: fadeInTitle 1.5s ease-in-out;
}

.suggestions-section {
	display: flex;
	justify-content: center;
	max-width: 90%;
	margin: 0 auto;
}

@keyframes fadeInTitle {
	0% {
		opacity: 0;
		transform: translateY(-20px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.suggestions-grid {
	display: flex;
	flex-wrap: wrap; /* Allows cards to wrap onto a new line on smaller screens */
	gap: 20px;
	justify-content: center; /* Centers the cards in a row */
	padding: 20px;
	width: 100%;
	text-align: justify;
}

/* Card styling */
.suggestion-card {
	width: 100%; /* Optional max width to keep cards uniform */
	height: auto;
	min-height: 300px;
	background: #efefef;
	padding: 20px;
	border-radius: 16px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	display: flex;
	justify-content: center; /* Centers content within each card */
	align-items: center; /* Center aligns content horizontally */
}

.suggestion-card:hover {
	transform: translateY(-10px) scale(1.05);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.suggestions-grid {
		align-items: center; /* Center align cards in the column */
	}
	.suggestion-card {
		width: 100%;
	}
	.suggestions-section {
		max-width: 100%;
	}
}

/* Updated radial gradient for the glow effect */
.suggestion-card::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, #e6e4c5, transparent 50%);
	transition: opacity 0.4s ease;
	opacity: 0;
	pointer-events: none;
	z-index: 0;
}

.suggestion-card:hover::before {
	opacity: 1;
	animation: gradientGlow 4s infinite linear;
}

@keyframes gradientGlow {
	0% {
		transform: translate(-50%, -50%);
	}
	100% {
		transform: translate(50%, 50%);
	}
}

.suggestion-card h2 {
	position: relative;
	font-size: 1.2em;
	color: #000;
	margin-bottom: 10px;
	z-index: 1;
}

.suggestion-card p {
	position: relative;
	font-size: 20px;
	line-height: 1.5;
	color: #000;
	z-index: 1;
}

/* Card reveal animation */
@keyframes revealAnimation {
	0% {
		transform: translateY(20px);
		opacity: 0;
	}
	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

.suggestion-card {
	animation: revealAnimation 0.5s ease forwards;
	animation-delay: calc(0.2s * var(--order));
}

/* Responsive Styles */
@media (max-width: 768px) {
	.section-title {
		font-size: 2em;
	}

	.suggestion-card {
		padding: 15px;
	}
	.suggestion-card {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.section-title {
		font-size: 1.8em;
	}

	.suggestion-card h2 {
		font-size: 1em;
	}

	.suggestion-card p {
		font-size: 0.85em;
	}
	.suggestion-card {
		width: 100%;
	}
	.suggestions-section {
		max-width: 100%;
	}
}

.photo_company {
	position: relative;
	width: 100%;
	height: auto;
	display: flex;
	justify-content: center;
}

.photo_company > img {
	width: 70%;
	height: auto;
}
