
main {
	padding: 25px 70px;
}

.news-item {
	padding: 45px 160px;
}

.news-block {
	display: flex;
	flex-direction: column;
}

.news-header {
	width: 100%;
	display: flex;
	gap: 20px;
	height: 81px;
}

.news-header-first-block {
	display: flex;
	align-items: center;
	padding: 0 30px;
	width: 424px;
	background: rgba(35, 27, 74, 0.65);
	border-radius: 20px;
	gap: 15px;
}

.news-header-first-block span {
	font-weight: 600;
	font-size: var(--text-size-17);
	color: rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	gap: 10px;
}

.news-header-second-block {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 30px;
	background: rgba(35, 27, 74, 0.65);
	border-radius: 20px;
	gap: 30px;
}

.news-header-search {
	max-width: 391px;
	width: 100%;
	position: relative;
}

.news-header-search input {
	width: 100%;
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
	font-size: var(--text-size-17);
	border: none;
	border-radius: 10px;
	outline: none;
	position: relative;
}

.news-header-search input::placeholder {
	color: #fff;
	opacity: 1;
}

.news-header-search:after {
		content: '';
	  position: absolute;
	  left: 0;
	  bottom: -10px;
	  width: 100%;
	  height: 2px;
	  background: rgba(217, 217, 217, 0.41);
	  border-radius: 10px;
}



.news-header-search img {
	position: absolute;
	top: 2px;
	right: 0;
	width: 16px;
	height: 16px;

}

.news-header-types {
	display: flex;
	align-items: center;
	gap: 50px;
	height: 100%;
}

.news-header-types span {
	display: flex;
	align-items: center;
	height: 100%;
	font-weight: 600;
	font-size: var(--text-size-17);
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	position: relative;
	transition: 0.4s all;
}

.news-header-types span:hover {
	color: rgba(255, 255, 255, 0.7);
}

.news-header-types span.active {
	color: #fff;
}

.news-header-types span.active::after {
  content: "";
  position: absolute;
  left: 50%;              /* центрируем по горизонтали */
  bottom: 0px;           /* чуть ниже текста */
  transform: translateX(-50%); /* чтобы центр треугольника был по центру текста */

  width: 0;
  height: 0;
  border-left: 14px solid transparent;  /* левая сторона прозрачная */
  border-right: 14px solid transparent; /* правая сторона прозрачная */
  border-bottom: 14px solid #00FF6A;         /* верхняя сторона — цвет треугольника */
}

.news-main > div {
	display: flex;
	gap: 20px;
	margin-top: 30px;
	display: none;
	align-items: flex-start;
}


.news-main > div.active {
	display: flex;
}

.news-carts-main {
	width: 100%;
	display: flex;
	flex-direction: column;
}

.news-carts-block {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 20px 15px;
}

.news-cart-block {
	width: 100%;
	height: 300px;
	display: flex;
	padding: 20px 35px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 20px;
	gap: 35px;
	text-decoration: none;
}


.news-cart-block > img {
	height: 100%;
	box-shadow: 0px 4px 5.5px 4px rgba(0, 0, 0, 0.14);
	border-radius: 17px;
}

.news-cart-block-main {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 30px 50px;
	background: #290A43;
	border-radius: 17px;
}

.news-cart-block-main-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 20px;
	width: 100%;
	border-bottom: 2px solid rgba(217, 217, 217, 0.41);
}	

.news-cart-block-main-header h3 {
	font-weight: 600;
	font-size: var(--text-size-20);

	color: rgba(255, 255, 255, 0.9);
}

.news-cart-block-main-header-info {
	display: flex;
	align-items: center;
	gap: 15px;
}

.news-cart-block-main-header-info-views {
	display: flex;
	align-items: center;
	gap: 5px;
}

.news-cart-block-main-header-info-views span, .news-cart-block-main-header-info span {
	font-weight: 600;
	font-size: var(--text-size-17);

	color: rgba(255, 255, 255, 0.5);
}


.news-cart-block-main-type {
	background: #DE58BD;
	border-radius: 5px;
	font-weight: 500;
	font-size: var(--text-size-17);
	color: #fff;
	padding: 7px 12px;
	margin: 20px 0;
}

