/*
Theme Name: CIS VINITI
Theme URI: https://cis.skyshard.cloud
Description: Тема портала «Информация для инновационной деятельности государств-участников СНГ». Block-based FSE theme.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: cis-viniti
*/

/* ── Hero ────────────────────────────────────────────── */

/* Wrap: единый градиент на ВСЮ зону (hero + карточки) */
.cis-hero-wrap {
	background: linear-gradient(45deg, #02193a 0%, #02193a 35%, #052f6a 65%, #0b4683 85%, #1f5fa0 100%);
	margin-top: 0 !important;
	position: relative;
	overflow: hidden;
	min-height: 100svh;
}

.cis-hero-wrap::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(ellipse 60% 50% at 80% 25%, rgba(126,182,232,0.16), transparent 70%),
		radial-gradient(ellipse 50% 40% at 15% 80%, rgba(48,114,169,0.10), transparent 70%);
	pointer-events: none;
}

.cis-hero {
	padding: clamp(82px, 11svh, 140px) 0 clamp(24px, 4.5svh, 52px);
	position: relative;
}

.cis-hero,
.cis-herocards {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* remove block-gap before hero on front page */
.wp-site-blocks > section.cis-hero {
	margin-block-start: 0 !important;
}

/* kill default block-gap on site blocks when hero is first */
body.home .wp-site-blocks {
	gap: 0;
	row-gap: 0;
}

.cis-hero-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 48px;
	position: relative;
	z-index: 1;
}

.cis-hero-text {
	flex: 1;
	min-width: 0;
}

.cis-hero-eyebrow {
	display: inline-block;
	color: rgba(255,255,255,0.45);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 2.5px;
	font-weight: 600;
	margin-bottom: 18px;
}

.cis-hero-title {
	font-size: 42px;
	font-weight: 700;
	color: #fff;
	line-height: 1.18;
	margin: 0 0 22px;
	letter-spacing: -0.6px;
	max-width: 760px;
}

.cis-hero-desc {
	font-size: 16px;
	color: rgba(255,255,255,0.66);
	line-height: 1.7;
	margin: 0 0 32px;
	max-width: 520px;
}

.cis-hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #1651C2;
	color: #fff;
	padding: 12px 26px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	transition: background 0.2s, transform 0.2s;
}

.cis-hero-cta:hover {
	background: #1d63d8;
}

.cis-hero-cta svg {
	transition: transform 0.2s;
}

.cis-hero-cta:hover svg {
	transform: translateX(3px);
}

.cis-hero-art {
	flex-shrink: 0;
	width: clamp(360px, min(38vw, 58svh), 500px);
	aspect-ratio: 1 / 1;
	position: relative;
	margin-right: -34px;
}

.cis-hero-art img {
	width: 100%;
	height: auto;
	display: block;
}

/* WebGL-canvas с анимированными кубами — заполняет .cis-hero-art целиком */
.cis-hero-cubes-canvas {
	display: block;
	width: 124%;
	height: 124%;
	margin: -12%;
	background: transparent;
}

@media (max-width: 920px) {
	.cis-hero { padding: 96px 0 46px; }
	.cis-hero-inner { flex-direction: column; gap: 30px; text-align: center; }
	.cis-hero-title { font-size: 32px; }
	.cis-hero-desc { margin-left: auto; margin-right: auto; }
	.cis-hero-art { width: min(360px, 82vw); margin-right: 0; }
}

/* ── Hero cards ──────────────────────────────────────── */

.cis-herocards-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px clamp(44px, 7svh, 72px);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	position: relative;
	z-index: 1;
}

.cis-herocard {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 16px;
	padding: 22px 44px 22px 22px;
	text-decoration: none;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.10);
	border-radius: 10px;
	position: relative;
	transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
	overflow: hidden;
}

.cis-herocard::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at top right, rgba(126,182,232,0.10), transparent 60%);
	opacity: 0;
	transition: opacity 0.25s;
	pointer-events: none;
}

.cis-herocard:hover {
	background: rgba(255,255,255,0.06);
	border-color: rgba(126,182,232,0.45);
	box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

.cis-herocard:hover::before {
	opacity: 1;
}

.cis-herocard-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #134192;
	border-radius: 50%;
	color: #fff;
	flex-shrink: 0;
	transition: background 0.2s, transform 0.2s;
}

.cis-herocard-icon svg {
	width: 28px;
	height: 28px;
	stroke-width: 1.6;
}

.cis-herocard:hover .cis-herocard-icon {
	background: #1a55b5;
	transform: scale(1.05);
}

.cis-herocard-body {
	flex: 1;
}

.cis-herocard-title {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 6px;
	line-height: 1.3;
	letter-spacing: -0.1px;
}

.cis-herocard-desc {
	font-size: 13px;
	color: rgba(255,255,255,0.55);
	line-height: 1.5;
}

.cis-herocard-arrow {
	position: absolute;
	top: 22px;
	right: 22px;
	width: 16px;
	height: 16px;
	color: rgba(255,255,255,0.30);
	flex-shrink: 0;
	transition: color 0.2s, transform 0.2s;
}

.cis-herocard:hover .cis-herocard-arrow {
	color: #9bcaec;
	transform: translate(3px, -3px);
}

@media (max-width: 920px) {
	.cis-herocards-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 921px) and (max-height: 820px) {
	.cis-hero {
		padding-top: clamp(74px, 9svh, 104px);
		padding-bottom: clamp(16px, 2.5svh, 30px);
	}
	.cis-hero-art {
		width: clamp(340px, min(35vw, 52svh), 460px);
	}
	.cis-herocards-inner {
		padding-bottom: clamp(48px, 7.5svh, 74px);
	}
}

@media (max-width: 540px) {
	.cis-herocards-inner { grid-template-columns: 1fr; }
}

/* ── Global font ─────────────────────────────────────── */
body, input, button, select, textarea {
	font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── Spacer bar ─────────────────────────────────────── */

/* ── Header v2 (new dark header) ────────────────────── */

.cis-header-v2 {
	background: #01193E;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9000;
	transform: translateY(0);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
	will-change: transform;
}

.cis-header-v2.cis-header-hidden {
	transform: translateY(-100%);
}

body:not(.home).cis-header-revealing::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 64px;
	background: #01193E;
	z-index: 8999;
	pointer-events: none;
}

/* На главной шапка прозрачная у самого верха, плотная при скролле */
body.home .cis-header-v2 {
	background: transparent;
}

body.home .cis-header-v2.cis-header-scrolled {
	background: #01193E;
}

/* Reserve space for fixed header (64px). */
body {
	padding-top: 64px;
}

/* На главной шапка лежит поверх hero — место под неё резервировать не нужно */
body.home {
	padding-top: 0;
}

/* Admin bar is hidden on front-end via show_admin_bar filter */

.cis-header-v2-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	height: 64px;
	display: flex;
	align-items: center;
	gap: 0;
}

/* Logo */
.cis-logo-v2 {
	display: flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
	margin-right: 32px;
	opacity: 0.95;
	transition: opacity 0.15s;
}

.cis-logo-v2:hover {
	opacity: 1;
}

.cis-logo-v2 img {
	height: 38px;
	width: auto;
	display: block;
}

/* Main nav */
.cis-mainnav {
	display: flex;
	align-items: stretch;
	flex: 1;
	height: 100%;
}

.cis-mainnav-item {
	position: relative;
	display: flex;
	align-items: center;
}

.cis-mainnav-btn,
.cis-mainnav-link {
	background: none;
	border: none;
	color: rgba(255,255,255,0.88);
	font-size: 16px;
	font-family: inherit;
	padding: 0 13px;
	cursor: pointer;
	height: 100%;
	display: flex;
	align-items: center;
	gap: 5px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
	border-radius: 0;
}

