/*
Theme Name: Ogneiz
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Author URI: https://www.portotheme.com/
Description: Porto Responsive WordPress + eCommerce Theme.
Version: 1.1
Template: porto
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/

.porto-menu-item-icon-img {
	display: inline-block;
	width: auto;
	height: auto;
	max-width: 100%;
	margin-right: 0.4em;
	vertical-align: middle;
}

/* ============================================================
   Стили повторяющихся элементов статей (article-*)
   ============================================================ */

/* --- Оглавление статьи (Содержание) --- */
.article-toc {
	background: #f8f9fa;
	border: 1px solid #e7e7e7;
	border-left: 4px solid var(--porto-primary-color, #fe561d);
	border-radius: 6px;
	padding: 22px 26px;
	margin: 0 0 36px;
}
.article-toc h2 {
	font-size: 1.05em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin: 0 0 14px;
	color: var(--porto-heading-color, #222529);
}
.article-toc ol {
	list-style: none;
	counter-reset: toc;
	margin: 0;
	padding: 0;
}
.article-toc ol li {
	counter-increment: toc;
	margin: 0;
	padding: 7px 0;
	border-bottom: 1px dashed #e0e0e0;
}
.article-toc ol li:last-child {
	border-bottom: none;
}
.article-toc ol li a {
	display: flex;
	align-items: baseline;
	gap: 12px;
	color: #555;
	text-decoration: none;
	transition: color 0.2s ease, padding-left 0.2s ease;
}
.article-toc ol li a::before {
	content: counter(toc, decimal-leading-zero);
	font-weight: 700;
	font-size: 0.82em;
	color: var(--porto-primary-color, #fe561d);
	flex-shrink: 0;
}
.article-toc ol li a:hover {
	color: var(--porto-primary-color, #fe561d);
	padding-left: 4px;
}

/* --- Секция статьи --- */
.article-section {
	margin-bottom: 44px;
}
.article-section h2 {
	position: relative;
	padding-bottom: 12px;
	margin-bottom: 22px;
	border-bottom: 2px solid #f0f0f0;
}
.article-section h2::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 64px;
	height: 2px;
	background: var(--porto-primary-color, #fe561d);
}

/* --- Вступление (первый абзац секции #intro) --- */
.article-section#intro > p:first-child {
	font-size: 1.16em;
	line-height: 1.75;
	color: #444;
	border-left: 3px solid var(--porto-primary-color, #fe561d);
	padding-left: 20px;
}

/* --- Список литературы (секция #references) --- */
.article-section#references ol {
	counter-reset: ref;
	list-style: none;
	margin: 0;
	padding: 0;
}
.article-section#references ol li {
	counter-increment: ref;
	position: relative;
	padding: 11px 0 11px 44px;
	border-bottom: 1px solid #f0f0f0;
}
.article-section#references ol li:last-child {
	border-bottom: none;
}
.article-section#references ol li::before {
	content: counter(ref);
	position: absolute;
	left: 0;
	top: 9px;
	width: 30px;
	height: 30px;
	background: var(--porto-primary-color, #fe561d);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.82em;
	font-weight: 700;
}

/* --- Сравнительные таблицы --- */
.article-table {
	width: 100%;
	border-collapse: collapse;
	margin: 22px 0;
	font-size: 0.95em;
	line-height: 1.5;
}
.article-table thead th {
	background: var(--porto-dark-color, #222529);
	color: #fff;
	padding: 13px 15px;
	text-align: left;
	font-weight: 600;
	white-space: nowrap;
}
.article-table tbody td {
	padding: 12px 15px;
	border-bottom: 1px solid #e7e7e7;
	vertical-align: top;
}
.article-table tbody tr:nth-child(even) {
	background: #f8f9fa;
}
.article-table tbody tr {
	transition: background-color 0.2s ease;
}
.article-table tbody tr:hover {
	background: #fff1ec;
}
.article-table tbody tr td:first-child {
	font-weight: 600;
	color: var(--porto-heading-color, #222529);
}

/* --- Изображение в середине статьи --- */
.single-post-image-ogneiz {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 26px auto;
	border-radius: 8px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.single-post-image-ogneiz:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.13);
}

/* --- Формулы и код (pre) --- */
.entry-content pre {
	background: var(--porto-dark-color, #222529);
	color: #e8e8e8;
	padding: 16px 20px;
	border-radius: 6px;
	overflow-x: auto;
	font-family: 'Courier New', Consolas, monospace;
	font-size: 0.95em;
	line-height: 1.6;
	margin: 18px 0;
}

/* --- Адаптивность таблиц на мобильных --- */
@media (max-width: 767px) {
	.article-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.article-toc {
		padding: 18px 18px;
	}
}

/* ============================================================
   Страница «Каталог» (карта сайта)
   ============================================================ */
.katalog-sub {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}
.katalog-sub li {
	padding: 4px 0;
	font-size: 0.92em;
}
.katalog-sub li a {
	color: #555;
}
.katalog-sub li a:hover {
	color: var(--porto-primary-color, #fe561d);
}
.katalog-sub .count {
	color: #999;
	font-size: 0.85em;
}
.katalog-cats .count,
.katalog-posts .count,
.katalog-pages .count {
	color: #999;
	font-size: 0.85em;
}

