@font-face {
	font-family: "Lora";
	src: url("../fonts/Lora-VariableFont_wght.woff2") format("woff2");
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
}

@font-face {
	font-family: "Lora";
	src: url("../fonts/Lora-Italic-VariableFont_wght.woff2") format("woff2");
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
}

@font-face {
	font-family: "Manrope";
	src: url("../fonts/Manrope-VariableFont_wght.woff2") format("woff2");
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
}

:root {
	--teomed-canvas: #f7efe8;
	--teomed-surface: #fffdfc;
	--teomed-ink: #302b25;
	--teomed-heading: #053487;
	--teomed-action: #015b4b;
	--teomed-action-hover: #06483e;
	--teomed-accent: #d1936e;
	--teomed-border: #e3d4c8;
	--teomed-muted: #746556;
	--teomed-shell: 1360px;
	--teomed-copy: 760px;
	--teomed-gutter: clamp(20px, 4vw, 64px);
	--teomed-section: clamp(56px, 7.8vw, 112px);
	--teomed-focus: 2px solid var(--teomed-heading);
}

html {
	scroll-behavior: smooth;
}

body.teomed-site {
	margin: 0;
	background: var(--teomed-canvas);
	color: var(--teomed-ink);
	font-family: "Manrope", Arial, sans-serif;
	font-size: clamp(16px, 1.2vw, 18px);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

.teomed-site img {
	display: block;
	max-width: 100%;
	height: auto;
}

.teomed-site h1,
.teomed-site h2,
.teomed-site h3,
.teomed-site h4 {
	margin-block: 0 0.45em;
	color: var(--teomed-heading);
	font-family: "Lora", Georgia, serif;
	font-weight: 500;
	letter-spacing: -0.025em;
}

.teomed-site h1 {
	font-size: clamp(42px, 6.2vw, 76px);
	line-height: 1.01;
	overflow-wrap: break-word;
}

.teomed-site h2 {
	font-size: clamp(34px, 4.4vw, 56px);
	line-height: 1.08;
}

.teomed-site h3 {
	font-size: clamp(24px, 2.4vw, 34px);
	line-height: 1.14;
}

.teomed-site p {
	margin-block: 0 1em;
}

.teomed-site a {
	color: var(--teomed-action);
	text-underline-offset: 0.2em;
}

.teomed-site :where(a, button, input, summary):focus-visible {
	outline: var(--teomed-focus);
	outline-offset: 3px;
}

.teomed-shell {
	width: min(100% - (2 * var(--teomed-gutter)), var(--teomed-shell));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.teomed-skip-link:focus {
	z-index: 100000;
	top: 10px;
	left: 10px;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	background: var(--teomed-surface);
	color: var(--teomed-heading);
}

.teomed-header {
	position: relative;
	z-index: 50;
	background: var(--teomed-surface);
	border-bottom: 1px solid var(--teomed-border);
}

.teomed-header__inner {
	display: grid;
	grid-template-columns: 112px 1fr;
	align-items: center;
	min-height: 116px;
	gap: clamp(30px, 5vw, 76px);
}

.teomed-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 92px;
	min-height: 80px;
}

.teomed-logo-image,
.custom-logo {
	width: auto;
	max-width: 92px;
	height: 88px;
	object-fit: contain;
}

.teomed-nav-panel,
.teomed-header__actions,
.teomed-menu,
.teomed-languages ul {
	display: flex;
	align-items: center;
}

.teomed-nav-panel {
	justify-content: space-between;
	gap: 32px;
}

.teomed-menu,
.teomed-languages ul,
.teomed-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.teomed-menu {
	gap: clamp(20px, 2.8vw, 42px);
}

.teomed-menu a,
.teomed-languages a {
	color: var(--teomed-ink);
	font-size: 15px;
	font-weight: 650;
	text-decoration: none;
}

.teomed-menu .current-menu-item > a,
.teomed-menu a:hover,
.teomed-languages a[aria-current="page"] {
	color: var(--teomed-heading);
	text-decoration: underline;
	text-decoration-color: var(--teomed-accent);
	text-decoration-thickness: 2px;
}

.teomed-header__actions {
	gap: 22px;
}

.teomed-languages ul {
	gap: 8px;
}

.teomed-languages li + li::before {
	content: "/";
	margin-right: 8px;
	color: var(--teomed-border);
}

@media (min-width: 768px) {
	.teomed-nav-panel {
		position: relative;
	}

	.teomed-nav-panel > .teomed-languages {
		position: absolute;
		inset-inline-end: 0;
		bottom: calc(100% + 10px);
	}
}

.teomed-menu-toggle {
	display: none;
}

.teomed-site .teomed-button,
.teomed-site .teomed-button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 24px;
	border: 1px solid var(--teomed-action);
	border-radius: 4px;
	background: var(--teomed-action);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	transition: background-color 210ms ease, color 210ms ease, border-color 210ms ease;
}

.teomed-site .teomed-button:hover {
	border-color: var(--teomed-action-hover);
	background: var(--teomed-action-hover);
	color: #fff;
}

.teomed-site .teomed-button--outline,
.home .teomed-button--outline:visited {
	background: transparent;
	color: var(--teomed-action);
}

.teomed-site .teomed-button--outline:hover {
	color: #fff;
}

.teomed-text-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 750;
	text-decoration-thickness: 1px;
}

.teomed-button-row,
.teomed-card-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}

.teomed-eyebrow {
	margin-bottom: 20px;
	color: var(--teomed-action);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.teomed-lead,
.teomed-entry-intro {
	max-width: var(--teomed-copy);
	font-size: clamp(18px, 1.5vw, 22px);
	line-height: 1.55;
}

.teomed-section {
	padding-block: var(--teomed-section);
}

.teomed-section--inner {
	padding-block: clamp(44px, 6vw, 80px) 0;
}

.teomed-section-heading {
	max-width: 860px;
	margin-bottom: clamp(34px, 5vw, 64px);
}

.teomed-section-heading--split,
.teomed-page-header--split {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
	gap: 7vw;
	align-items: start;
}

.teomed-hero {
	padding: 0;
	background: var(--teomed-surface);
}

.teomed-hero__grid {
	display: grid;
	grid-template-columns: minmax(420px, 1fr) minmax(0, 1fr);
	align-items: stretch;
	gap: 0;
	width: 100%;
	max-width: none;
	min-height: 610px;
}

.teomed-hero__grid > * {
	min-width: 0;
}

.teomed-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	grid-column: 2;
	grid-row: 1;
	padding: clamp(50px, 7vw, 118px);
}

.teomed-hero__content .teomed-lead {
	margin-block: 24px 34px;
}

.teomed-hero__media,
.teomed-direction-hero__media,
.teomed-about-preview__media {
	min-height: 420px;
	background: var(--teomed-canvas);
	overflow: hidden;
}

.teomed-hero__media {
	grid-column: 1;
	grid-row: 1;
}

.teomed-hero__media img,
.teomed-direction-hero__media img,
.teomed-about-preview__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.teomed-direction-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.teomed-direction-card {
	display: grid;
	grid-template-columns: minmax(190px, 0.82fr) minmax(0, 1fr);
	min-height: 360px;
	background: transparent;
}

.teomed-direction-card + .teomed-direction-card {
	border-left: 1px solid var(--teomed-accent);
}

.teomed-direction-card__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	grid-column: 2;
	grid-row: 1;
	padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 42px);
}

.teomed-direction-card__media {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	grid-column: 1;
	grid-row: 1;
	padding: 24px 10px 0;
	overflow: hidden;
}

