/* Serif editorial type — Cyrillic from theme fonts (see inc/typography.php). */
body.elementor-page {
	--csis-font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--csis-font-sans: "IBM Plex Sans", system-ui, sans-serif;
}

body.elementor-page .elementor-widget-heading .elementor-heading-title {
	font-family: var(--csis-font-serif) !important;
}

/* Small uppercase UI labels stay sans (match design). */
body.elementor-page .elementor-element-783077cb .elementor-heading-title,
body.elementor-page .elementor-element-b8cd047b .elementor-heading-title,
body.elementor-page .elementor-element-c33b8d44 .elementor-heading-title,
body.elementor-page .elementor-element-ca2a8dd3 .elementor-heading-title,
body.elementor-page .elementor-element-cd72e7f7 .elementor-heading-title {
	font-family: var(--csis-font-sans) !important;
}

/* Hero lead paragraph — serif in design, not sans body. */
body.elementor-page .elementor-element-fe78e70f,
body.elementor-page .elementor-element-fe78e70f .elementor-widget-container {
	font-family: var(--csis-font-serif) !important;
}

body.elementor-page .csis-main {
	padding: 0;
	max-width: none;
}

body.elementor-page .csis-main > .wp-block-post-title {
	display: none;
}

body.elementor-page .wp-block-post-content,
body.elementor-page .elementor {
	max-width: none;
}

.elementor a.elementor-button,
.elementor a.elementor-button:hover,
.elementor a.elementor-button:focus {
	text-decoration: none;
}

.elementor .elementor-widget-text-editor p {
	margin: 0 0 14px;
}

.elementor .elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

.csis-placeholder .elementor-heading-title,
.csis-placeholder .elementor-widget-heading {
	text-align: center;
	width: 100%;
}

.csis-card {
	transition: box-shadow 160ms ease, transform 160ms ease;
}

.csis-card:hover {
	transform: translateY(-3px);
	border-color: #184b8f !important;
}

.csis-textlink a {
	color: #184b8f;
	border-bottom: 1px solid #8fe88f;
	padding-bottom: 2px;
	text-decoration: none;
	font-size: 14px;
}

.csis-textlink a:has(.csis-link-underline) {
	border-bottom: none;
	padding-bottom: 0;
}

.csis-textlink a .csis-link-underline {
	border-bottom: 1px solid #8fe88f;
	padding-bottom: 2px;
}

.csis-textlink a:has(.remove-underline):not(:has(.csis-link-underline)) {
	border-bottom: none;
	padding-bottom: 0;
}

.csis-textlink a .remove-underline {
	text-decoration: none;
	border-bottom: none;
}

.csis-textlink a:hover {
	color: #007a00;
	text-decoration: none;
}

.csis-textlink--light a {
	color: #1eaa1e;
	border-bottom-color: #1eaa1e;
}

.csis-textlink--light a:has(.remove-underline) {
	border-bottom: none;
	padding-bottom: 0;
}