.cis-mainnav-btn:hover,
.cis-mainnav-link:hover,
.cis-mainnav-item:hover > .cis-mainnav-btn,
.cis-mainnav-item:hover > .cis-mainnav-link {
	background: rgba(255,255,255,0.11);
	color: #fff;
}

.cis-chevron {
	transition: transform 0.2s;
	flex-shrink: 0;
	opacity: 0.7;
}

.cis-mainnav-item:hover .cis-chevron {
	transform: rotate(180deg);
}

/* Dropdown panel — opens on hover, opacity transition prevents flicker */
.cis-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	background: #012e5b;
	min-width: 250px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.35);
	border-top: 2px solid #3072a9;
	z-index: 2000;
	padding: 6px 0;
	/* hidden state */
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-4px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

/* show on hover — delay on hide prevents gap-flicker between trigger and panel */
.cis-mainnav-item.has-dropdown:hover .cis-dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

.cis-dropdown a {
	display: block;
	padding: 8px 18px;
	color: rgba(255,255,255,0.78);
	text-decoration: none;
	font-size: 14px;
	transition: background 0.1s, color 0.1s;
	line-height: 1.4;
}

.cis-dropdown a:hover {
	background: rgba(255,255,255,0.1);
	color: #fff;
}

.cis-dropdown-hr {
	border: none;
	border-top: 1px solid rgba(255,255,255,0.13);
	margin: 5px 0;
}

.cis-dropdown-group-label {
	font-weight: 600 !important;
	color: rgba(255,255,255,0.95) !important;
}

.cis-dropdown-sub {
	padding-left: 30px !important;
	color: rgba(255,255,255,0.5) !important;
	font-size: 13px !important;
}

.cis-dropdown-sub:hover {
	color: rgba(255,255,255,0.88) !important;
}

.cis-nav-flag {
	width: 20px;
	height: 14px;
	object-fit: cover;
	border-radius: 2px;
	margin-right: 9px;
	vertical-align: middle;
	flex-shrink: 0;
	opacity: 0.9;
}

.cis-dropdown a,
.cis-mega-col ul li a {
	display: flex;
	align-items: center;
}

/* "•••" button */
.cis-mainnav-more {
	padding: 0 14px;
	margin-left: 2px;
	color: rgba(255,255,255,0.7) !important;
}

.cis-mainnav-more.active,
.cis-mainnav-more:hover {
	color: #fff !important;
}

/* Right controls */
.cis-header-controls {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-left: auto;
	flex-shrink: 0;
	padding-left: 16px;
}

.cis-ctrl-btn {
	background: none;
	border: none;
	color: rgba(255,255,255,0.78);
	padding: 9px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background 0.15s, color 0.15s;
	line-height: 1;
}

.cis-ctrl-btn:hover,
.cis-ctrl-btn.active {
	background: rgba(255,255,255,0.13);
	color: #fff;
}

.cis-ctrl-divider {
	width: 1px;
	height: 20px;
	background: rgba(255,255,255,0.28);
	margin: 0 8px;
	flex-shrink: 0;
}

/* Language switcher */
.cis-lang-sw {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	line-height: 1;
}

.cis-lang-active {
	color: #fff;
	font-weight: 600;
}

.cis-lang-sep {
	color: rgba(255,255,255,0.35);
}

.cis-lang-link {
	color: rgba(255,255,255,0.6);
	text-decoration: none;
	transition: color 0.15s;
}

.cis-lang-link:hover {
	color: #fff;
}

.cis-mobile-toggle {
	display: none;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	margin-left: 6px;
	background: transparent;
	border: 0;
	border-radius: 3px;
	color: #fff;
	cursor: pointer;
	transition: background 0.15s;
}

.cis-mobile-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.cis-mobile-toggle:hover,
.cis-mobile-toggle.active {
	background: rgba(255,255,255,0.15);
}

/* Search panel */
.cis-search-panel {
	background: #023872;
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.25s ease;
}

.cis-search-panel.open {
	max-height: 68px;
}

.cis-search-panel-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.cis-search-panel form {
	display: flex;
	align-items: center;
	height: 62px;
	gap: 8px;
}

.cis-search-panel-input {
	flex: 1;
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.28);
	color: #fff;
	padding: 8px 14px;
	font-size: 15px;
	font-family: inherit;
	outline: none;
	border-radius: 2px;
	transition: border-color 0.15s, background 0.15s;
}

.cis-search-panel-input::placeholder { color: rgba(255,255,255,0.45); }

.cis-search-panel-input:focus {
	border-color: rgba(255,255,255,0.65);
	background: rgba(255,255,255,0.16);
}

.cis-search-panel-submit {
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.28);
	color: #fff;
	padding: 8px 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	border-radius: 2px;
	transition: background 0.15s;
}

.cis-search-panel-submit:hover { background: rgba(255,255,255,0.22); }

.cis-search-panel-close {
	background: none;
	border: none;
	color: rgba(255,255,255,0.6);
	font-size: 18px;
	cursor: pointer;
	padding: 4px 8px;
	transition: color 0.15s;
	line-height: 1;
}

.cis-search-panel-close:hover { color: #fff; }

/* Mega menu overlay */
.cis-mega-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.52);
	z-index: 9990;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.cis-mega-overlay.open {
	opacity: 1;
	visibility: visible;
}

.cis-mobile-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.50);
	z-index: 9988;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.cis-mobile-overlay.open {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.22s ease, visibility 0s linear 0s;
}

.cis-mobile-panel {
	position: fixed;
	top: 64px;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	background: #012e5b;
	z-index: 9996;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 18px 36px rgba(0,0,0,0.30);
	transform: translateY(-10px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.cis-mobile-panel.open {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}

.cis-mobile-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 58px;
	padding: 0 18px 0 22px;
	border-bottom: 1px solid rgba(255,255,255,0.14);
}

.cis-mobile-panel-title {
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.cis-mobile-close {
	width: 38px;
	height: 38px;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.14);
	border-radius: 3px;
	color: rgba(255,255,255,0.78);
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}

.cis-mobile-close:hover {
	background: rgba(255,255,255,0.14);
	color: #fff;
}

.cis-mobile-nav {
	overflow-y: auto;
	padding: 8px 14px 22px;
}

.cis-mobile-section {
	border-bottom: 1px solid rgba(255,255,255,0.12);
}

.cis-mobile-section-toggle {
	width: 100%;
	min-height: 54px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0 8px;
	background: transparent;
	border: 0;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 800;
	text-align: left;
	cursor: pointer;
}

.cis-mobile-chevron {
	flex-shrink: 0;
	opacity: 0.7;
	transition: transform 0.18s ease;
}

.cis-mobile-section.is-open .cis-mobile-chevron {
	transform: rotate(180deg);
}

.cis-mobile-links {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.22s ease;
}

.cis-mobile-section.is-open .cis-mobile-links {
	max-height: 720px;
}

.cis-mobile-links a {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 8px 8px 16px;
	color: rgba(255,255,255,0.78);
	text-decoration: none;
	font-size: 15px;
	line-height: 1.35;
	border-left: 2px solid transparent;
}

.cis-mobile-links a:hover {
	color: #fff;
	border-left-color: #3072a9;
	background: rgba(255,255,255,0.06);
}

.cis-mobile-links a.cis-mobile-sub {
	padding-left: 30px;
	color: rgba(255,255,255,0.58);
	font-size: 14px;
}

/* Mega menu panel — top set by JS (getBoundingClientRect().bottom of header) */
.cis-mega-panel {
	position: fixed;
	top: 64px;
	left: 0;
	width: 100%;
	min-height: 280px;
	max-height: 55vh;
	background: #012e5b;
	z-index: 9995;
	overflow-y: auto;
	border-bottom: 3px solid #486b93;
	/* fade + subtle slide — no slide-from-top that bleeds over header */
	opacity: 0;
	visibility: hidden;
	transform: translateY(-12px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

.cis-mega-panel.open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}

.cis-mega-panel-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 24px 24px;
	position: relative;
}

.cis-mega-close {
	position: absolute;
	top: 14px;
	right: 24px;
	background: none;
	border: none;
	color: rgba(255,255,255,0.55);
	cursor: pointer;
	padding: 6px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s;
}

.cis-mega-close:hover {
	background: rgba(255,255,255,0.1);
	color: #fff;
}

.cis-mega-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

.cis-mega-heading {
	display: flex;
	align-items: center;
	gap: 7px;
	color: rgba(255,255,255,0.45);
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	font-weight: 700;
	margin: 0 0 14px 0;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255,255,255,0.18);
}

