/* 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 — same modern pill trail as spk-smr */
#sp-page-title {
	padding-top: 18px;
	padding-bottom: 8px;
}

#sp-page-title .breadcrumb {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.2rem 0.15rem;
	margin: 0 !important;
	padding: 0.45rem 0.55rem !important;
	list-style: none;
	background: linear-gradient(180deg, #f4f7fc 0%, #eef3fb 100%);
	border: 1px solid rgba(1, 12, 35, 0.06);
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(1, 12, 35, 0.04);
	font-size: 0.875rem;
	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;
	display: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
}

#sp-page-title .breadcrumb-item {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	margin: 0;
	padding: 0;
	float: none !important;
}

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

#sp-page-title .breadcrumb-item + .breadcrumb-item::before {
	content: "" !important;
	display: inline-block;
	width: 0.38rem;
	height: 0.38rem;
	margin: 0 0.55rem 0 0.4rem;
	padding: 0;
	border-right: 1.5px solid #9aa6b8;
	border-top: 1.5px solid #9aa6b8;
	transform: rotate(45deg);
	flex-shrink: 0;
	opacity: 0.85;
	float: none;
	color: transparent;
	font-size: 0;
}

#sp-page-title .breadcrumb-item > a,
#sp-page-title .breadcrumb-item > a.pathway {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: transparent;
	color: #0b54e4 !important;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.2s ease, color 0.2s ease;
}

#sp-page-title .breadcrumb-item > a:hover,
#sp-page-title .breadcrumb-item > a:focus,
#sp-page-title .breadcrumb-item > a.pathway:hover,
#sp-page-title .breadcrumb-item > a.pathway:focus {
	background: rgba(11, 84, 228, 0.1);
	color: #0846c0 !important;
	text-decoration: none !important;
}

#sp-page-title .breadcrumb-item.active {
	background: transparent !important;
	padding: 0 !important;
	color: inherit;
	font-weight: inherit;
}

#sp-page-title .breadcrumb-item.active > span {
	display: inline-block;
	max-width: min(48vw, 380px);
	padding: 0.35rem 0.85rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
	border-radius: 999px;
	background: #010c23;
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.01em;
}

@media (max-width: 575.98px) {
	#sp-page-title .breadcrumb {
		border-radius: 16px;
		padding: 0.4rem 0.45rem !important;
	}

	#sp-page-title .breadcrumb-item.active > span {
		max-width: min(62vw, 260px);
		font-size: 0.8rem;
	}

	#sp-page-title .breadcrumb-item > a,
	#sp-page-title .breadcrumb-item > a.pathway {
		padding: 0.3rem 0.6rem;
		font-size: 0.8rem;
	}
}

/* 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;
	}
}
