/*! © kubstu.ru */

.news-category,
.news-category-basic {
	border: 1px solid var(--color-p11);
	border-radius: 7px;
	color: var(--color-p11);
	font-weight: 500;
}

.news-category:hover,
.news-category-basic:hover {
	background-color: var(--color-p11);
	color: white;
}

.news-category {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 10px;
	font-size: 16px;
}

@media screen and (max-width:1440px) {
	.news-category {
		height: 24px;
		padding: 0 7px;
		font-size: 14px;
	}
}

@media screen and (max-width:850px) {
	.news-category {
		height: 32px;
		padding: 0 10px;
		font-size: 16px;
	}
}

/* ---- */

.news-card {
	border-radius: 15px;
	background-color: var(--color-pf1);
}

.news-card-img {
	width: 100%;
	height: 60%;
	border-radius: 15px 15px 0 0;
	background-position: center;
	background-size: cover;
	z-index: 0;
}

.news-card-img a {
	display: block;
	height: 100%;
}

.news-card-desc {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	width: 100%;
	height: 45%;
	border-radius: 15px;
	background-color: var(--color-pf1);
	z-index: 1;
}

.news-card-title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	font-weight: 500;
}

.news-card-title a {
	display: block;
	line-height: 120%;
}

.news-card-title a:hover {
	color: var(--color-p11);
}

.news-card-date {
	color: var(--color-g44);
}

/* ---- */

.news-item {
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
}

.news-item-date {
	color: var(--color-g56);
}

.news-item-gallery {
	display: flex;
	margin: 30px 0;
}

.news-item-slider {
	flex: 1 1 auto;
	position: relative;
	max-width: 100%;
	aspect-ratio: 3 / 2;
}

.news-item-slider > div,
.news-item-thumbs > div {
	position: absolute;
	width: 100%;
	height: 100%;
}

.news-item-slider > div {
	border-radius: 10px;
}

.news-item-slider .swiper-slide,
.news-item-thumbs .swiper-slide {
	background-size: cover;
	background-position: center;
}

.news-item-slider .swiper-button-prev,
.news-item-slider .swiper-button-next {
	opacity: 0;
}

.news-item-slider:hover .swiper-button-prev,
.news-item-slider:hover .swiper-button-next {
	opacity: .5;
}

.news-item-slider .swiper-pagination-bullet {
	background: white !important;
}

.news-item-slider .swiper-pagination-bullet-active {
	opacity: .7 !important;
}

.news-item-thumbs {
	flex: 0 0 200px;
	position: relative;
	margin-left: 100px;
}

.news-item-thumbs .swiper-slide {
	height: 120px;
	border-radius: 10px;
	cursor: pointer;
}

.news-item-thumbs .swiper-scrollbar {
	opacity: 0;
}

.news-item-thumbs:hover .swiper-scrollbar {
	opacity: .5;
}

.news-item-content {
	margin-right: 300px;
}

@media screen and (max-width:1024px) {
	.news-item-thumbs {
		margin-left: 50px;
	}

	.news-item-content {
		margin-right: 0;
	}
}

@media screen and (max-width:850px) {
	.news-item {
		flex-direction: column;
		margin-top: 16px;
	}

	.news-item-gallery {
		margin: 20px 0;
	}

	.news-item-thumbs {
		display: none;
	}
}

/* ---- */

.news {
	width: 100%;
}

.news .news-list {
	display: grid;
	justify-content: space-between;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

.news .news-card {
	height: 400px;
}

.news .news-card-img {
	padding-bottom: 20px;
}

.news .news-card-desc {
	top: -20px;
	padding: 15px;
}

.news .news-category-basic,
.news .news-card-date {
	font-size: 14px;
}

.news .news-category-basic {
	display: inline-flex;
	align-items: center;
	height: 24px;
	margin-top: 5px;
	padding: 0 7px;
}

.news .news-card-title {
	margin-top: 20px;
	font-size: 16px;
}

.news h1 {
	margin: 0 0 6px;
}

@media screen and (max-width:1440px) {
	.news .news-category-basic,
	.news .news-card-date {
		font-size: 13px;
	}

	.news .news-card-title {
		font-size: 14px;
	}
}

@media screen and (max-width:1024px) {
	.news .news-card {
		height: 350px;
	}

	.news .news-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width:576px) {
	.news .news-list {
		grid-template-columns: 1fr;
	}

	.news .news-card {
		height: auto;
	}

	.news .news-card-img {
		height: 200px;
	}

	.news .news-card-desc {
		height: auto;
		padding-bottom: 0;
	}

	.news .news-category-basic,
	.news .news-card-date {
		font-size: 14px;
	}

	.news .news-card-title {
		margin-bottom: 12px;
		font-size: 16px;
	}
}

/* ---- */

.events-list > div,
.events-empty {
	padding: 18px 0;
	border-radius: 15px;
	background-color: var(--color-gf3);
}

.events-list > .events-card-prime {
	background-color: white;
	box-shadow: 0 0 24px 0 #00000040;
}

.events-card-date {
	min-width: 120px;
	height: 32px;
	padding-left: 3px;
	border-radius: 3px 4px 4px 3px;
	box-shadow: 0 1px 3px 0 #00000040;
	background: #fb0000;
	font-size: 16px;
	font-weight: 500;
}

.events-card-date > div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2px;
	height: 100%;
	padding: 1px 10px 0;
	border-radius: 3px;
	background: white;
}

