/* Топ-Медикал — блок «Запись на приём» [tm_booking] */
.tmhb, .tmhb-modal, .tmhb-bar {
	--b-brown: #5f2001; --b-btn: #663130; --b-text: #2b1408; --b-muted: #4f3e35;
	--b-light: #fbf7f3; --b-chip: #efe6de; --b-cream: #e5ded5; --b-soft: #f3ece6;
	--b-pad: clamp(20px, 5.5vw, 80px);
	--b-head: "Akrobat bold", "Akrobat", "Roboto Condensed", sans-serif;
	font-family: Mulish, sans-serif;
}
.tmhb *, .tmhb-modal *, .tmhb-bar * { box-sizing: border-box; }

.tmhb { display: flex; flex-direction: column; gap: 40px; padding: 96px var(--b-pad) 100px; background: var(--b-brown); color: #fff; text-align: left; }
.tmhb .tmhb__head { display: flex; flex-direction: column; gap: 14px; max-width: 780px; }
.tmhb .tmhb__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--b-cream); }
.tmhb .tmhb__title { margin: 0; padding: 0; font-family: var(--b-head); font-weight: 400; font-size: clamp(36px, 3.6vw, 56px); line-height: 1; letter-spacing: 0; text-transform: uppercase; color: #fff; }
.tmhb .tmhb__lead { margin: 0; font-size: 17px; line-height: 1.6; color: #f1e9e2; }
.tmhb .tmhb__notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; background: #fff; color: var(--b-brown); font-weight: 700; font-size: 16px; line-height: 1.45; }
.tmhb .tmhb__notice svg { flex: 0 0 auto; margin-top: 2px; }

.tmhb .tmhb__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tmhb .tmhb-way { display: flex; flex-direction: column; background: var(--b-light); color: var(--b-text); transition: transform .2s; }
.tmhb .tmhb-way:hover { transform: translateY(-3px); }
.tmhb .tmhb-way__media { position: relative; height: 260px; overflow: hidden; background: var(--b-soft); border-bottom: 1px solid var(--b-cream); }
.tmhb .tmhb-browser { position: absolute; left: 24px; right: 24px; top: 24px; bottom: -40px; background: #fff; box-shadow: 0 10px 30px rgba(43, 20, 8, .18); overflow: hidden; }
.tmhb .tmhb-browser__bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: var(--b-chip); font-size: 11px; color: #5e4b40; }
.tmhb .tmhb-browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: #cdb8ab; }
.tmhb .tmhb-browser__bar span { margin-left: 8px; }
.tmhb .tmhb-browser img { display: block; width: 100%; height: auto; max-width: none; }
.tmhb .tmhb-way__media--chat { display: flex; justify-content: center; }
.tmhb .tmhb-way__media--chat img { position: absolute; top: 24px; width: 240px; height: auto; max-width: none; box-shadow: 0 10px 30px rgba(43, 20, 8, .18); }
.tmhb .tmhb-way__media--phone { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 0 32px; }
.tmhb .tmhb-way__phone-ico { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; background: var(--b-btn); color: #fff; }
.tmhb .tmhb-way__phone { font-family: var(--b-head); font-size: clamp(30px, 2.6vw, 40px); line-height: 1; color: var(--b-brown); text-decoration: none; white-space: nowrap; }
.tmhb .tmhb-way__phone-note { font-size: 14px; color: var(--b-muted); }
.tmhb .tmhb-way__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 28px; }
.tmhb .tmhb-way__tag { align-self: flex-start; padding: 3px 8px; background: var(--b-chip); color: var(--b-btn); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.tmhb .tmhb-way__tag--dark { background: var(--b-btn); color: #fff; }
.tmhb .tmhb-way__title { margin: 0; padding: 0; font-family: var(--b-head); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--b-text); text-transform: none; letter-spacing: 0; }
.tmhb .tmhb-way__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--b-muted); }

.tmhb .tmhb-btn, .tmhb-bar .tmhb-bar__main, .tmhb-bar .tmhb-bar__ico {
	display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; margin: 0; padding: 0 20px;
	border-radius: 0; box-shadow: none; font-family: Mulish, sans-serif; font-size: 16px; font-weight: 800; line-height: 1;
	letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s;
}
.tmhb .tmhb-btn { margin-top: auto; }
.tmhb .tmhb-btn--solid { background: var(--b-btn); color: #fff; border: 1px solid var(--b-btn); }
.tmhb .tmhb-btn--solid:hover, .tmhb .tmhb-btn--solid:focus-visible { background: var(--b-brown); color: #fff; }
.tmhb .tmhb-btn--line { background: transparent; color: var(--b-btn); border: 1px solid var(--b-btn); }
.tmhb .tmhb-btn--line:hover, .tmhb .tmhb-btn--line:focus-visible { background: var(--b-btn); color: #fff; }
.tmhb a:focus-visible, .tmhb button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 1100px) {
	.tmhb .tmhb__grid { grid-template-columns: minmax(0, 1fr); }
	.tmhb .tmhb-way__media { height: 220px; }
}
@media (max-width: 560px) {
	.tmhb { padding: 56px 20px 64px; gap: 28px; }
	.tmhb .tmhb-way__body { padding: 22px 20px 24px; }
	.tmhb .tmhb-way__media--phone { padding: 0 20px; }
}

/* Окно онлайн-записи */
html.tmhb-lock, html.tmhb-lock body { overflow: hidden; }
.tmhb-modal[hidden] { display: none !important; }
.tmhb-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; }
.tmhb-modal .tmhb-modal__backdrop { position: absolute; inset: 0; background: rgba(43, 20, 8, .6); }
.tmhb-modal .tmhb-modal__box { position: relative; display: flex; flex-direction: column; width: min(1040px, calc(100vw - 48px)); height: min(860px, calc(100vh - 48px)); background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.tmhb-modal .tmhb-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 0 8px 0 20px; background: var(--b-brown); color: #fff; }
.tmhb-modal .tmhb-modal__title { font-family: var(--b-head); font-size: 22px; text-transform: uppercase; }
.tmhb-modal .tmhb-modal__close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fff; cursor: pointer; box-shadow: none; }
.tmhb-modal .tmhb-modal__close:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.tmhb-modal .tmhb-modal__body { position: relative; flex: 1 1 auto; background: #f9f1ec; }
.tmhb-modal .tmhb-modal__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .2s; }
.tmhb-modal.is-loaded .tmhb-modal__frame { opacity: 1; }
.tmhb-modal .tmhb-modal__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--b-muted); font-size: 16px; }
.tmhb-modal.is-loaded .tmhb-modal__loading { display: none; }
@media (max-width: 700px) {
	.tmhb-modal .tmhb-modal__box { width: 100vw; height: 100%; height: 100dvh; }
}

/* Панель на телефоне */
.tmhb-bar { display: none; }
@media (max-width: 767px) {
	.tmhb-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 18px rgba(43, 20, 8, .12); }
	.tmhb-bar .tmhb-bar__main { flex: 1 1 auto; min-height: 52px; background: var(--b-btn); color: #fff; border: 1px solid var(--b-btn); }
	.tmhb-bar .tmhb-bar__ico { flex: 0 0 52px; min-height: 52px; padding: 0; background: transparent; color: var(--b-btn); border: 1px solid var(--b-btn); }
	body.tmhb-has-bar { padding-bottom: 78px; }
}
