/* ========================================
MilVas - Modern Responsive Theme
Based on Free CSS Templates (CC 2.5)
Modernized: 15.07.2026
======================================== */
/* CSS Variables */
:root {
	--primary-color: #2c3e50;
	--secondary-color: #3498db;
	--accent-color: #e74c3c;
	--text-color: #4D4D4D;
	--text-light: #787878;
	--bg-dark: #000000;
	--bg-light: #EAEAEA;
	--bg-white: #FFFFFF;
	--border-color: #D6D6D6;
	--shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	--transition: all 0.3s ease;
	--max-width: 1200px;
	--header-height: 120px;
}

/* Reset & Base */
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	padding: 0;
	background: var(--bg-dark);
	font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-color);
}
h1, h2, h3 {
	margin: 0;
	padding: 0;
	font-weight: 600;
	color: var(--primary-color);
}
h1 { font-size: 2em; }
h2 { font-size: 1.8em; clear: both; }
h3 { font-size: 1.4em; }
p, ul, ol {
	margin-top: 0;
	line-height: 1.7;
}
a {
	color: var(--secondary-color);
	text-decoration: none;
	transition: var(--transition);
}
a:hover {
	color: var(--accent-color);
	text-decoration: underline;
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Wrapper */
#wrapper {
	margin: 0 auto;
	padding: 0;
	max-width: var(--max-width);
	background: var(--bg-white);
	box-shadow: var(--shadow);
}

/* Header */
#header-wrapper {
	position: relative;
	background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}
#header {
	width: 100%;
	max-width: var(--max-width);
	height: var(--header-height);
	margin: 0 auto;
	padding: 0 30px;
	display: flex;
	align-items: center;
}

/* Logo */
#logo {
	margin: 0;
	padding: 0;
	color: var(--bg-white);
}
#logo h1, #logo p {
	margin: 0;
	padding: 0;
}
#logo h1 {
	letter-spacing: -1px;
	font-size: 2.8em;
	font-weight: 700;
}
#logo p {
	margin: 0;
	padding: 0 0 0 2px;
	font: normal 14px Georgia, "Times New Roman", Times, serif;
	font-style: italic;
	color: rgba(255, 255, 255, 0.9);
}
#logo a {
	border: none;
	background: none;
	text-decoration: none;
	color: var(--bg-white);
	transition: var(--transition);
}
#logo a:hover {
	opacity: 0.8;
	text-decoration: none;
}

/* Sticky Menu */
#sidebar {
	position: sticky;
	top: 20px;
	align-self: flex-start;
}
#sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
#sidebar li {
	margin: 0;
	padding: 0;
}
#sidebar li ul {
	margin: 0;
	padding-bottom: 20px;
}
#sidebar h2 {
	height: auto;
	padding: 15px 20px;
	margin-bottom: 10px;
	border-bottom: 2px solid var(--secondary-color);
	letter-spacing: -0.5px;
	font-size: 1.4em;
	color: var(--primary-color);
	background: #f8f9fa;
	border-radius: 8px 8px 0 0;
}
#sidebar li li {
	line-height: 1;
	margin: 0;
	padding: 0;
	border-left: none;
	background: none;
}
#sidebar li li a {
	display: block;
	padding: 12px 20px;
	border-left: 3px solid transparent;
	color: var(--text-color);
	font-weight: 500;
	transition: var(--transition);
	background: #fafafa;
	border-bottom: 1px solid #eee;
}
#sidebar li li a:hover {
	background: #f0f0f0;
	border-left-color: var(--secondary-color);
	color: var(--secondary-color);
	text-decoration: none;
	padding-left: 25px;
}
#sidebar li li.active a {
	background: linear-gradient(90deg, var(--secondary-color) 0%, #5dade2 100%);
	color: var(--bg-white);
	border-left-color: var(--primary-color);
	font-weight: 600;
	box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}
#sidebar li li.active a:hover {
	color: var(--bg-white);
	padding-left: 20px;
}
#sidebar p {
	margin: 0;
	padding: 15px 20px;
	text-align: justify;
}
#sidebar a {
	border: none;
	color: var(--text-color);
}

/* Page Layout */
#page {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	background: var(--bg-white);
	padding: 30px;
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}
#page-bgtop, #page-bgbtm {
	width: 100%;
	background: none;
	padding: 0;
}

