/* Топ-Медикал — первый экран главной */
.tmhh {
	--x-brown: #5f2001; --x-btn: #663130; --x-text: #2b1408; --x-muted: #4f3e35; --x-soft: #5e4b40;
	--x-bg: #f6eddc;
	--x-head: "Akrobat bold", "Akrobat", "Roboto Condensed", sans-serif;
	--x-pad: clamp(20px, 5.5vw, 80px);
	--x-h: clamp(480px, 42vw, 600px);
	position: relative; overflow: hidden; height: var(--x-h); background: var(--x-bg);
	font-family: Mulish, sans-serif; color: var(--x-text); box-sizing: border-box;
}
.tmhh *, .tmhh *::before, .tmhh *::after { box-sizing: border-box; }
.tmhh a { text-decoration: none; box-shadow: none; }
.tmhh a:focus-visible, .tmhh button:focus-visible { outline: 3px solid var(--x-brown); outline-offset: 2px; }

/* Видео: по высоте баннера, прижато вправо — соты с клиникой справа от текста */
.tmhh__media { position: absolute; inset: 0; }
.tmhh__photo { display: none; }
.tmhh__stage { position: absolute; top: 0; bottom: 0; right: calc(var(--x-h) * -0.07); width: calc(var(--x-h) * 2.266); }
.tmhh__stage::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 160px; z-index: 1; background: linear-gradient(90deg, var(--x-bg), rgba(246, 237, 220, 0)); pointer-events: none; }
.tmhh__video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--x-bg); }
.tmhh .tmhh__pause { position: absolute; right: 28px; top: 24px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(43, 20, 8, .6); color: #fff; box-shadow: none; cursor: pointer; }
.tmhh .tmhh__pause[hidden] { display: none; }
.tmhh .tmhh__pause:hover { background: rgba(43, 20, 8, .8); }
.tmhh__i-play { display: none; }
.tmhh__pause[aria-pressed="true"] .tmhh__i-play { display: block; }
.tmhh__pause[aria-pressed="true"] .tmhh__i-pause { display: none; }

/* Текст */
.tmhh__text { position: relative; z-index: 1; height: 100%; width: min(640px, 48vw); padding: 0 0 0 var(--x-pad); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.tmhh__eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--x-btn); }
.tmhh .tmhh__title { margin: 0; padding: 0; font-family: var(--x-head); font-weight: 400; font-size: clamp(40px, 4vw, 60px); line-height: 1.02; letter-spacing: 0; text-transform: uppercase; color: var(--x-text); }
.tmhh .tmhh__lead { margin: 0; padding: 0; max-width: 520px; font-size: 18px; font-weight: 400; line-height: 1.6; color: var(--x-muted); }
.tmhh__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.tmhh .tmhh__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; font-size: 17px; font-weight: 800; line-height: 1; white-space: nowrap; transition: background .2s, color .2s; }
.tmhh .tmhh__btn--solid { background: var(--x-btn); color: #fff; }
.tmhh .tmhh__btn--solid:hover { background: var(--x-brown); color: #fff; }
.tmhh .tmhh__btn--line { padding: 0 22px; border: 1px solid var(--x-btn); background: rgba(255, 255, 255, .6); color: var(--x-btn); }
.tmhh .tmhh__btn--line:hover { background: #fff; color: var(--x-brown); }
.tmhh .tmhh__trust { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--x-muted); }
.tmhh .tmhh__trust li { margin: 0; padding: 0; }
.tmhh .tmhh__trust li::before { content: none; }
.tmhh .tmhh__trust a { display: inline-flex; align-items: center; gap: 6px; color: var(--x-muted); }
.tmhh .tmhh__trust a:hover { color: var(--x-btn); text-decoration: underline; text-underline-offset: 3px; }

/* Планшет и телефон: фото холла вместо видео */
@media (max-width: 1099px) {
	.tmhh { height: auto; display: flex; flex-direction: column; background: var(--x-bg); }
	.tmhh__media { position: relative; inset: auto; height: clamp(240px, 56vw, 460px); }
	.tmhh__photo { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 60%; }
	.tmhh__stage, .tmhh .tmhh__pause { display: none; }
	.tmhh__text { width: auto; height: auto; padding: 28px var(--x-pad) 36px; gap: 16px; }
}
@media (max-width: 767px) {
	.tmhh__text { padding: 22px 16px 30px; gap: 14px; }
	.tmhh__eyebrow { font-size: 11px; letter-spacing: .16em; }
	.tmhh .tmhh__title { font-size: 32px; line-height: 1.04; }
	.tmhh .tmhh__lead { font-size: 15px; line-height: 1.55; }
	.tmhh__btns { flex-direction: column; }
	.tmhh .tmhh__btn { width: 100%; min-height: 54px; font-size: 16px; }
	.tmhh .tmhh__btn--line { display: none; }
	.tmhh .tmhh__trust { gap: 6px 16px; font-size: 13px; }
}
