/**
 * Карточка анализа нового образца (template-analiz-card.php).
 * Стиль — по дизайнерским страницам капельниц (single-service-kap2): заголовки Commissioner
 * обычным регистром, текст Manrope, плашки #F2F5F4 / мятные, скругления 20–24px, тёмные кнопки-пилюли.
 *
 * Сетка: слева первый экран + контент, справа «липкий» блок цены на всю высоту страницы.
 * Все селекторы изолированы префиксом .ac / .ac-*; глобальные section/h1/h2 из site.css здесь сброшены.
 */

.ac {
	--ac-green: #208d79;
	--ac-green-dark: #006465;
	--ac-mint: #e9f5f1;
	--ac-ink: #373737;
	--ac-text: #4a4d55;
	--ac-muted: #7b7f8a;
	--ac-bg: #f2f5f4;
	--ac-line: #e2e7e5;
	--ac-white: #fff;
	--ac-radius: 24px;
	--ac-radius-md: 16px;
	--ac-radius-sm: 12px;
	--ac-col-gap: 32px;
	--ac-aside: 380px;
	--ac-sticky-top: 104px;
	--ac-section-gap: 56px;

	padding: 24px 0 80px;
	color: var(--ac-text);
	font-family: var(--ff, "Manrope", sans-serif);
	font-size: 16px;
	line-height: 1.55;
}

.ac *,
.ac *::before,
.ac *::after {
	box-sizing: border-box;
}

/* Сброс глобальных правил site.css */
.ac section {
	margin: 0;
}

.ac h1,
.ac h2,
.ac h3 {
	font-family: var(--ff-sec, "Commissioner", sans-serif);
	text-transform: none;
	color: var(--ac-ink);
}

.ac ul,
.ac ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ac p {
	margin: 0;
}

.ac-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ac-ico {
	flex: none;
	width: 24px;
	height: 24px;
	color: var(--ac-green);
}

/* ---------- Сетка ---------- */

.ac-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--ac-aside);
	grid-template-areas:
		"hero    aside"
		"content aside";
	column-gap: var(--ac-col-gap);
	align-items: start;
}

.ac-hero {
	grid-area: hero;
	min-width: 0;
}

.ac-aside {
	grid-area: aside;
	align-self: stretch;
}

.ac-content {
	grid-area: content;
	min-width: 0;
}

/* ---------- Первый экран ---------- */

.ac-hero {
	padding: 28px 40px 40px;
	background: var(--ac-bg);
	border-radius: var(--ac-radius);
}

.ac-crumbs {
	margin-bottom: 28px;
	font-size: 14px;
	color: var(--ac-muted);
}

.ac-crumbs p {
	margin: 0;
}

/* Крошки — одной строкой (как во всём сайте), при нехватке места — горизонтальная прокрутка без полосы */
.ac-crumbs .yoast-breadcrumbs {
	scrollbar-width: none;
}

.ac-crumbs .yoast-breadcrumbs::-webkit-scrollbar {
	display: none;
}

/* На широких экранах — перенос между пунктами (каждый пункт целиком), без обрезки */
@media (min-width: 768px) {
	.ac-crumbs .yoast-breadcrumbs {
		overflow: visible;
		white-space: normal;
	}

	.ac-crumbs .yoast-breadcrumbs > span {
		display: block;
		min-width: 0;
	}

	.ac-crumbs .yoast-breadcrumbs > span > span {
		white-space: nowrap;
	}

	.ac-crumbs .yoast-breadcrumbs .breadcrumb_last {
		white-space: normal;
	}
}

.ac-crumbs a {
	color: var(--ac-green);
	text-decoration: none;
}

.ac-crumbs a:hover {
	color: var(--ac-green-dark);
}

.ac-crumbs .sep {
	margin: 0 6px;
	color: var(--ac-muted);
}

.ac-hero__title {
	overflow-wrap: break-word;
	hyphens: auto;
	margin: 0 0 20px;
	font-size: 44px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -.03em;
}

.ac-hero__city {
	color: var(--ac-green);
}

.ac-hero__lead {
	color: var(--ac-text);
	font-size: 17px;
	line-height: 1.6;
}