/* Content */
#content {
	flex: 1;
	min-width: 0;
	padding: 0;
	order: 1;
}
.post {
	border-bottom: 1px dotted var(--border-color);
	background: var(--bg-white);
	margin-bottom: 20px;
	padding-bottom: 20px;
}
.post .title {
	letter-spacing: -0.5px;
	padding: 0 0 15px 0;
	font-size: 2em;
	color: var(--primary-color);
	border-bottom: 2px solid var(--secondary-color);
	margin-bottom: 20px;
}
.post .title a {
	color: var(--primary-color);
	border: none;
}
.post .entry {
	padding: 0;
	text-align: justify;
	min-height: 200px;
	font-size: 15px;
	line-height: 1.7;
}
.post .entry p {
	margin-bottom: 15px;
}
.post .entry img {
	margin: 15px auto;
	border-radius: 8px;
	box-shadow: var(--shadow);
	transition: var(--transition);
}
.post .entry img:hover {
	transform: scale(1.02);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Стили для кнопок-ссылок внутри поста (СКАЧАТЬ, ДОНАТ и т.д.) */
.post .entry a {
	display: inline-block;
	padding: 10px 25px;
	background: var(--secondary-color);
	color: var(--bg-white);
	border-radius: 5px;
	font-weight: 600;
	text-decoration: none;
	transition: var(--transition);
	margin: 10px 0;
}
.post .entry a:hover {
	background: var(--primary-color);
	color: var(--bg-white);
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Обычная текстовая ссылка внутри поста (без стиля кнопки)
   ======================================== */
.post .entry a.text-link {
	display: inline;
	padding: 0;
	background: transparent;
	color: var(--secondary-color);
	border-radius: 0;
	font-weight: normal;
	text-decoration: underline;
	margin: 0;
	box-shadow: none;
}

.post .entry a.text-link:hover {
	color: var(--accent-color);
	background: transparent;
	transform: none;
	box-shadow: none;
	text-decoration: underline;
}

.links {
	padding-top: 20px;
	font-size: 12px;
	font-weight: bold;
}

/* Sidebar */
#sidebar {
	width: 280px;
	margin: 0;
	padding: 0;
	color: var(--text-light);
	order: 2;
}

/* Footer */
#footer {
	background: var(--primary-color);
	color: rgba(255, 255, 255, 0.8);
	padding: 25px 30px;
	text-align: center;
	margin-top: 30px;
}
#footer p {
	margin: 0;
	line-height: normal;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.8);
}
#footer a {
	color: var(--bg-white);
	text-decoration: underline;
}
#footer a:hover {
	color: var(--secondary-color);
}

/* Back to Top Button */
#back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	background: var(--secondary-color);
	color: var(--bg-white);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 20px;
	line-height: 50px;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	z-index: 1000;
}
#back-to-top.visible {
	opacity: 1;
	visibility: visible;
}
#back-to-top:hover {
	background: var(--primary-color);
	transform: translateY(-5px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Utility Classes */
.clear {
	clear: both;
}
.text-center {
	text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
	:root {
		--header-height: 100px;
	}
	#header {
		padding: 0 20px;
	}
	#logo h1 {
		font-size: 2.2em;
	}
	#page {
		padding: 20px;
		gap: 20px;
	}
	#content {
		width: 100%;
	}
	#sidebar {
		width: 100%;
		position: static;
		order: 2;
	}
}
@media screen and (max-width: 768px) {
	:root {
		--header-height: 80px;
	}
	body {
		font-size: 13px;
	}
	#header {
		padding: 0 15px;
	}
	#logo h1 {
		font-size: 1.8em;
	}
	#logo p {
		font-size: 12px;
	}
	#page {
		padding: 15px;
		gap: 15px;
	}
	.post .title {
		font-size: 1.5em;
		padding: 0 0 10px 0;
		margin-bottom: 15px;
	}
	.post .entry {
		font-size: 14px;
		text-align: left;
	}
	.post .entry img {
		margin: 10px 0;
	}
	#sidebar h2 {
		font-size: 1.2em;
		padding: 12px 15px;
	}
	#sidebar li li a {
		padding: 10px 15px;
		font-size: 14px;
	}
	#back-to-top {
		width: 45px;
		height: 45px;
		line-height: 45px;
		bottom: 20px;
		right: 20px;
	}
}
@media screen and (max-width: 480px) {
	:root {
		--header-height: 70px;
	}
	#logo h1 {
		font-size: 1.5em;
	}
	#logo p {
		font-size: 11px;
	}
	#page {
		padding: 10px;
	}
	.post .title {
		font-size: 1.3em;
	}
	.post .entry a {
		display: block;
		text-align: center;
		padding: 12px 20px;
	}
	#footer {
		padding: 20px 15px;
	}
	#footer p {
		font-size: 12px;
	}
}

/* Print Styles */
@media print {
	#sidebar, #back-to-top, #header-wrapper {
		display: none;
	}
	#page {
		padding: 0;
	}
	.post .entry a {
		background: none;
		color: var(--text-color);
		text-decoration: underline;
	}
}