.csis-searchbar {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.csis-searchbar input {
	flex: 1;
	min-width: 240px;
	max-width: 440px;
	padding: 14px 16px;
	border: 1px solid #c9c2b4;
	background: #ffffff;
	font: inherit;
	font-size: 15px;
	color: #26303f;
}

.csis-searchbar span {
	font-size: 13px;
	color: #6a7284;
}

.csis-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.csis-pills button {
	padding: 9px 16px;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
	border: 1px solid #d8d2c5;
	background: transparent;
	color: #4a5465;
}

.csis-pills button.is-on {
	border-color: #184b8f;
	background: #184b8f;
	color: #fbf9f5;
}

.csis-analyses-empty {
	margin-top: 36px;
	padding: 48px 24px;
	border: 1px dashed #c9c2b4;
	text-align: center;
	color: #6a7284;
	font-size: 15px;
}

.csis-files {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.csis-files span,
.csis-files a {
	display: inline-flex;
	align-items: center;
	border: 1px solid #c9c2b4;
	background: #ffffff;
	padding: 10px 14px;
	font-size: 13px;
	color: #184b8f;
	text-decoration: none;
}

.csis-files a:hover {
	border-color: #184b8f;
	color: #184b8f;
	text-decoration: none;
}

.csis-news-row[hidden] {
	display: none;
}

.csis-news-empty {
	margin-top: 36px;
	padding: 48px 24px;
	border: 1px dashed #c9c2b4;
	text-align: center;
	color: #6a7284;
	font-size: 15px;
}

.csis-searchbar--news input {
	max-width: 440px;
}

.csis-calc {
	width: 100%;
	background: #f5f2eb;
	box-shadow: 0 0 0 1px #e4dfd5;
	padding: 36px;
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	align-items: end;
}

.csis-calc h3 {
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 500;
	font-size: 24px;
	color: #184b8f;
	margin: 0 0 8px;
}

.csis-calc p,
.csis-calc label {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #4a5465;
}

.csis-calc .csis-kicker {
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #007a00;
	margin-bottom: 12px;
}

.csis-calc .csis-fields {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.csis-calc label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6a7284;
	flex: 1;
	min-width: 110px;
}

.csis-calc input {
	padding: 13px 14px;
	border: 1px solid #c9c2b4;
	background: #ffffff;
	font-size: 16px;
	width: 100%;
	color: #26303f;
}

.csis-calc .csis-result {
	text-align: right;
}

.csis-calc .csis-result strong {
	display: block;
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 48px;
	font-weight: 400;
	color: #184b8f;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.elementor-widget-shortcode {
	width: 100%;
}

.csis-news-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 28px;
	width: 100%;
}

.csis-news-card {
	background: #ffffff;
	box-shadow: 0 0 0 1px #e4dfd5;
	display: flex;
	flex-direction: column;
	min-width: 0;
	transition: box-shadow 160ms ease, transform 160ms ease;
}

.csis-news-card:hover {
	box-shadow: 0 0 0 1px #184b8f;
	transform: translateY(-3px);
}

.csis-news-card__media,
.csis-news-row__media {
	display: block;
	background: #efeae0;
	overflow: hidden;
}

.csis-news-card__media {
	height: 200px;
	border-bottom: 1px solid #e4dfd5;
}

.csis-news-card__media img,
.csis-news-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.csis-news-card__body {
	padding: 24px 26px 26px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.csis-news-date {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #007a00;
}

.csis-news-card__title,
.csis-news-row__title,
.csis-news-row__title a {
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 400;
	color: #184b8f;
	text-decoration: none;
}

.csis-news-card__title {
	font-size: 21px;
	line-height: 1.32;
}

.csis-news-card__title:hover,
.csis-news-row__title a:hover {
	color: #007a00;
	text-decoration: none;
}

.csis-news-card__body p,
.csis-news-row__body p {
	margin: 0;
	color: #4a5465;
}

.csis-news-card__body p {
	font-size: 14px;
	line-height: 1.65;
}

.csis-news-list {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.csis-news-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 28px 44px;
	padding: 40px 0;
	border-bottom: 1px solid #e4dfd5;
	align-items: start;
}

.csis-news-row__media {
	aspect-ratio: 16 / 10;
	border: 1px solid #e4dfd5;
}

.csis-news-row__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.csis-news-row__title {
	font-size: 28px;
	line-height: 1.25;
	margin: 0;
}

.csis-news-row__body p {
	font-size: 16px;
	line-height: 1.7;
}

.csis-analiz-hero {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.csis-analiz-hero__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 0;
	border-bottom: 1px solid #3a66a3;
	text-decoration: none;
}

.csis-analiz-hero__cat {
	font-size: 11px;
	letter-spacing: 0.12em;
	color: #1eaa1e;
}

.csis-analiz-hero__title {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 19px;
	line-height: 1.35;
	color: #f3efe7;
}

.csis-analiz-hero__meta {
	font-size: 13px;
	color: #b8c8df;
}

.csis-analiz-hero__item:hover .csis-analiz-hero__title {
	color: #1eaa1e;
}

.csis-analyses {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
	width: 100%;
}

.csis-analysis-card[hidden] {
	display: none;
}

.csis-analysis-card {
	background: #ffffff;
	border: 1px solid #e4dfd5;
	padding: 32px 32px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	transition: box-shadow 160ms ease, transform 160ms ease;
}

.csis-analysis-card:hover {
	transform: translateY(-3px);
	border-color: #184b8f;
}

.csis-analysis-card__cat,
.csis-analysis__cat {
	font-family: var(--csis-font-sans, "IBM Plex Sans", system-ui, sans-serif);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #74952d;
}

.csis-analysis-card__title,
.csis-analysis-card__title a {
	font-family: "Source Serif 4", Georgia, serif;
	font-weight: 400;
	font-size: 21px;
	line-height: 1.32;
	color: #184b8f;
	text-decoration: none;
	margin: 0;
}

.csis-analysis-card__title a:hover {
	color: #007a00;
}

.csis-analysis-card p {
	margin: 0;
	font-family: var(--csis-font-sans, "IBM Plex Sans", system-ui, sans-serif);
	font-size: 15px;
	line-height: 1.65;
	color: #4a5465;
	flex: 1;
}

.csis-analysis-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid #e4dfd5;
}

.csis-analysis-card__foot span {
	font-family: var(--csis-font-sans, "IBM Plex Sans", system-ui, sans-serif);
	font-size: 13px;
	color: #6a7284;
}

.csis-analysis-card__foot a,
.csis-analysis-card__cta {
	font-family: var(--csis-font-sans, "IBM Plex Sans", system-ui, sans-serif);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #74952d;
	border-bottom: none;
	padding-bottom: 0;
	text-decoration: none;
	white-space: nowrap;
}

.csis-analysis-card__foot a:hover,
.csis-analysis-card__cta:hover {
	color: #007a00;
	text-decoration: none;
}

body.csis-pdf-reader-open {
	overflow: hidden;
}

.csis-pdf-reader {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.csis-pdf-reader[hidden] {
	display: none;
}

.csis-pdf-reader__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(38, 48, 63, 0.72);
}

.csis-pdf-reader__dialog {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	max-height: min(92vh, 920px);
	background: #fbf9f5;
	box-shadow: 0 0 0 1px #e4dfd5;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.csis-pdf-reader__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 26px;
	border-bottom: 1px solid #e4dfd5;
	flex-shrink: 0;
}

.csis-pdf-reader__cat {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #007a00;
	margin-bottom: 8px;
}

.csis-pdf-reader__title {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 22px;
	line-height: 1.25;
	color: #184b8f;
}

.csis-pdf-reader__close {
	border: 1px solid #c9c2b4;
	background: none;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	padding: 9px 16px;
	color: #184b8f;
	flex-shrink: 0;
}

.csis-pdf-reader__close:hover {
	border-color: #184b8f;
}

.csis-pdf-reader__body {
	flex: 1;
	min-height: 0;
	overflow: auto;
	background: #efeae0;
	padding: 24px;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}

.csis-pdf-reader__loading,
.csis-pdf-reader__error {
	font-size: 14px;
	color: #6a7284;
	padding: 40px 0;
	text-align: center;
}

.csis-pdf-reader__pages {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.csis-pdf-reader__page {
	background: #ffffff;
	box-shadow: 0 8px 28px rgba(38, 48, 63, 0.12);
}

.csis-pdf-reader__canvas {
	display: block;
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
}

.csis-pdf-reader__foot {
	padding: 14px 26px;
	border-top: 1px solid #e4dfd5;
	flex-shrink: 0;
	background: #fbf9f5;
	font-size: 13px;
	color: #6a7284;
}

/* —— Лицата зад ЦСИС — expert cards (Elementor page 6) —— */
.elementor-page-6 .elementor-element-ee24e94c {
	--e-con-grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	--gap: 40px 28px !important;
	--row-gap: 40px !important;
	--column-gap: 28px !important;
}

.elementor-page-6 .e-con.e-child:has(> .csis-placeholder) {
	--gap: 12px !important;
	--row-gap: 12px !important;
	align-items: flex-start !important;
}

.elementor-page-6 .csis-placeholder {
	justify-content: center !important;
	align-items: center !important;
	min-height: 0 !important;
	aspect-ratio: 1 / 1;
	width: 100% !important;
	background-color: #efeae0 !important;
	border-style: dashed !important;
	border-width: 1px !important;
	border-color: #b8b0a4 !important;
}

.elementor-page-6 .csis-placeholder .elementor-heading-title {
	font-family: var(--csis-font-sans, "IBM Plex Sans", system-ui, sans-serif) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	color: #6a7284 !important;
	text-align: center !important;
}

.elementor-page-6 .e-con:has(> .csis-placeholder) > .elementor-widget-heading .elementor-heading-title {
	font-family: var(--csis-font-sans, "IBM Plex Sans", system-ui, sans-serif) !important;
}

.elementor-page-6 .e-con:has(> .csis-placeholder) > .elementor-widget-heading h6 .elementor-heading-title {
	font-size: 11px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.2em !important;
	line-height: 1.45 !important;
	color: #1eaa1e !important;
	margin: 14px 0 0 !important;
}

.elementor-page-6 .e-con:has(> .csis-placeholder) > .elementor-widget-heading h3 .elementor-heading-title {
	font-family: var(--csis-font-serif, "Source Serif 4", Georgia, serif) !important;
	font-size: 22px !important;
	font-weight: 400 !important;
	line-height: 1.25 !important;
	color: #184b8f !important;
	margin: 0 !important;
}

.elementor-page-6 .e-con:has(> .csis-placeholder) > .elementor-widget-text-editor {
	font-family: var(--csis-font-sans, "IBM Plex Sans", system-ui, sans-serif) !important;
	font-size: 14px !important;
	line-height: 1.65 !important;
	color: #4a5465 !important;
}

.elementor-page-6 .e-con:has(> .csis-placeholder) > .elementor-widget-text-editor p {
	margin: 0 !important;
}

.elementor-page-6 .e-con:has(> .csis-placeholder) > .csis-textlink {
	margin-top: 6px !important;
}

.elementor-page-6 .csis-textlink a {
	font-family: var(--csis-font-sans, "IBM Plex Sans", system-ui, sans-serif) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	color: #184b8f !important;
}

.elementor-page-6 .csis-textlink a .csis-link-underline {
	border-bottom-color: #1eaa1e;
}

.elementor-page-6 .csis-textlink a:hover {
	color: #007a00 !important;
}

@media (max-width: 1024px) {
	.elementor-page-6 .elementor-element-ee24e94c {
		--e-con-grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	.elementor-page-6 .elementor-element-ee24e94c {
		--e-con-grid-template-columns: 1fr !important;
		--row-gap: 40px !important;
	}
}

.remove-underline {
	text-decoration: none !important;
}
