/**
 * Карточка анализа (single-service-kart-analiza.php).
 * Точечные правки поверх main.min.css: отступы, табы в адаптиве, синонимы, SEO-блок.
 */

/* --- Заголовок --- */
.single-analiz .hero_cart_analiz h1 {
	word-break: normal;
}

.single-analiz .hero_cart_analiz .analiz-h1-city {
	color: #208d79;
}

/* --- Убираем избыточный отступ перед описанием --- */
.single-analiz .about_analiz {
	margin-top: 24px;
	padding-bottom: 0;
}

.single-analiz .opisanie_a {
	padding-top: 0;
}

.single-analiz .analiz-tabs.tab {
	margin-top: 28px;
}

/* --- Табы: корректный адаптив (горизонтальный скролл вместо «дропдауна») --- */
@media (max-width: 768px) {
	.single-analiz .analiz-tabs__nav.tab-nav {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 8px;
		padding: 6px;
		border: none;
		border-radius: 50px;
		background: #f2f5f4;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.single-analiz .analiz-tabs__nav.tab-nav::-webkit-scrollbar {
		display: none;
	}

	.single-analiz .analiz-tabs__nav-btn.tab-btn {
		display: inline-block !important;
		flex: 0 0 auto;
		white-space: nowrap;
		padding: 9px 16px;
		border-radius: 50px;
		font-weight: 700;
		color: #373737;
	}

	.single-analiz .analiz-tabs__nav-btn.tab-btn-active {
		background: #208d79;
		color: #fff;
	}

	.single-analiz .nav_show {
		display: none !important;
	}

	.single-analiz .about_analiz {
		margin-top: 20px;
	}
}

/* --- SEO-блок в подвале карточки --- */
.single-analiz .analiz-seo {
	padding: 8px 0 56px;
}

.single-analiz .analiz-seo__inner {
	border-top: 1px solid rgba(55, 55, 55, 0.1);
	padding-top: 28px;
}

.single-analiz .analiz-seo p {
	margin: 0;
	max-width: 920px;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.6;
	letter-spacing: -0.01em;
	color: #595f6b;
}

@media (max-width: 768px) {
	.single-analiz .analiz-seo {
		padding: 4px 0 40px;
	}

	.single-analiz .analiz-seo p {
		font-size: 14px;
	}
}

/* --- Каталог анализов: панель категорий, активная вкладка, «Смотреть все» --- */
.post-type-archive-analiz .analyses-cat__panel,
.tax-analiz_category .analyses-cat__panel {
	background: #fff;
	border-radius: 40px;
	padding: 40px;
	box-shadow: 0 0 32px 0 #00000014;
	margin-top: 10px;
}

.post-type-archive-analiz .analyses-cat__panel-title,
.tax-analiz_category .analyses-cat__panel-title {
	margin: 0 0 24px;
	font-size: 24px;
	line-height: 1.2;
	color: #373737;
}

.post-type-archive-analiz .issledovaniya_main_item.is-active a,
.tax-analiz_category .issledovaniya_main_item.is-active a {
	background: #208d79;
	color: #fff;
	border-radius: 16px;
}

.post-type-archive-analiz .issledovaniya_main_item.is-active a p,
.tax-analiz_category .issledovaniya_main_item.is-active a p {
	color: #fff;
}

.post-type-archive-analiz .analiz-nav-all,
.tax-analiz_category .analiz-nav-all {
	margin-top: 32px;
	text-align: center;
}

@media (max-width: 768px) {
	.post-type-archive-analiz .analyses-cat__panel,
	.tax-analiz_category .analyses-cat__panel {
		padding: 24px 20px;
		border-radius: 24px;
	}

	.post-type-archive-analiz .analyses-cat__panel-title,
	.tax-analiz_category .analyses-cat__panel-title {
		font-size: 20px;
		margin-bottom: 16px;
	}
}

/* --- Архив анализов: без CAPS в заголовках --- */
.post-type-archive-analiz .analiz-section-title,
.post-type-archive-analiz .analyses-popular .analiz-section-title,
.post-type-archive-analiz .why_klinick_analiz h2,
.post-type-archive-analiz .gallery h2,
.post-type-archive-analiz .contact-form h2,
.post-type-archive-analiz .clinics-section h2,
.tax-analiz_category .analyses h1,
.tax-analiz_category .analyses h2 {
	text-transform: none !important;
	font-family: var(--ff, "Manrope", sans-serif);
	font-weight: 600;
	font-size: clamp(26px, 2.2vw, 36px);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

/* --- Поиск анализов: поле ввода не обрезается --- */
.post-type-archive-analiz .analyses-cat__search form,
.tax-analiz_category .analyses-cat__search form {
	min-width: 0;
}

.post-type-archive-analiz .analyses-cat__search form label,
.tax-analiz_category .analyses-cat__search form label {
	min-width: 0;
}

.post-type-archive-analiz .analyses-cat__search form label input,
.tax-analiz_category .analyses-cat__search form label input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
}

.post-type-archive-analiz .analyses-cat__search .search-btn,
.tax-analiz_category .analyses-cat__search .search-btn {
	flex-shrink: 0;
}

.post-type-archive-analiz .analiz-search-results,
.tax-analiz_category .analiz-search-results {
	padding-bottom: 48px;
}

.post-type-archive-analiz .analiz-search-results .analiz_list,
.tax-analiz_category .analiz-search-results .analiz_list {
	margin-top: 0;
}

/* --- Архив анализов: hero — симметричные отступы блока --- */
.post-type-archive-analiz section.breadcrumbs + .analyses-hero.section-wrap-mx {
	margin-top: 0;
	padding-top: 60px;
	padding-bottom: 60px;
}

.post-type-archive-analiz .analyses-hero h1 {
	margin-top: 0;
	margin-bottom: 24px;
}

.post-type-archive-analiz .analyses-hero p.grey {
	margin-bottom: 32px;
}

.post-type-archive-analiz .analyses-hero .kapelnici-hero__items {
	padding-top: 0;
	padding-bottom: 32px;
}

@media (max-width: 768px) {
	.post-type-archive-analiz section.breadcrumbs + .analyses-hero.section-wrap-mx {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.post-type-archive-analiz .analyses-hero h1 {
		margin-bottom: 16px;
	}

	.post-type-archive-analiz .analyses-hero p.grey {
		margin-bottom: 24px;
	}

	.post-type-archive-analiz .analyses-hero .kapelnici-hero__items {
		padding-bottom: 24px;
	}
}