.news-cart-block-main p {
	font-weight: 400;
	font-size: var(--text-size-16);
	color: #fff;
	display: -webkit-box;
  -webkit-line-clamp: 5;   /* кол-во строк */
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.news-carts-pages-block {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 30px 20px;

}

.news-carts-pages-info {
	font-weight: 500;
	font-size: var(--text-size-18);
	color: rgba(255, 255, 255, 0.5);
}

.news-carts-pages {
	display: flex;
	align-items: center;
	gap: 25px;
}

.pages-arrow {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 100%;
	cursor: pointer;
}

.news-carts-pages-full {
	display: flex;
	align-items: center;
	gap: 5px;
}

.news-carts-pages-full span {
	font-weight: 500;
	font-size: var(--text-size-18);
	line-height: 24px;
	color: #FFFFFF;
	width: 22px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.current-page {
	background: linear-gradient(180deg, #B59DF6 0%, #6937F4 100%);
	border-radius: 4px;
}

.news-carts-pages-full span:hover {
	opacity: 0.7;
	background: linear-gradient(180deg, #B59DF6 0%, #6937F4 100%);
	border-radius: 4px;
}




.news-item-block {
	display: flex;
	flex-direction: column;

}

.news-item-block h1 {

	font-weight: 600;
	font-size: 28px;

	color: rgba(255, 255, 255, 0.9);
	text-align: center;
}

.news-item-block > p {
	padding: 30px 0;
}

.news-item-block p {
	font-weight: 500;
	font-size: var(--text-size-16);
	color: #fff;
}

.news-item-block h3 {
	font-weight: 700;
	font-size: var(--text-size-18);
	color: #fff;
	text-align: center;
	padding: 45px 20px;
}

.news-item-block-info {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 15px;
}

.news-item-block-info.second {
	flex-direction: row-reverse;
}

.news-item-block-info.column {
	flex-direction: column;
	gap: 35px;
	padding-bottom: 35px;
}

.news-item-block-info img {
	width: 380px;
	height: 380px;
	box-shadow: 0px 4px 5.5px 4px rgba(0, 0, 0, 0.14);
	border-radius: 15px;
}

.news-item-block-info div {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.news-item-block-info.column div {
	display: block;
	width: 100%;
	height: 340px;
	border-radius: 15px;
	background-position: center;
	background-size: cover;
}

.news-item-block-views {
	width: 100%;
	display: flex;
	justify-content: flex-end;
	padding: 15px 0;
	border-top: 2px solid rgba(217, 217, 217, 0.41);
	gap: 10px;
}

.news-item-block-views > div {
	display: flex;
	gap: 5px;
}

.news-item-block-views img {
	height: 17px;
	object-fit: contain;
}

.news-item-block-views span {
	font-weight: 600;
	font-size: var(--text-size-16);

	color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1460px) {
	.news-item {
		padding: 45px 100px;
	}
	.news-cart-block {
		height: 270px;
		gap: 25px;
		padding: 20px 25px;
	}
	.news-cart-block-main-type {
		margin: 15px 0;
	}

	.news-cart-block-main p {
		-webkit-line-clamp: 4;
	}
}

@media (max-width: 1200px) {
	.news-cart-block-main-header {
		flex-direction: column;
		gap: 15px;
	}

	.news-cart-block {
		height: 295px;
	}

	.news-cart-block-main p {
		-webkit-line-clamp: 3;
	}

	.news-item-block-info img {
		width: 320px;
		height: 320px;
	}

	.news-item-block-info.column div {
		height: 280px;
	}

	.news-item {
		padding: 45px 70px;
	}
}

@media (max-width: 1000px) {
	main {
		padding: 25px 30px;
	}

	.news-cart-block > img {
		width: 170px;
		height: 170px;
		align-self: center;
	}
}

@media (max-width: 850px) {
	.news-cart-block {
		height: unset;
		flex-direction: column;
	}

	.news-cart-block > img {
		width: 200px;
		height: 200px;
	}

	.news-cart-block-main p {
		-webkit-line-clamp: 5;
	}

	.news-item-block-info-image {
		background-size: cover;
		background-position: unset !important;
	}
}

@media (max-width: 768px) {
	.news-carts-pages-block {
		flex-direction: column;
		gap: 15px;
	}

	.news-item-block-info {
		flex-direction: column !important;
		align-items: center;
	}

	.news-cart-block {
		padding: 20px 15px;
	}
}

@media(max-width: 620px) {
	.news-item {
		padding: 35px 40px;
	}
	.news-item-block-info.column div {
		height: 240px;
	}
}

@media (max-width: 500px) {
	.news-cart-block-main p {
		-webkit-line-clamp: 5;
	}

	.news-item-block-info img {
		width: 260px;
		height: 260px;
	}
}

@media (max-width: 400px) {
	.news-item {
		padding: 25px 25px;
	}

	main {
		padding: 25px 20px;
	}

	.news-cart-block-main {
		padding: 0;
		padding-bottom: 35px;
		background: transparent;
	}

	.news-cart-block-main {
		position: relative;
	}

	.news-cart-block-main-header-info-views img {
		width: 25px;
		height: 18px;
	}

	.news-cart-block-main-header-info {
		position: absolute;
		bottom: 0;
		right: 0;
	}
}
