/*
 * TopDent v5.12 — оформление блоков, которые добавляют mu-плагины.
 *
 * Блоки используют классы новой дизайн-системы (td-*), но страницы работают
 * на v5.12, где assets/css/topdent.css не подключается. Файл даёт таким
 * блокам законченный вид в токенах v5.12.
 */

.td-ico {
	display: block;
	flex: none;
}

/* ── 1. Блок доверия на страницах услуг ───────────────────────────────── */

.td-trust-sec {
	padding-block: clamp(48px, 6vw, 76px);
	border-top: 1px solid var(--line, #d6e5e1);
	background: linear-gradient(180deg, var(--bg, #fff) 0%, var(--mist, #eef6f4) 100%);
}

.td-trust-wrap {
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 32px;
}

.td-trust-head {
	max-width: 760px;
	margin-bottom: 30px;
}

.td-trust-eyebrow,
.td-tech-eyebrow,
.td-faq-eyebrow {
	margin: 0 0 10px;
	color: var(--brand, #0a5f55);
	font-size: var(--t13, 13px);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.td-trust-title,
.td-tech-title,
.td-faq-title {
	margin: 0 0 12px;
	color: var(--ink, #142724);
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.02em;
}

.td-trust-lead,
.td-tech-lead,
.td-faq-lead {
	max-width: 64ch;
	margin: 0;
	color: var(--muted, #4a5a57);
	font-size: clamp(16px, 1.35vw, 18px);
	line-height: 1.55;
}

.td-trust-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.td-trust-grid > li {
	min-width: 0;
}

.td-trust-card {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 100%;
	padding: 22px;
	border: 1px solid var(--line, #d6e5e1);
	border-radius: var(--r-m, 20px);
	background: #fff;
	color: var(--ink, #142724);
	text-decoration: none;
	box-shadow: 0 1px 0 rgba(0, 46, 40, .03);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.td-trust-card:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--brand, #0a5f55) 45%, var(--line, #d6e5e1));
	box-shadow: 0 16px 32px -22px rgba(0, 46, 40, .45);
}

.td-trust-ico {
	display: grid;
	flex: none;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--mist, #eef6f4);
	color: var(--brand, #0a5f55);
}

.td-trust-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.td-trust-body b {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.td-trust-body span {
	color: var(--muted, #4a5a57);
	font-size: 14px;
	line-height: 1.45;
}

.td-trust-arrow {
	margin-left: auto;
	color: var(--brand, #0a5f55);
	font-size: 20px;
	line-height: 1;
	transition: transform .2s ease;
}

.td-trust-card:hover .td-trust-arrow {
	transform: translateX(3px);
}

/* ── 2. «Технологии» в хабе блога ─────────────────────────────────────── */

.td-tech-sec {
	padding-block: clamp(48px, 6vw, 80px);
	border-top: 1px solid var(--line, #d6e5e1);
	background: var(--bg, #fff);
}

.td-tech-wrap {
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 32px;
}

.td-tech-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.td-tech-head__copy {
	max-width: 760px;
}

.td-tech-all {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: 1px solid var(--line, #d6e5e1);
	border-radius: 999px;
	background: var(--mist, #eef6f4);
	color: var(--brand, #0a5f55);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.td-tech-all:hover {
	border-color: var(--brand, #0a5f55);
	background: var(--brand, #0a5f55);
	color: #fff;
}

.td-tech-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.td-tech-grid > li {
	min-width: 0;
}

.td-tech-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 100%;
	padding: 24px 22px 20px;
	border: 1px solid var(--line, #d6e5e1);
	border-radius: var(--r-m, 20px);
	background: var(--bg, #fff);
	color: var(--ink, #142724);
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.td-tech-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: var(--brand, #0a5f55);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}

.td-tech-card:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--brand, #0a5f55) 40%, var(--line, #d6e5e1));
	box-shadow: 0 18px 34px -24px rgba(0, 46, 40, .45);
}

.td-tech-card:hover::before {
	transform: scaleX(1);
}

.td-tech-num {
	margin-bottom: 14px;
	color: var(--brand, #0a5f55);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .14em;
}

.td-tech-name {
	margin-bottom: 8px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
}

.td-tech-desc {
	margin-bottom: 20px;
	color: var(--muted, #4a5a57);
	font-size: 15px;
	line-height: 1.55;
}

.td-tech-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	color: var(--brand, #0a5f55);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.td-tech-more > span {
	transition: transform .2s ease;
}

.td-tech-card:hover .td-tech-more > span {
	transform: translateX(3px);
}

/* ── 3. FAQ ключевых страниц ──────────────────────────────────────────── */

.td-faq-sec {
	padding-block: clamp(48px, 6vw, 80px);
	border-top: 1px solid var(--line, #d6e5e1);
	background: var(--mist, #eef6f4);
}

.td-faq-wrap {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	align-items: start;
	gap: clamp(28px, 5vw, 72px);
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 32px;
}

.td-faq-intro {
	position: sticky;
	top: 96px;
}

.td-faq-cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--line, #d6e5e1);
}

.td-faq-cta > span {
	color: var(--muted, #4a5a57);
	font-size: 14px;
	line-height: 1.4;
}

.td-faq-cta > a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--brand, #0a5f55);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--brand, #0a5f55) 35%, transparent);
}

.td-faq-cta > a:hover {
	border-bottom-color: currentColor;
}

.td-faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.td-faq-item {
	padding: 0 22px;
	border: 1px solid var(--line, #d6e5e1);
	border-radius: 16px;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.td-faq-item[open] {
	border-color: color-mix(in srgb, var(--brand, #0a5f55) 35%, var(--line, #d6e5e1));
	box-shadow: 0 14px 28px -24px rgba(0, 46, 40, .5);
}

.td-faq-item > summary {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 0;
	color: var(--ink, #142724);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}

.td-faq-item > summary::-webkit-details-marker {
	display: none;
}

.td-faq-item > summary::marker {
	content: "";
}

.td-faq-q {
	flex: 1;
	min-width: 0;
}

.td-faq-mark {
	position: relative;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--mist, #eef6f4);
	transition: background .2s ease;
}

.td-faq-item > summary:hover .td-faq-mark {
	background: color-mix(in srgb, var(--brand, #0a5f55) 12%, var(--mist, #eef6f4));
}

.td-faq-mark::before,
.td-faq-mark::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	border-radius: 2px;
	background: var(--brand, #0a5f55);
}

.td-faq-mark::before {
	width: 12px;
	height: 2px;
	transform: translate(-50%, -50%);
}

.td-faq-mark::after {
	width: 2px;
	height: 12px;
	transform: translate(-50%, -50%);
	transition: transform .2s ease, opacity .2s ease;
}

.td-faq-item[open] .td-faq-mark::after {
	opacity: 0;
	transform: translate(-50%, -50%) scaleY(0);
}

.td-faq-a {
	padding: 0 0 20px;
}

.td-faq-a p {
	max-width: 72ch;
	margin: 0;
	color: var(--muted, #4a5a57);
	font-size: 15px;
	line-height: 1.65;
}

/* ── 4. Строка практики врача под H1 ──────────────────────────────────── */

.td-doc-practice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	margin: 12px 0 0;
	color: inherit;
	font-size: 14px;
	line-height: 1.5;
	opacity: .85;
}

.td-doc-practice__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
}

.td-doc-practice__item .td-ico {
	opacity: .75;
}

a.td-doc-practice__item:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ── 5. «Дальше по сайту» на служебных страницах ──────────────────────── */

.td-more-nav {
	border-top: 1px solid var(--line, #d6e5e1);
	background: var(--mist, #eef6f4);
}

.td-more-nav__wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	max-width: 1280px;
	margin-inline: auto;
	padding: 20px 32px;
}

.td-more-nav__label {
	color: var(--muted, #4a5a57);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.td-more-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.td-more-nav__list a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--line, #d6e5e1);
	border-radius: 999px;
	background: #fff;
	color: var(--brand, #0a5f55);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.td-more-nav__list a:hover {
	border-color: var(--brand, #0a5f55);
	background: var(--brand, #0a5f55);
	color: #fff;
}

/* ── 6. Карточка «Клиника в Иркутске» в статьях ───────────────────────── */

.td-article-route {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px 32px;
	margin: 36px 0 8px;
	padding: 26px 28px;
	border: 1px solid var(--line, #d6e5e1);
	border-radius: var(--r-m, 20px);
	background: linear-gradient(135deg, var(--mist, #eef6f4) 0%, #fff 100%);
}

.td-article-route__label {
	margin: 0 0 8px;
	color: var(--brand, #0a5f55);
	font-size: var(--t13, 13px);
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.td-article-route b {
	display: block;
	margin-bottom: 8px;
	color: var(--ink, #142724);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
}

.td-article-route p {
	max-width: 56ch;
	margin: 0 0 14px;
	color: var(--muted, #4a5a57);
	font-size: 15px;
	line-height: 1.55;
}

.td-article-route__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.td-article-route__facts li {
	padding: 5px 10px;
	border: 1px solid var(--line, #d6e5e1);
	border-radius: 999px;
	background: #fff;
	color: var(--muted, #4a5a57);
	font-size: 13px;
	line-height: 1.4;
}

.td-article-route__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.td-article-route__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: 1px solid var(--brand, #0a5f55);
	border-radius: 999px;
	background: var(--brand, #0a5f55);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	text-decoration: none;
	transition: background .2s ease, border-color .2s ease;
}

.td-article-route__btn:hover {
	border-color: var(--deep, #002e28);
	background: var(--deep, #002e28);
}

.td-article-route__phone {
	color: var(--brand, #0a5f55);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	text-decoration: none;
}

.td-article-route__phone:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ── 7. Карточка «Как нас найти» внутри статьи услуги ─────────────────── */

.td-route-note-sec {
	margin-block: 8px;
}

.td-route-note-sec .wrap {
	margin-inline: auto;
}

.td-route-note {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	margin: 8px 0 32px;
	padding: 24px;
	border: 1px solid var(--line, #d6e5e1);
	border-radius: var(--r-m, 20px);
	background: linear-gradient(135deg, var(--mist, #eef6f4) 0%, #fff 100%);
}

.td-route-note .label {
	margin: 0 0 6px;
	color: var(--brand, #0a5f55);
	font-size: var(--t13, 13px);
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.td-route-note h2 {
	margin: 0 0 8px;
	color: var(--ink, #142724);
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1.2;
}

.td-route-note p {
	max-width: 60ch;
	margin: 0;
	color: var(--muted, #4a5a57);
	font-size: var(--t15, 15px);
	line-height: 1.55;
}

.td-route-note__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.td-route-note__facts li {
	padding: 5px 10px;
	border: 1px solid var(--line, #d6e5e1);
	border-radius: 999px;
	background: #fff;
	color: var(--muted, #4a5a57);
	font-size: 13px;
	line-height: 1.4;
}

.td-route-note > a {
	justify-self: start;
	white-space: nowrap;
}

/* ── 8. Совместимость со старой разметкой (кэш браузера) ──────────────── */

.td-route-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 9px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px 32px;
	font-size: var(--t15, 15px);
	line-height: 1.45;
	color: var(--muted, #4a5a57);
}

.td-route-inline a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--line, #d6e5e1);
	border-radius: 999px;
	background: var(--mist, #eef6f4);
	color: var(--brand, #0a5f55);
	font-weight: 600;
	text-decoration: none;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.td-route-inline a:hover {
	border-color: var(--brand, #0a5f55);
	background: var(--brand, #0a5f55);
	color: #fff;
}

.td-service-trust,
.td-ai-links {
	max-width: none;
	margin: 0;
	padding-inline: max(20px, calc((100% - 1216px) / 2));
	padding-block: 18px;
	border-top: 1px solid var(--line, #d6e5e1);
	border-bottom: 1px solid var(--line, #d6e5e1);
	background: var(--mist, #eef6f4);
}

.td-service-trust a,
.td-ai-links a {
	background: #fff;
}

.td-blog-tech {
	padding-block: clamp(40px, 5vw, 64px);
	border-top: 1px solid var(--line, #d6e5e1);
	background: linear-gradient(180deg, #fff 0%, var(--mist, #eef6f4) 100%);
}

.td-blog-tech .td-shell {
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 32px;
}

.td-blog-tech .td-related__title {
	margin: 0 0 22px;
	color: var(--ink, #142724);
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 600;
	line-height: 1.15;
}

.td-blog-tech .td-related {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.td-blog-tech .td-related a {
	display: inline-flex;
	align-items: center;
	padding: 12px 18px;
	border: 1px solid var(--line, #d6e5e1);
	border-radius: 999px;
	background: #fff;
	color: var(--ink, #142724);
	font-size: var(--t15, 15px);
	font-weight: 500;
	line-height: 20px;
	text-decoration: none;
}

.td-blog-tech .td-related a:hover {
	border-color: var(--brand, #0a5f55);
	background: var(--brand, #0a5f55);
	color: #fff;
}

.td-doctor-practice {
	margin: 12px 0 0;
	color: inherit;
	font-size: var(--t15, 15px);
	line-height: 1.5;
	opacity: .8;
}

.td-page-faq:not(.td-faq-sec) {
	--td-canvas: var(--mist, #eef6f4);

	padding-block: clamp(48px, 6vw, 72px);
	background: var(--mist, #eef6f4);
}

.td-page-faq:not(.td-faq-sec) .td-shell {
	max-width: 900px;
	margin-inline: auto;
	padding-inline: 32px;
}

.td-page-faq:not(.td-faq-sec) h2 {
	margin: 0 0 28px;
	color: var(--ink, #142724);
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 600;
	line-height: 1.15;
}

.td-page-faq:not(.td-faq-sec) .g-faq__item {
	margin: 0 0 12px;
	padding: 0 22px;
	border: 1px solid var(--line, #d6e5e1);
	border-radius: var(--r-m, 20px);
	background: #fff;
}

.td-page-faq:not(.td-faq-sec) summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0;
	color: var(--ink, #142724);
	font-size: var(--t17, 17px);
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}

.td-page-faq:not(.td-faq-sec) summary::-webkit-details-marker {
	display: none;
}

.td-page-faq:not(.td-faq-sec) summary::marker {
	content: "";
}

.td-page-faq:not(.td-faq-sec) summary::after {
	content: "+";
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--mist, #eef6f4);
	color: var(--brand, #0a5f55);
	font-size: 20px;
	font-weight: 400;
	line-height: 28px;
	text-align: center;
}

.td-page-faq:not(.td-faq-sec) details[open] summary::after {
	content: "–";
}

.td-page-faq:not(.td-faq-sec) .g-faq__item > p {
	max-width: 80ch;
	margin: 0 0 22px;
	color: var(--muted, #4a5a57);
	font-size: var(--t15, 15px);
	line-height: 1.65;
}

/* ── 9. Адаптив ───────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
	.td-tech-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.td-trust-grid {
		grid-template-columns: 1fr;
	}

	.td-faq-wrap {
		grid-template-columns: 1fr;
	}

	.td-faq-intro {
		position: static;
	}

	.td-tech-head {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 760px) {
	.td-trust-wrap,
	.td-tech-wrap,
	.td-faq-wrap {
		padding-inline: 20px;
	}

	.td-trust-card {
		padding: 18px;
	}

	.td-tech-grid {
		grid-template-columns: 1fr;
	}

	.td-tech-card {
		padding: 20px;
	}

	.td-faq-item {
		padding: 0 18px;
	}

	.td-faq-item > summary {
		padding: 16px 0;
		font-size: 15px;
	}

	.td-more-nav__wrap {
		padding-inline: 20px;
	}

	.td-more-nav__list a {
		padding: 10px 16px;
	}

	.td-route-inline {
		padding: 16px 20px;
		gap: 8px;
	}

	.td-service-trust,
	.td-ai-links {
		padding-inline: 20px;
	}

	.td-article-route {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 22px 20px;
	}

	.td-article-route__actions {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}

	.td-route-note {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-bottom: 24px;
		padding: 20px;
	}
}