.events-card-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 120%;
}

.events-card-title a:hover {
	color: var(--color-p11);
}

.events-card-desc,
.events-card-desc * {
	line-height: 130%;
}

.events-card-desc {
	margin-top: 10px;
	font-size: 15px;
}

.events-empty {
	max-width: 1200px;
	padding: 50px;
	color: var(--color-g80);
	font-size: 18px;
	font-style: italic;
	line-height: 120%;
}

@media screen and (max-width:1440px) {
	.events-list > .events-card-prime {
		box-shadow: 0 0 12px 0 #00000040;
	}

	.events-card-date {
		min-width: 100px;
		height: 24px;
		font-size: 14px;
	}

	.events-card-title {
		font-size: 15px;
	}

	.events-card-desc {
		font-size: 13px;
	}
}

@media screen and (max-width:850px) {
	.events-card-date {
		min-width: 120px;
		height: 32px;
		font-size: 16px;
	}

	.events-card-date > div {
		flex-direction: row;
		gap: 4px;
	}

	.events-card-title {
		font-size: 17px;
	}

	.events-card-desc {
		font-size: 15px;
	}
}

/* ---- */

.events h1 {
	margin-bottom: 40px;
}

.events .events-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	max-width: 1200px;
}

.events .events-list > div {
	display: flex;
	gap: 18px;
	padding-left: 18px;
	padding-right: 18px;
}

.events .events-list > .events-card-prime {
	min-height: 200px;
	padding-top: 0;
	padding-bottom: 0;
	padding-right: 0;
}

.events .events-list > .events-card-prime > div:nth-child(1),
.events .events-list > .events-card-prime > div:nth-child(2) {
	margin: 18px 0;
}

.events .events-list > div > div:nth-child(1) {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}

.events .events-list > div > div:nth-child(2) {
	flex: 1 1 auto;
}

.events .events-list .events-card-date {
	height: 36px;
}

.events .events-card-cover {
	flex: 1 0 auto;
	width: 300px;
	background-size: cover;
	background-position: center;
	border-radius: 0 15px 15px 0;
}

.events .events-past {
	display: inline-block;
	margin-top: 30px;
	color: var(--color-g56);
	text-decoration: underline;
}

.events .events-past:hover {
	color: var(--color-p11);
	text-decoration-color: var(--color-p11);
}

@media screen and (max-width:1440px) {
	.events .events-list > .events-card-prime {
		min-height: 160px;
	}

	.events .events-list .events-card-date {
		height: 32px;
	}

	.events .events-card-cover {
		width: 240px;
	}
}

@media screen and (max-width:850px) {
	.events .events-list {
		max-width: 600px;
	}

	.events .events-list > div {
		flex-direction: column;
	}

	.events .events-list > .events-card-prime {
		padding-left: 0;
		padding-bottom: 18px;
	}

	.events .events-list > .events-card-prime > div:nth-child(1),
	.events .events-list > .events-card-prime > div:nth-child(2) {
		margin: 0 18px;
	}

	.events .events-list > div > div:nth-child(1) {
		flex-direction: row;
		justify-content: space-between;
	}

	.events .events-card-cover {
		order: -1;
		width: 100%;
		aspect-ratio: 3 / 2;
		border-radius: 15px 15px 0 0;
	}
}

/* ---- */

.events article .events-card-date {
	display: inline-block;
}

.events .events-item-container {
	display: flex;
	align-items: flex-start;
}

.events .events-item-content {
	flex: 1 1 auto;
}

.events .events-item-cover {
	flex: 0 0 30%;
	aspect-ratio: 3 / 2;
	margin-left: 50px;
	border-radius: 15px;
	background-size: cover;
	background-position: center;
}

@media screen and (max-width:850px) {
	.events .events-item-container {
		flex-direction: column-reverse;
	}

	.events .events-item-cover {
		flex: 1 1 auto;
		width: 100%;
		margin: 0;
	}
}
