/* Современный темный дизайн страницы статей */
.articles-body {
	min-height: 100vh;
	background: linear-gradient(135deg, #1D1F1E 0%, #2a2c2b 100%);
	background-attachment: fixed;
	position: relative;
	overflow-x: hidden;
}

.articles-body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: 
		radial-gradient(1200px 600px at 20% -10%, rgba(146, 108, 255, 0.15), transparent 60%),
		radial-gradient(800px 400px at 80% 120%, rgba(146, 108, 255, 0.08), transparent 50%);
	pointer-events: none;
	z-index: 0;
}

.articles-modern {
	padding: 60px 0 100px;
	position: relative;
	z-index: 1;
}

.articles-modern .container {
	max-width: 1200px;
	margin: 0 auto;
}

/* Заголовок секции */
.articles__header {
	margin-bottom: 60px;
	position: relative;
}

.articles__header::before {
	content: '';
	position: absolute;
	top: -20px;
	right: 10%;
	width: 60px;
	height: 60px;
	border: 2px solid #926CFF;
	border-radius: 50%;
	opacity: 0.2;
	animation: float 6s ease-in-out infinite;
	z-index: 0;
}

.articles__header::after {
	content: '';
	position: absolute;
	top: 45px;
	right: 20%;
	width: 40px;
	height: 40px;
	background-image: 
		radial-gradient(circle at 10px 10px, #926CFF 2px, transparent 2px),
		radial-gradient(circle at 30px 30px, #926CFF 1px, transparent 1px);
	background-size: 20px 20px;
	opacity: 0.15;
	animation: float 8s ease-in-out infinite reverse;
	z-index: 0;
}

.articles__header-content {
	position: relative;
	z-index: 1;
}

.articles__title {
	font-size: 48px;
	font-weight: 700;
	color: #FFFFFF;
	margin: 0 0 12px 0;
	line-height: 1.1;
	background: linear-gradient(135deg, #FFFFFF, #BEBEBE);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.articles__subtitle {
	font-size: 18px;
	font-weight: 500;
	color: #BEBEBE;
	margin: 0;
	line-height: 1.4;
}

@keyframes float {
	0%, 100% { transform: translateY(0px) rotate(0deg); }
	50% { transform: translateY(-10px) rotate(180deg); }
}

/* Grid сетка статей */
.articles__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
	gap: 32px;
	align-items: stretch;
}

/* Современные карточки статей */
.article-card-modern {
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.1) 0%,
		rgba(255, 255, 255, 0.05) 100%
	);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.article-card-modern::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		135deg,
		rgba(146, 108, 255, 0.1) 0%,
		transparent 50%
	);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
	z-index: 1;
}

.article-card-modern:hover {
	transform: translateY(-8px);
	box-shadow: 
		0 20px 40px rgba(0, 0, 0, 0.3),
		0 0 0 1px rgba(146, 108, 255, 0.2);
	border-color: rgba(146, 108, 255, 0.3);
}

.article-card-modern:hover::before {
	opacity: 1;
}

.article-card__link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	height: 100%;
	position: relative;
	z-index: 2;
}

/* Изображение карточки */
.article-card__image-wrapper {
	position: relative;
	height: 240px;
	overflow: hidden;
}

.article-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card-modern:hover .article-card__image {
	transform: scale(1.05);
}

.article-card__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to bottom,
		transparent 0%,
		transparent 60%,
		rgba(0, 0, 0, 0.7) 100%
	);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.article-card-modern:hover .article-card__overlay {
	opacity: 1;
}

