/*
 * Єдина візуальна система сайту (підключається останньою на всіх сторінках — inc/npc-perf.php).
 * Зводить до одного стилю елементи, що розійшлися між шаблонами: заголовки, кнопки, картки статей, ховери.
 * Подвоєні класи (.a.a) — щоб перекрити специфічні правила окремих шаблонів без !important.
 */
:root {
	--ui-green: #007a53;
	--ui-green-dark: #00653f;
	--ui-ink: #2b2b2b;
	--ui-muted: #6b6b6b;
	--ui-line: #e3e3e3;
	--ui-tint: #e8f3ee;
	--ui-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

/* ---------- 1. H1 сторінок-розділів: один розмір і ритм ---------- */
body :is(.npc-sp__title.npc-sp__title, .npc-th__title.npc-th__title, .npc-gal__title.npc-gal__title, .npc-search__title.npc-search__title, .npc-page__title.npc-page__title, .npc-news__title.npc-news__title, .npc-contacts__title.npc-contacts__title, .npc-info__title.npc-info__title, .npc-sci__title.npc-sci__title, .npc-rev__title.npc-rev__title, .npc-404__title.npc-404__title) {
	font-family: 'Open Sans', sans-serif;
	font-size: 44px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--ui-ink);
}

/* ---------- 2. Статті (Що ми лікуємо, новини, кейси, текстові сторінки) ---------- */
body .npc-article__title.npc-article__title {
	font-size: 36px;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--ui-ink);
}
body .npc-article.npc-article {
	border: 1px solid var(--ui-line);
	border-radius: 24px;
	overflow: hidden;
}
body .npc-cta.npc-cta { border-radius: 18px; }

/* ---------- 3. Кнопки: усі основні — «пігулка», 15px, без капсу ---------- */
body .npc-consult-btn.npc-consult-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 30px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	transition: background .2s ease, transform .2s ease;
}
body .npc-hb__btn.npc-hb__btn {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

/* ---------- 4. Іконки-«чипи»: зелений відтінок, як на решті сайту ---------- */
.npc-info,
.npc-page { --npc-chip: var(--ui-tint); }

/* ---------- 5. Ховери клікабельних карток: рамка + тінь + підйом ---------- */
.npc-sp__card { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.npc-sp__card:has(a.npc-sp__photo):hover {
	border-color: var(--ui-green);
	box-shadow: var(--ui-shadow);
	transform: translateY(-2px);
}
.npc-sp__card:has(a.npc-sp__photo):hover .npc-sp__name a { color: var(--ui-green); }
.npc-sp a.npc-sp__photo img { transition: transform .4s ease; }
.npc-sp__card:has(a.npc-sp__photo):hover .npc-sp__photo img { transform: scale(1.03); }
.npc-hb__card:not(.npc-hb__card--sp) { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.npc-hb__card:not(.npc-hb__card--sp):hover { transform: translateY(-2px); }

/* ---------- 6. Сторінка 404 ---------- */
.npc-404 { background: #f2f2f2; padding: 40px 0 80px; font-family: 'Open Sans', sans-serif; color: var(--ui-ink); }
.npc-404 *, .npc-404 *::before, .npc-404 *::after { box-sizing: border-box; }
.npc-404__box { max-width: 760px; margin: 0 auto; padding: 48px 40px; background: #fff; border: 1px solid var(--ui-line); border-radius: 24px; text-align: center; }
.npc-404 .npc-404__code { display: inline-flex; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: var(--ui-tint); color: var(--ui-green); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.npc-404 .npc-404__title { margin: 0 0 12px; padding: 0; text-align: center; }
.npc-404 .npc-404__lead { max-width: 520px; margin: 0 auto 26px; font-size: 17px; line-height: 1.6; color: var(--ui-muted); }
.npc-404__search { display: flex; gap: 10px; max-width: 520px; margin: 0 auto 28px; }
.npc-404__search input[type="text"], .npc-404__search input[type="search"] { flex: 1 1 auto; min-width: 0; height: 52px; margin: 0; padding: 0 20px; border: 1px solid var(--ui-line); border-radius: 999px; background: #f7f7f7; font-family: inherit; font-size: 16px; color: var(--ui-ink); outline: none; }
.npc-404__search input:focus { background: #fff; border-color: var(--ui-green); box-shadow: 0 0 0 3px rgba(0, 122, 83, .15); }
.npc-404__search button { flex: 0 0 auto; height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--ui-green); color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s ease; }
.npc-404__search button:hover { background: var(--ui-green-dark); }
.npc-404__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; text-align: left; }
.npc-404__links li::before { display: none; content: none; }
.npc-404__links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 18px; border: 1px solid var(--ui-line); border-radius: 16px; background: #fff; color: var(--ui-ink); font-size: 15px; font-weight: 600; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease; }
.npc-404__links a::after { content: "↗"; color: var(--ui-green); }
.npc-404__links a:hover, .npc-404__links a:focus-visible { border-color: var(--ui-green); box-shadow: var(--ui-shadow); transform: translateY(-2px); color: var(--ui-green); text-decoration: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 991px) {
	body :is(.npc-sp__title.npc-sp__title, .npc-th__title.npc-th__title, .npc-gal__title.npc-gal__title, .npc-search__title.npc-search__title, .npc-page__title.npc-page__title, .npc-news__title.npc-news__title, .npc-contacts__title.npc-contacts__title, .npc-info__title.npc-info__title, .npc-sci__title.npc-sci__title, .npc-rev__title.npc-rev__title, .npc-404__title.npc-404__title) { font-size: 34px; }
	body .npc-article__title.npc-article__title { font-size: 30px; }
}
@media (max-width: 767px) {
	body :is(.npc-sp__title.npc-sp__title, .npc-th__title.npc-th__title, .npc-gal__title.npc-gal__title, .npc-search__title.npc-search__title, .npc-page__title.npc-page__title, .npc-news__title.npc-news__title, .npc-contacts__title.npc-contacts__title, .npc-info__title.npc-info__title, .npc-sci__title.npc-sci__title, .npc-rev__title.npc-rev__title, .npc-404__title.npc-404__title) { font-size: 28px; }
	body .npc-article__title.npc-article__title { font-size: 24px; }
	body .npc-treat .container { padding-left: 15px; padding-right: 15px; } /* картка статті з відступом від країв, як на «Науковій роботі» */
	body .npc-article.npc-article { border-radius: 18px; }
	body .npc-consult-btn.npc-consult-btn { display: flex; width: 100%; padding: 14px 18px; }
	.npc-404 { padding: 24px 0 56px; }
	.npc-404__box { padding: 32px 18px; border-radius: 20px; }
	.npc-404__search { flex-direction: column; }
	.npc-404__links { grid-template-columns: 1fr; }
}

/* Посилання в тексті блоку консультацій на головній (e-mail в EN-версії): контраст ≥ 4.5:1 */
.npc-hb__consult p a { color: #007a53; text-decoration: underline; text-underline-offset: 2px; }
.npc-hb__consult p a:hover { color: #00653f; }