.teomed-direction-card__media img {
	max-height: 330px;
	object-fit: contain;
}

.teomed-doctors-section {
	background: var(--teomed-surface);
}

.teomed-doctor-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	max-width: 960px;
	margin-inline: auto;
}

.teomed-doctor-card {
	min-width: 0;
	border-bottom: 1px solid var(--teomed-border);
}

.teomed-doctor-card__image {
	display: block;
	aspect-ratio: 4 / 5;
	background: var(--teomed-canvas);
	overflow: hidden;
}

.teomed-doctor-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.teomed-doctor-card__body {
	padding-block: 24px 28px;
}

.teomed-doctor-card h3 {
	font-size: clamp(23px, 2.2vw, 31px);
}

.teomed-doctor-card h3 a {
	color: inherit;
	text-decoration: none;
}

.teomed-card-actions {
	align-items: flex-start;
	justify-content: space-between;
	font-size: 14px;
	font-weight: 700;
}

.teomed-card-actions a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.teomed-section-action {
	margin-top: 42px;
	text-align: center;
}

.teomed-steps-section {
	position: relative;
	overflow: hidden;
}

.teomed-steps {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	max-width: 680px;
	list-style: none;
	margin: 54px auto 0;
	padding: 0;
}

.teomed-steps::before {
	content: "";
	position: absolute;
	top: 30px;
	bottom: 30px;
	left: 68px;
	width: 48px;
	height: auto;
	border-left: 1px solid var(--teomed-accent);
	border-radius: 50%;
}

.teomed-steps li {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	align-items: center;
	min-height: 112px;
	padding: 0;
}

.teomed-steps li > span {
	position: relative;
	display: block;
	width: auto;
	height: auto;
	border: 0;
	background: var(--teomed-canvas);
	color: rgb(1 91 75 / 28%);
	font-family: "Lora", Georgia, serif;
	font-size: 82px;
	line-height: 1;
	text-align: left;
}

.teomed-about-preview {
	background: var(--teomed-surface);
}

.teomed-about-preview__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
	gap: clamp(40px, 7vw, 100px);
	align-items: center;
}

.teomed-about-preview__grid > *:first-child {
	grid-column: 2;
	grid-row: 1;
}

.teomed-about-preview__grid > *:last-child {
	grid-column: 1;
	grid-row: 1;
}

.teomed-contact-preview__grid {
	display: grid;
	grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(36px, 7vw, 100px);
	align-items: stretch;
	margin-top: 42px;
}

.teomed-contact-preview__details {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.teomed-contact-preview__media {
	min-height: 310px;
	margin: 0;
	background: var(--teomed-surface);
}

.teomed-contact-preview__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.teomed-contact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin-top: 44px;
	background: var(--teomed-border);
	border: 1px solid var(--teomed-border);
}

.teomed-contact-grid article {
	min-width: 0;
	padding: clamp(26px, 4vw, 48px);
	background: var(--teomed-surface);
}

.teomed-contact-number {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-bottom: 14px;
	font-family: "Lora", Georgia, serif;
	font-size: clamp(23px, 2.2vw, 33px);
	text-decoration: none;
}

.teomed-page {
	padding-block: clamp(60px, 8vw, 120px);
}

.teomed-page-header {
	margin-bottom: clamp(48px, 7vw, 90px);
}

.teomed-entry-content {
	max-width: var(--teomed-copy);
}

.teomed-entry-content > * + * {
	margin-top: 1.35em;
}

.teomed-entry-content > h2,
.teomed-entry-content > h3 {
	margin-top: 1.7em;
}

.teomed-entry-content :where(.alignwide, .wp-block-gallery) {
	width: min(calc(100vw - 2 * var(--teomed-gutter)), var(--teomed-shell));
	max-width: none;
}

.teomed-about-page .teomed-entry-content {
	max-width: 100%;
}

.teomed-about-page .wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.teomed-about-page .wp-block-gallery .wp-block-image {
	width: 100% !important;
	margin: 0;
}

.teomed-about-page .wp-block-gallery img {
	width: 100%;
	height: 100%;
	min-height: 360px;
	object-fit: cover;
}

.teomed-direction-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
	gap: clamp(40px, 8vw, 110px);
	align-items: center;
}

.teomed-direction-hero .teomed-button-row {
	margin-top: 32px;
}

.teomed-direction-tabs {
	display: inline-flex;
	gap: 8px;
	margin-bottom: 34px;
	padding: 5px;
	border: 1px solid var(--teomed-border);
	border-radius: 8px;
	background: var(--teomed-surface);
}

.teomed-direction-tabs button {
	min-height: 46px;
	padding: 10px 22px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--teomed-ink);
	font: inherit;
	font-weight: 750;
	cursor: pointer;
}

.teomed-direction-tabs button[aria-selected="true"] {
	background: var(--teomed-heading);
	color: #fff;
}

.teomed-service-search {
	max-width: 760px;
	margin-bottom: 40px;
}

.teomed-service-search label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
}

.teomed-service-search input {
	width: 100%;
	min-height: 54px;
	padding: 12px 16px;
	border: 1px solid var(--teomed-border);
	border-radius: 4px;
	background: var(--teomed-surface);
	color: var(--teomed-ink);
	font: inherit;
}

.teomed-services-layout {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: clamp(30px, 5vw, 72px);
}

.teomed-category-nav {
	position: sticky;
	top: 24px;
	align-self: start;
}

.teomed-category-nav button {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid var(--teomed-border);
	background: transparent;
	color: var(--teomed-ink);
	font: inherit;
	font-weight: 650;
	text-align: left;
	cursor: pointer;
}

.teomed-service-panel[hidden] {
	display: none;
}

.teomed-service-category {
	border-top: 1px solid var(--teomed-border);
}

.teomed-service-category[hidden] {
	display: none;
}

.teomed-service-category summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	gap: 20px;
	cursor: pointer;
	color: var(--teomed-heading);
	font-family: "Lora", Georgia, serif;
	font-size: clamp(24px, 2.5vw, 34px);
	font-weight: 500;
	list-style: none;
}

.teomed-service-category summary::-webkit-details-marker {
	display: none;
}

.teomed-service-category[open] summary span:last-child {
	transform: rotate(45deg);
}

.teomed-service-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px;
	align-items: baseline;
	padding: 18px 0;
	border-top: 1px solid var(--teomed-border);
}

.teomed-service-row[hidden] {
	display: none;
}

.teomed-service-row strong {
	color: var(--teomed-heading);
	font-size: 16px;
	white-space: nowrap;
}

.teomed-empty-state,
.teomed-price-note {
	margin-top: 30px;
	padding: 20px 24px;
	border-left: 2px solid var(--teomed-accent);
	background: var(--teomed-surface);
}

.teomed-doctor-hero {
	padding-block: clamp(44px, 7vw, 96px);
	background: var(--teomed-surface);
}

.teomed-doctor-hero__grid {
	display: grid;
	grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1fr);
	gap: clamp(40px, 8vw, 120px);
	align-items: center;
}

.teomed-doctor-hero__photo {
	aspect-ratio: 4 / 5;
	background: var(--teomed-canvas);
	overflow: hidden;
}

.teomed-doctor-hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.teomed-doctor-specialty {
	max-width: 620px;
	font-size: clamp(20px, 2vw, 28px);
}

.teomed-doctor-hero__content .teomed-button-row {
	margin-top: 32px;
}

.teomed-doctor-body {
	padding-block: var(--teomed-section);
}

