/* Оновлений хедер (десктоп ≥992px). Розмітка header.php не змінюється — лише вигляд. */
@media (min-width: 992px) {
	.header {
		--h-g: #007a53;
		--h-g2: #00a35f;
		--h-ink: #2b2b2b;
		--h-muted: #6b6b6b;
		--h-line: #ececec;
		--h-top: 46px;
	}
	.header.default,
	.header.fixed {
		position: -webkit-sticky !important;
		position: sticky !important;
		top: calc(var(--h-top) * -1);
		z-index: 1000;
		width: auto;
		background: #fff;
		box-shadow: 0 1px 0 var(--h-line);
		transition: box-shadow .25s ease;
	}
	.header.fixed { box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
	.wraper { margin-top: 0 !important; }
	.header::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: var(--h-top);
		height: 1px;
		background: var(--h-line);
		pointer-events: none;
	}

	/* Сітка: верхня смуга + рядок «логотип / меню / кнопка» */
	.header > .container {
		display: grid !important;
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "top top top" "logo nav cta";
		column-gap: 24px;
		align-items: center;
		position: relative;
	}
	.header > .container::before,
	.header > .container::after,
	.header .row::before,
	.header .row::after,
	.header .top_info::before,
	.header .top_info::after { display: none !important; content: none !important; }
	.header > .container > .row,
	.header .col-md-2,
	.header .col-md-10,
	.header #zxc,
	.header #zxcz,
	.header .block_backgraund,
	.header .mnu_phone { display: contents !important; }

	/* ---------- Верхня смуга ---------- */
	.header .top_info {
		grid-area: top;
		display: flex !important;
		align-items: center;
		gap: 28px;
		height: var(--h-top);
		margin: 0;
		padding: 0;
		border: 0;
	}
	.header .top_info > li {
		float: none;
		width: auto !important;
		padding: 0 !important;
		border: 0 !important;
		background: none !important;
		font-size: 14px;
		font-weight: 600;
		line-height: 1.2;
		color: var(--h-ink);
	}
	.header .top_info > li > a {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		width: auto;
		padding: 0;
		color: var(--h-ink);
		transition: color .2s ease;
	}
	.header .top_info > li > a:hover { color: var(--h-g); }
	.header .top_info li a img,
	.header .top_info > li:nth-child(2) > img { display: none !important; }
	.header .top_info .npc-ti-short { display: none !important; }

	/* Телефон */
	.header .top_info > li:first-child > a::before {
		content: "";
		position: static;
		flex: 0 0 auto;
		width: 16px;
		height: 16px;
		margin: 0;
		border: 0;
		transform: none;
		background: var(--h-g);
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	/* Пошук */
	.header .top_info > li:nth-child(2) { margin-left: auto; }
	.header .top_info > li:nth-child(2) form { margin: 0; }
	.header .top_info input[name="s"] {
		width: 170px;
		height: 32px;
		padding: 0 14px 0 36px;
		border: 1px solid transparent;
		border-radius: 999px;
		background: #f4f6f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 13px center / 15px no-repeat;
		font-size: 14px;
		font-weight: 500;
		color: var(--h-ink);
		transition: width .25s ease, border-color .2s ease, background-color .2s ease;
	}
	.header .top_info input[name="s"]::placeholder { color: #8a8a8a; }
	.header .top_info input[name="s"]:focus { width: 240px; background-color: #fff; border-color: var(--h-g); }
	.header .top_info li:hover > form > input { background-color: #eef3f0; }

	/* Відгуки — зі стрілкою */
	.header .top_info > li:nth-child(3) > a::after {
		content: "";
		width: 10px;
		height: 10px;
		background: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 9 9 3M4 3h5v5'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 9 9 3M4 3h5v5'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	/* «Записатися» у верхній смузі ховаємо: кнопка тепер у основному рядку */
	.header .top_info > li:nth-child(4) { display: none !important; }

	/* Мова */
	.header .top_info > li:last-child {
		position: relative;
		float: none;
		height: 100%;
		display: flex;
		align-items: center;
	}
	.header .top_info > li:last-child > a::after {
		content: "";
		width: 10px;
		height: 6px;
		background: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
		transition: transform .2s ease;
	}
	.header .top_info > li:last-child:hover > a::after { transform: rotate(180deg); }
	.header .top_info > li:last-child > ul {
		top: 100%;
		left: auto;
		right: -14px;
		width: auto;
		min-width: 96px;
		padding: 6px;
		background: #fff;
		border: 1px solid var(--h-line);
		border-radius: 14px;
		box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
		z-index: 1001;
	}
	.header .top_info > li:last-child > ul li {
		border: 0 !important;
		padding: 0;
		background: none;
		text-align: left;
	}
	.header .top_info > li:last-child > ul li a {
		display: block;
		padding: 8px 12px;
		border-radius: 9px;
		color: var(--h-ink);
	}
	.header .top_info > li:last-child > ul li a:hover,
	.header .top_info > li:last-child > ul li.active a { background: #f4f8f6; color: var(--h-g); }

	/* ---------- Логотип ---------- */
	.header .logo {
		grid-area: logo;
		height: auto !important;
		margin: 14px 0;
		background: var(--h-g);
		border-radius: 18px;
		transition: margin .25s ease;
	}
	.header .logo a {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 136px;
		height: 66px;
	}
	.header .logo img {
		position: static;
		width: 108px;
		height: auto;
		margin: 0;
	}
	.header.fixed .logo { margin: 10px 0; }

	/* ---------- Меню ---------- */
	.header .top_mnu {
		grid-area: nav;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-wrap: nowrap;
		margin: 0;
		padding: 0;
	}
	.header .top_mnu > li {
		display: flex;
		align-items: center;
		margin: 0 !important;
		font-size: 12px;
		font-weight: 700;
		line-height: 1.2;
		letter-spacing: .02em;
		text-transform: uppercase;
		white-space: nowrap;
		border: 0 !important;
	}
	.header .top_mnu > li + li::before {
		content: "";
		flex: 0 0 auto;
		width: 5px;
		height: 5px;
		margin: 0 9px;
		border-radius: 50%;
		background: var(--h-g2);
	}
	.header .top_mnu > li > a {
		position: relative;
		display: inline-flex;
		align-items: center;
		padding: 30px 0;
		color: var(--h-ink);
		transition: color .2s ease;
	}
	.header .top_mnu .npc-drill-all,
	.header .top_mnu .npc-drill-back { display: none !important; }
	.header .top_mnu > li > a:hover,
	.header .top_mnu > li.is-open > a,
	.header .top_mnu > li.current-menu-item > a,
	.header .top_mnu > li.current-menu-ancestor > a { color: var(--h-g); }
	/* шеврони у пунктів із підменю */
	.header .top_mnu > li:nth-child(2) > a,
	.header .top_mnu .menu-item-has-children > a { padding-right: 18px; }
	.header .top_mnu > li:nth-child(2) > a::before,
	.header .top_mnu .menu-item-has-children > a::before {
		right: 0;
		margin-top: -3px;
		width: 10px;
		height: 6px;
		background: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
	}

	/* Мегаменю: на всю ширину хедера */
	.header .npc-mm__panel {
		left: 0;
		right: 0;
		width: auto;
		top: calc(100% - 8px);
	}

	/* Випадаючі панелі не успадковують стиль пунктів меню */
	.header .npc-mm__panel,
	.header .top_mnu .sub-menu {
		text-transform: none;
		letter-spacing: 0;
		white-space: normal;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.35;
	}
	.header .npc-mm__panel .npc-mm__gtitle { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }

	/* Прибираємо сірий відступ над хедером */
	.wraper { padding-top: 0 !important; }
	.content > .tex { margin: 0 !important; }

	/* ---------- Кнопка запису ---------- */
	.header .npc-mcta.hidden-md,
	.header .npc-mcta.hidden-lg {
		grid-area: cta;
		display: flex !important;
		align-items: center;
	}
	.header .npc-mcta .npc-mm__phone { display: none; }
	.header .npc-mcta .npc-mm__btn {
		width: auto;
		min-height: 52px;
		padding: 0 26px;
		gap: 10px;
		font-size: 15px;
		font-weight: 700;
		white-space: nowrap;
		box-shadow: 0 10px 24px rgba(0, 122, 83, .22);
		transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
	}
	/* Короткий підпис кнопки (повний лишається в мобільному меню) */
	.header .npc-mcta .npc-mm__btn > span { display: none; }
	.header .npc-mcta .npc-mm__btn::after { content: "Записатися"; }
	html[lang="ru"] .header .npc-mcta .npc-mm__btn::after { content: "Записаться"; }
	html[lang="en"] .header .npc-mcta .npc-mm__btn::after { content: "Book now"; }
	.header .npc-mcta .npc-mm__btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(0, 122, 83, .3); }
}

/* Широкі екрани: хедер ширший, меню крупніше */
@media (min-width: 1400px) {
	.header > .container { width: 1320px; max-width: 100%; column-gap: 28px; }
	.header .top_mnu > li { font-size: 13px; letter-spacing: .01em; }
	.header .top_mnu > li + li::before { margin: 0 12px; }
}

/* 1200–1399: стандартна ширина 1170 */
@media (min-width: 1200px) and (max-width: 1399px) {
	.header > .container { column-gap: 20px; }
	.header .logo a { width: 120px; height: 60px; }
	.header .logo img { width: 98px; }
	.header .top_mnu > li { letter-spacing: 0; }
	.header .top_mnu > li + li::before { margin: 0 8px; }
	.header .npc-mcta .npc-mm__btn { padding: 0 22px; }
}

/* 992–1199: кнопка «Записатися» переходить у верхню смугу, меню отримує весь рядок */
@media (min-width: 992px) and (max-width: 1199px) {
	.header > .container { grid-template-areas: "top top top" "logo nav nav"; column-gap: 18px; }
	.header .npc-mcta.hidden-md { display: none !important; }
	.header .top_info { gap: 22px; }
	.header .top_info > li:nth-child(4) { display: block !important; }
	.header .top_info > li:nth-child(4) > a { color: var(--h-g); }
	.header .top_info input[name="s"] { width: 140px; }
	.header .logo a { width: 112px; height: 56px; }
	.header .logo img { width: 92px; }
	.header .top_mnu > li { font-size: 12px; letter-spacing: 0; }
	.header .top_mnu > li + li::before { margin: 0 7px; width: 4px; height: 4px; }
}

/* 768–991 (планшет / вузьке вікно): мобільний хедер на всю ширину, а не «коробкою» 750px */
@media (min-width: 768px) and (max-width: 991px) {
	.header > .container { width: auto; }
	.header .logo,
	.header .mnu_phone { width: 100%; left: 0; }
}

/* ===== Єдина ширина сайту: контент = ширина хедера (1320 на екранах від 1400px) ===== */
@media (min-width: 1400px) {
	.container { width: 1320px; }
}
/* Хлібні крихти мали фіксовані 1170px — тепер по ширині контейнера на кожному брейкпоінті */
.aioseo-breadcrumbs { max-width: 100%; }
.aioseo-breadcrumbs a { color: #007a53; } /* контраст ≥ 4.5:1 на сірому фоні (було #49a16d із bootstrap, 2.8:1) */
@media (max-width: 767px) { .aioseo-breadcrumbs { width: auto; } }
@media (min-width: 768px) { .aioseo-breadcrumbs { width: 750px; } }
@media (min-width: 992px) { .aioseo-breadcrumbs { width: 970px; } }
@media (min-width: 1200px) { .aioseo-breadcrumbs { width: 1170px; } }
@media (min-width: 1400px) { .aioseo-breadcrumbs { width: 1320px; } }
