/* ========================================
   ПЕРЕМЕННЫЕ
   ======================================== */
:root {
	--primary-color: #691328;
	--secondary-color: #af2222;
	--accent-color: #DAA520;
	--text-color: #2F1B14;
	--light-bg: #FDF6F0;
	--dark-bg: #4A0F0F;
	--gold: #e0a717;
	--white: #FFFDF5;
	--header-height: 80px;
}

/* ========================================
   ЦЕРКОВНОСЛАВЯНСКИЕ ШРИФТЫ
   ======================================== */
@font-face {
	font-family: 'Ponomar Unicode';
	src: url('/fonts/ponomarunicode.otf') format('opentype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Ponomar';
	src: url('/fonts/Ponomar-Regular.otf') format('opentype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Triodion';
	src: url('/fonts/triodionunicode.otf') format('opentype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Irmie';
	src: url('/fonts/irmieucs.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Irmie Classic';
	src: url('/fonts/irmcieuxcs.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/* ========================================
   БАЗОВЫЕ СТИЛИ
   ======================================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Roboto Slab', 'Playfair Display', serif;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--light-bg);
	padding-top: var(--header-height);
	transition: all 0.3s ease;
}

body.accessibility-mode {
	font-size: 1.3rem;
	line-height: 1.8;
	background: #000;
	color: #fff;
}

body.accessibility-mode img {
	filter: brightness(1.2) contrast(1.2);
}

body.accessibility-mode .service-card,
body.accessibility-mode .news-card {
	background: #1a1a1a;
	border: 1px solid #fff;
}

img {
	max-width: 100%;
	height: auto;
	border-radius: 5px;
}

/* ========================================
   ТИПОГРАФИКА
   ======================================== */
h1,
h2,
h3,
.logo {
	font-family: 'Playfair Display', serif;
}

h1,
h2 {
	color: var(--primary-color);
	margin-bottom: 1.5rem;
	text-align: center;
	position: relative;
	padding-bottom: 0.5rem;
}

h1::after,
h2::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background-color: var(--gold);
	margin: 10px auto 0;
}

.church-slavonic,
.cs-text {
	font-family: 'Ponomar Unicode', 'Ponomar', 'Triodion', 'Irmie', serif;
	font-size: 1.2rem;
	line-height: 1.7;
	letter-spacing: 0.01em;
	font-weight: normal;
}

/* ========================================
   ХЕДЕР
   ======================================== */
header {
	background-color: var(--white);
	box-shadow: 0 2px 10px rgba(128, 0, 32, 0.1);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 0.8rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 2px solid var(--gold);
	gap: 1rem;
	flex-wrap: wrap;
}

.logo a {
	display: flex;
	align-items: center;
	font-weight: bold;
	font-size: 1.1rem;
	color: var(--primary-color);
	text-decoration: none;
	white-space: nowrap;
}

.logo i {
	margin-right: 0.5rem;
	color: var(--gold);
	font-size: 1.2rem;
}

nav ul {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 0;
	gap: 0.25rem;
	flex-wrap: wrap;
}

nav a {
	color: var(--primary-color);
	text-decoration: none;
	padding: 0.5rem 0.8rem;
	border-radius: 4px;
	transition: all 0.3s;
	font-weight: 500;
	font-size: 0.95rem;
	white-space: nowrap;
}

nav a:hover,
nav a.active {
	background-color: var(--primary-color);
	color: var(--white);
}

.header-controls {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.vision-btn {
	background: var(--primary-color);
	color: var(--white);
	border: none;
	padding: 0.5rem;
	border-radius: 50%;
	width: 38px;
	height: 38px;
	cursor: pointer;
	font-size: 1.2rem;
	transition: transform 0.2s;
}

.vision-btn:hover {
	transform: scale(1.05);
}

.mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--primary-color);
}

/* Адаптив хедера */
@media (max-width: 768px) {
	.mobile-menu-btn {
		display: block;
	}

	nav ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: var(--white);
		flex-direction: column;
		padding: 1rem;
		box-shadow: 0 4px 6px rgba(128, 0, 32, 0.1);
		gap: 0.5rem;
	}

	nav ul.active {
		display: flex;
	}

	nav a {
		display: block;
		padding: 0.8rem 1rem;
		text-align: center;
	}
}

/* ========================================
   ОБЩИЕ КНОПКИ
   ======================================== */
.btn {
	display: inline-block;
	background: var(--gold);
	color: var(--primary-color);
	padding: 12px 30px;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
	transition: all 0.3s;
	border: none;
	cursor: pointer;
}

.btn:hover {
	background: #c49a1c;
	transform: translateY(-2px);
}

.btn-outline {
	background: transparent;
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
}

.btn-outline:hover {
	background: var(--primary-color);
	color: white;
}

.news-btn {
	display: inline-block;
	background: transparent;
	border: 2px solid var(--gold);
	color: var(--primary-color);
	padding: 8px 20px;
	border-radius: 30px;
	font-weight: 600;
	font-size: 0.85rem;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	margin-top: 10px;
}

.news-btn:hover {
	background: var(--gold);
	color: var(--white);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(218, 165, 32, 0.3);
}

.back-btn {
	display: inline-block;
	background: transparent;
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
	padding: 8px 20px;
	border-radius: 30px;
	text-decoration: none;
	transition: all 0.3s ease;
	margin-bottom: 20px;
}

.back-btn:hover {
	background: var(--primary-color);
	color: var(--white);
}

/* ========================================
   ФУТЕР
   ======================================== */
footer {
	background-color: var(--dark-bg);
	color: var(--white);
	padding: 2rem;
	margin-top: 2rem;
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	text-align: left;
}

.footer-section h3 {
	color: var(--gold);
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--gold);
	padding-bottom: 0.5rem;
}

.footer-section p {
	margin: 10px 0;
	line-height: 1.4;
}

.footer-section a {
	color: var(--white);
	text-decoration: none;
}

.footer-section a:hover {
	color: var(--gold);
}

.footer-bottom {
	text-align: center;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: 1rem;
}

/* ========================================
   АДАПТИВНОСТЬ (общая)
   ======================================== */
@media (max-width: 992px) {
	:root {
		--header-height: 70px;
	}

	header {
		padding: 0.6rem 1rem;
	}

	.logo a {
		font-size: 0.9rem;
	}

	nav a {
		font-size: 0.85rem;
		padding: 0.4rem 0.6rem;
	}
}

@media (max-width: 768px) {
	:root {
		--header-height: 60px;
	}

	header {
		padding: 0.5rem 1rem;
	}

	.logo a span {
		font-size: 0.85rem;
	}

	h1 {
		font-size: 1.5rem;
	}

	h2 {
		font-size: 1.3rem;
	}

	.services-grid,
	.news-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 1.5rem;
	}

	.footer-section h3 {
		text-align: center;
	}

	.vision-btn {
		width: 34px;
		height: 34px;
		font-size: 1rem;
	}
}