.teomed-doctor-bio {
	font-size: 18px;
}

.teomed-doctor-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: clamp(44px, 6vw, 80px);
}

.teomed-doctor-facts section {
	padding: clamp(26px, 4vw, 48px);
	border: 1px solid var(--teomed-border);
	background: var(--teomed-surface);
}

.teomed-award-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.teomed-award {
	min-height: 44px;
	padding: 0;
	border: 1px solid var(--teomed-border);
	background: var(--teomed-surface);
	color: var(--teomed-ink);
	font: inherit;
	text-align: left;
	cursor: zoom-in;
}

.teomed-award img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: contain;
	background: #fff;
}

.teomed-award span {
	display: block;
	padding: 16px;
	font-size: 14px;
	font-weight: 700;
}

.teomed-lightbox {
	width: min(94vw, 1100px);
	height: min(92vh, 900px);
	padding: 58px 70px 28px;
	border: 0;
	background: var(--teomed-surface);
	color: var(--teomed-ink);
}

.teomed-lightbox::backdrop {
	background: rgb(5 52 135 / 78%);
}

.teomed-lightbox figure {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: auto;
}

.teomed-lightbox img {
	max-height: 100%;
	object-fit: contain;
	touch-action: pinch-zoom;
}

.teomed-lightbox button {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--teomed-border);
	border-radius: 50%;
	background: var(--teomed-surface);
	color: var(--teomed-heading);
	font-size: 24px;
	cursor: pointer;
}

.teomed-lightbox__close {
	top: 12px;
	right: 12px;
}

.teomed-lightbox__previous,
.teomed-lightbox__next {
	top: 50%;
	transform: translateY(-50%);
}

.teomed-lightbox__previous { left: 10px; }
.teomed-lightbox__next { right: 10px; }

.teomed-mobile-doctor-bar {
	display: none;
}

.teomed-contact-media {
	margin: clamp(34px, 5vw, 70px) 0 0;
}

.teomed-contact-media img {
	width: 100%;
	max-height: 660px;
	object-fit: cover;
}

.teomed-404 {
	min-height: 62vh;
	text-align: center;
}

.teomed-404 .teomed-lead {
	margin-inline: auto;
}

.teomed-editor-notice {
	padding: 16px;
	border: 1px dashed var(--teomed-accent);
	background: var(--teomed-surface);
}

.teomed-footer {
	padding-block: 64px 24px;
	border-top: 1px solid var(--teomed-action);
	background: var(--teomed-canvas);
	color: var(--teomed-ink);
}

.teomed-footer a,
.teomed-footer h2,
.teomed-footer h3 {
	color: var(--teomed-action);
}

.teomed-footer__grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr 1fr;
	gap: clamp(40px, 7vw, 100px);
}

.teomed-footer .teomed-logo-link {
	padding: 8px;
	background: var(--teomed-surface);
}

.teomed-footer-menu li + li {
	margin-top: 10px;
}

.teomed-footer-menu a {
	text-decoration: none;
}

.teomed-footer__contacts {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	font-style: normal;
}

.teomed-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	margin-top: 52px;
	padding-top: 22px;
	border-top: 1px solid var(--teomed-border);
	font-size: 13px;
}

.teomed-footer.teomed-footer--unified {
	padding: 48px 0 20px !important;
	border-top: 1px solid var(--teomed-action) !important;
	background: var(--teomed-canvas) !important;
	color: var(--teomed-ink) !important;
	font-family: "Manrope", Arial, sans-serif;
	font-size: 14px !important;
	line-height: 1.55;
}