.cis-mega-heading-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	opacity: 0.7;
}

.cis-mega-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cis-mega-col ul li {
	margin: 0;
	padding: 0;
}

.cis-mega-col ul li a {
	display: block;
	color: rgba(255,255,255,0.75);
	text-decoration: none;
	font-size: 16px;
	padding: 5px 0 5px 8px;
	border-left: 2px solid transparent;
	transition: color 0.18s, border-color 0.18s, padding-left 0.18s;
	line-height: 1.4;
}

.cis-mega-col ul li a:hover {
	color: #fff;
	border-left-color: #3072a9;
	padding-left: 13px;
}

.cis-mega-col ul li a.cis-mega-sub {
	padding-left: 22px;
	font-size: 15px;
	color: rgba(255,255,255,0.5);
}

.cis-mega-col ul li a.cis-mega-sub:hover {
	padding-left: 27px;
}

.cis-mega-col ul li a.cis-mega-sub:hover {
	color: rgba(255,255,255,0.88);
}

.cis-mega-divider-li {
	border-top: 1px solid rgba(255,255,255,0.13);
	margin: 8px 0;
}

.cis-mega-col ul li.cis-mega-group-item {
	margin-top: 12px;
}

.cis-mega-group-item > a {
	font-weight: 600 !important;
	color: rgba(255,255,255,0.9) !important;
}

/* Accessibility mode */
body.cis-accessible .entry-content,
body.cis-accessible .cis-news-item,
body.cis-accessible p,
body.cis-accessible li {
	font-size: 17px !important;
	line-height: 1.85 !important;
}

body.cis-accessible a {
	text-decoration: underline !important;
}

body.cis-accessible #cis-accessibility-toggle {
	color: #ffd700 !important;
}

/* Mobile */
@media (max-width: 920px) {
	.cis-mainnav { display: none; }
	.cis-logo-text { display: none; }
	.cis-mobile-toggle { display: inline-flex; }
	.cis-mega-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.cis-mega-panel { max-height: 70vh; }
}

@media (max-width: 540px) {
	.cis-mega-grid { grid-template-columns: 1fr; }
	.cis-logo-v2 img { height: 36px; }
	.cis-header-v2-inner {
		height: 60px;
		padding: 0 14px;
	}
	body {
		padding-top: 60px;
	}
	body.home {
		padding-top: 0;
	}
	.cis-logo-v2 {
		margin-right: 12px;
	}
	.cis-header-controls {
		padding-left: 0;
		gap: 0;
	}
	.cis-ctrl-btn {
		padding: 8px;
	}
	.cis-ctrl-divider,
	.cis-lang-sw {
		display: none;
	}
	.cis-mobile-toggle {
		width: 40px;
		height: 40px;
	}
	.cis-mobile-panel {
		top: 60px;
		width: 100%;
	}
	body:not(.home).cis-header-revealing::before {
		height: 60px;
	}
}

/* ── Content layout ─────────────────────────────────── */
.cis-content-area {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 30px;
	align-items: start;
}

@media (max-width: 768px) {
	.cis-content-area {
		grid-template-columns: 1fr;
	}
}

/* ── Sidebar ────────────────────────────────────────── */
.cis-sidebar .wp-block-navigation .wp-block-navigation-item a {
	display: block;
	padding: 8px 0;
	border-bottom: 1px solid #dedede;
	font-size: 15px;
	color: #012e5b;
}

.cis-sidebar .wp-block-navigation .wp-block-navigation-item a:hover {
	color: #3072a9;
}

/* ── Article body ───────────────────────────────────── */
.entry-content p {
	margin-bottom: 1em;
	text-align: justify;
}

.entry-content a {
	color: #012e5b;
	text-decoration: underline;
}

.entry-content a:hover {
	color: #3072a9;
}

/* ── Details/accordion ──────────────────────────────── */
.wp-block-details {
	border-bottom: 1px solid #dedede;
	margin-bottom: 4px;
}

.wp-block-details summary {
	color: #012e5b;
	font-weight: 600;
	cursor: pointer;
	padding: 10px 0;
	font-size: 16px;
}

.wp-block-details summary:hover {
	color: #3072a9;
}

.wp-block-details[open] summary {
	margin-bottom: 10px;
}

/* ── Footer ─────────────────────────────────────────── */
.cis-footer {
	background: #01193E;
	color: rgba(255,255,255,0.7);
	margin-top: 60px;
	padding: 60px 0 24px;
}

.cis-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.cis-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.3fr 1.1fr;
	gap: 48px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255,255,255,0.10);
}

/* Brand column */
.cis-footer-brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cis-footer-logo {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: #fff;
}

.cis-footer-logo img {
	width: 44px;
	height: 44px;
	display: block;
	flex-shrink: 0;
}

.cis-footer-brand-text {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
}

.cis-footer-brand-sub {
	font-size: 12px;
	font-weight: 400;
	color: rgba(255,255,255,0.55);
	letter-spacing: 0.2px;
}

.cis-footer-tagline {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: rgba(255,255,255,0.55);
	max-width: 280px;
}

/* Heading + columns */
.cis-footer-heading {
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: rgba(255,255,255,0.45);
}

.cis-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cis-footer-links li {
	margin: 0;
	padding: 0;
}

.cis-footer-links a {
	color: rgba(255,255,255,0.72);
	text-decoration: none;
	font-size: 14px;
	line-height: 1.5;
	transition: color 0.15s, padding-left 0.15s;
	border-left: 2px solid transparent;
	padding-left: 0;
	display: inline-block;
}

.cis-footer-links a:hover {
	color: #fff;
	border-left-color: #1651C2;
	padding-left: 10px;
}

/* Contacts */
.cis-footer-contacts {
	font-style: normal;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	line-height: 1.5;
}

.cis-footer-contacts strong {
	color: #fff;
	font-weight: 600;
	margin-bottom: 2px;
}

.cis-footer-contacts span {
	color: rgba(255,255,255,0.62);
}

.cis-footer-contacts a {
	color: rgba(255,255,255,0.72);
	text-decoration: none;
	transition: color 0.15s;
}

.cis-footer-contacts a:hover {
	color: #fff;
}

/* Bottom */
.cis-footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 22px;
}

.cis-footer-copy {
	margin: 0;
	font-size: 12.5px;
	color: rgba(255,255,255,0.42);
	line-height: 1.5;
}