@media (max-width: 480px) {
	.logo a span {
		font-size: 0.7rem;
	}

	.logo i {
		font-size: 1rem;
	}

	.btn {
		padding: 8px 20px;
		font-size: 0.9rem;
	}

	h1 {
		font-size: 1.2rem;
	}

	h2 {
		font-size: 1.1rem;
	}
}

/* ========================================
   СТРАНИЦА НОВОСТЕЙ (список)
   ======================================== */
.news-page {
	background: #f5f0e8 !important;
	padding: 60px 0 80px !important;
	min-height: 60vh !important;
}

.news-page .container {
	max-width: 1200px !important;
	margin: 0 auto !important;
	padding: 0 20px !important;
}

/* Заголовок */
.news-page-header {
	text-align: center !important;
	margin-bottom: 50px !important;
}

.news-page-header h1 {
	font-family: 'Playfair Display', serif !important;
	font-size: 2.4rem !important;
	color: #691328 !important;
	margin-bottom: 12px !important;
	position: relative !important;
	display: inline-block !important;
}

.news-page-header h1::after {
	content: '' !important;
	display: block !important;
	width: 60px !important;
	height: 3px !important;
	background: #b8860b !important;
	margin: 14px auto 0 !important;
	border-radius: 2px !important;
}

.news-page-header p {
	color: #691328 !important;
	font-size: 1rem !important;
	margin-top: 10px !important;
}

/* Сетка */
.news-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 28px !important;
	margin-bottom: 50px !important;
}

/* Карточка */
.news-card {
	background: #fff !important;
	border-radius: 14px !important;
	overflow: hidden !important;
	box-shadow: 0 4px 18px rgba(105, 19, 40, 0.08) !important;
	display: flex !important;
	flex-direction: column !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease !important;
	border: 1px solid rgba(184, 134, 11, 0.12) !important;
}

.news-card:hover {
	transform: translateY(-6px) !important;
	box-shadow: 0 12px 32px rgba(105, 19, 40, 0.14) !important;
}

