/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ СТАТЬИ ===== */

/* Навигация */
.article-nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: rgba(15, 39, 70, 0.95);
	backdrop-filter: blur(10px);
	z-index: 1000;
	padding: 1rem 0;
	transition: all 0.3s ease;
}

.article-nav .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

.nav-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: #f7f7f7;
	text-decoration: none;
	transition: color 0.3s ease;
}

.nav-logo:hover {
	color: #dc2336;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.nav-link {
	color: #f7f7f7;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.nav-link:hover {
	color: #dc2336;
}

.nav-link.btn {
	padding: 0.5rem 1rem;
	border-radius: 0.375rem;
	background: #c20a38;
	color: #f7f7f7;
}

.nav-link.btn:hover {
	background: #a0083a;
	color: #f7f7f7;
}

/* Главная секция статьи */
.article-hero {
	position: relative;
	display: flex;
	align-items: center;
	padding: 3rem 0 3rem;
	overflow: hidden;
	background: #0f2746;
}

.article-hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #0f2746;
	z-index: 1;
}

.article-hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
}

.article-breadcrumbs {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-bottom: 2rem;
	font-size: 0.875rem;
	opacity: 0.8;
}

.article-breadcrumbs a {
	color: #f7f7f7;
	text-decoration: none;
	transition: color 0.3s ease;
}

.article-breadcrumbs a:hover {
	color: #dc2336;
}

.article-breadcrumbs span {
	color: #f7f7f7;
	opacity: 0.6;
}

.article-title {
	color: #f7f7f7;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1.5rem;
	letter-spacing: -0.02em;
}

.article-excerpt {
	margin-bottom: 2rem;
}

.article-excerpt p {
	color: #f7f7f7;
	font-size: 1.25rem;
	line-height: 1.6;
	opacity: 0.9;
	margin: 0;
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(247, 247, 247, 0.2);
}

.article-meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #f7f7f7;
	font-size: 0.875rem;
	opacity: 0.8;
}

.article-meta-icon {
	flex-shrink: 0;
}

.article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.article-tag {
	background: rgba(220, 35, 54, 0.2);
	color: #f7f7f7;
	padding: 0.25rem 0.75rem;
	border-radius: 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	border: 1px solid rgba(220, 35, 54, 0.3);
}

.article-hero-image {
	position: relative;
	z-index: 2;
	margin-top: 3rem;
}