@media (max-width: 920px) {
	.cis-footer { padding: 50px 0 22px; margin-top: 40px; }
	.cis-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
	.cis-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
	.cis-footer-grid { grid-template-columns: 1fr; gap: 30px; }
	.cis-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Lists ──────────────────────────────────────────── */
.wp-block-list {
	padding-left: 20px;
}

.wp-block-list li {
	margin-bottom: 6px;
}

/* ── Breadcrumbs ───────────────────────────────────── */
.cis-breadcrumbs {
	font-size: 15px;
	color: #666;
	margin-bottom: 20px;
	padding: 2px 0;
}

.cis-breadcrumbs a {
	color: #012e5b;
	text-decoration: none;
}

.cis-breadcrumbs a:hover {
	text-decoration: underline;
}

.cis-breadcrumb-sep {
	padding: 0 5px;
	color: #012e5b;
}

.cis-breadcrumb-current {
	color: #3072a9;
}

/* ── Page title ─────────────────────────────────────── */
.wp-block-post-title {
	color: #012e5b;
	font-size: 22px;
	font-weight: 400;
	margin-bottom: 20px;
}

/* ── Images ─────────────────────────────────────────── */
.wp-block-image img {
	max-width: 100%;
	height: auto;
}

/* ── Separator ──────────────────────────────────────── */
.wp-block-separator {
	border-color: #dedede;
}

/* ── Search ─────────────────────────────────────────── */
.cis-search .wp-block-search__input {
	font-family: Arial, sans-serif;
	font-size: 15px;
	padding: 5px 10px;
	border: 1px solid #c0c0c0 !important;
	border-radius: 0;
}

/* ── Logo ───────────────────────────────────────────── */
.cis-logo {
	margin: 0 !important;
	flex-shrink: 0;
}

.cis-logo img {
	height: 90px;
	width: auto;
}

@media screen and (max-width: 480px) {
	.cis-logo img {
		width: 100%;
		height: auto;
		max-width: 300px;
	}
}

/* ── Section menu (sidebar) ─────────────────────────── */
.cis-sidebar-heading {
	font-size: 16px;
	color: #012e5b;
	margin-bottom: 12px;
	font-weight: 600;
}

.cis-section-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cis-section-menu li {
	margin: 0;
}

.cis-section-menu li a {
	display: block;
	padding: 8px 0;
	border-bottom: 1px solid #dedede;
	font-size: 15px;
	color: #012e5b;
	text-decoration: none;
}

.cis-section-menu li a:hover {
	color: #3072a9;
	text-decoration: underline;
}

.cis-section-menu li.active a {
	color: #3072a9;
	font-weight: 600;
}

/* ── Sidebar banners ────────────────────────────────── */
.cis-sidebar-banner {
	margin-bottom: 15px !important;
}

.cis-sidebar-banner img {
	width: 100%;
	height: auto;
}

/* ── Single post template ───────────────────────────── */
.wp-site-blocks > main.cis-single-page {
	margin-block-start: 0 !important;
}

.cis-single-page {
	background:
		linear-gradient(180deg, #f4f6f8 0%, #ffffff 420px);
}

.cis-single-hero {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(135deg, #01193e 0%, #053165 68%, #0b477c 100%);
	padding: 34px 0 44px;
	margin-block-start: 0 !important;
}

.cis-single-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
	background-size: 44px 44px, 44px 44px;
	pointer-events: none;
}

.cis-single-hero-inner {
	position: relative;
	z-index: 1;
	width: min(calc(100% - 48px), 1200px);
	max-width: 1200px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.cis-single-hero .cis-breadcrumbs {
	color: rgba(255,255,255,0.62);
	margin-bottom: 24px;
}

.cis-single-hero .cis-breadcrumbs a {
	color: rgba(255,255,255,0.78);
	text-decoration: none;
}

.cis-single-hero .cis-breadcrumbs a:hover {
	color: #fff;
	text-decoration: underline;
}

.cis-single-hero .cis-breadcrumb-sep,
.cis-single-hero .cis-breadcrumb-current {
	color: rgba(255,255,255,0.52);
}

.cis-single-title.wp-block-post-title {
	max-width: 1120px;
	margin: 0 0 16px;
	color: #fff;
	font-size: clamp(30px, 3.6vw, 46px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.8px;
}

.cis-single-meta {
	gap: 10px !important;
	color: rgba(255,255,255,0.70);
	font-size: 14px;
}

.cis-single-meta a,
.cis-single-date,
.cis-single-type,
.cis-single-meta-divider {
	color: inherit;
	margin: 0 !important;
	text-decoration: none;
}

.cis-single-date {
	font-weight: 600;
}

.cis-single-body-wrap {
	margin-top: -22px !important;
	padding-bottom: 56px;
	position: relative;
	z-index: 2;
}

.cis-single-layout.wp-block-columns {
	display: grid !important;
	grid-template-columns: minmax(0, 860px) 310px;
	gap: 30px;
	align-items: start !important;
	justify-content: space-between;
	margin-bottom: 0;
}

.cis-single-layout > .wp-block-column {
	min-width: 0;
}

.cis-single-article {
	background: #fff;
	border: 1px solid #dfe6ee;
	border-radius: 4px;
	padding: clamp(26px, 3vw, 40px);
	box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.cis-single-article .wp-block-post-content {
	font-size: 16px;
	line-height: 1.78;
	color: #111827;
}

.cis-single-article .wp-block-post-content > * + * {
	margin-block-start: 1.25em;
}

.cis-single-article .wp-block-post-content p {
	margin-bottom: 0;
}

.cis-single-article .wp-block-post-content h2,
.cis-single-article .wp-block-post-content h3,
.cis-single-article .wp-block-post-content h4 {
	margin-top: 1.8em;
	margin-bottom: 0.7em;
	color: #012e5b;
	font-weight: 650;
	letter-spacing: -0.2px;
}

.cis-single-article .wp-block-post-content ul,
.cis-single-article .wp-block-post-content ol {
	padding-left: 1.25em;
}

.cis-single-article .wp-block-post-content li {
	margin-bottom: 0.68em;
	padding-left: 0.18em;
}

.cis-single-article .wp-block-post-content li::marker {
	color: #3072a9;
}

.cis-single-article .wp-block-post-content a {
	color: #0b5795;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.cis-single-aside {
	position: sticky;
	top: 84px;
}

.cis-single-sidebar-card {
	background: #fff;
	border: 1px solid #dfe6ee;
	border-radius: 4px;
	padding: 20px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.cis-single-sidebar-card + .cis-single-sidebar-card {
	margin-top: 14px;
}

.cis-single-sidebar-card-muted {
	background: #f9fbfd;
}

.cis-single-sidebar-title.wp-block-heading {
	margin: 0 0 16px;
	color: #012e5b;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.2px;
}

.cis-single-sidebar-title::after {
	content: '';
	display: block;
	width: 42px;
	height: 3px;
	background: #3072a9;
	border-radius: 0;
	margin-top: 10px;
}

.cis-single-latest.wp-block-latest-posts {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cis-single-latest.wp-block-latest-posts li {
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid #e6ebf1;
}

.cis-single-latest.wp-block-latest-posts li:first-child {
	padding-top: 0;
}

.cis-single-latest.wp-block-latest-posts li:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

.cis-single-latest.wp-block-latest-posts a {
	display: block;
	color: #012e5b;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.42;
	text-decoration: none;
}

.cis-single-latest.wp-block-latest-posts a:hover {
	color: #3072a9;
}

.cis-single-latest .wp-block-latest-posts__post-date {
	margin-top: 4px;
	color: #7a8796;
	font-size: 12px;
	font-weight: 500;
}

.cis-single-cats.wp-block-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cis-single-cats li {
	margin: 0;
}

.cis-single-cats a,
.cis-single-backlink a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	color: #012e5b;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid #e6ebf1;
}

.cis-single-cats a::after,
.cis-single-backlink a::after {
	content: '';
	width: 7px;
	height: 7px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.55;
}

.cis-single-cats a:hover,
.cis-single-backlink a:hover {
	color: #3072a9;
}

.cis-single-backlink {
	margin: 12px 0 0 !important;
}

.cis-single-backlink a {
	border-bottom: none;
	padding-bottom: 0;
}

@media (max-width: 920px) {
	.cis-single-hero {
		padding: 30px 0 42px;
	}

	.cis-single-title.wp-block-post-title {
		font-size: clamp(30px, 7vw, 42px);
	}

	.cis-single-layout.wp-block-columns {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.cis-single-aside {
		position: static;
	}
}

@media (max-width: 540px) {
	.cis-single-hero {
		padding: 28px 0 44px;
	}

	.cis-single-body-wrap {
		margin-top: -24px !important;
		padding-bottom: 48px;
	}

	.cis-single-article,
	.cis-single-sidebar-card {
		border-radius: 4px;
	}

	.cis-single-article .wp-block-post-content {
		font-size: 16px;
		line-height: 1.75;
	}
}

/* ── Category archive template ─────────────────────── */
.wp-site-blocks > main.cis-archive-page {
	margin-block-start: 0 !important;
}

.cis-archive-page {
	background:
		linear-gradient(180deg, #f4f6f8 0%, #ffffff 430px);
}

.cis-archive-hero {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(135deg, #01193e 0%, #053165 68%, #0b477c 100%);
	padding: 34px 0 58px;
	margin-block-start: 0 !important;
}

.cis-archive-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
	background-size: 44px 44px, 44px 44px;
	pointer-events: none;
}

.cis-archive-hero-inner {
	position: relative;
	z-index: 1;
	width: min(calc(100% - 48px), 1200px);
	margin-left: auto !important;
	margin-right: auto !important;
}

.cis-archive-breadcrumbs,
.cis-archive-breadcrumbs.wp-block-cis-viniti-archive-breadcrumbs {
	margin: 0 0 24px !important;
	color: rgba(255,255,255,0.62);
	font-size: 15px;
}

.cis-archive-breadcrumbs a {
	color: rgba(255,255,255,0.80);
	text-decoration: none;
}

.cis-archive-breadcrumbs a:hover {
	color: #fff;
	text-decoration: underline;
}

.cis-archive-breadcrumbs span {
	padding: 0 8px;
	color: rgba(255,255,255,0.50);
}

.cis-archive-breadcrumbs strong {
	color: rgba(255,255,255,0.88);
	font-weight: 600;
}

.cis-archive-title.wp-block-query-title {
	max-width: 860px;
	margin: 0 0 14px !important;
	color: #fff;
	font-size: clamp(32px, 3.8vw, 50px);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.9px;
}

.cis-archive-lead {
	max-width: 680px;
	margin: 0 !important;
	color: rgba(255,255,255,0.72);
	font-size: 15px;
	line-height: 1.65;
}

.cis-archive-body-wrap {
	margin-top: -26px !important;
	padding-bottom: 56px;
	position: relative;
	z-index: 2;
}

.cis-archive-layout.wp-block-columns {
	display: grid !important;
	grid-template-columns: minmax(0, 890px) 280px;
	gap: 26px;
	align-items: start !important;
	justify-content: space-between;
	margin-bottom: 0;
}

.cis-archive-layout > .wp-block-column {
	min-width: 0;
}

.cis-archive-list.wp-block-post-template {
	display: grid;
	gap: 12px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.cis-archive-card {
	display: grid;
	grid-template-columns: 360px minmax(0, 1fr);
	gap: 20px;
	align-items: stretch;
	background: #fff;
	border: 1px solid #dfe6ee;
	border-radius: 4px;
	padding: 12px 18px 12px 12px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.05);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cis-archive-card:hover {
	border-color: #c8d6e5;
	box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.cis-archive-thumb {
	position: relative;
	display: block;
	align-self: stretch;
	height: auto;
	min-height: 170px;
	border-radius: 3px;
	overflow: hidden;
	background: #0a376b;
	text-decoration: none;
}

.cis-archive-thumb-img,
.cis-archive-thumb-placeholder,
.cis-archive-thumb-placeholder svg {
	display: block;
	width: 100%;
	height: 100%;
}

.cis-archive-thumb-img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.cis-archive-thumb-placeholder {
	min-height: 170px;
}

.cis-archive-card-body {
	min-width: 0;
	align-self: start;
	padding: 0;
	margin-top: 0 !important;
}

.cis-archive-card-body > .wp-block-group:first-child {
	margin-top: 0 !important;
}

.cis-archive-card-date {
	margin: 0 0 6px !important;
	color: #6b7d91;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.cis-news-index-meta {
	gap: 10px !important;
	margin: 0 0 6px !important;
}

.cis-news-index-meta .cis-archive-card-date {
	margin: 0 !important;
}

.cis-news-index-terms {
	margin: 0 !important;
	font-size: 13px;
	font-weight: 700;
}

.cis-news-index-terms::before {
	content: '/';
	margin-right: 10px;
	color: #9aa7b5;
	font-weight: 500;
}

.cis-news-index-terms a {
	color: #3072a9;
	text-decoration: none;
}

.cis-news-index-terms a:hover {
	color: #012e5b;
}

.cis-news-index-head {
	max-width: 1040px;
}

.cis-news-index-title.wp-block-heading {
	margin: 0 0 14px !important;
	color: #fff !important;
	font-size: clamp(32px, 3.8vw, 50px);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.9px;
}

.cis-archive-card-title.wp-block-post-title {
	margin: 0 0 8px !important;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.35px;
}

.cis-archive-card-title a {
	color: #012e5b;
	text-decoration: none;
}

.cis-archive-card-title a:hover {
	color: #3072a9;
}

.cis-archive-card-excerpt {
	margin: 0 !important;
	color: #475569;
	font-size: 14.5px;
	line-height: 1.58;
}

.cis-archive-card-excerpt .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 10px;
}

.cis-archive-card-excerpt .wp-block-post-excerpt__more-text {
	margin: 0;
}

.cis-archive-card-excerpt .wp-block-post-excerpt__more-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #0b5795;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
}

.cis-archive-card-excerpt .wp-block-post-excerpt__more-link::after {
	content: '';
	width: 7px;
	height: 7px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.cis-archive-card-excerpt .wp-block-post-excerpt__more-link:hover {
	color: #012e5b;
}

.cis-archive-empty {
	background: #fff;
	border: 1px solid #e5ebf2;
	border-radius: 4px;
	margin: 0 !important;
	padding: 28px;
	color: #475569;
	box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.cis-archive-pagination {
	margin-top: 28px !important;
	gap: 8px !important;
}

.cis-archive-pagination a,
.cis-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 38px;
	padding: 0 12px;
	border: 1px solid #dbe4ef;
	border-radius: 3px;
	background: #fff;
	color: #012e5b;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.cis-archive-pagination a:hover,
.cis-archive-pagination .page-numbers.current {
	background: #012e5b;
	border-color: #012e5b;
	color: #fff;
}

.cis-archive-aside {
	position: sticky;
	top: 84px;
}

.cis-archive-sidebar-card {
	background: #fff;
	border: 1px solid #dfe6ee;
	border-radius: 4px;
	padding: 20px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.cis-archive-sidebar-card + .cis-archive-sidebar-card {
	margin-top: 14px;
}

.cis-archive-sidebar-card-dark {
	background: #012e5b;
	border-color: #012e5b;
	color: rgba(255,255,255,0.78);
}

.cis-archive-sidebar-title.wp-block-heading {
	margin: 0 0 16px;
	color: #012e5b;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.2px;
}

.cis-archive-sidebar-card-dark .cis-archive-sidebar-title {
	color: #fff;
}

.cis-archive-sidebar-title::after {
	content: '';
	display: block;
	width: 42px;
	height: 3px;
	background: #3072a9;
	border-radius: 0;
	margin-top: 10px;
}

.cis-archive-cats.wp-block-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cis-archive-cats li {
	margin: 0;
}

.cis-archive-cats a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 0;
	border-bottom: 1px solid #e6ebf1;
	color: #012e5b;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.cis-archive-cats a::after {
	content: '';
	width: 7px;
	height: 7px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.55;
}

.cis-archive-cats a:hover {
	color: #3072a9;
}

body.category-announcements .cis-archive-cats a[href="/category/announcements/"],
body.category-events .cis-archive-cats a[href="/category/events/"],
body.category-conf .cis-archive-cats a[href="/category/conf/"] {
	color: #3072a9;
}

.cis-archive-sidebar-text {
	margin: 0 0 18px !important;
	color: rgba(255,255,255,0.76);
	font-size: 14px;
	line-height: 1.62;
}

.cis-archive-all-link {
	margin: 0 !important;
}

.cis-archive-all-link a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.cis-archive-all-link a::after {
	content: '';
	width: 7px;
	height: 7px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.cis-archive-all-link a:hover {
	color: #cfe4f7;
}

@media (max-width: 920px) {
	.cis-archive-hero {
		padding: 30px 0 48px;
	}

	.cis-archive-title.wp-block-query-title {
		font-size: clamp(30px, 8vw, 42px);
	}

	.cis-archive-layout.wp-block-columns {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.cis-archive-aside {
		position: static;
	}
}

@media (max-width: 540px) {
	.cis-archive-hero {
		padding: 26px 0 42px;
	}

	.cis-archive-body-wrap {
		margin-top: -18px !important;
		padding-bottom: 48px;
		padding-left: 16px;
		padding-right: 16px;
	}

	.cis-archive-card {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 18px;
	}

	.cis-archive-thumb,
	.cis-archive-thumb-placeholder {
		height: 170px;
		min-height: 170px;
	}

	.cis-archive-card-title.wp-block-post-title {
		font-size: 20px;
	}
}

/* ── News feed on home (custom block) ──────────────── */
.cis-news-feed {
	display: block;
}

.cis-news-feed-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 18px;
	margin-bottom: 24px;
	border-bottom: 1px solid #e2e2e2;
}

.cis-news-feed-title {
	margin: 0;
	font-size: 26px;
	font-weight: 600;
	color: #012e5b;
	letter-spacing: -0.3px;
}

.cis-news-feed-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #3072a9;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.15s, gap 0.15s;
}

.cis-news-feed-all:hover {
	color: #012e5b;
	gap: 9px;
}

.cis-news-feed-grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 28px;
	align-items: stretch;
}

/* Featured card */
.cis-news-featured {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.cis-news-featured:hover {
	box-shadow: 0 8px 24px rgba(1,46,91,0.12);
	border-color: #c9d8e8;
}

.cis-news-featured-media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #012e5b;
	overflow: hidden;
}

.cis-news-featured-img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.cis-news-featured-cat {
	position: absolute;
	top: 18px;
	right: 18px;
	background: rgba(1,25,62,0.72);
	color: #fff;
	padding: 5px 11px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	backdrop-filter: blur(4px);
}

.cis-news-featured-date {
	position: absolute;
	top: 18px;
	left: 18px;
	padding: 5px 10px;
	background: rgba(1,25,62,0.72);
	color: rgba(255,255,255,0.92);
	border-radius: 3px;
	font-size: 13px;
	font-weight: 700;
}

.cis-news-featured-body {
	padding: 20px 24px 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.cis-news-featured-title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.32;
	color: #012e5b;
	letter-spacing: -0.2px;
}

.cis-news-featured:hover .cis-news-featured-title {
	color: #3072a9;
}

.cis-news-featured-excerpt {
	margin: 0 0 16px;
	font-size: 14.5px;
	line-height: 1.6;
	color: #555;
	flex: 1;
}

.cis-news-featured-more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #3072a9;
	font-size: 13.5px;
	font-weight: 600;
	margin-top: auto;
}

.cis-news-featured:hover .cis-news-featured-more {
	color: #012e5b;
}

/* Sidebar items */
.cis-news-side {
	display: grid;
	grid-template-rows: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.cis-news-side-item {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 150px;
	padding: 15px 16px 16px;
	background-color: #012e5b;
	background-position: center;
	background-size: cover;
	border: 0;
	border-radius: 4px;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	transition: box-shadow 0.15s;
}

.cis-news-side-item:hover {
	box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

.cis-news-side-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	font-size: 12px;
	position: relative;
	z-index: 1;
}

.cis-news-side-date {
	width: fit-content;
	color: rgba(255,255,255,0.88);
	font-weight: 700;
	padding: 4px 8px;
	background: rgba(0,0,0,0.42);
	border-radius: 3px;
}

.cis-news-side-content,
.cis-news-row-content {
	position: relative;
	z-index: 1;
}

.cis-news-side-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.28;
	color: #fff;
	letter-spacing: -0.15px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cis-news-side-excerpt,
.cis-news-row-excerpt {
	margin: 7px 0 0;
	color: rgba(255,255,255,0.80);
	font-size: 13px;
	line-height: 1.42;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transform: translateY(4px);
	transition: max-height 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.cis-news-side-item:hover .cis-news-side-excerpt,
.cis-news-row-card:hover .cis-news-row-excerpt {
	max-height: 44px;
	opacity: 1;
	transform: translateY(0);
}

.cis-news-more-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 16px;
}

.cis-news-row-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 190px;
	padding: 15px 16px 16px;
	background-color: #012e5b;
	background-position: center;
	background-size: cover;
	border: 0;
	border-radius: 4px;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	transition: box-shadow 0.15s;
}

.cis-news-row-card:hover {
	box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

.cis-news-row-date {
	position: relative;
	z-index: 1;
	width: fit-content;
	padding: 4px 8px;
	border-radius: 3px;
	background: rgba(0,0,0,0.42);
	color: rgba(255,255,255,0.88);
	font-size: 12px;
	font-weight: 700;
}

.cis-news-row-title {
	margin: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -0.15px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cis-news-load-wrap {
	display: flex;
	justify-content: center;
	margin-top: 22px;
}

.cis-news-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 22px;
	background: #012e5b;
	border: 1px solid #012e5b;
	border-radius: 3px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s;
}

.cis-news-load-more:hover {
	background: #0b477c;
	border-color: #0b477c;
}

@media (max-width: 920px) {
	.cis-news-feed-grid { grid-template-columns: 1fr; }
	.cis-news-feed-title { font-size: 22px; }
	.cis-news-side { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cis-news-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.cis-news-feed {
		padding: 0 16px;
	}
	.cis-news-feed-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}
	.cis-news-side,
	.cis-news-more-grid {
		grid-template-columns: 1fr;
	}
	.cis-news-side-item,
	.cis-news-row-card {
		min-height: 180px;
	}
}

/* ── CIS countries index ───────────────────────────── */
.cis-countries-page {
	margin-block-start: 0 !important;
	background:
		linear-gradient(180deg, #f4f6f8 0%, #ffffff 430px);
}

.cis-countries-hero {
	position: relative;
	overflow: hidden;
	margin-block-start: 0 !important;
	padding: 36px 0 66px;
	background:
		linear-gradient(135deg, #01193e 0%, #053165 68%, #0b477c 100%);
}

.cis-countries-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
	background-size: 44px 44px, 44px 44px;
	pointer-events: none;
}

.cis-countries-hero-inner,
.cis-countries-body {
	position: relative;
	z-index: 1;
	width: min(calc(100% - 48px), 1200px);
	margin-left: auto;
	margin-right: auto;
}

.cis-countries-breadcrumbs {
	margin: 0 0 26px;
	color: rgba(255,255,255,0.62);
	font-size: 15px;
}

.cis-countries-breadcrumbs a {
	color: rgba(255,255,255,0.80);
	text-decoration: none;
}

.cis-countries-breadcrumbs a:hover {
	color: #fff;
	text-decoration: underline;
}

.cis-countries-breadcrumbs span {
	padding: 0 8px;
	color: rgba(255,255,255,0.50);
}

.cis-countries-breadcrumbs strong {
	color: rgba(255,255,255,0.88);
	font-weight: 600;
}

.cis-countries-hero h1 {
	max-width: 860px;
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(34px, 4vw, 54px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.9px;
}

.cis-countries-lead {
	max-width: 760px;
	margin: 0;
	color: rgba(255,255,255,0.74);
	font-size: 16px;
	line-height: 1.65;
}

.cis-countries-body {
	margin-top: -30px;
	padding-bottom: 64px;
}

.cis-countries-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.cis-country-card {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) 20px;
	gap: 16px;
	align-items: center;
	min-height: 132px;
	padding: 18px 18px 18px 16px;
	background: #fff;
	border: 1px solid #dfe6ee;
	border-radius: 4px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.05);
	color: #012e5b;
	text-decoration: none;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.cis-country-card:hover {
	border-color: #c8d6e5;
	box-shadow: 0 8px 20px rgba(0,0,0,0.075);
}

.cis-country-flag-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 54px;
	background: #fff;
	border: 1px solid #e1e8f0;
	border-radius: 3px;
	overflow: hidden;
}

.cis-country-flag {
	display: block;
	width: calc(100% - 8px);
	height: calc(100% - 8px);
	object-fit: contain;
}

.cis-country-flag-russia {
	border: 1px solid #000;
	box-sizing: border-box;
}

.cis-country-info {
	display: block;
	min-width: 0;
}

.cis-country-name {
	display: block;
	margin-bottom: 7px;
	color: #012e5b;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.2px;
}

.cis-country-desc {
	display: block;
	color: #52657a;
	font-size: 13.5px;
	line-height: 1.48;
}

.cis-country-arrow {
	color: #3072a9;
	font-size: 20px;
	font-weight: 700;
	transition: color 0.16s ease;
}

.cis-country-card:hover .cis-country-arrow {
	color: #012e5b;
}

@media (max-width: 980px) {
	.cis-countries-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.cis-countries-hero {
		padding: 30px 0 54px;
	}

	.cis-countries-hero-inner,
	.cis-countries-body {
		width: min(calc(100% - 32px), 1200px);
	}

	.cis-countries-grid {
		grid-template-columns: 1fr;
	}

	.cis-country-card {
		grid-template-columns: 70px minmax(0, 1fr) 18px;
		min-height: 118px;
		padding: 14px;
	}

	.cis-country-flag-wrap {
		width: 70px;
		height: 50px;
	}
}

/* ── Partners section ───────────────────────────────── */
.cis-partners-section {
	padding: 60px 0 50px;
	background: #fafbfc;
	border-top: 1px solid #ececec;
}

.cis-partners-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.cis-partners-head {
	text-align: center;
	margin-bottom: 36px;
}

.cis-partners-title {
	margin: 0 0 10px;
	font-size: 26px;
	font-weight: 600;
	color: #012e5b;
	letter-spacing: -0.3px;
}

.cis-partners-subtitle {
	margin: 0 auto;
	font-size: 14.5px;
	line-height: 1.55;
	color: #6a7280;
	max-width: 540px;
}

.cis-partners-box {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	padding: 36px 0;
	overflow: hidden;
}

.cis-partners-carousel {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.cis-partners-track {
	display: flex;
	align-items: center;
	width: max-content;
	animation: cis-partners-scroll 22s linear infinite;
}

.cis-partners-track:hover {
	animation-play-state: paused;
}

@keyframes cis-partners-scroll {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.cis-partner-item {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	height: 80px;
	width: 260px;
}

.cis-partner-item img {
	height: 60px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.55;
	transition: filter 0.3s, opacity 0.3s;
}

.cis-partner-item:hover img {
	filter: grayscale(0%);
	opacity: 1;
}

@media (max-width: 540px) {
	.cis-partners-section { padding: 44px 0 36px; }
	.cis-partners-title { font-size: 22px; }
	.cis-partner-item { width: 200px; height: 70px; }
	.cis-partner-item img { height: 48px; max-width: 150px; }
}


/* ── Countries list in slide panel ─────────────────── */
.cis-slide-section-title {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #486b93 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	margin: 0 0 10px 0 !important;
	padding-bottom: 8px !important;
	border-bottom: 2px solid #486b93 !important;
}

.cis-slide-countries {
	margin-bottom: 20px;
}

.cis-countries-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.cis-countries-list li {
	margin: 0 !important;
	padding: 0 !important;
}

.cis-countries-list li a {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 7px 0 !important;
	color: #012e5b !important;
	text-decoration: none !important;
	font-size: 14px !important;
	border-bottom: 1px solid #f0f0f0 !important;
}

.cis-countries-list li a:hover {
	color: #3072a9 !important;
}

.cis-flag {
	width: 24px !important;
	height: 16px !important;
	object-fit: cover !important;
	flex-shrink: 0 !important;
	border: 1px solid #e0e0e0 !important;
}

/* ── Slide-out sidebar menu ─────────────────────────── */
#cis-slide-panel {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 300px !important;
	height: 100vh !important;
	background: #fff !important;
	z-index: 100000 !important;
	overflow-y: auto !important;
	padding: 30px 20px !important;
	box-shadow: 2px 0 8px rgba(0,0,0,0.15) !important;
	transform: translateX(-100%) !important;
	transition: transform 0.3s ease !important;
}

#cis-slide-panel.open {
	transform: translateX(0) !important;
}

.cis-slide-nav {
	display: flex !important;
	flex-direction: column !important;
}

.cis-slide-nav li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.cis-slide-nav a {
	display: block !important;
	padding: 10px 0 !important;
	color: #012e5b !important;
	text-decoration: none !important;
	font-size: 15px !important;
	border-bottom: 1px solid #f0f0f0 !important;
}

.cis-slide-nav a:hover {
	color: #3072a9 !important;
}

.cis-slide-nav hr {
	border: none;
	border-top: 1px solid #dedede;
	margin: 5px 0;
}

#cis-slide-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(0,0,0,0.4) !important;
	z-index: 99999 !important;
	opacity: 0 !important;
	visibility: hidden !important;
	transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

#cis-slide-overlay.open {
	opacity: 1 !important;
	visibility: visible !important;
}

#cis-slide-toggle {
	position: fixed !important;
	left: 0 !important;
	top: 55px !important;
	z-index: 99998 !important;
	background: transparent !important;
	border: none !important;
	width: 128px !important;
	height: 54px !important;
	padding: 0 !important;
	overflow: hidden !important;
	cursor: pointer !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

#cis-slide-toggle:hover {
	background: #f0f0f0 !important;
}

#cis-slide-toggle img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}

/* ── Page template (default for child pages) ─────────── */
/* Зеркалит .cis-archive-* — hero + content card + sidebar card */

.wp-site-blocks > main.cis-page-page {
	margin-block-start: 0 !important;
}

.cis-page-page {
	background: linear-gradient(180deg, #f4f6f8 0%, #ffffff 430px);
}

.cis-page-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #01193e 0%, #053165 68%, #0b477c 100%);
	padding: 34px 0 58px;
	margin-block-start: 0 !important;
}

.cis-page-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
	background-size: 44px 44px, 44px 44px;
	pointer-events: none;
}

.cis-page-hero-inner {
	position: relative;
	z-index: 1;
	width: min(calc(100% - 48px), 1200px);
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Хлебные крошки в тёмном hero — переопределяем дефолтные стили */
.cis-page-hero .cis-breadcrumbs {
	margin: 0 0 24px !important;
	padding: 0;
	color: rgba(255,255,255,0.62);
	font-size: 15px;
}
.cis-page-hero .cis-breadcrumbs a {
	color: rgba(255,255,255,0.80);
	text-decoration: none;
}
.cis-page-hero .cis-breadcrumbs a:hover {
	color: #fff;
	text-decoration: underline;
}
.cis-page-hero .cis-breadcrumb-sep {
	padding: 0 8px;
	color: rgba(255,255,255,0.50);
}
.cis-page-hero .cis-breadcrumb-current {
	color: rgba(255,255,255,0.88);
	font-weight: 600;
}

.cis-page-title.wp-block-post-title {
	max-width: 860px;
	margin: 0 !important;
	color: #fff !important;
	font-size: clamp(28px, 3.4vw, 44px);
	font-weight: 700;
	line-height: 1.10;
	letter-spacing: -0.7px;
}

.cis-page-body-wrap {
	margin-top: -26px !important;
	padding-bottom: 56px;
	position: relative;
	z-index: 2;
}

.cis-page-layout.wp-block-columns {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 310px;
	gap: 26px;
	align-items: start !important;
	justify-content: space-between;
	margin-bottom: 0;
}

.cis-page-layout > .wp-block-column {
	min-width: 0;
}

.cis-page-article {
	background: #fff;
	border: 1px solid #dfe6ee;
	border-radius: 4px;
	padding: 30px 36px 34px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.cis-page-article .wp-block-post-content {
	font-size: 15.5px;
	line-height: 1.72;
	color: #2a3950;
}

.cis-page-article .wp-block-post-content > *:first-child {
	margin-top: 0;
}

.cis-page-article .wp-block-post-content > *:last-child {
	margin-bottom: 0;
}

.cis-page-article .wp-block-post-content p {
	margin: 0 0 1em;
}

.cis-page-article .wp-block-post-content h2,
.cis-page-article .wp-block-post-content h3,
.cis-page-article .wp-block-post-content h4 {
	margin: 1.7em 0 0.6em;
	color: #012e5b;
	font-weight: 700;
	letter-spacing: -0.2px;
	line-height: 1.25;
}

.cis-page-article .wp-block-post-content h2 { font-size: 24px; }
.cis-page-article .wp-block-post-content h3 { font-size: 20px; }
.cis-page-article .wp-block-post-content h4 { font-size: 17px; }

.cis-page-article .wp-block-post-content a {
	color: #0b5795;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.cis-page-article .wp-block-post-content a:hover {
	color: #012e5b;
	text-decoration-thickness: 2px;
}

.cis-page-article .wp-block-post-content ul,
.cis-page-article .wp-block-post-content ol {
	padding-left: 22px;
	margin: 0 0 1em;
}

.cis-page-article .wp-block-post-content li {
	margin: 6px 0;
}

.cis-page-article .wp-block-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 3px;
}

.cis-page-article .wp-block-post-content .wp-block-details {
	margin: 12px 0;
}

.cis-page-article .wp-block-post-content hr,
.cis-page-article .wp-block-post-content .wp-block-separator {
	border: none;
	border-top: 1px solid #e6ebf1;
	margin: 1.6em 0;
}

.cis-page-aside {
	position: sticky;
	top: 84px;
}

.cis-page-sidebar-card {
	background: #fff;
	border: 1px solid #dfe6ee;
	border-radius: 4px;
	padding: 22px 22px 8px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* Если у страницы нет подразделов — section_menu возвращает пусто.
   Прячем пустую карточку и саму колонку, разворачиваем контент на всю ширину. */
.cis-page-layout.wp-block-columns:not(:has(.cis-sidebar-heading)) {
	grid-template-columns: 1fr;
}
.cis-page-layout.wp-block-columns:not(:has(.cis-sidebar-heading)) .cis-page-aside {
	display: none;
}

.cis-page-sidebar-card + .cis-page-sidebar-card {
	margin-top: 14px;
}

/* Заголовок «Разделы» из section_menu */
.cis-page-sidebar-card .cis-sidebar-heading {
	margin: 0 0 18px !important;
	padding-bottom: 13px;
	color: #012e5b;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.2px;
	position: relative;
}

.cis-page-sidebar-card .cis-sidebar-heading::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	display: block;
	width: 42px;
	height: 3px;
	background: #3072a9;
}

/* Пункты section_menu — стиль как у .cis-archive-cats */
.cis-page-sidebar-card .cis-section-menu {
	list-style: none;
	padding: 0;
	margin: 0 0 14px;
}

.cis-page-sidebar-card .cis-section-menu li {
	margin: 0;
}

.cis-page-sidebar-card .cis-section-menu li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid #e6ebf1;
	color: #012e5b;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.35;
}

.cis-page-sidebar-card .cis-section-menu li:last-child a {
	border-bottom: none;
}

.cis-page-sidebar-card .cis-section-menu li a::after {
	content: '';
	flex: none;
	width: 7px;
	height: 7px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.55;
	transition: opacity 0.15s ease;
}

.cis-page-sidebar-card .cis-section-menu li a:hover {
	color: #3072a9;
	text-decoration: none;
}

.cis-page-sidebar-card .cis-section-menu li a:hover::after {
	opacity: 1;
}

.cis-page-sidebar-card .cis-section-menu li.active a {
	color: #3072a9;
}

@media (max-width: 920px) {
	.cis-page-hero {
		padding: 30px 0 48px;
	}
	.cis-page-title.wp-block-post-title {
		font-size: clamp(26px, 6vw, 36px);
	}
	.cis-page-layout.wp-block-columns {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.cis-page-aside {
		position: static;
	}
	.cis-page-article {
		padding: 24px;
	}
}

@media (max-width: 540px) {
	.cis-page-hero {
		padding: 26px 0 42px;
	}
	.cis-page-body-wrap {
		margin-top: -18px !important;
		padding-bottom: 48px;
	}
	.cis-page-article {
		padding: 20px;
	}
	.cis-page-article .wp-block-post-content {
		font-size: 15px;
	}
}

/* ── Back-to-top button ──────────────────────────────── */

.cis-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	background: #01193E;
	color: #ffffff;
	cursor: pointer;
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
	z-index: 8500;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	-webkit-tap-highlight-color: transparent;
}

.cis-back-to-top.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.cis-back-to-top:hover {
	background: #1651C2;
	border-color: rgba(255, 255, 255, 0.2);
}

.cis-back-to-top:focus-visible {
	outline: 2px solid #1651C2;
	outline-offset: 3px;
}

.cis-back-to-top svg {
	display: block;
}

@media screen and (max-width: 540px) {
	.cis-back-to-top {
		right: 16px;
		bottom: 16px;
		width: 40px;
		height: 40px;
	}
}