.article-card__read-more {
	background: rgba(146, 108, 255, 0.9);
	color: #FFFFFF;
	padding: 12px 24px;
	border-radius: 25px;
	font-weight: 600;
	font-size: 14px;
	backdrop-filter: blur(10px);
	transform: translateY(20px);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card-modern:hover .article-card__read-more {
	transform: translateY(0);
}

/* Контент карточки */
.article-card__content {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 1;
	justify-content: space-between;
}

.article-card__title {
	font-size: 20px;
	font-weight: 600;
	color: #FFFFFF;
	line-height: 1.3;
	margin: 0;
	transition: color 0.3s ease;
	min-height: 2.6em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.article-card-modern:hover .article-card__title {
	color: #926CFF;
}

.article-card__excerpt {
	font-size: 14px;
	font-weight: 400;
	color: #BEBEBE;
	line-height: 1.5;
	margin: 0;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.article-card__arrow {
	align-self: flex-end;
	color: #926CFF;
	transition: transform 0.3s ease;
}

.article-card-modern:hover .article-card__arrow {
	transform: translateX(4px);
}

/* Пустое состояние */
.articles__empty {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 400px;
}

.empty-state {
	text-align: center;
	padding: 60px 40px;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.1) 0%,
		rgba(255, 255, 255, 0.05) 100%
	);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	max-width: 500px;
}

.empty-state__icon {
	font-size: 48px;
	margin-bottom: 24px;
	display: block;
}

.empty-state__title {
	font-size: 24px;
	font-weight: 600;
	color: #FFFFFF;
	margin: 0 0 12px 0;
	line-height: 1.3;
}

.empty-state__text {
	font-size: 16px;
	font-weight: 400;
	color: #BEBEBE;
	margin: 0;
	line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 1200px) {
	.articles-modern .container {
		max-width: 100%;
		padding: 0 40px;
	}
}

@media (max-width: 991px) {
	.articles__header {
		margin-bottom: 40px;
	}
	
	.articles__header::after {
		right: 10%;
		top: 80px;
	}
	
	.articles__title {
		font-size: 40px;
	}
	
	.articles__grid {
		grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
		gap: 24px;
	}
}

@media (max-width: 768px) {
	.articles-modern {
		padding: 40px 0 80px;
	}
	
	.articles-modern .container {
		padding: 0 20px;
	}
	
	.articles__header::before {
		right: 5%;
		top: -10px;
	}
	
	.articles__header::after {
		right: 5%;
		top: 100px;
	}
	
	.articles__title {
		font-size: 32px;
	}
	
	.articles__subtitle {
		font-size: 16px;
	}
	
	.articles__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.article-card__image-wrapper {
		height: 200px;
	}
	
	.article-card__content {
		padding: 20px;
		gap: 12px;
	}
	
	.empty-state {
		padding: 40px 24px;
	}
	
	.empty-state__title {
		font-size: 20px;
	}
	
	.empty-state__text {
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.articles__header {
		margin-bottom: 30px;
	}
	
	.articles__header::before,
	.articles__header::after {
		display: none;
	}
	
	.articles__title {
		font-size: 28px;
	}
	
	.article-card__content {
		padding: 16px;
	}
}

/* Современная страница детальной статьи */
.article-detail-modern {
	padding: 40px 0 100px;
	position: relative;
	z-index: 1;
}

.article-detail-modern .container {
	max-width: 900px;
	margin: 0 auto;
}

/* Навигация */
.article-nav {
	margin-bottom: 40px;
}

.back-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 25px;
	color: #FFFFFF;
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	transition: all 0.3s ease;
}

.back-button:hover {
	background: linear-gradient(135deg, rgba(146, 108, 255, 0.2), rgba(146, 108, 255, 0.1));
	border-color: rgba(146, 108, 255, 0.3);
	transform: translateX(-4px);
}

.back-button svg {
	transition: transform 0.3s ease;
}

.back-button:hover svg {
	transform: translateX(-2px);
}

/* Hero изображение */
.article-hero {
	margin-bottom: 60px;
	border-radius: 24px;
	overflow: hidden;
	position: relative;
}

.article-hero__image {
	position: relative;
	height: 400px;
	overflow: hidden;
}

.article-hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.article-hero__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to bottom,
		transparent 0%,
		transparent 70%,
		rgba(29, 31, 30, 0.8) 100%
	);
}

.article-hero:hover .article-hero__image img {
	transform: scale(1.02);
}

/* Контент статьи */
.article-content {
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.1) 0%,
		rgba(255, 255, 255, 0.05) 100%
	);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 24px;
	padding: 40px;
	position: relative;
	overflow: hidden;
}

.article-content::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		135deg,
		rgba(146, 108, 255, 0.05) 0%,
		transparent 50%
	);
	pointer-events: none;
}

/* Заголовок статьи */
.article-header {
	margin-bottom: 40px;
	position: relative;
	z-index: 2;
}

.article-title {
	font-size: 40px;
	font-weight: 700;
	color: #FFFFFF;
	line-height: 1.2;
	margin: 0 0 20px 0;
	background: linear-gradient(135deg, #FFFFFF, #BEBEBE);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.article-lead {
	font-size: 20px;
	font-weight: 500;
	color: #BEBEBE;
	line-height: 1.5;
	margin: 0 0 32px 0;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}



/* Тело статьи */
.article-body {
	position: relative;
	z-index: 2;
	line-height: 1.7;
	font-size: 16px;
	color: #FFFFFF;
}

.article-body h2,
.article-body h3,
.article-body h4 {
	color: #FFFFFF;
	margin: 32px 0 16px 0;
	font-weight: 600;
}

.article-body h2 {
	font-size: 28px;
	color: #926CFF;
}

.article-body h3 {
	font-size: 24px;
}

.article-body h4 {
	font-size: 20px;
}

.article-body p {
	margin: 0 0 20px 0;
}

.article-body ul,
.article-body ol {
	margin: 0 0 20px 20px;
	color: #BEBEBE;
}

.article-body li {
	margin-bottom: 8px;
}

.article-body blockquote {
	margin: 24px 0;
	padding: 20px 24px;
	background: rgba(146, 108, 255, 0.1);
	border-left: 4px solid #926CFF;
	border-radius: 0 12px 12px 0;
	font-style: italic;
	color: #BEBEBE;
}

.article-body a {
	color: #926CFF;
	text-decoration: underline;
	transition: color 0.3s ease;
}

.article-body a:hover {
	color: #FFFFFF;
}

.article-body img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 24px 0;
}



/* Адаптивность для детальной страницы */
@media (max-width: 768px) {
	.article-detail-modern {
		padding: 20px 0 80px;
	}
	
	.article-detail-modern .container {
		padding: 0 20px;
	}
	
	.article-nav {
		margin-bottom: 30px;
	}
	
	.article-hero {
		margin-bottom: 40px;
	}
	
	.article-hero__image {
		height: 250px;
	}
	
	.article-content {
		padding: 24px;
	}
	
	.article-title {
		font-size: 28px;
	}
	
	.article-lead {
		font-size: 18px;
	}
	

	
	.article-body {
		font-size: 15px;
	}
	
	.article-body h2 {
		font-size: 24px;
	}
	
	.article-body h3 {
		font-size: 20px;
	}
	

}

@media (max-width: 480px) {
	.article-content {
		padding: 20px;
	}
	
	.article-title {
		font-size: 24px;
	}
	
	.article-lead {
		font-size: 16px;
	}
	
	.back-button {
		padding: 10px 16px;
		font-size: 13px;
	}
}