.ac-hero__lead p + p {
	margin-top: 12px;
}

.ac-hero__syn {
	margin-top: 16px !important;
	color: var(--ac-muted);
	font-size: 14px;
	line-height: 1.5;
}

.ac-hero__syn span {
	color: var(--ac-ink);
	font-weight: 600;
}

.ac-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 28px !important;
}

.ac-fact {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 14px;
	align-items: center;
	min-height: 76px;
	padding: 14px 16px;
	background: var(--ac-white);
	border-radius: var(--ac-radius-md);
}

.ac-fact .ac-ico {
	grid-row: 1 / 3;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: var(--ac-mint);
	border-radius: var(--ac-radius-sm);
}

.ac-fact__label {
	align-self: end;
	color: var(--ac-muted);
	font-size: 13px;
	line-height: 1.3;
}

.ac-fact__value {
	align-self: start;
	color: var(--ac-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

/* ---------- Блок цены ---------- */

.ac-buy {
	position: sticky;
	top: var(--ac-sticky-top);
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px;
	background: var(--ac-white);
	border: 1px solid var(--ac-line);
	border-radius: var(--ac-radius);
	box-shadow: 0 16px 40px rgba(32, 141, 121, .08);
}

.ac-buy__head {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ac-buy__label {
	color: var(--ac-muted);
	font-size: 14px;
}

.ac-buy__price {
	color: var(--ac-ink);
	font-family: var(--ff-sec, "Commissioner", sans-serif);
	font-size: 36px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -.02em;
	white-space: nowrap;
}

.ac-seg {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 4px;
	padding: 4px;
	background: var(--ac-bg);
	border-radius: 100px;
}

.ac-seg__btn {
	min-width: 0;
	min-height: 40px;
	padding: 6px 12px;
	line-height: 1.2;
	border: 0;
	border-radius: 100px;
	background: transparent;
	color: var(--ac-text);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	overflow-wrap: anywhere;
	cursor: pointer;
	transition: background .2s, color .2s, box-shadow .2s;
}

.ac-seg__btn:hover {
	color: var(--ac-ink);
}

.ac-seg__btn.is-active {
	background: var(--ac-white);
	color: var(--ac-ink);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.ac-opts {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.ac-opt {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 10px 16px 10px 46px;
	border: 1px solid var(--ac-line);
	border-radius: var(--ac-radius-sm);
	cursor: pointer;
	transition: border-color .2s, background .2s;
}

.ac-opt[hidden] {
	display: none;
}

.ac-opt:hover {
	border-color: var(--ac-green);
}

.ac-opt input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ac-opt::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 16px;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	border: 2px solid #c5ccc9;
	border-radius: 50%;
	transition: border .15s;
}

.ac-opt:has(input:checked) {
	border-color: var(--ac-green);
	background: var(--ac-mint);
}

.ac-opt:has(input:checked)::before {
	border: 6px solid var(--ac-green);
}

.ac-opt:has(input:focus-visible) {
	outline: 2px solid var(--ac-green);
	outline-offset: 2px;
}

.ac-opt__name {
	flex: 1;
	color: var(--ac-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
}

.ac-opt__price {
	color: var(--ac-ink);
	font-weight: 700;
	white-space: nowrap;
}

.ac-sum {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding-top: 16px;
	border-top: 1px dashed var(--ac-line);
	font-size: 14px;
}

.ac-sum > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.ac-sum > div[hidden],
.ac-table [hidden] {
	display: none !important;
}

/* Выпадающий список позиций (групповые карточки) */
.ac-select {
	position: relative;
	display: block;
}

.ac-select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid var(--ac-ink);
	border-bottom: 2px solid var(--ac-ink);
	transform: rotate(45deg);
	pointer-events: none;
}

.ac-select select {
	width: 100%;
	min-height: 52px;
	padding: 12px 44px 12px 16px;
	border: 1px solid var(--ac-line);
	border-radius: var(--ac-radius-sm);
	background: var(--ac-white);
	color: var(--ac-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	appearance: none;
	cursor: pointer;
}

.ac-select select:focus-visible {
	outline: 2px solid var(--ac-green);
	outline-offset: 2px;
}

/* Состав комплекса в блоке цены */
.ac-complex {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
}

.ac-complex li {
	position: relative;
	padding-left: 26px;
	color: var(--ac-ink);
	line-height: 1.35;
}

.ac-complex li::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 0;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23208d79' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Поиск по длинной таблице */
.ac-filter {
	display: block;
	margin-bottom: 12px;
}

.ac-filter input {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--ac-line);
	border-radius: 100px;
	background: var(--ac-bg);
	color: var(--ac-ink);
	font: inherit;
	font-size: 15px;
}

.ac-filter input:focus {
	border-color: var(--ac-green);
	outline: none;
	background: var(--ac-white);
}

.ac-sum dt {
	color: var(--ac-muted);
}

.ac-sum dd {
	margin: 0;
	color: var(--ac-ink);
	font-weight: 600;
	white-space: nowrap;
}

.ac-sum .ac-sum__total {
	padding-top: 4px;
	font-size: 17px;
}

.ac-sum__total dt,
.ac-sum__total dd {
	color: var(--ac-ink);
	font-weight: 700;
}

.ac-buy__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ac-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: 100px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.02em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}

.ac-btn--primary {
	background: var(--ac-ink);
	color: var(--ac-white);
}

.ac-btn--primary:hover,
.ac-btn--primary:focus-visible {
	background: var(--ac-green);
	color: var(--ac-white);
}

.ac-btn--ghost {
	border-color: #cbcdd6;
	background: transparent;
	color: var(--ac-ink);
}

.ac-btn--ghost:hover,
.ac-btn--ghost:focus-visible {
	border-color: var(--ac-ink);
	background: var(--ac-bg);
	color: var(--ac-ink);
}

.ac-buy__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	font-size: 13px;
}

.ac-buy__code {
	color: var(--ac-muted);
	font-size: 13px;
}

.ac-buy__code span {
	color: var(--ac-ink);
	font-weight: 600;
}

.ac-buy__clinics {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ac-green);
	font-weight: 600;
	text-decoration: none;
}

.ac-buy__clinics:hover {
	color: var(--ac-green-dark);
}

.ac-buy__clinics .ac-ico {
	width: 18px;
	height: 18px;
}

/* ---------- Содержание ---------- */

.ac-toc {
	margin-top: 32px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.ac-toc::-webkit-scrollbar {
	display: none;
}

.ac-toc ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ac-toc a {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 18px;
	border: 1px solid var(--ac-line);
	border-radius: 100px;
	color: var(--ac-ink);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	transition: border-color .2s, color .2s;
}

.ac-toc a:hover {
	border-color: var(--ac-green);
	color: var(--ac-green);
}

/* ---------- Секции ---------- */

.ac-section {
	padding-top: var(--ac-section-gap);
	scroll-margin-top: var(--ac-sticky-top);
}

.ac-h2 {
	margin: 0 0 20px;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.01em;
}

.ac-h2::first-letter {
	text-transform: uppercase;
}

.ac-h3 {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.ac-prose p + p {
	margin-top: 14px;
}

.ac-prose strong {
	color: var(--ac-ink);
}

.ac-prose a,
.ac-faq__a a,
.ac-chips a {
	color: var(--ac-green);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ac-panel {
	margin-top: 24px;
	padding: 24px 28px;
	background: var(--ac-bg);
	border-radius: 20px;
}

.ac-panel--mint {
	margin-top: 0;
	background: var(--ac-mint);
}

/* Чипсы показателей */
.ac-chips ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ac-chips li {
	padding: 8px 14px;
	background: var(--ac-white);
	border-radius: 100px;
	color: var(--ac-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

.ac-chips p {
	margin-top: 14px;
	color: var(--ac-muted);
	font-size: 14px;
}

/* Показания — мятная плашка с галочками */
.ac-checklist ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 28px;
}

.ac-checklist li {
	position: relative;
	padding-left: 34px;
	color: var(--ac-ink);
	font-size: 15px;
	line-height: 1.45;
}

.ac-checklist li::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 22px;
	height: 22px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23208d79' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.4 12.3 2.4 2.4 4.8-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Подготовка — нумерованные шаги */
.ac-steps ol {
	display: grid;
	gap: 16px;
	counter-reset: ac-step;
}

.ac-steps li {
	position: relative;
	min-height: 32px;
	padding: 4px 0 0 48px;
	color: var(--ac-ink);
	font-size: 15px;
	line-height: 1.5;
	counter-increment: ac-step;
}

.ac-steps li::before {
	content: counter(ac-step);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	background: var(--ac-bg);
	border-radius: 50%;
	color: var(--ac-ink);
	font-size: 14px;
	font-weight: 700;
}

/* Таблицы */
.ac-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--ac-line);
	border-radius: var(--ac-radius-md);
	-webkit-overflow-scrolling: touch;
}

.ac-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.ac-table th,
.ac-table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--ac-line);
	text-align: left;
	vertical-align: middle;
}

.ac-table thead th {
	background: var(--ac-bg);
	color: var(--ac-muted);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.ac-table tbody th {
	color: var(--ac-ink);
	font-weight: 600;
}

.ac-table tbody:last-child tr:last-child > * {
	border-bottom: 0;
}

.ac-table tfoot th,
.ac-table tfoot td {
	border-top: 1px solid var(--ac-line);
	border-bottom: 0;
	background: var(--ac-bg);
	color: var(--ac-ink);
	font-weight: 700;
}

.ac-table__group th {
	padding-top: 12px;
	padding-bottom: 12px;
	background: #fafbfb;
	color: var(--ac-muted) !important;
	font-size: 13px;
}

.ac-table__group .ac-ico {
	width: 16px;
	height: 16px;
	margin-right: 6px;
	vertical-align: -3px;
}

.ac-table__code {
	color: var(--ac-muted);
	font-size: 13px;
	white-space: nowrap;
}

.ac-table__period {
	white-space: nowrap;
}

.ac-table__num {
	text-align: right !important;
}

.ac-table__price {
	color: var(--ac-ink);
	font-weight: 700;
	white-space: nowrap;
}

.ac-table__action {
	width: 1%;
	padding-left: 0 !important;
	text-align: right !important;
}

.ac-table__center {
	text-align: center !important;
}

.ac-table--norms td {
	white-space: nowrap;
}

.ac-link-btn {
	padding: 8px 16px;
	border: 1px solid var(--ac-line);
	border-radius: 100px;
	background: var(--ac-white);
	color: var(--ac-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color .2s, color .2s;
}

.ac-link-btn:hover {
	border-color: var(--ac-green);
	color: var(--ac-green);
}

.ac-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 14px !important;
	color: var(--ac-muted);
	font-size: 14px;
}

.ac-note .ac-ico {
	width: 20px;
	height: 20px;
}

/* Расшифровка — карточки */
.ac-prose--cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.ac-prose--cards > section {
	padding: 22px 24px;
	background: var(--ac-bg);
	border-radius: var(--ac-radius-md);
}

.ac-prose--cards h3 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.ac-prose--cards > p {
	grid-column: 1 / -1;
	margin-top: 4px;
}

/* С этим анализом сдают */
.ac-related {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.ac-related__card {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr) 20px;
	grid-template-areas:
		"ico name  arrow"
		"ico price arrow";
	align-items: center;
	column-gap: 14px;
	height: 100%;
	padding: 18px 20px;
	background: var(--ac-bg);
	border-radius: var(--ac-radius-md);
	color: var(--ac-ink);
	text-decoration: none;
	transition: background .2s;
}

.ac-related__card:hover {
	background: var(--ac-mint);
}

.ac-related__ico {
	grid-area: ico;
}

.ac-related__name {
	grid-area: name;
	font-weight: 600;
	line-height: 1.3;
}

.ac-related__price {
	grid-area: price;
	color: var(--ac-muted);
	font-size: 14px;
}

.ac-related__arrow {
	grid-area: arrow;
	width: 20px;
	height: 20px;
	color: var(--ac-ink);
	transition: transform .2s;
}

.ac-related__card:hover .ac-related__arrow {
	transform: translateX(3px);
}

/* FAQ */
.ac-faq {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ac-faq__item {
	background: var(--ac-bg);
	border-radius: var(--ac-radius-md);
}

.ac-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	color: var(--ac-ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}

.ac-faq__q::-webkit-details-marker {
	display: none;
}

.ac-faq__q .ac-ico {
	color: var(--ac-ink);
	transition: transform .25s;
}

.ac-faq__item[open] .ac-faq__q .ac-ico {
	transform: rotate(45deg);
}

.ac-faq__a {
	padding: 0 24px 20px;
}

.ac-faq__a p + p {
	margin-top: 10px;
}

.ac-disclaimer {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: var(--ac-section-gap) !important;
	padding: 18px 20px;
	border: 1px solid var(--ac-line);
	border-radius: var(--ac-radius-md);
	color: var(--ac-muted);
	font-size: 13px;
}

.ac-disclaimer .ac-ico {
	width: 20px;
	height: 20px;
}

/* Нижняя панель на мобильных */
.ac-mbar {
	display: none;
}

/* ---------- Адаптив ---------- */

/* Две колонки — только когда контейнер сайта достаточно широкий (от 1200px). */
@media (max-width: 1199.98px) {
	.ac {
		--ac-sticky-top: 80px;
		--ac-section-gap: 48px;

		padding-bottom: 96px;
	}

	.ac-layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"hero"
			"aside"
			"content";
		row-gap: 16px;
	}

	.ac-buy {
		position: static;
	}

	.ac-toc {
		margin-top: 16px;
	}

	.ac-toc ul {
		flex-wrap: nowrap;
	}

	.ac-mbar:not([hidden]) {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 90;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		background: var(--ac-white);
		box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
	}

	.ac-mbar__price {
		display: flex;
		flex-direction: column;
		line-height: 1.2;
	}

	.ac-mbar__price span {
		color: var(--ac-muted);
		font-size: 12px;
	}

	.ac-mbar__price b {
		color: var(--ac-ink);
		font-size: 20px;
		white-space: nowrap;
	}

	.ac-mbar .ac-btn {
		min-height: 48px;
		padding: 0 28px;
	}
}

@media (max-width: 767.98px) {
	.ac {
		--ac-section-gap: 40px;

		padding-top: 12px;
		font-size: 15px;
	}

	.ac-hero {
		padding: 20px 20px 24px;
		border-radius: 20px;
	}

	.ac-crumbs {
		margin-bottom: 20px;
		font-size: 13px;
	}

	.ac-hero__title {
		margin-bottom: 16px;
		font-size: 30px;
	}

	.ac-hero__lead {
		font-size: 15px;
	}

	.ac-facts {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		margin-top: 20px !important;
	}

	.ac-fact {
		min-height: 0;
	}

	.ac-buy {
		padding: 20px;
		border-radius: 20px;
	}

	.ac-buy__price {
		font-size: 32px;
	}

	.ac-h2 {
		margin-bottom: 16px;
		font-size: 24px;
	}

	.ac-panel {
		padding: 20px;
	}

	.ac-checklist ul,
	.ac-prose--cards,
	.ac-related {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Таблица вариантов → карточки */
	.ac-table-wrap:has(.ac-table--variants) {
		overflow: visible;
		border: 0;
		border-radius: 0;
	}

	.ac-table--variants thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.ac-table--variants,
	.ac-table--variants tbody,
	.ac-table--variants tr,
	.ac-table--variants th,
	.ac-table--variants td {
		display: block;
		width: auto;
	}

	.ac-table--variants tbody + tbody {
		margin-top: 16px;
	}

	.ac-table--variants tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"name   name"
			"meta   meta"
			"price  action";
		gap: 6px 12px;
		margin-bottom: 8px;
		padding: 16px;
		border: 1px solid var(--ac-line);
		border-radius: var(--ac-radius-md);
	}

	.ac-table--variants th,
	.ac-table--variants td {
		padding: 0 !important;
		border: 0 !important;
		text-align: left !important;
	}

	.ac-table--variants .ac-table__group {
		display: block;
		margin: 0 0 8px;
		padding: 0;
		border: 0;
	}

	.ac-table--variants .ac-table__group th {
		background: none;
		font-size: 14px;
	}

	.ac-table__name {
		grid-area: name;
		font-size: 15px;
	}

	.ac-table--variants .ac-table__code,
	.ac-table--variants .ac-table__period {
		grid-area: meta;
		font-size: 13px;
		color: var(--ac-muted);
	}

	.ac-table--variants .ac-table__code {
		justify-self: start;
	}

	.ac-table--variants .ac-table__period {
		justify-self: end;
	}

	.ac-table--variants .ac-table__price {
		grid-area: price;
		align-self: center;
		font-size: 18px;
	}

	.ac-table--variants .ac-table__action {
		grid-area: action;
		width: auto;
	}

	.ac-table--norms th,
	.ac-table--norms td {
		padding: 12px;
		font-size: 14px;
	}

	.ac-faq__q {
		padding: 16px 18px;
		font-size: 15px;
	}

	.ac-faq__a {
		padding: 0 18px 16px;
	}
}

@media (max-width: 767.98px) {
	.ac-table--variants tfoot tr {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		margin-top: 8px;
		background: var(--ac-bg);
	}
}

/* =====================================================================
 * Каталог анализов /analizy/ и категории (те же токены и компоненты)
 * ===================================================================== */

.acat-hero {
	padding: 28px 40px 36px;
	background: var(--ac-bg);
	border-radius: var(--ac-radius);
}

.acat-hero .ac-hero__title {
	margin-bottom: 12px;
}

.acat-hero__lead {
	max-width: 760px;
	font-size: 17px;
	line-height: 1.6;
}

.acat-search {
	position: relative;
	display: flex;
	gap: 8px;
	max-width: 880px;
	margin-top: 24px;
	padding: 6px;
	background: var(--ac-white);
	border: 1px solid var(--ac-line);
	border-radius: 100px;
	box-shadow: 0 12px 32px rgba(32, 141, 121, .08);
}

.acat-search:focus-within {
	border-color: var(--ac-green);
}

.acat-search__field {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding-left: 16px;
}

.acat-search__field .ac-ico {
	color: var(--ac-muted);
}

.acat-search__field input {
	flex: 1;
	min-width: 0;
	height: 48px;
	border: 0;
	outline: none;
	background: transparent;
	color: var(--ac-ink);
	font: inherit;
	font-size: 16px;
}

.acat-search__field input::-webkit-search-cancel-button {
	cursor: pointer;
}

.acat-search__btn {
	min-height: 48px;
	padding: 0 32px;
}

.acat-suggest {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	z-index: 30;
	max-height: 420px;
	overflow-y: auto;
	padding: 8px;
	background: var(--ac-white);
	border: 1px solid var(--ac-line);
	border-radius: 20px;
	box-shadow: 0 20px 48px rgba(0, 0, 0, .12);
}

.acat-suggest__link {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 14px;
	border-radius: 12px;
	color: var(--ac-ink);
	text-decoration: none;
}

.acat-suggest__link:hover,
.acat-suggest__link.is-active {
	background: var(--ac-mint);
}

.acat-suggest__title {
	font-weight: 600;
	line-height: 1.35;
}

.acat-suggest__hint {
	overflow: hidden;
	color: var(--ac-muted);
	font-size: 13px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.acat-suggest__empty {
	padding: 12px 14px;
	color: var(--ac-muted);
	font-size: 14px;
}

.acat-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	font-size: 14px;
}

.acat-chips__label {
	color: var(--ac-muted);
}

.acat-chips a {
	padding: 6px 14px;
	background: var(--ac-white);
	border-radius: 100px;
	color: var(--ac-ink);
	font-weight: 500;
	text-decoration: none;
	transition: color .2s, background .2s;
}

.acat-chips a:hover {
	background: var(--ac-mint);
	color: var(--ac-green-dark);
}

.acat-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 40px;
	margin-top: 28px !important;
}

.acat-stats li {
	display: flex;
	flex-direction: column;
}

.acat-stats b {
	color: var(--ac-ink);
	font-family: var(--ff-sec, "Commissioner", sans-serif);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.15;
}

.acat-stats span {
	color: var(--ac-muted);
	font-size: 14px;
}

/* Вкладки категорий */
.acat-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 20px;
	padding: 4px;
	overflow-x: auto;
	background: var(--ac-bg);
	border-radius: 100px;
	scrollbar-width: none;
}