.article-featured-image {
	width: 100%;
	height: auto;
	border-radius: 1rem;
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

/* Контент статьи */
.article-content {
	background: #f7f7f7;
	color: #0f2746;
	padding: 4rem 0;
}

.article-wrapper {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 3rem;
	align-items: start;
}

.article-body {
	background: #ffffff;
	padding: 3rem;
	border-radius: 1rem;
	line-height: 1.8;
}

/* Стили для контента внутри статьи */
.article-body h2 {
	color: #0f2746;
	font-size: 2rem;
	font-weight: 600;
	margin: 2.5rem 0 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #dc2336;
}

.article-body h3 {
	color: #0f2746;
	font-size: 1.5rem;
	font-weight: 600;
	margin: 2rem 0 1rem;
}

.article-body h4 {
	color: #0f2746;
	font-size: 1.25rem;
	font-weight: 600;
	margin: 1.5rem 0 0.75rem;
}

.article-body p {
	color: #0f2746;
	font-size: 1.125rem;
	line-height: 1.8;
	margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
	margin: 1.5rem 0;
	padding-left: 2rem;
}

.article-body li {
	color: #0f2746;
	font-size: 1.125rem;
	line-height: 1.8;
	margin-bottom: 0.5rem;
}

.article-body blockquote {
	background: #f5f5f5;
	border-left: 4px solid #dc2336;
	padding: 1.5rem 2rem;
	margin: 2rem 0;
	font-style: italic;
	font-size: 1.1rem;
	color: #2a3b4e;
}

.article-body img {
	max-width: 100%;
	height: auto;
	border-radius: 0.5rem;
	margin: 2rem 0;
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.article-body code {
	background: #f5f5f5;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	font-family: "Courier New", monospace;
	font-size: 0.9em;
	color: #dc2336;
}

.article-body pre {
	background: #2a3b4e;
	color: #f7f7f7;
	padding: 2rem;
	border-radius: 0.5rem;
	overflow-x: auto;
	margin: 2rem 0;
}

.article-body pre code {
	background: none;
	padding: 0;
	color: #f7f7f7;
}

.article-body a {
	color: #dc2336;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease;
}

.article-body a:hover {
	border-bottom-color: #dc2336;
}

/* Исходные стили (ваши текущие) — оставляем без изменений */
.article-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 2rem 0;
	box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
	border-radius: 0.5rem;
	overflow: hidden;
}

.article-body th,
.article-body td {
	padding: 1rem;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
	min-width: 200px;
}

.article-body th {
	background: #0f2746;
	color: #f7f7f7;
	font-weight: 600;
}

.article-body tr:hover {
	background: #f9f9f9;
}

/* Адаптация: только для таблицы на мобильных */
@media (max-width: 768px) {
	.article-body table {
		/* Включаем горизонтальный скролл */
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;

		/* Сохраняем визуальные эффекты */
		box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
		border-radius: 0.5rem;

		/* Сброс ширины, чтобы сработало overflow */
		width: auto;
		min-width: 100%;
		/* Минимум — ширина контейнера */
	}

	/* Для корректного отображения теней и скругления при скролле */
	.article-body table thead,
	.article-body table tbody {
		display: table;
		width: fit-content;
	}
}

/* Боковая панель */
.article-sidebar {
	position: relative;
}

.sidebar-sticky {
	position: sticky;
	top: 6rem;
}

.sidebar-widget {
	background: #ffffff;
	padding: 2rem;
	border-radius: 1rem;
	margin-bottom: 2rem;
}

.sidebar-title {
	color: #0f2746;
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #dc2336;
}

.table-of-contents {
	max-height: 400px;
	overflow-y: auto;
}

.table-of-contents ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.table-of-contents li {
	margin-bottom: 0.5rem;
}

.table-of-contents a {
	color: #0f2746;
	text-decoration: none;
	font-size: 0.875rem;
	line-height: 1.4;
	padding: 0.25rem 0;
	display: block;
	transition: color 0.3s ease;
}

.table-of-contents a:hover,
.table-of-contents a.active {
	color: #dc2336;
}

.table-of-contents .toc-h3 {
	padding-left: 1rem;
}

.table-of-contents .toc-h4 {
	padding-left: 2rem;
}

.share-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.share-btn {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.875rem;
	transition: all 0.3s ease;
	color: #f7f7f7;
}

.share-vk {
	background: #4c75a3;
}

.share-vk:hover {
	background: #3d5e8a;
	transform: translateY(-2px);
	color: #f7f7f7;
}

.share-telegram {
	background: #0088cc;
}

.share-telegram:hover {
	background: #006ba3;
	transform: translateY(-2px);
	color: #f7f7f7;
}

.share-ok {
	background: #ee8208;
}

.share-ok:hover {
	background: #d17307;
	transform: translateY(-2px);
	color: #f7f7f7;
}

.sidebar-text {
	color: #0f2746;
	font-size: 0.875rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
	opacity: 0.8;
}

.sidebar-btn {
	width: 100%;
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
}

/* Адаптивность */
@media (max-width: 1024px) {
	.article-wrapper {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.sidebar-widget {
		margin-bottom: 1rem;
	}

	.share-buttons {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.share-btn {
		flex: 1;
		min-width: 120px;
		justify-content: center;
	}

	.sidebar-sticky .sidebar-widget:first-child {
		display: none;
	}

	.article-sidebar {
		order: 0;
	}

	.sidebar-sticky {
		position: static;
		display: flex;
		gap: 2rem;
		justify-content: space-between;
	}
}

@media (max-width: 768px) {
	.nav-links {
		gap: 1rem;
	}

	.nav-link:not(.btn) {
		display: none;
	}

	.article-hero {
		padding: 3rem 0 3rem;
	}

	.article-meta {
		gap: 1rem;
	}

	.article-meta-item {
		font-size: 0.8rem;
	}

	.article-body {
		padding: 2rem 1.5rem;
	}

	.article-body h2 {
		margin: 2rem 0 1rem;
	}

	.article-body h3 {
		font-size: 1.25rem;
		margin: 1.5rem 0 0.75rem;
	}

	.article-body p,
	.article-body li {
		font-size: 1rem;
	}

	.container {
		padding: 0 20px;
	}

	.article-title {
		font-size: 44px;
		max-width: 80%;
		margin: 40px 0px;
	}

	.article-content {
		background: #f7f7f7;
		color: #0f2746;
		padding: 2rem 0;
	}

	.article-body {
		padding: 1.5rem;
	}
}

@media (max-width: 480px) {
	.article-wrapper {
		display: block;
	}

	.article-body {
		margin-bottom: 20px;
	}

	.sidebar-sticky {
		position: static;
		display: flex;
		gap: 10px;
		justify-content: space-between;
		flex-direction: column;
	}

	.article-title {
		font-size: 38px;
		max-width: 100%;
		margin: 40px 0px;
	}

	.article-meta {
		flex-direction: row;
		gap: 0.75rem;
	}

	.article-hero {
		padding: 3rem 0 2rem;
	}

	.article-excerpt p {
		font-size: 1.1rem;
	}

	.article-tags {
		gap: 0.5rem;
	}

	.article-tag {
		font-size: 0.8rem;
		padding: 0.2rem 0.6rem;
	}

	.article-body {
		padding: 1.5rem 1rem;
	}

	.sidebar-widget {
		padding: 1.5rem;
	}

	.share-buttons {
		flex-direction: column;
	}

	.share-btn {
		flex: none;
	}
}

/* Анимации */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.article-hero-content>* {
	animation: fadeInUp 0.6s ease forwards;
}

.article-hero-content>*:nth-child(1) {
	animation-delay: 0.1s;
}

.article-hero-content>*:nth-child(2) {
	animation-delay: 0.2s;
}

.article-hero-content>*:nth-child(3) {
	animation-delay: 0.3s;
}

.article-hero-content>*:nth-child(4) {
	animation-delay: 0.4s;
}

.article-hero-content>*:nth-child(5) {
	animation-delay: 0.5s;
}

.article-featured-image {
	animation: fadeInUp 0.8s ease 0.6s both;
}