.teomed-footer__main {
	display: grid;
	grid-template-areas: "brand navigation contacts location";
	grid-template-columns:
		minmax(150px, .9fr)
		minmax(150px, .8fr)
		minmax(210px, 1fr)
		minmax(240px, 1.25fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: start;
}

.teomed-footer__brand-block,
.teomed-footer__navigation,
.teomed-footer__contact-list,
.teomed-footer__location,
.teomed-footer__documents {
	min-width: 0;
	max-width: 100%;
}

.teomed-footer__brand-block {
	grid-area: brand;
}

.teomed-footer__brand-block .teomed-logo-link {
	width: 72px;
	min-height: 0;
	padding: 0;
	background: transparent;
}

.teomed-footer__brand-block .teomed-logo-image,
.teomed-footer__brand-block .custom-logo {
	width: 72px;
	max-width: 100%;
	height: auto;
}

.teomed-footer__brand-block p {
	max-width: 210px;
	margin: 14px 0 0;
}

.teomed-footer__navigation {
	grid-area: navigation;
}

.teomed-footer-primary-menu,
.teomed-footer-documents-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.teomed-footer-primary-menu {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.teomed-footer__contact-list {
	grid-area: contacts;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	font-style: normal;
}

.teomed-footer__location {
	grid-area: location;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.teomed-footer__location p,
.teomed-footer__identity p,
.teomed-footer__identity div,
.teomed-footer__identity div p {
	margin: 0;
}

.teomed-footer__main a,
.teomed-footer__main p,
.teomed-footer__meta a,
.teomed-footer__meta p {
	overflow-wrap: anywhere;
}

.teomed-footer__meta {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	margin-top: 36px;
	padding-top: 18px;
	border-top: 1px solid var(--teomed-border);
	font-size: 13px;
}

.teomed-footer__identity,
.teomed-footer-documents-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

@media (min-width: 768px) and (max-width: 1199px) {
	.teomed-footer__main {
		grid-template-areas:
			"brand navigation"
			"contacts location";
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px clamp(36px, 7vw, 72px);
	}

	body.teomed-site:not(.home) .teomed-nav-panel {
		min-width: 0;
		flex-wrap: wrap;
	}
}

@media (max-width: 767px) {
	.teomed-footer.teomed-footer--unified {
		padding: 30px 0 16px !important;
		font-size: 14px !important;
	}

	.teomed-footer__main {
		grid-template-areas:
			"brand"
			"contacts"
			"location"
			"navigation";
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.teomed-footer__brand-block .teomed-logo-link,
	.teomed-footer__brand-block .teomed-logo-image,
	.teomed-footer__brand-block .custom-logo {
		width: 64px;
	}

	.teomed-footer-primary-menu {
		gap: 0;
	}

	.teomed-footer-primary-menu a {
		display: flex;
		align-items: center;
		min-height: 44px;
		border-bottom: 1px solid var(--teomed-border);
	}

	.teomed-footer__meta {
		flex-direction: column;
		gap: 14px;
		margin-top: 24px;
		padding-top: 14px;
		font-size: 14px;
	}

	.teomed-footer__documents {
		width: 100%;
	}

	.teomed-footer-documents-menu {
		flex-direction: column;
		gap: 0;
	}

	.teomed-footer-documents-menu a {
		display: flex;
		align-items: center;
		min-height: 44px;
		border-top: 1px solid var(--teomed-border);
	}
}

@media (max-width: 1199px) {
	.teomed-header__inner {
		grid-template-columns: 90px 1fr;
		gap: 24px;
	}

	.teomed-menu {
		gap: 18px;
	}

	.teomed-header__actions {
		gap: 12px;
	}

	.teomed-doctor-grid,
	.teomed-award-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	:root {
		--teomed-gutter: 20px;
		--teomed-section: 64px;
	}

	.teomed-header__inner {
		grid-template-columns: 1fr auto;
		min-height: 92px;
	}

	.teomed-logo-link {
		width: 72px;
		min-height: 62px;
	}

	.teomed-logo-image,
	.custom-logo {
		max-width: 72px;
		height: 68px;
	}

	.teomed-menu-toggle {
		display: grid;
		place-items: center;
		width: 48px;
		height: 48px;
		padding: 0;
		border: 1px solid var(--teomed-border);
		border-radius: 4px;
		background: transparent;
	}

	.teomed-menu-toggle__bars,
	.teomed-menu-toggle__bars::before,
	.teomed-menu-toggle__bars::after {
		display: block;
		width: 22px;
		height: 2px;
		background: var(--teomed-heading);
		content: "";
	}

	.teomed-menu-toggle__bars::before { transform: translateY(-7px); }
	.teomed-menu-toggle__bars::after { transform: translateY(5px); }

	.teomed-menu-toggle[aria-expanded="true"] .teomed-menu-toggle__bars { background: transparent; }
	.teomed-menu-toggle[aria-expanded="true"] .teomed-menu-toggle__bars::before { transform: translateY(0) rotate(45deg); }
	.teomed-menu-toggle[aria-expanded="true"] .teomed-menu-toggle__bars::after { transform: translateY(-2px) rotate(-45deg); }

	.teomed-nav-panel {
		position: fixed;
		inset: 92px 0 0;
		display: none;
		align-items: stretch;
		justify-content: flex-start;
		flex-direction: column;
		gap: 34px;
		padding: 34px 20px 50px;
		background: var(--teomed-surface);
		overflow-y: auto;
	}

	.teomed-nav-panel.is-open {
		display: flex;
	}

	.teomed-menu,
	.teomed-header__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.teomed-menu a {
		display: flex;
		align-items: center;
		min-height: 48px;
		font-size: 20px;
	}

	.teomed-header__actions {
		margin-top: auto;
	}

	body.teomed-menu-open {
		overflow: hidden;
	}

	.teomed-hero {
		padding: 0;
	}

	.teomed-hero__grid,
	.teomed-direction-hero,
	.teomed-doctor-hero__grid,
	.teomed-about-preview__grid,
	.teomed-section-heading--split,
	.teomed-page-header--split,
	.teomed-doctor-facts,
	.teomed-footer__grid {
		grid-template-columns: 1fr;
	}

	.teomed-hero__grid {
		gap: 34px;
		min-height: 0;
	}

	.teomed-hero__content {
		grid-column: 1;
		grid-row: 1;
		padding: 42px 20px 0;
	}

	.teomed-hero__media {
		grid-column: 1;
		grid-row: 2;
	}

	.teomed-hero__media,
	.teomed-direction-hero__media,
	.teomed-about-preview__media {
		min-height: 350px;
	}

	.teomed-direction-grid,
	.teomed-doctor-grid,
	.teomed-award-grid,
	.teomed-contact-grid {
		grid-template-columns: 1fr;
	}

	.teomed-direction-card {
		grid-template-columns: minmax(128px, 0.62fr) minmax(0, 1fr);
		min-height: 280px;
		border-bottom: 1px solid var(--teomed-accent);
	}

	.teomed-direction-card + .teomed-direction-card {
		border-left: 0;
	}

	.teomed-direction-card__media {
		grid-column: 1;
		grid-row: 1;
	}

	.teomed-direction-card__content {
		grid-column: 2;
		grid-row: 1;
	}

	.teomed-doctor-grid {
		gap: 34px;
	}

	.teomed-steps::before {
		top: 24px;
		bottom: 24px;
		left: 44px;
		width: 28px;
		border-left: 1px solid var(--teomed-accent);
	}

	.teomed-steps li {
		grid-template-columns: 100px minmax(0, 1fr);
		min-height: 88px;
	}

	.teomed-steps li > span {
		font-size: 58px;
	}

	.teomed-about-preview__grid > *:first-child {
		grid-column: 1;
		grid-row: 2;
	}

	.teomed-about-preview__grid > *:last-child {
		grid-column: 1;
		grid-row: 1;
	}

	.teomed-contact-preview__grid {
		grid-template-columns: 1fr;
	}

	.teomed-about-page .wp-block-gallery {
		display: grid;
		grid-template-columns: 1fr;
	}

	.teomed-about-page .wp-block-gallery img {
		min-height: 0;
	}

	.teomed-contact-grid {
		gap: 1px;
	}

	.teomed-services-layout {
		grid-template-columns: 1fr;
	}

	.teomed-category-nav {
		display: none;
	}

	.teomed-direction-tabs {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}

	.teomed-direction-tabs button {
		padding-inline: 10px;
	}

	.teomed-service-category summary {
		min-height: 68px;
		font-size: 24px;
	}

	.teomed-service-row {
		grid-template-columns: 1fr;
		gap: 6px;
		padding: 16px 0;
	}

	.teomed-service-row strong {
		justify-self: start;
	}

	.teomed-doctor-hero__photo {
		order: 2;
	}

	.teomed-doctor-hero__content {
		order: 1;
	}

	.teomed-mobile-doctor-bar {
		position: fixed;
		z-index: 40;
		bottom: 0;
		left: 0;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
		background: var(--teomed-surface);
		border-top: 1px solid var(--teomed-border);
	}

	.teomed-mobile-doctor-bar a {
		display: grid;
		place-items: center;
		min-height: 48px;
		padding: 8px;
		font-weight: 750;
		text-decoration: none;
	}

	.single-teomed_doctor .teomed-footer {
		padding-bottom: 92px;
	}

	.teomed-lightbox {
		width: 100vw;
		height: 100dvh;
		max-width: none;
		max-height: none;
		padding: 64px 52px 24px;
	}

	.teomed-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.teomed-footer :where(nav, address) a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}

@media (max-width: 479px) {
	.teomed-button-row {
		align-items: stretch;
		flex-direction: column;
	}

	.teomed-button-row .teomed-button,
	.teomed-button-row .teomed-text-link {
		width: 100%;
		justify-content: center;
	}

	.teomed-direction-card {
		grid-template-columns: 112px minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.teomed-site *,
	.teomed-site *::before,
	.teomed-site *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* Home page visual layer — approved R2.1 desktop/mobile references. */
.home {
	--teomed-home-blue: #123b5a;
	--teomed-home-green: #087c6b;
	--teomed-home-orange: #d9915d;
	--teomed-home-cream: #f4eee8;
	--teomed-home-cream-light: #f6f1ec;
	--teomed-home-cream-alt: #f2eae2;
	--teomed-home-surface-primary: linear-gradient(180deg, var(--teomed-home-cream) 0%, var(--teomed-home-cream-light) 52%, var(--teomed-home-cream-alt) 100%);
	--teomed-home-surface-secondary: linear-gradient(180deg, var(--teomed-home-cream-alt) 0%, #f3ece5 52%, var(--teomed-home-cream) 100%);
}

.home .teomed-header {
	background: #fbf8f5;
	border-bottom-color: #e2d6cc;
}

.home .teomed-header__inner {
	grid-template-columns: 132px 1fr;
	min-height: 158px;
	gap: 62px;
}

.home .teomed-logo-link {
	width: 112px;
	min-height: 124px;
}

.home .teomed-logo-image,
.home .custom-logo {
	max-width: 112px;
	height: 124px;
}

.home .teomed-nav-panel {
	justify-content: flex-end;
	gap: clamp(30px, 3.2vw, 46px);
}

.home .teomed-primary-nav {
	margin-left: auto;
}

.home .teomed-menu {
	gap: clamp(22px, 2.35vw, 38px);
}

.home .teomed-menu a {
	color: #182b38;
	font-size: 16px;
	font-weight: 520;
}

.home .teomed-header__actions {
	gap: 0;
}

.home .teomed-header .teomed-button {
	min-width: 154px;
	min-height: 52px;
}

.teomed-home-main {
	background: var(--teomed-home-cream);
}

.teomed-home-main .teomed-shell,
.teomed-footer--home .teomed-shell,
.home .teomed-header .teomed-shell {
	--teomed-shell: 1320px;
}

.teomed-home-hero {
	position: relative;
	display: grid;
	grid-template-columns: 48.8% minmax(0, 51.2%);
	width: 100%;
	height: auto;
	aspect-ratio: 64 / 25;
	background: #f2e3d5;
	overflow: hidden;
}

.teomed-home-hero__media,
.teomed-home-hero__content {
	min-width: 0;
}

.teomed-home-hero__media {
	position: absolute;
	inset: 0;
}

.teomed-home-hero__media picture,
.teomed-home-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
}

.teomed-home-hero__media img {
	object-fit: cover;
	object-position: center center;
}

.teomed-home-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	grid-column: 2;
	grid-row: 1;
	padding: clamp(54px, 5vw, 72px) clamp(46px, 5.4vw, 78px) 38px 8px;
	background: transparent;
}

.teomed-home-hero__content h1 {
	max-width: 630px;
	margin-bottom: 24px;
	color: var(--teomed-home-blue);
	font-size: clamp(54px, 5.25vw, 76px);
	line-height: 1.02;
}

.teomed-home-hero__lead {
	max-width: 560px;
	color: #202c34;
	font-size: 17px;
	line-height: 1.45;
}

.teomed-home-hero__lead p {
	margin: 0;
}

.teomed-home-hero__actions {
	margin-top: 38px;
	gap: 18px;
}

.teomed-home-hero__actions .teomed-button {
	min-width: 198px;
}

.teomed-site .teomed-home-heading {
	position: relative;
	margin-bottom: 46px;
	color: var(--teomed-home-blue);
	font-size: 42px;
	line-height: 1.08;
	font-weight: 500;
}

.teomed-home-heading::after {
	display: block;
	width: 50px;
	height: 2px;
	margin-top: 16px;
	background: var(--teomed-home-orange);
	content: "";
}

.teomed-home-directions {
	min-height: 490px;
	padding: 46px 0 36px;
	background: var(--teomed-home-surface-primary);
}

.teomed-home-direction-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teomed-home-direction {
	display: grid;
	grid-template-columns: minmax(180px, 0.95fr) minmax(0, 1.15fr);
	column-gap: clamp(40px, 3.6vw, 52px);
	align-items: center;
	min-height: 285px;
	padding: 0 48px 0 12px;
}

.teomed-home-direction + .teomed-home-direction {
	padding-right: 12px;
	padding-left: 66px;
	border-left: 1px solid #d4a889;
}

.teomed-home-direction__media {
	display: grid;
	place-items: center;
	height: 255px;
}

.teomed-home-direction__media img {
	width: 100%;
	max-width: 255px;
	height: 100%;
	object-fit: contain;
}

.teomed-home-direction__content h3 {
	margin-bottom: 26px;
	font-size: 31px;
}

.teomed-home-direction__content p {
	max-width: 235px;
	margin-bottom: 22px;
	font-size: 14px;
	line-height: 1.45;
}

.teomed-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	color: var(--teomed-home-green);
	font-size: 14px;
	font-weight: 560;
	text-decoration: none;
}

.teomed-arrow-link span {
	font-size: 20px;
	line-height: 1;
}

.teomed-home-doctors {
	min-height: 540px;
	padding: 40px 0 36px;
	background: var(--teomed-home-surface-secondary);
}

.teomed-home-doctors .teomed-home-heading {
	margin-bottom: 18px;
}

.teomed-home-doctor-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.teomed-home-doctor {
	display: grid;
	grid-template-columns: minmax(150px, 0.86fr) minmax(230px, 1.16fr);
	align-items: center;
	min-width: 0;
	height: 368px;
}

.teomed-home-doctor:nth-child(2) {
	grid-template-columns: minmax(230px, 1.16fr) minmax(150px, 0.86fr);
}

.teomed-home-doctor:nth-child(2) .teomed-home-doctor__media {
	grid-column: 1;
	grid-row: 1;
}

.teomed-home-doctor:nth-child(2) .teomed-home-doctor__info {
	grid-column: 2;
	grid-row: 1;
	padding-left: 38px;
}

.teomed-home-doctor__info {
	padding-right: 38px;
}

.teomed-home-doctor__info h3 {
	margin-bottom: 16px;
	font-size: clamp(22px, 1.75vw, 25px);
	line-height: 1.12;
}

.teomed-home-doctor__info h3::after {
	display: block;
	width: 36px;
	height: 2px;
	margin-top: 13px;
	background: var(--teomed-home-orange);
	content: "";
}

.teomed-home-doctor__info h3 a {
	color: var(--teomed-home-blue);
	text-decoration: none;
}

.teomed-home-doctor__info p {
	margin-bottom: 22px;
	color: #615e59;
	font-size: 15px;
}

.teomed-home-doctor__media {
	display: block;
	height: 368px;
	overflow: hidden;
}

.teomed-home-doctor__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 38%;
}

/*
 * Tablet home cards: keep the established desktop card composition,
 * but give each card the full row while two columns cannot contain it.
 */
@media (min-width: 768px) and (max-width: 959px) {
	.home .teomed-home-direction-list,
	.home .teomed-home-doctor-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.home .teomed-home-direction + .teomed-home-direction {
		padding: 24px 48px 0 12px;
		border-top: 1px solid #d4a889;
		border-left: 0;
	}
}

.teomed-home-steps {
	min-height: 420px;
	padding: 42px 0 34px;
	background: var(--teomed-home-surface-primary);
}

.teomed-home-steps .teomed-home-heading {
	margin-bottom: 6px;
}

.teomed-home-steps__list {
	position: relative;
	width: min(760px, 100%);
	min-height: 300px;
	margin: -22px auto 0;
	padding: 0;
	list-style: none;
}

.teomed-home-steps__list::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 49%;
	width: 86px;
	background: url("../visual/home-steps-line-approved.png") center / contain no-repeat;
	content: "";
	transform: translateX(-50%);
}

.teomed-home-steps__list li {
	position: absolute;
	display: grid;
	grid-template-columns: 112px minmax(0, 210px);
	align-items: center;
	color: var(--teomed-home-blue);
}

.teomed-home-steps__list li:nth-child(1) { top: 42px; left: 28px; }
.teomed-home-steps__list li:nth-child(2) { top: 126px; right: 10px; }
.teomed-home-steps__list li:nth-child(3) { top: 206px; left: 28px; }

.teomed-home-steps__list li > span {
	color: rgb(8 124 107 / 24%);
	font-family: "Lora", Georgia, serif;
	font-size: 74px;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.teomed-home-steps__list h3 {
	margin: 0;
	font-size: 23px;
	line-height: 1.18;
}

.teomed-home-steps__list p {
	margin: 6px 0 0;
	font-size: 14px;
}

.teomed-home-about {
	min-height: 440px;
	padding: 38px 0 38px;
	background: var(--teomed-home-surface-secondary);
}

.teomed-home-about .teomed-home-heading {
	margin-bottom: 12px;
}

.teomed-home-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
	align-items: center;
	gap: 84px;
	padding-inline: 160px;
}

.teomed-home-about__media {
	height: 286px;
	overflow: hidden;
}

.teomed-home-about__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 63%;
}

.teomed-home-about__lead {
	margin-bottom: 30px;
	color: var(--teomed-home-blue);
	font-family: "Lora", Georgia, serif;
	font-size: 25px;
	line-height: 1.2;
}

.teomed-home-fact {
	margin-bottom: 12px;
	color: #555b5f;
	font-size: 14px;
}

.teomed-icon-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.teomed-ui-icon {
	width: 20px;
	height: 20px;
	margin-top: 1px;
	flex: 0 0 20px;
}

.teomed-home-about__content .teomed-arrow-link {
	margin-top: 8px;
}

.teomed-home-contacts {
	min-height: 380px;
	padding: 32px 0 32px;
	background: var(--teomed-home-surface-primary);
}

.teomed-home-contacts .teomed-home-heading {
	margin-bottom: 22px;
}

.teomed-home-contacts__grid {
	display: grid;
	grid-template-columns: minmax(330px, 0.88fr) minmax(0, 1.12fr);
	align-items: center;
	gap: 88px;
	padding-inline: 34px;
}

.teomed-home-contacts__details {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 9px;
}

.teomed-home-contacts__details p,
.teomed-home-contacts__details a:not(.teomed-button) {
	margin: 0;
	color: #213747;
	font-size: 17px;
}

.teomed-home-contacts__details .teomed-button {
	min-width: 232px;
	margin-top: 19px;
}

.teomed-home-contacts__map {
	height: 230px;
	margin: 0;
	overflow: hidden;
	border: 1px solid #d7a37f;
}

.teomed-home-contacts__map img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.teomed-footer--home {
	min-height: 170px;
	padding: 0 0 28px;
	border-top: 1px solid var(--teomed-home-green);
	background: var(--teomed-home-cream-alt);
}

.teomed-footer-home__inner {
	position: relative;
	padding-top: 88px;
}

.teomed-footer-home__logo {
	position: absolute;
	top: 2px;
	left: 50%;
	transform: translateX(-50%);
}

.teomed-footer--home .teomed-logo-link {
	width: 72px;
	min-height: 80px;
	padding: 0;
	background: transparent;
}

.teomed-footer--home .teomed-logo-image,
.teomed-footer--home .custom-logo {
	max-width: 72px;
	height: 80px;
}

.teomed-footer-home__row,
.teomed-footer-home__legal,
.teomed-footer--home .teomed-footer-menu {
	display: flex;
	align-items: center;
}

.teomed-footer-home__row {
	justify-content: space-between;
	gap: 28px;
	font-size: 12px;
}

.teomed-footer-home__row p {
	margin: 0;
}

.teomed-footer-home__legal {
	gap: 26px;
}

.teomed-footer-home__legal p + p {
	margin-left: 18px;
}

.teomed-footer--home .teomed-footer-menu {
	gap: 34px;
}

.teomed-footer--home .teomed-footer-menu li + li {
	margin: 0;
}

.teomed-footer--home .teomed-footer-menu a {
	font-size: 12px;
}

@media (max-width: 1199px) and (min-width: 768px) {
	.home .teomed-header__inner {
		grid-template-columns: 104px 1fr;
		gap: 24px;
	}

	.home .teomed-menu {
		gap: 16px;
	}

	.home .teomed-menu a {
		font-size: 14px;
	}

	.teomed-home-about__grid {
		padding-inline: 70px;
	}
}

@media (max-width: 767px) {
	.home {
		--teomed-gutter: 18px;
	}

	.home .teomed-header__inner {
		grid-template-columns: 1fr auto;
		min-height: 92px;
		gap: 18px;
	}

	.home .teomed-logo-link {
		width: 72px;
		min-height: 72px;
	}

	.home .teomed-logo-image,
	.home .custom-logo {
		max-width: 72px;
		height: 72px;
	}

	.home .teomed-nav-panel {
		inset: 92px 0 0;
		justify-content: flex-start;
		gap: 34px;
	}

	.home .teomed-primary-nav {
		margin-left: 0;
	}

	.teomed-home-hero {
		grid-template-columns: 1fr;
		height: auto;
		aspect-ratio: auto;
	}

	.teomed-home-hero__content {
		grid-column: 1;
		grid-row: 1;
		min-height: 380px;
		padding: 30px 40px 34px;
		background: #fbf8f5;
	}

	.teomed-home-hero__content h1 {
		max-width: 310px;
		margin-bottom: 22px;
		font-size: clamp(37px, 10.4vw, 44px);
		line-height: 1.12;
	}

	.teomed-home-hero__lead {
		max-width: 330px;
		font-size: 16px;
		line-height: 1.52;
	}

	.teomed-home-hero__actions {
		align-items: stretch;
		flex-direction: column;
		margin-top: 36px;
		gap: 14px;
	}

	.teomed-home-hero__actions .teomed-button {
		width: 100%;
		min-height: 54px;
	}

	.teomed-home-hero__media {
		position: relative;
		inset: auto;
		grid-column: 1;
		grid-row: 2;
		height: auto;
		aspect-ratio: 443 / 523;
	}

	.teomed-home-hero__media img {
		object-position: center center;
	}

	.teomed-site .teomed-home-heading {
		margin-bottom: 26px;
		font-size: 26px;
		line-height: 1.08;
	}

	.teomed-home-heading::after {
		width: 32px;
		margin-top: 9px;
	}

	.teomed-home-directions,
	.teomed-home-doctors,
	.teomed-home-steps,
	.teomed-home-about,
	.teomed-home-contacts {
		min-height: 0;
	}

	.teomed-home-directions {
		padding: 32px 0 26px;
	}

	.teomed-home-direction-list {
		grid-template-columns: 1fr;
	}

	.teomed-home-direction {
		grid-template-columns: minmax(100px, 0.34fr) minmax(0, 0.66fr);
		column-gap: 0;
		min-height: 152px;
		padding: 0 0 14px;
		border-bottom: 1px solid #d4a889;
	}

	.teomed-home-direction + .teomed-home-direction {
		padding: 14px 0 0;
		border-left: 0;
		border-bottom: 0;
	}

	.teomed-home-direction__media {
		height: 132px;
	}

	.teomed-home-direction__media img {
		max-width: 104px;
	}

	.teomed-home-direction__content {
		padding-left: 16px;
	}

	.teomed-home-direction__content h3 {
		margin-bottom: 16px;
		font-size: 24px;
	}

	.teomed-home-direction__content p {
		margin-bottom: 10px;
		font-size: 12px;
	}

	.teomed-arrow-link {
		gap: 10px;
		font-size: 13px;
	}

	.teomed-home-doctors {
		padding: 22px 0 26px;
	}

	.teomed-home-doctors .teomed-home-heading {
		margin-bottom: 10px;
	}

	.teomed-home-doctor-list {
		grid-template-columns: 1fr;
		gap: 18px;
		width: min(100% - 126px, 240px);
		margin-inline: auto;
	}

	.teomed-home-doctor,
	.teomed-home-doctor:nth-child(2) {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		height: auto;
	}

	.teomed-home-doctor__media,
	.teomed-home-doctor:nth-child(2) .teomed-home-doctor__media {
		order: 1;
		height: 218px;
	}

	.teomed-home-doctor__info,
	.teomed-home-doctor:nth-child(2) .teomed-home-doctor__info {
		order: 2;
		padding: 10px 0 0;
	}

	.teomed-home-doctor__info h3 {
		margin-bottom: 6px;
		font-size: 21px;
	}

	.teomed-home-doctor__info h3::after {
		display: none;
	}

	.teomed-home-doctor__info p {
		margin-bottom: 0;
		font-size: 13px;
	}

	.teomed-home-doctor__info .teomed-arrow-link {
		min-height: 34px;
	}

	.teomed-home-steps {
		padding: 28px 0 12px;
	}

	.teomed-home-steps .teomed-home-heading {
		margin-bottom: 8px;
	}

	.teomed-home-steps__list {
		width: 100%;
		min-height: 184px;
		margin: 0;
	}

	.teomed-home-steps__list::before {
		top: 2px;
		bottom: 2px;
		left: 87px;
		width: 54px;
	}

	.teomed-home-steps__list li,
	.teomed-home-steps__list li:nth-child(1),
	.teomed-home-steps__list li:nth-child(2),
	.teomed-home-steps__list li:nth-child(3) {
		position: absolute;
		right: auto;
		left: 0;
		display: grid;
		grid-template-columns: 90px minmax(0, 1fr);
		width: 100%;
	}

	.teomed-home-steps__list li:nth-child(1) { top: 4px; }
	.teomed-home-steps__list li:nth-child(2) { top: 61px; }
	.teomed-home-steps__list li:nth-child(3) { top: 121px; }

	.teomed-home-steps__list li > span {
		font-size: 50px;
	}

	.teomed-home-steps__list li > div {
		padding-left: 22px;
	}

	.teomed-home-steps__list h3 {
		font-size: 18px;
	}

	.teomed-home-about {
		padding: 20px 0 24px;
	}

	.teomed-home-about .teomed-home-heading {
		margin-bottom: 8px;
	}

	.teomed-home-about__grid {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 0;
	}

	.teomed-home-about__media {
		height: 155px;
		width: 70%;
	}

	.teomed-home-about__content {
		padding: 0;
	}

	.teomed-home-about__lead {
		margin-bottom: 6px;
		font-size: 17px;
	}

	.teomed-home-fact {
		margin-bottom: 5px;
		font-size: 12px;
	}

	.teomed-icon-row {
		gap: 9px;
	}

	.teomed-ui-icon {
		width: 17px;
		height: 17px;
		flex-basis: 17px;
	}

	.teomed-home-about__content .teomed-arrow-link {
		margin-top: 0;
	}

	.teomed-home-contacts {
		padding: 22px 0 18px;
	}

	.teomed-home-contacts .teomed-home-heading {
		margin-bottom: 12px;
	}

	.teomed-home-contacts__grid {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 0;
	}

	.teomed-home-contacts__details {
		gap: 5px;
	}

	.teomed-home-contacts__details p,
	.teomed-home-contacts__details a:not(.teomed-button) {
		font-size: 13px;
	}

	.teomed-home-contacts__details .teomed-button {
		width: min(100%, 228px);
		min-height: 42px;
		margin-top: 8px;
		padding-block: 8px;
		font-size: 13px;
	}

	.teomed-home-contacts__map {
		height: 72px;
	}

	.teomed-footer--home {
		min-height: 176px;
		padding-bottom: 10px;
	}

	.teomed-footer-home__inner {
		padding-top: 70px;
	}

	.teomed-footer-home__logo {
		top: 2px;
	}

	.teomed-footer--home .teomed-logo-link {
		width: 56px;
		min-height: 64px;
	}

	.teomed-footer--home .teomed-logo-image,
	.teomed-footer--home .custom-logo {
		max-width: 56px;
		height: 64px;
	}

	.teomed-footer-home__row {
		align-items: stretch;
		flex-direction: column;
		gap: 8px;
		font-size: 10px;
	}

	.teomed-footer-home__legal {
		gap: 16px;
	}

	.teomed-footer--home .teomed-footer-menu {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.teomed-footer--home .teomed-footer-menu li {
		border-top: 1px solid #d6ddd8;
	}

	.teomed-footer--home .teomed-footer-menu a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 23px;
		font-size: 10px;
	}

	.teomed-footer--home .teomed-footer-menu a::after {
		content: "›";
		font-size: 20px;
		line-height: 1;
	}
}

@media (max-width: 359px) {
	.home {
		--teomed-gutter: 14px;
	}

	.teomed-home-hero__content {
		min-height: 418px;
		padding-inline: 14px;
	}

	.teomed-home-hero__content h1 {
		font-size: 37px;
	}

	.teomed-home-direction {
		grid-template-columns: 102px minmax(0, 1fr);
	}

	.teomed-home-direction__content {
		padding-left: 10px;
	}

	.teomed-home-direction__content h3 {
		font-size: 22px;
	}

	.teomed-home-doctor-list {
		width: min(100% - 86px, 232px);
	}

	.teomed-home-doctor__media,
	.teomed-home-doctor:nth-child(2) .teomed-home-doctor__media {
		height: 214px;
	}
}

/* Owner-guided mobile home revision. Desktop rules above remain frozen. */
@media (max-width: 767px) {
	.home {
		--teomed-gutter: clamp(16px, 5.2vw, 24px);
		--teomed-mobile-bg: #fbf7f4;
		--teomed-mobile-depth: #faf6f3;
		--teomed-mobile-surface: linear-gradient(110deg, var(--teomed-mobile-bg), var(--teomed-mobile-depth) 48%, var(--teomed-mobile-bg));
		background: var(--teomed-mobile-surface);
	}
	.home .teomed-home-main,
	.home .teomed-header,
	.home .teomed-home-hero,
	.home .teomed-home-hero__content,
	.home .teomed-home-directions,
	.home .teomed-home-doctors,
	.home .teomed-home-steps,
	.home .teomed-home-about,
	.home .teomed-home-contacts,
	.home .teomed-footer--home {
		background: var(--teomed-mobile-surface);
	}
	.home .teomed-header__inner { min-height: 124px; padding-block: 8px; }
	.home .teomed-header .teomed-logo-link { width: 86px; min-height: 0; }
	.home .teomed-header .teomed-logo-image,
	.home .teomed-header .custom-logo { width: 86px; max-width: 100%; height: auto; }
	.home .teomed-menu-toggle { width: 48px; height: 48px; border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: pointer; }
	.home .teomed-menu-toggle__bars { width: 44px; height: 44px; background: var(--teomed-home-green); mask: url('../icons/heroicons-bars-3.svg') center / contain no-repeat; }
	.home .teomed-menu-toggle__bars::before,
	.home .teomed-menu-toggle__bars::after { display: none; }
	.home .teomed-menu-toggle[aria-expanded='true'] .teomed-menu-toggle__bars { background: var(--teomed-home-green); mask-image: url('../icons/heroicons-x-mark.svg'); }
	.home .teomed-nav-panel { top: 124px; background: var(--teomed-mobile-bg); }
	.home .teomed-menu a { font-size: 18px; }
	.home .teomed-home-hero__content { min-height: 0; padding: 24px var(--teomed-gutter) 28px; }
	.home .teomed-home-hero__content h1 { max-width: none; margin-bottom: 22px; font-size: clamp(33px, 10.1vw, 48px); line-height: 1.16; font-weight: 400; }
	.home .teomed-home-hero__lead { max-width: 310px; font-size: 17px; line-height: 1.5; }
	.home .teomed-home-hero__actions { margin-top: 32px; gap: 18px; }
	.home .teomed-home-hero__actions .teomed-button { min-height: 46px; padding: 12px 14px; font-size: 17px; font-weight: 600; }
	.home .teomed-button { background: var(--teomed-home-green); border-color: var(--teomed-home-green); }
	.home .teomed-button--outline { background: transparent; color: var(--teomed-home-green); }
	.home .teomed-button:hover { background: var(--teomed-action-hover); border-color: var(--teomed-action-hover); color: #fff; }
	.home .teomed-home-hero__media { aspect-ratio: 441 / 520; }
	.home .teomed-home-hero__media picture,
	.home .teomed-home-hero__media img { width: 100%; height: auto; }
	.home .teomed-home-hero__media img { object-fit: contain; }
	.home .teomed-home-heading { margin-bottom: 14px; font-size: clamp(21px, 6.4vw, 25px); line-height: 1.12; font-weight: 400; }
	.home .teomed-home-heading::after { height: 1px; margin-top: 9px; }
	.home .teomed-home-directions { padding: 18px 0 8px; }
	.home .teomed-home-direction { grid-template-columns: minmax(100px, 34%) minmax(0, 1fr); column-gap: 24px; min-height: 156px; padding: 0 0 12px; border-bottom-color: #e4c2ab; }
	.home .teomed-home-direction + .teomed-home-direction { padding: 12px 0 0; }
	.home .teomed-home-direction__media { height: 144px; }
	.home .teomed-home-direction__media img { max-width: 125px; }
	.home .teomed-home-direction__content { padding: 0; }
	.home .teomed-home-direction__content h3 { margin-bottom: 12px; color: var(--teomed-home-blue); font-size: 22px; line-height: 1.15; font-weight: 400; }
	.home .teomed-home-direction__content p { margin-bottom: 8px; font-size: 13px; line-height: 1.5; }
	.home .teomed-arrow-link { min-height: 44px; gap: 10px; font-size: 13px; font-weight: 550; }
	.home .teomed-home-doctors { padding: 14px 0 12px; }
	.home .teomed-home-doctors .teomed-home-heading { margin-bottom: 8px; }
	.home .teomed-home-doctor-list { width: 67%; max-width: 280px; gap: 10px; }
	.home .teomed-home-doctor__media,
	.home .teomed-home-doctor:nth-child(2) .teomed-home-doctor__media { position: relative; height: auto; aspect-ratio: 257 / 245; border-radius: 4px; }
	.home .teomed-home-doctor__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: center 20%; transform: scale(1.28); transform-origin: center 28%; }
	.home .teomed-home-doctor:nth-child(2) .teomed-home-doctor__media img { object-position: center 50%; transform: scale(1.15); transform-origin: center 40%; }
	.home .teomed-home-doctor__info,
	.home .teomed-home-doctor:nth-child(2) .teomed-home-doctor__info { padding-top: 8px; }
	.home .teomed-home-doctor__info h3 { margin-bottom: 4px; font-size: 19px; line-height: 1.12; font-weight: 400; }
	.home .teomed-home-doctor__info p { font-size: 13px; line-height: 1.45; }
	.home .teomed-home-doctor__info .teomed-arrow-link { min-height: 34px; }
	.home .teomed-home-steps { padding: 16px 0 6px; }
	.home .teomed-home-steps .teomed-home-heading { margin-bottom: 8px; }
	.home .teomed-home-steps__list { min-height: 166px; }
	.home .teomed-home-steps__list::before { left: 99px; width: 48px; }
	.home .teomed-home-steps__list li { grid-template-columns: 112px minmax(0, 1fr); }
	.home .teomed-home-steps__list li:nth-child(1) { top: 0; }
	.home .teomed-home-steps__list li:nth-child(2) { top: 56px; }
	.home .teomed-home-steps__list li:nth-child(3) { top: 112px; }
	.home .teomed-home-steps__list li > span { color: #aebdb6; font-size: clamp(38px, 12vw, 47px); }
	.home .teomed-home-steps__list li > div { padding-left: 14px; }
	.home .teomed-home-steps__list h3 { color: var(--teomed-home-blue); font-size: 17px; line-height: 1.22; font-weight: 400; }
	.home .teomed-home-about { padding: 8px 0 8px; }
	.home .teomed-home-about .teomed-home-heading { margin-bottom: 8px; }
	.home .teomed-home-about__media { width: 80%; height: auto; aspect-ratio: 309 / 150; border-radius: 4px; }
	.home .teomed-home-about__media img { height: 100%; object-position: center 59%; }
	.home .teomed-home-about__grid { gap: 7px; }
	.home .teomed-home-about__lead { margin-bottom: 12px; font-size: 16px; line-height: 1.2; }
	.home .teomed-home-about__lead p { margin-bottom: 0; }
	.home .teomed-home-fact { margin-bottom: 6px; font-size: 12px; line-height: 1.5; }
	.home .teomed-home-about__content .teomed-arrow-link { min-height: 32px; }
	.home .teomed-home-contacts { padding: 0 0 16px; }
	.home .teomed-home-contacts > .teomed-shell { border-top: 1px solid #dedbd7; padding-top: 12px; }
	.home .teomed-home-contacts .teomed-home-heading { margin-bottom: 12px; }
	.home .teomed-home-contacts__details { gap: 7px; }
	.home .teomed-home-contacts__details p,
	.home .teomed-home-contacts__details a:not(.teomed-button) { font-size: 13px; line-height: 1.5; }
	.home .teomed-home-contacts__details .teomed-contact-number { min-height: 24px; align-items: center; font-family: 'Manrope', Arial, sans-serif; }
	.home .teomed-home-contacts__details .teomed-button { min-width: 0; width: 228px; min-height: 44px; margin-top: 6px; font-size: 13px; font-weight: 600; }
	.home .teomed-home-contacts__map { height: auto; aspect-ratio: 388 / 77; border-color: #e4c2ab; border-radius: 4px; }
	.home .teomed-home-contacts__map img { height: 100%; }
	.home .teomed-footer--home { min-height: 0; padding-bottom: 14px; border-top-color: #b8cdc7; }
	.home .teomed-footer-home__inner { padding-top: 90px; }
	.home .teomed-footer-home__logo { top: 5px; }
	.home .teomed-footer--home .teomed-logo-link { width: 64px; min-height: 0; }
	.home .teomed-footer--home .teomed-logo-image,
	.home .teomed-footer--home .custom-logo { width: 64px; max-width: 100%; height: auto; }
	.home .teomed-footer-home__row { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; font-size: 10px; }
	.home .teomed-footer-home__row > nav { grid-column: 1 / -1; }
	.home .teomed-footer--home .teomed-footer-menu a { min-height: 28px; font-size: 11px; line-height: 1.45; }
}

@media (max-width: 359px) {
	.home .teomed-home-hero__lead { font-size: 16px; }
	.home .teomed-home-direction { grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; }
	.home .teomed-home-direction__media { height: 138px; }
	.home .teomed-home-direction__content h3 { font-size: 20px; }
	.home .teomed-home-direction__content p,
	.home .teomed-home-direction__content .teomed-arrow-link { font-size: 13px; }
	.home .teomed-home-direction__content .teomed-arrow-link { gap: 5px; }
	.home .teomed-home-doctor-list { width: 67%; }
	.home .teomed-home-doctor__info h3 { font-size: 17px; }
	.home .teomed-home-steps__list::before { left: 82px; }
	.home .teomed-home-steps__list li { grid-template-columns: 95px minmax(0, 1fr); }
	.home .teomed-home-steps__list h3 { font-size: 16px; }
	.home .teomed-home-contacts__details p { font-size: 12px; }
	.home .teomed-footer--home .teomed-footer-menu a { font-size: 10.5px; }
}
