/* «Наукова робота» — міні-лендинг (single-post-nauchnaya-rabota.php). Стиль узгоджено з новими сторінками */
.npc-sci {
	--npc-green: #007a53;
	--npc-green-dark: #00653f;
	--npc-ink: #2b2b2b;
	--npc-muted: #6b6b6b;
	--npc-line: #e3e3e3;
	--npc-tint: #f4f8f6;
	background: #f2f2f2;
	padding: 24px 0 72px;
	font-family: 'Open Sans', sans-serif;
	color: var(--npc-ink);
}
.npc-sci *, .npc-sci *::before, .npc-sci *::after { box-sizing: border-box; }

/* ---------- Перший екран ---------- */
.npc-sci__hero { margin: 8px 0 28px; }
.npc-sci__eyebrow {
	display: inline-block;
	margin: 0 0 12px;
	padding: 5px 12px;
	border-radius: 999px;
	background: #e8f3ee;
	color: var(--npc-green);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
}
.npc-sci__title {
	margin: 0 0 20px;
	padding: 0;
	font-family: 'Open Sans', sans-serif;
	font-size: 48px;
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-transform: none;
	text-align: left;
	color: var(--npc-ink);
}
.npc-sci__toc {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 10px;
}
.npc-sci__toc a {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--npc-line);
	border-radius: 16px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--npc-ink);
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease;
}
.npc-sci__toc a:hover, .npc-sci__toc a:focus-visible { border-color: var(--npc-green); color: var(--npc-green); text-decoration: none; }
.npc-sci__toc a span { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--npc-green); font-variant-numeric: tabular-nums; }

/* ---------- Основний текст ---------- */
.npc-sci__body {
	padding: 48px 56px;
	background: #fff;
	border: 1px solid var(--npc-line);
	border-radius: 24px;
}
/* На всю ширину контейнера (перекриває 860px із npc-article.css) */
.npc-sci .npc-sci__body,
.npc-sci .npc-sci__after,
.npc-sci .npc-sci__after .npc-faq,
.npc-sci .npc-sci__after .npc-cta { max-width: none; }
.npc-sci__body > * { max-width: none; margin-left: 0; margin-right: 0; }
.npc-sci__body h2 {
	margin: 56px auto 18px;
	padding: 28px 0 0;
	border-top: 2px solid var(--npc-line);
	font-family: 'Open Sans', sans-serif;
	font-size: 30px;
	line-height: 1.25;
	font-weight: 700;
	text-transform: none;
	text-align: left;
	color: var(--npc-ink);
	scroll-margin-top: 110px;
}
.npc-sci__body h3 {
	margin: 32px auto 12px;
	font-size: 21px;
	line-height: 1.35;
	font-weight: 700;
	text-transform: none;
	text-align: left;
}
.npc-sci__body p { font-size: 17px; line-height: 1.7; }
.npc-sci-lead { font-size: 20px !important; line-height: 1.6 !important; font-weight: 600; color: var(--npc-ink); }

/* Ключові цифри */
.npc-sci__body .npc-sci-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 32px 0 8px;
	padding: 0;
	list-style: none;
}
.npc-sci__body .npc-sci-stats > li {
	margin: 0;
	padding: 20px;
	background: var(--npc-tint);
	border-radius: 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.npc-sci__body .npc-sci-stats > li::before { display: none; content: none; }
.npc-sci-stats strong { font-size: 32px; line-height: 1.1; font-weight: 700; color: var(--npc-green); }
.npc-sci-stats > li:last-child strong { font-size: 22px; line-height: 1.25; }
.npc-sci-stats span { font-size: 14px; line-height: 1.5; color: var(--npc-ink); }

/* Списки результатів — галочки */
.npc-sci__body .npc-sci-list { margin: 0 auto 24px; padding: 0; list-style: none; }
.npc-sci__body .npc-sci-list > li {
	position: relative;
	margin: 0 0 12px;
	padding: 0 0 0 34px;
	font-size: 17px;
	line-height: 1.65;
}
.npc-sci__body .npc-sci-list > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e8f3ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23008259' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
}

