/**
 * Карточка анализа (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 {
	margin: 0;
	padding: 0 0 60px;
}

.single-analiz .opisanie_a h2 {
	margin: 0 0 24px;
}

/* --- Краткое описание в hero: без градиента и обрезки --- */
.single-analiz .hero_cart_analiz .about_analiz .grad_txt {
	display: none;
}

.single-analiz .hero_cart_analiz .about_analiz {
	max-height: none;
	overflow: visible;
}

.single-analiz .hero_cart_analiz .about_analiz,
.single-analiz .hero_cart_analiz .about_analiz * {
	opacity: 1;
}

.single-analiz .about_analiz p {
	margin: 0 0 16px;
	color: #373737;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.4;
}

.single-analiz .about_analiz p:last-child {
	margin-bottom: 0;
}

/* --- Табы «Описание исследования» --- */
.single-analiz .analiz-study-tabs {
	width: 100%;
}

.single-analiz .analiz-study-tabs__nav {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 7px;
	border: 0;
	border-radius: 100px;
	background: #f2f5f4;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

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

.single-analiz .analiz-study-tabs__btn {
	flex: 0 0 auto;
	margin: 0;
	padding: 9px 16px;
	border: 0;
	border-radius: 50px;
	background: transparent;
	color: #373737;
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.single-analiz .analiz-study-tabs__btn.is-active {
	background: #208d79;
	color: #fff;
}

.single-analiz .analiz-study-tabs__body {
	margin: 0;
	padding: 24px 0 0;
}

.single-analiz .analiz-study-tabs__panel {
	margin: 0;
	padding: 0;
}

.single-analiz .analiz-study-tabs__panel[hidden] {
	display: none !important;
}

.single-analiz .analiz-study-tabs__title {
	margin: 0 0 16px;
	color: #373737;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
}

.single-analiz .analiz-study-tabs__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.single-analiz .analiz-study-tabs__content > :first-child {
	margin-top: 0;
}

.single-analiz .analiz-study-tabs__content > :last-child {
	margin-bottom: 0;
}

.single-analiz .analiz-study-tabs__content p {
	margin: 0;
	color: #373737;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.4;
}

.single-analiz .analiz-study-tabs__content ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.single-analiz .analiz-study-tabs__content li {
	position: relative;
	margin: 0 0 0 20px;
	color: #373737;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.4;
}

.single-analiz .analiz-study-tabs__content li::before {
	content: "";
	position: absolute;
	left: -17px;
	top: 7px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #208d79;
}

.single-analiz .analiz-study-tabs__table {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	margin: 0;
}

.single-analiz .analiz-study-tabs__table-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(55, 55, 55, 0.1);
}

.single-analiz .analiz-study-tabs__table-row--head {
	font-weight: 700;
}

.single-analiz .analiz-study-tabs__table-cell {
	margin: 0;
	color: #373737;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.4;
}

.single-analiz .analiz-study-tabs__table-row--head .analiz-study-tabs__table-cell {
	font-weight: 700;
}

@media (max-width: 768px) {
	.single-analiz .opisanie_a h2 {
		margin-bottom: 16px;
	}

	.single-analiz .analiz-study-tabs__nav {
		padding: 6px;
		border-radius: 50px;
	}

	.single-analiz .analiz-study-tabs__body {
		padding-top: 20px;
	}

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

	.single-analiz .analiz-study-tabs__table-row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

/* --- 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;
	}
}