/* Изображение */
.news-card-image {
	width: 100% !important;
	height: 210px !important;
	overflow: hidden !important;
	flex-shrink: 0 !important;
	position: relative !important;
	background: linear-gradient(135deg, #691328 0%, #4a0d1c 100%) !important;
}

.news-card-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	transition: transform 0.4s ease !important;
}

.news-card:hover .news-card-image img {
	transform: scale(1.04) !important;
}

.news-card-image::after {
	content: '' !important;
	position: absolute !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	height: 3px !important;
	background: linear-gradient(90deg, #b8860b, #DAA520, #b8860b) !important;
}

/* Заглушка */
.news-card-placeholder {
	width: 100% !important;
	height: 100% !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	background: linear-gradient(135deg, #691328 0%, #8b1a30 50%, #4a0d1c 100%) !important;
}

.news-card-placeholder i {
	font-size: 3.2rem !important;
	color: rgba(255, 255, 255, 0.6) !important;
}

.news-card-placeholder span {
	font-size: 0.75rem !important;
	color: rgba(255, 255, 255, 0.4) !important;
	letter-spacing: 1px !important;
	text-transform: uppercase !important;
	font-family: 'Roboto Slab', serif !important;
}

/* Тело карточки */
.news-card-body {
	padding: 22px 22px 20px !important;
	display: flex !important;
	flex-direction: column !important;
	flex: 1 !important;
}

.news-card-date {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	font-size: 0.8rem !important;
	color: #b8860b !important;
	font-weight: 600 !important;
	margin-bottom: 10px !important;
	letter-spacing: 0.3px !important;
	font-family: 'Roboto Slab', serif !important;
}

.news-card-date i {
	font-size: 0.75rem !important;
}

.news-card-title {
	font-family: 'Playfair Display', serif !important;
	font-size: 1.12rem !important;
	font-weight: 600 !important;
	line-height: 1.45 !important;
	margin-bottom: 12px !important;
}

.news-card-title a {
	color: #691328 !important;
	text-decoration: none !important;
	transition: color 0.2s !important;
}

.news-card-title a:hover {
	color: #691328 !important;
}

.news-card-excerpt {
	font-size: 0.9rem !important;
	color: #666 !important;
	line-height: 1.65 !important;
	margin-bottom: 18px !important;
	flex: 1 !important;
}

.news-card-link {
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
	color: #691328 !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	font-family: 'Roboto Slab', serif !important;
	transition: gap 0.2s, color 0.2s !important;
	align-self: flex-start !important;
	border-bottom: 1.5px solid transparent !important;
	padding-bottom: 2px !important;
}

.news-card-link:hover {
	color: #b8860b !important;
	gap: 11px !important;
	border-bottom-color: #b8860b !important;
}

/* Пустое состояние */
.news-empty {
	text-align: center !important;
	padding: 80px 20px !important;
	color: #999 !important;
}

.news-empty i {
	font-size: 3rem !important;
	color: #ddd !important;
	display: block !important;
	margin-bottom: 16px !important;
}

/* Пагинация */
.news-pagination {
	display: flex !important;
	justify-content: center !important;
	margin-top: 10px !important;
}

.news-pagination nav span,
.news-pagination nav a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 38px !important;
	height: 38px !important;
	padding: 0 10px !important;
	margin: 0 3px !important;
	border-radius: 8px !important;
	font-size: 0.9rem !important;
	font-family: 'Roboto Slab', serif !important;
	border: 1.5px solid #e0d8cc !important;
	color: #691328 !important;
	text-decoration: none !important;
	transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}

.news-pagination nav a:hover {
	background: #691328 !important;
	color: #fff !important;
	border-color: #691328 !important;
}

.news-pagination nav span[aria-current] {
	background: #691328 !important;
	color: #fff !important;
	border-color: #691328 !important;
	font-weight: 700 !important;
}

/* Адаптивность для страницы новостей */
@media (max-width: 1024px) {
	.news-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 640px) {
	.news-grid {
		grid-template-columns: 1fr !important;
		gap: 20px !important;
	}

	.news-page-header h1 {
		font-size: 1.8rem !important;
	}

	.news-card-image {
		height: 180px !important;
	}
}

/* ========================================
   СТАРЫЕ СТИЛИ НОВОСТЕЙ (переопределены выше)
   ======================================== */
/* Эти стили остаются для совместимости, но теперь они не должны мешать */