.acat-tabs::-webkit-scrollbar {
	display: none;
}

.acat-tabs__btn {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 100px;
	background: transparent;
	color: var(--ac-text);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.acat-tabs__btn .ac-ico {
	width: 20px;
	height: 20px;
}

.acat-tabs__btn:hover {
	color: var(--ac-ink);
}

.acat-tabs__btn.is-active {
	background: var(--ac-green);
	color: var(--ac-white);
}

.acat-tabs__btn.is-active .ac-ico {
	color: var(--ac-white);
}

/* Плитки категорий */
.acat-cats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.acat-cat {
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 12px;
	height: 100%;
	min-height: 150px;
	padding: 20px;
	background: var(--ac-bg);
	border-radius: 20px;
	color: var(--ac-ink);
	text-decoration: none;
	transition: background .2s, transform .2s;
}

.acat-cat:hover {
	background: var(--ac-mint);
}

.acat-cat__ico {
	width: 44px;
	height: 44px;
	padding: 10px;
	background: var(--ac-white);
	border-radius: 12px;
}

.acat-cat__name {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.acat-cat__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--ac-muted);
	font-size: 14px;
}

.acat-cat__foot .ac-ico {
	width: 20px;
	height: 20px;
	color: var(--ac-ink);
	transition: transform .2s;
}