/* Ключовий факт */
.npc-sci-fact {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 28px auto;
	padding: 24px 28px;
	background: var(--npc-green);
	border-radius: 20px;
	color: #fff;
}
.npc-sci-fact strong { flex: 0 0 auto; font-size: 44px; line-height: 1; font-weight: 700; }
.npc-sci__body .npc-sci-fact p { margin: 0; color: #fff; font-size: 16px; line-height: 1.6; }
.npc-sci-fact--text p { font-size: 18px !important; font-weight: 600; }

/* Примітка «Дослідження триває» */
.npc-sci-note {
	margin: 28px auto;
	padding: 22px 26px;
	border-left: 4px solid var(--npc-green);
	background: var(--npc-tint);
	border-radius: 0 16px 16px 0;
}
.npc-sci__body .npc-sci-note__label {
	margin: 0 0 8px;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--npc-green);
}
.npc-sci__body .npc-sci-note p:last-child { margin-bottom: 0; }

/* Галереї */
.npc-sci-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 24px 0;
}
.npc-sci-gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px !important; }
.npc-sci-gallery--photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.npc-sci-gallery figure, .npc-sci-ba figure { margin: 0; }
.npc-sci-gallery .npc-sci-pic {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border: 1px solid var(--npc-line);
	border-radius: 14px;
	background: #fff;
}
.npc-sci-gallery--photos .npc-sci-pic { aspect-ratio: 16 / 10; }
.npc-sci__body .npc-sci-gallery img,
.npc-sci__body .npc-sci-ba img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	margin: 0;
	object-fit: contain;
}
.npc-sci__body .npc-sci-gallery--photos img { object-fit: cover; }
.npc-sci__body .npc-sci-gcap { margin: -12px auto 24px; font-size: 14px !important; color: var(--npc-muted); text-align: center; }

/* До / після */
.npc-sci-ba {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 28px 0;
}
.npc-sci-ba figure { padding: 14px; background: var(--npc-tint); border-radius: 18px; }
.npc-sci-ba figcaption {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 700;
	color: var(--npc-green);
}
.npc-sci-ba figure:first-child figcaption { color: #8a5a00; }
.npc-sci-ba__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.npc-sci-ba .npc-sci-pic {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: #fff;
}
.npc-sci__body .npc-sci-ba img { object-fit: cover; }

/* Країни */
.npc-sci__body .npc-sci-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 auto 24px; padding: 0; list-style: none; }
.npc-sci__body .npc-sci-chips > li {
	margin: 0;
	padding: 8px 14px;
	border: 1px solid var(--npc-line);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}
.npc-sci__body .npc-sci-chips > li::before { display: none; content: none; }

/* ---------- Компоненти для інформаційних сторінок («Як відбувається інсульт?») ---------- */
/* Вступ: текст + ілюстрація */
.npc-sci__body .npc-sci-intro {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	margin: 0 0 28px;
}
.npc-sci-intro__text p:last-child { margin-bottom: 0; }
.npc-sci-intro__img { margin: 0; padding: 12px; background: var(--npc-tint); border-radius: 20px; }
.npc-sci__body .npc-sci-intro__img img { display: block; width: 100%; height: auto; margin: 0; border-radius: 12px; }

/* Дві картки — види інсульту */
.npc-sci__body .npc-sci-types {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}
.npc-sci__body .npc-sci-types > li {
	margin: 0;
	padding: 24px;
	background: var(--npc-tint);
	border-radius: 20px;
}
.npc-sci__body .npc-sci-types > li::before { display: none; content: none; }
.npc-sci-types__tag {
	display: inline-block;
	margin: 0 0 12px;
	padding: 5px 12px;
	border-radius: 999px;
	background: #fff;
	color: var(--npc-green);
	font-size: 13px;
	font-weight: 700;
}
.npc-sci__body .npc-sci-types p { margin: 0; font-size: 16px; line-height: 1.65; }
.npc-sci__body .npc-sci-types strong { color: var(--npc-green); }

/* Картки: симптоми, причини */
.npc-sci__body .npc-sci-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	counter-reset: npcCard;
}
.npc-sci__body .npc-sci-cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.npc-sci__body .npc-sci-cards > li {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--npc-line);
	border-radius: 18px;
	font-size: 15px;
	line-height: 1.6;
}
.npc-sci__body .npc-sci-cards > li::before { display: none; content: none; }
.npc-sci__body .npc-sci-cards strong { font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--npc-ink); }
.npc-sci__body .npc-sci-cards--num > li { counter-increment: npcCard; background: var(--npc-tint); border-color: transparent; font-size: 16px; font-weight: 600; }
.npc-sci__body .npc-sci-cards--num > li::before {
	display: flex;
	align-items: center;
	justify-content: center;
	content: counter(npcCard);
	position: static;
	width: 36px;
	height: 36px;
	margin: 0 0 4px;
	border-radius: 50%;
	background: var(--npc-green);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
}
.npc-sci-cards--num span::first-letter { text-transform: uppercase; }

