/* Топ-Медикал — блок «Специалисты» [tm_doctors] */
.tmhd {
	--d-brown: #5f2001; --d-btn: #663130; --d-text: #2b1408; --d-muted: #5e4b40; --d-chip: #efe6de;
	--d-pad: clamp(20px, 5.5vw, 80px);
	--d-head: "Akrobat bold", "Akrobat", "Roboto Condensed", sans-serif;
	display: flex; flex-direction: column; gap: 32px; padding: 100px var(--d-pad) 104px;
	background: #e5ded5; color: var(--d-text); font-family: Mulish, sans-serif; text-align: left;
}
.tmhd * { box-sizing: border-box; }
.tmhd [hidden] { display: none !important; }
.tmhd .tmhd__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.tmhd .tmhd__heading { display: flex; flex-direction: column; gap: 10px; }
.tmhd .tmhd__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--d-btn); }
.tmhd .tmhd__title { margin: 0; padding: 0; font-family: var(--d-head); font-weight: 400; font-size: clamp(38px, 3.8vw, 56px); line-height: 1; letter-spacing: 0; text-transform: uppercase; color: var(--d-brown); }
.tmhd .tmhd__chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tmhd .tmhd__chip {
	display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 16px; border: 1px solid var(--d-btn); border-radius: 0;
	background: transparent; color: var(--d-btn); box-shadow: none; font-family: Mulish, sans-serif; font-size: 15px; font-weight: 700; line-height: 1;
	letter-spacing: 0; text-transform: none; cursor: pointer; transition: background-color .2s, color .2s;
}
.tmhd .tmhd__chip:hover { background: var(--d-chip); color: var(--d-brown); }
.tmhd .tmhd__chip[aria-pressed="true"] { background: var(--d-btn); color: #fff; }
.tmhd .tmhd__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tmhd .tmhd__item { margin: 0; padding: 0; list-style: none; }
.tmhd .tmhd__item::before, .tmhd .tmhd__item::marker { content: none; display: none; }
.tmhd .tmhd-card { display: flex; flex-direction: column; height: 100%; background: #fbf7f3; }
.tmhd .tmhd-card__photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #cdb8ab; }
.tmhd .tmhd-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 15%; transition: transform .5s; }
.tmhd .tmhd-card:hover .tmhd-card__photo img { transform: scale(1.04); }
.tmhd .tmhd-card__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; }
.tmhd .tmhd-card__name { margin: 0; padding: 0; font-family: var(--d-head); font-weight: 400; font-size: 20px; line-height: 1.15; letter-spacing: 0; text-transform: none; }
.tmhd .tmhd-card__name a { color: var(--d-text); text-decoration: none; }
.tmhd .tmhd-card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tmhd .tmhd-card__role { font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--d-btn); }
.tmhd .tmhd-card__meta { font-size: 13px; line-height: 1.4; color: var(--d-muted); }
.tmhd .tmhd__lead { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.6; color: #4f3e35; }
.tmhd .tmhd-card__focus { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid #e5ded5; font-size: 14px; line-height: 1.5; color: #4f3e35; }
.tmhd.tmhd--light { background: #fbf7f3; }
.tmhd.tmhd--light .tmhd-card { background: #fff; border: 1px solid #efe6de; }
.tmhd .tmhd-card__actions { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tmhd .tmhd-card__book { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--d-btn); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color .2s; }
.tmhd .tmhd-card__book:hover { background: var(--d-brown); color: #fff; }
.tmhd .tmhd-card__more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--d-btn); font-size: 14px; font-weight: 700; text-decoration: none; }
.tmhd .tmhd-card__more:hover { text-decoration: underline; }
.tmhd .tmhd__all { align-self: center; display: inline-flex; align-items: center; min-height: 54px; padding: 0 32px; border: 1px solid var(--d-btn); color: var(--d-btn); font-size: 16px; font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s; }
.tmhd .tmhd__all:hover { background: var(--d-btn); color: #fff; }
.tmhd a:focus-visible, .tmhd button:focus-visible { outline: 3px solid var(--d-brown); outline-offset: 2px; }
@media (max-width: 1200px) { .tmhd .tmhd__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tmhd .tmhd__chips { justify-content: flex-start; } }
@media (max-width: 700px) {
	.tmhd { padding: 56px 20px 64px; gap: 24px; }
	.tmhd .tmhd__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tmhd .tmhd__chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100vw - 40px); scrollbar-width: none; }
	.tmhd .tmhd__chips::-webkit-scrollbar { display: none; }
	.tmhd .tmhd__chip { flex: 0 0 auto; }
	.tmhd .tmhd-card__body { padding: 12px 12px 14px; }
	.tmhd .tmhd-card__name { font-size: 17px; }
	.tmhd .tmhd-card__role { font-size: 13px; }
	.tmhd .tmhd-card__book { width: 100%; justify-content: center; }
	.tmhd .tmhd-card__more { display: none; }
	.tmhd .tmhd__all { width: 100%; justify-content: center; }
}
