/*
Theme Name: Givememedia
Author: Givememedia
Version: 1.0
*/

:root {
	--color-body: #252432;
}

html, body {
	margin: 0px;
	padding: 0px 0px 40px 0px;
	color: var(--color-body);
	font-family: "Raleway", sans-serif;
	font-size: 18px;
	font-weight: 500;
	height: 100%;
	scroll-behavior: smooth;
}

.common__container {
	width: 95%;
	max-width: 1400px;
	margin: auto;
} 

.index__container {
	margin-top: 24px;
	box-sizing: border-box;
	padding: 64px 48px 28px 48px;
	border-radius: 60px;
	background: #eee;
}
.index__header {
	text-align: center;
	margin-bottom: 50px;
}
.index__header-title {
	font-family: 'NauryzRedKeds';
	font-size: 76px;
	font-weight: bold;
	margin: 0px 0px 16px 0px;
}
.index__header-subtitle {
    font-size: 40px;
    font-weight: 200;
    margin: 0 186px;
}
.index__header-subtitle p {
    margin-top: 0;
}
.index__header-title em {
	color: #2785FF;
	background: linear-gradient(to right, #2785FF 0%, #1F1B5C 100%);
	font-style: normal;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.index__lead {
	font-size: 40px;
	font-weight: 500;
	color: #454545;
}
.index__items {
	display: grid;
	grid-template-columns: repeat(3, minmax(auto, 388px));
	gap: 20px;
	margin-bottom: 50px;
}
.index__item {
	position: relative;
	display: flex;
	flex-flow: column;
	box-sizing: border-box;
	min-height: 620px;
	background: #DEDEDE;
	border: 1px solid #D3D3D3;
	border-radius: 60px;
	padding: 130px 20px 74px 20px;
	color: var(--color-body);
	text-decoration: none;
}
.index__item:before {
	position: absolute;
	pointer-events: none;
	content: '';
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	border-radius: 60px;
	opacity: 0;
	transition: 0.3s;
}
.index__item:nth-child(1):before {background: linear-gradient(30deg, #891CBE 0%, #3D1B5C 100%);}
.index__item:nth-child(2):before {background: linear-gradient(30deg, #2785FF -40%, #1F1B5C 100%);}
.index__item:nth-child(3):before {background: linear-gradient(30deg, #09B81B -40%, #1B525C 100%);}
.index__item:nth-child(4):before {background: linear-gradient(30deg, #0992b8 -40%, #1B525C 100%);}
.index__item:nth-child(5):before {background: linear-gradient(30deg, #b80932 -40%, #5c1b42 100%);}
.index__item:nth-child(6):before {background: linear-gradient(30deg, #1b415c -40%, #19b809 100%);}

.index__item-inner {
	position: relative;
	display: flex;
	flex-flow: column;
	flex-grow: 1;
	max-width: 256px;
	margin: auto;
}
.index__item-content {
	position: relative;
	transition: margin 0.3s;
}
.index__item-logo {height: 224px;}
.index__item-logo img {
	max-width: 100%;
	height: auto;
}
.index__item-excerpt {font-size: 32px;}
.index__item-actions {
	position: absolute;
	bottom: 0px;
	left: 0px;
	width: 100%;
	opacity: 0;
	transition: 0.3s;
}
.index__item-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 45.85px;
	border-radius: 39px;
	font-size: 21px;
	font-weight: 600;
	color: var(--color-body);
	background: #fff;
}

.index__item:hover {color: #fff;}
.index__item:hover:before {opacity: 1;}
.index__item:hover .index__item-content {margin-top: -60px;}
.index__item:hover .index__item-actions {opacity: 1;}

.index__footer {text-align: center;}

/* Общие стили для заголовков новых секций */
.index__section {
	margin-bottom: 60px;
}
.index__section-title {
	text-align: center;
	font-size: 36px;
	margin-bottom: 30px;
	margin-top: 140px;
	color: var(--color-body);
}

/* Стили: С нами работают (Горизонтальные логотипы) */
.index__partners {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	gap: 40px;
}
.index__partner-item {
	transition: 0.3s;
	filter: grayscale(0%);
}
.index__partner-item:hover {
	cursor: pointer;
	opacity: .7;
}
.index__partner-item img {
	max-height: 60px; /* Ограничение высоты логотипов */
	width: auto;
	display: block;
}

/* Стили: О нас пишут (Блоки с публикациями) */
.index__press {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}
.index__press-item {
	background: #fff;
	border-radius: 40px;
	padding: 30px;
	text-decoration: none;
	color: var(--color-body);
	border: 1px solid transparent;
	transition: 0.3s;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.index__press-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.05);
	border-color: #d3d3d3;
}
.index__press-logo {
	height: 60px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
}
.index__press-logo img {
	max-height: 100%;
	width: auto;
	max-width: 100%;
}
.index__press-title {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

/* Команда */
.index__team {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 30px;
}

.index__team-item {
	text-align: left; /* Можно center, если хотите текст по центру */
	width: 300px;     /* Ширина карточки стала больше */
	padding-bottom: 20px;
}

.index__team-photo {
	width: 100%;
	height: 420px;    /* Фиксируем высоту для вертикального формата */
	margin-bottom: 20px;
	overflow: hidden;
	/* Убрали border-radius и обводку */
}

.index__team-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* Фото заполнит блок, не растягиваясь */
	display: block;
}

.index__team-name {
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 8px;
	color: var(--color-body);
}

.index__team-position {
	font-size: 18px;
	color: #666;
	font-weight: normal;
}

.index__header-title p {
    margin-bottom: 0;
}

/* Mobile */

@media (max-width: 767.9px) {
	.index__header-subtitle {
		font-size: revert;
		margin: auto;
	}
	
	.index__partners {
		flex-direction: column;
	}
	
	.index__team {
		gap: 0px;
	}
	
	.index__team-item {
		width: 100%;
	}
	
	.index__team-photo {
		height: auto;
	}
}