/* Конкурсы 1nep.ru — список и карточки */

.nep-contests {
	font-family: 'Roboto', Arial, sans-serif;
	margin-bottom: 40px;
}

.nep-contests__heading {
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 28px;
	line-height: 34px;
	font-weight: 700;
	color: #323131;
	margin: 32px 0 20px 0;
}

.nep-contests__heading--muted {
	color: #858687;
	font-size: 24px;
	line-height: 30px;
	margin-top: 44px;
}

.nep-contests__empty {
	font-size: 18px;
	line-height: 26px;
	color: #656565;
	background: #f4f4f4;
	border-radius: 12px;
	padding: 24px;
	margin: 0;
}

.nep-contests__grid {
	margin-bottom: 0;
}

.nep-contests__col {
	margin-bottom: 28px;
	display: flex;
}

/* --- карточка --- */

.nep-contest-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 16px;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

.nep-contest-card:hover {
	box-shadow: 0 8px 24px rgba(50, 49, 49, .12);
	transform: translateY(-2px);
}

.nep-contest-card__pic {
	position: relative;
	display: block;
	height: 200px;
	background: #f4f4f4;
	overflow: hidden;
}

.nep-contest-card__pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nep-contest-card__pic-stub {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 34px;
	font-weight: 700;
	color: #d5b1ba;
	letter-spacing: 2px;
}

.nep-contest-card__status {
	position: absolute;
	left: 12px;
	top: 12px;
	background: #b2798e;
	color: #fff;
	font-size: 13px;
	line-height: 16px;
	font-weight: 500;
	padding: 6px 12px;
	border-radius: 20px;
	white-space: nowrap;
}

.nep-contest-card__status--soon {
	background: #f60c0c;
}

.nep-contest-card__status--finished {
	background: #ababab;
}

.nep-contest-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 18px 20px 20px 20px;
}

.nep-contest-card__title {
	font-size: 20px;
	line-height: 26px;
	font-weight: 700;
	color: #323131;
	text-decoration: none;
	margin: 0 0 10px 0;
}

.nep-contest-card__title:hover,
.nep-contest-card__title:focus {
	color: #b2798e;
	text-decoration: none;
}

.nep-contest-card__date {
	font-size: 16px;
	line-height: 22px;
	color: #323131;
	margin: 0 0 12px 0;
}

.nep-contest-card__date-label {
	color: #858687;
}

.nep-contest-card__text {
	font-size: 15px;
	line-height: 22px;
	color: #656565;
	margin: 0 0 16px 0;
}

.nep-contest-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #ececec;
}

.nep-contest-card__members {
	font-size: 15px;
	line-height: 20px;
	color: #858687;
}

.nep-contest-card__more {
	font-size: 15px;
	line-height: 20px;
	font-weight: 500;
	color: #b2798e;
	text-decoration: none;
	white-space: nowrap;
}

.nep-contest-card__more:hover,
.nep-contest-card__more:focus {
	color: #a06a7f;
	text-decoration: underline;
}

/* --- завершённый конкурс --- */

.nep-contest-card--finished {
	background: #fafafa;
	border-color: #ececec;
}

.nep-contest-card--finished .nep-contest-card__pic img {
	filter: grayscale(100%);
	opacity: .55;
}

.nep-contest-card--finished .nep-contest-card__title,
.nep-contest-card--finished .nep-contest-card__date {
	color: #858687;
}

.nep-contest-card--finished .nep-contest-card__text {
	color: #ababab;
}

.nep-contest-card--finished .nep-contest-card__more {
	color: #858687;
}

.nep-contest-card--finished .nep-contest-card__more:hover {
	color: #656565;
}

.nep-contest-card--finished:hover {
	box-shadow: 0 4px 14px rgba(50, 49, 49, .08);
}

@media (max-width: 767px) {
	.nep-contests__heading {
		font-size: 22px;
		line-height: 28px;
		margin: 24px 0 16px 0;
	}

	.nep-contest-card__pic {
		height: 180px;
	}

	.nep-contest-card__title {
		font-size: 18px;
		line-height: 24px;
	}
}