.acat-cat:hover .acat-cat__foot .ac-ico {
	transform: translateX(3px);
}

/* Карточки анализов в сетке */
.acat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.acat-item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 20px;
	background: var(--ac-white);
	border: 1px solid var(--ac-line);
	border-radius: 20px;
	color: var(--ac-ink);
	text-decoration: none;
	transition: border-color .2s, box-shadow .2s;
}

.acat-item:hover {
	border-color: var(--ac-green);
	box-shadow: 0 12px 32px rgba(32, 141, 121, .08);
}

.acat-item__name {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

.acat-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--ac-muted);
	font-size: 13px;
}

.acat-item__period {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.acat-item__period .ac-ico {
	width: 16px;
	height: 16px;
	color: var(--ac-muted);
}

.acat-item__top {
	display: flex;
	align-items: center;
	gap: 8px;
}

.acat-item__ico {
	width: 32px;
	height: 32px;
	padding: 7px;
	background: var(--ac-mint);
	border-radius: 10px;
}

.acat-item__material {
	color: var(--ac-muted);
	font-size: 13px;
	font-weight: 500;
}

.acat-item__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 8px;
}

.acat-item__price {
	font-family: var(--ff-sec, "Commissioner", sans-serif);
	font-size: 20px;
	font-weight: 600;
	white-space: nowrap;
}