/* Нумеровані кроки */
.npc-sci__body .npc-sci-steps { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: npcStep; }
.npc-sci__body .npc-sci-steps > li {
	position: relative;
	counter-increment: npcStep;
	margin: 0 0 10px;
	padding: 16px 20px 16px 68px;
	min-height: 64px;
	background: var(--npc-tint);
	border-radius: 16px;
	font-size: 16px;
	line-height: 1.65;
}
.npc-sci__body .npc-sci-steps > li::before {
	content: counter(npcStep);
	position: absolute;
	left: 18px;
	top: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--npc-green);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}
.npc-sci__body .npc-sci-steps--alert > li:first-child { background: #fdeceb; }
.npc-sci__body .npc-sci-steps--alert > li:first-child::before { background: #c62828; }
.npc-sci__body .npc-sci-steps--alert > li:first-child strong { color: #c62828; }

/* FAQ + запис під статтею */
.npc-sci__after.npc-article {
	margin: 24px 0 0;
	padding: 8px 56px 48px;
	background: #fff;
	border: 1px solid var(--npc-line);
	border-radius: 24px;
}
.npc-sci__after .npc-faq { border-top: 0; margin-top: 24px; }
.npc-sci__after .npc-cta { border-radius: 18px; }

/* ---------- Адаптив ---------- */
@media (max-width: 991px) {
	.npc-sci__title { font-size: 36px; }
	.npc-sci__body { padding: 32px 28px; }
	.npc-sci__body .npc-sci-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.npc-sci-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.npc-sci__after.npc-article { padding: 8px 28px 32px; }
	.npc-sci__body .npc-sci-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.npc-sci__body .npc-sci-cards--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.npc-sci { padding: 16px 0 48px; }
	.npc-sci__title { font-size: 30px; }
	.npc-sci__toc { grid-template-columns: 1fr; }
	.npc-sci__body { padding: 22px 16px; border-radius: 18px; }
	.npc-sci__body h2 { font-size: 23px; margin-top: 40px; padding-top: 22px; }
	.npc-sci__body h3 { font-size: 19px; }
	.npc-sci__body p, .npc-sci__body .npc-sci-list > li { font-size: 16px; }
	.npc-sci-lead { font-size: 18px !important; }
	.npc-sci-stats strong { font-size: 26px; }
	.npc-sci__body .npc-sci-stats > li { padding: 16px; }
	.npc-sci-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.npc-sci-gallery--photos { grid-template-columns: 1fr; }
	.npc-sci-fact { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; }
	.npc-sci-fact strong { font-size: 36px; }
	.npc-sci-ba { grid-template-columns: 1fr; }
	.npc-sci__after.npc-article { padding: 4px 16px 24px; border-radius: 18px; }
	.npc-sci__body .npc-sci-intro { grid-template-columns: 1fr; gap: 20px; }
	.npc-sci__body .npc-sci-types { grid-template-columns: 1fr; }
	.npc-sci__body .npc-sci-types > li { padding: 18px; }
	.npc-sci__body .npc-sci-cards,
	.npc-sci__body .npc-sci-cards--5 { grid-template-columns: 1fr; gap: 10px; }
	.npc-sci__body .npc-sci-cards > li { padding: 18px; }
	.npc-sci__body .npc-sci-cards--num > li { flex-direction: row; align-items: center; gap: 14px; }
	.npc-sci__body .npc-sci-cards--num > li::before { flex: 0 0 auto; margin: 0; }
	.npc-sci__body .npc-sci-steps > li { padding: 14px 16px 14px 58px; font-size: 15px; }
	.npc-sci__body .npc-sci-steps > li::before { left: 14px; top: 12px; width: 30px; height: 30px; font-size: 14px; }
}
@media (max-width: 420px) {
	.npc-sci__body .npc-sci-stats { grid-template-columns: 1fr; }
}
