/* Archive subcategory grid (Bootstrap 5) */
.archive-subcategories .subCategory {
	background: #fafafa;
	border: 1px solid #ddd;
	padding: 8px;
}

.archive-subcategories .subCategoryImage img {
	display: inline-block !important;
	max-width: 100%;
	height: auto;
}

.cat-children {
	width: 100%;
	clear: both;
}

/* Safety: legacy K2 float grid if old markup remains */
.cat-children .subCategoryContainer {
	float: left;
	box-sizing: border-box;
}
.cat-children .clr {
	clear: both;
	height: 0;
	line-height: 0;
	display: block;
	float: none;
	padding: 0;
	margin: 0;
	border: none;
}

/* H2: elegant Cyrillic display face */
h2,
.sppb-addon-header .sppb-addon-title {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* Breadcrumbs: lower under logo + pill style */
#sp-page-title {
	padding-top: 28px;
	padding-bottom: 8px;
}

#sp-page-title .breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	border-radius: 0;
	font-size: 14px;
	line-height: 1.3;
}

/* Hide icon-only home crumb when "Главная" follows */
#sp-page-title .breadcrumb-item:has(> .fa-home:only-child),
#sp-page-title .breadcrumb-item:has(> i.fa-home:only-child) {
	display: none !important;
}

#sp-page-title .breadcrumb-item:has(> .fa-home:only-child) + .breadcrumb-item::before,
#sp-page-title .breadcrumb-item:has(> i.fa-home:only-child) + .breadcrumb-item::before {
	content: none !important;
	padding: 0 !important;
}

#sp-page-title .breadcrumb-item {
	display: inline-flex;
	align-items: center;
	padding: 0;
	float: none;
}

#sp-page-title .breadcrumb-item + .breadcrumb-item {
	padding-left: 0;
}

#sp-page-title .breadcrumb-item + .breadcrumb-item::before {
	content: ">" !important;
	display: inline-block;
	padding: 0 10px;
	color: #b0b7c3;
	font-weight: 400;
	font-size: 14px;
	float: none;
}

#sp-page-title .breadcrumb-item > a,
#sp-page-title .breadcrumb-item > span {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	background: #eef1f5;
	color: #6b7280;
	text-decoration: none;
	font-weight: 500;
	transition: background-color 0.15s ease, color 0.15s ease;
}

#sp-page-title .breadcrumb-item > a:hover,
#sp-page-title .breadcrumb-item > a:focus {
	background: #e4e9f0;
	color: #374151;
	text-decoration: none;
}

/* Active pill is on inner span — never on li (keeps ">" outside) */
#sp-page-title .breadcrumb-item.active {
	background: transparent !important;
	padding: 0 !important;
	color: inherit;
	font-weight: inherit;
}

#sp-page-title .breadcrumb-item.active > span {
	background: #d7e6f5;
	color: #1f2937;
	font-weight: 700;
}

/* Homepage latest issues (replaces Widgetkit grid) */
.home-issues {
	display: flex;
	flex-wrap: wrap;
	gap: 30px 20px;
	justify-content: center;
	margin: 20px 0 0;
}

.home-issues__item {
	position: relative;
	display: block;
	width: calc(33.333% - 14px);
	max-width: 320px;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	transition: transform 0.2s ease;
}

.home-issues__item:hover {
	transform: scale(1.03);
	text-decoration: none;
}

.home-issues__item img {
	display: block;
	width: 100%;
	height: auto;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	padding: 0;
}

.home-issues__title {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: inline-block;
	margin: 0;
	padding: 7px 12px;
	border-radius: 4px;
	background: rgba(0, 122, 51, 0.92);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
	pointer-events: none;
}

@media (max-width: 991.98px) {
	.home-issues__item {
		width: calc(50% - 10px);
	}
}

@media (max-width: 575.98px) {
	.home-issues__item {
		width: 100%;
		max-width: 280px;
	}
}