.acat-item__arrow {
	width: 20px;
	height: 20px;
	color: var(--ac-ink);
	transition: transform .2s;
}

.acat-item:hover .acat-item__arrow {
	transform: translateX(3px);
}

.acat-empty {
	color: var(--ac-muted);
}

.acat-empty a {
	color: var(--ac-green);
}

.acat-back {
	margin-top: 24px;
}

@media (max-width: 1199.98px) {
	.acat-cats,
	.acat-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991.98px) {
	.acat-hero {
		padding: 24px 28px 28px;
	}

	.acat-cats,
	.acat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.acat-hero {
		padding: 20px 20px 24px;
		border-radius: 20px;
	}

	.acat-hero__lead {
		font-size: 15px;
	}

	.acat-search {
		flex-direction: column;
		padding: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	.acat-search__field {
		padding: 0 16px;
		background: var(--ac-white);
		border: 1px solid var(--ac-line);
		border-radius: 100px;
	}

	.acat-search:focus-within {
		border-color: transparent;
	}

	.acat-search:focus-within .acat-search__field {
		border-color: var(--ac-green);
	}

	.acat-search__btn {
		width: 100%;
	}

	.acat-suggest {
		top: 58px;
	}

	.acat-stats {
		gap: 12px 24px;
	}

	.acat-stats b {
		font-size: 22px;
	}

	.acat-tabs {
		margin-right: -16px;
		margin-left: -16px;
		padding: 4px 16px;
		background: transparent;
		border-radius: 0;
	}

	.acat-tabs__btn {
		height: 40px;
		padding: 0 16px;
		background: var(--ac-bg);
		font-size: 14px;
	}

	.acat-cats {
		gap: 8px;
	}

	.acat-cat {
		min-height: 0;
		padding: 16px;
		border-radius: 16px;
	}

	.acat-cat__ico {
		width: 40px;
		height: 40px;
		padding: 9px;
	}

	.acat-cat__name {
		font-size: 15px;
	}

	.acat-cat__foot {
		font-size: 13px;
	}

	.acat-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.acat-item {
		padding: 16px;
		border-radius: 16px;
	}
}

@media (max-width: 767.98px) {
	.acat-chips {
		flex-wrap: nowrap;
		margin-right: -20px;
		padding-right: 20px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.acat-chips::-webkit-scrollbar {
		display: none;
	}

	.acat-chips a,
	.acat-chips__label {
		flex: none;
		white-space: nowrap;
	}
}

/* Страница категории */
.acat-hero__head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
}

.acat-hero__head .ac-hero__title {
	margin: 0;
}

.acat-hero__ico {
	width: 56px;
	height: 56px;
	padding: 13px;
	background: var(--ac-white);
	border-radius: 16px;
}

.acat-hero__lead p + p {
	margin-top: 10px;
}

.acat-subcats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.acat-subcats a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px 0 12px;
	background: var(--ac-white);
	border-radius: 100px;
	color: var(--ac-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s;
}

.acat-subcats a:hover {
	background: var(--ac-mint);
}

.acat-subcats .ac-ico {
	width: 20px;
	height: 20px;
}

.acat-grid li[hidden] {
	display: none;
}

.acat-more {
	margin-top: 20px !important;
	text-align: center;
}

.acat-more .ac-btn {
	gap: 6px;
}

.acat-seo .ac-prose {
	max-width: 880px;
}

@media (max-width: 767.98px) {
	.acat-hero__ico {
		width: 44px;
		height: 44px;
		padding: 10px;
		border-radius: 12px;
	}

	.acat-subcats {
		flex-wrap: nowrap;
		margin-right: -20px;
		padding-right: 20px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.acat-subcats a {
		flex: none;
		white-space: nowrap;
	}

	.acat-more .ac-btn {
		width: 100%;
	}
}


/* Каталог и категории: дальше идут блоки сайта со своими отступами */
.ac.acat {
	padding-bottom: 0;
}

.ac-crumbs .yoast-breadcrumbs > span > span:first-of-type > a {
	vertical-align: bottom;
}

/* Текстовые блоки (подвал категории, описания): подзаголовки, списки, отступы */
.ac-prose ul {
	display: grid;
	gap: 6px;
	margin: 12px 0;
}

.ac-prose li {
	position: relative;
	padding-left: 20px;
}

.ac-prose li::before {
	content: "";
	position: absolute;
	top: .65em;
	left: 4px;
	width: 6px;
	height: 6px;
	background: var(--ac-green);
	border-radius: 50%;
}

.ac-prose > * + p,
.ac-prose > * + ul {
	margin-top: 12px;
}

.acat-seo .ac-prose {
	max-width: none;
	padding: 32px 40px;
	background: var(--ac-bg);
	border-radius: var(--ac-radius);
}

.acat-seo .ac-prose h3 {
	margin: 28px 0 10px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}

.acat-seo .ac-prose h3:first-child {
	margin-top: 0;
}

.acat-seo .ac-prose strong {
	font-weight: 600;
}

@media (max-width: 767.98px) {
	.acat-seo .ac-prose {
		padding: 20px;
		border-radius: 20px;
	}

	.acat-seo .ac-prose h3 {
		font-size: 18px;
	}
}
