/*
 * Сторінка центру (single-tmo_center).
 * Кольори й шрифт — зі змінних site.css, щоб центр виглядав частиною сайту.
 */

.tmo-cp-main {
	--cp-gutter: 45px;
	--cp-radius: 20px;
	--cp-radius-sm: 12px;
	--cp-line: rgba(58, 81, 110, 0.12);
	--cp-muted: rgba(44, 63, 87, 0.68);
	--cp-tint: #edf3fb;
	--cp-shadow: 0 10px 30px rgba(58, 81, 110, 0.1);
	font-family: var(--tmo-font);
	color: var(--tmo-ink);
	margin: 0;
	/* Тема задає відступи між блоками — у центрі ритм задають секції. */
	margin-block-start: 0 !important;
}

.tmo-cp-main > * {
	/* Макет теми додає відступ між дітьми групи — секції стикуються впритул. */
	margin-block: 0 !important;
}

.tmo-cp-main *,
.tmo-cp-main *::before,
.tmo-cp-main *::after {
	box-sizing: border-box;
}

.tmo-cp-main :where(figure) {
	margin: 0;
}

.tmo-cp-wrap {
	width: 100%;
	max-width: 90%;
	margin-inline: auto;
	padding-inline: var(--cp-gutter);
}

/*
 * Сторінки на сітці сайту (адміністрація, контакти): відступ від країв
 * --tmo-gutter, ширина не більша за --tmo-shell — вміст вирівняний із шапкою.
 */
.tmo-cp-main--shell .tmo-cp-wrap {
	max-width: var(--tmo-shell);
	padding-inline: var(--tmo-gutter);
}

.tmo-icon {
	width: 24px;
	height: 24px;
	flex: none;
}

.tmo-cp-empty {
	padding-block: 60px;
	color: var(--cp-muted);
}

/* ------------------------------------------------------------- Кнопки */

.tmo-cp-btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
	padding: 0 24px;
	border: 1.5px solid transparent;
	border-radius: 10px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tmo-cp-btn .tmo-icon {
	width: 20px;
	height: 20px;
	transition: transform 0.15s ease;
}

.tmo-cp-btn:hover .tmo-icon,
.tmo-cp-btn:focus-visible .tmo-icon {
	transform: translateX(3px);
}

.tmo-cp-btn--coral {
	background: var(--tmo-coral);
	color: #fff;
}

.tmo-cp-btn--coral:hover,
.tmo-cp-btn--coral:focus-visible {
	background: #e8625d;
	color: #fff;
}

.tmo-cp-btn--blue {
	background: var(--tmo-blue);
	color: #fff;
}

.tmo-cp-btn--blue:hover,
.tmo-cp-btn--blue:focus-visible {
	background: var(--tmo-blue-muted);
	color: #fff;
}

.tmo-cp-btn--outline {
	border-color: var(--tmo-blue);
	color: var(--tmo-blue-dark);
	background: transparent;
}

.tmo-cp-btn--outline:hover,
.tmo-cp-btn--outline:focus-visible {
	background: var(--tmo-blue);
	color: #fff;
}

.tmo-cp-btn--white {
	background: #fff;
	color: var(--tmo-blue-dark);
}

.tmo-cp-btn--white:hover,
.tmo-cp-btn--white:focus-visible {
	background: var(--tmo-blue-dark);
	color: #fff;
}

.tmo-cp-btn--ghost {
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
}

.tmo-cp-btn--ghost:hover,
.tmo-cp-btn--ghost:focus-visible {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.tmo-cp-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 500;
	color: var(--tmo-coral);
	text-decoration: none;
}

.tmo-cp-more .tmo-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.15s ease;
}

.tmo-cp-more:hover .tmo-icon,
.tmo-cp-more:focus-visible .tmo-icon {
	transform: translateX(3px);
}

.tmo-cp-actions {
	display: flex;
	justify-content: center;
	margin: 44px 0 0;
}

/* ------------------------------------------------------ Головний екран */

.tmo-cp-hero {
	position: relative;
	padding-block: 36px 72px;
	background:
		radial-gradient(1200px 500px at 0% 0%, rgba(115, 156, 210, 0.18), transparent 60%),
		linear-gradient(180deg, #fff 0%, var(--tmo-page, #f8f8f8) 100%);
	overflow: hidden;
}

.tmo-cp-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	gap: 56px;
	align-items: center;
}

.tmo-cp-hero--no-image .tmo-cp-hero__grid {
	grid-template-columns: minmax(0, 1fr);
	max-width: 1100px;
	margin-inline: 0;
}

.tmo-cp-hero__crumbs {
	margin-bottom: 34px;
}

.tmo-cp-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 7px 14px 7px 12px;
	border-radius: 999px;
	background: rgba(245, 122, 117, 0.12);
	font-size: 14px;
	font-weight: 500;
	color: #c9534e;
	display: none;
}

.tmo-cp-hero__eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tmo-coral);
}

.tmo-cp-hero__title {
	margin: 0;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.01em;
	color: var(--tmo-blue-dark);
	text-wrap: balance;
}

.tmo-cp-hero__subtitle {
	margin: 22px 0 0;
	max-width: 640px;
	font-size: clamp(17px, 1.25vw, 21px);
	line-height: 1.5;
	color: var(--cp-muted);
}

.tmo-cp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.tmo-cp-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 34px;
	margin: 40px 0 0;
	padding: 26px 0 0;
	border-top: 1px solid var(--cp-line);
	list-style: none;
}

.tmo-cp-hero__facts li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 16px;
	line-height: 1.35;
	color: var(--tmo-blue-dark);
}

.tmo-cp-hero__facts .tmo-icon {
	color: var(--tmo-blue);
	margin-top: 2px;
}

.tmo-cp-hero__facts small {
	display: block;
	margin-bottom: 2px;
	font-size: 13px;
	color: var(--cp-muted);
}

.tmo-cp-hero__facts a {
	color: inherit;
	font-weight: 500;
	text-decoration: none;
}

.tmo-cp-hero__facts a:hover {
	color: var(--tmo-coral);
}

.tmo-cp-hero__media {
	position: relative;
	margin: 0;
}

.tmo-cp-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 28px;
	box-shadow: var(--cp-shadow);
}

/* Декоративна підкладка за фото. */
.tmo-cp-hero__media::before {
	content: "";
	position: absolute;
	inset: 28px -28px -28px 28px;
	border-radius: 44px;
	background: none;
	z-index: -1;
	border: 8px solid rgba(115, 156, 210, 0.2);
}

.tmo-cp-hero__media {
	z-index: 0;
}

/* На широких екранах картка меню звисає з шапки — хлібні крихти опускаємо під неї. */
@media (min-width: 1401px) {
	.tmo-cp-hero {
		padding-top: 84px;
		padding-bottom: 44px;
	}
}

/* ------------------------------------- Шапка відділення (перший екран) */

/*
 * Відділення не має головного екрана з фото й контактами: сторінка
 * починається з крихт, назви та короткого опису — далі одразу секції.
 */
.tmo-dp-head {
	padding-block: 32px 36px;
	background: linear-gradient(180deg, #fff 0%, var(--tmo-page, #f8f8f8) 100%);
	border-bottom: 1px solid var(--cp-line);
}

.tmo-dp-head__crumbs {
	margin: 24px 0;
}

.tmo-dp-head__title {
	margin: 0;
	max-width: 100%;
	font-size: clamp(30px, 2.6vw, 40px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--tmo-blue-dark);
	text-wrap: balance;
}

@media (max-width: 700px) {
	.tmo-dp-head {
		padding-block: 20px 26px;
	}

	.tmo-dp-head__crumbs {
		margin: 16px 0;
	}
}

/* -------------------------------------------------------- Меню-якорі */

.tmo-cp-nav {
	position: sticky;
	top: 0;
	z-index: 15;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--cp-line);
}

/* Під панеллю адміністратора WordPress. */
.admin-bar .tmo-cp-nav {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.tmo-cp-nav__list {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.tmo-cp-nav__list::-webkit-scrollbar {
	display: none;
}

.tmo-cp-nav__list a {
	display: block;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 500;
	white-space: nowrap;
	color: var(--tmo-blue-dark);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.tmo-cp-nav__list a:hover {
	background: var(--cp-tint);
}

.tmo-cp-nav__list a.is-active {
	background: var(--tmo-blue);
	color: #fff;
}

/* ------------------------------------------------------------ Секції */

.tmo-cp-section {
	padding-block: 80px;
	scroll-margin-top: 70px;
}

/* Сторінка теми біла — «сірий» фон задаємо явно. */
.tmo-cp-section--bg-plain {
	background: var(--tmo-page, #f8f8f8);
}

/* Дві секції поспіль з однаковим фоном — без подвійного відступу. */
.tmo-cp-section--bg-plain + .tmo-cp-section--bg-plain,
.tmo-cp-section--bg-white + .tmo-cp-section--bg-white,
.tmo-cp-section--bg-tint + .tmo-cp-section--bg-tint {
	padding-top: 0;
}

.tmo-cp-section--bg-white {
	background: #fff;
}

.tmo-cp-section--bg-tint {
	background: var(--cp-tint);
}

/* Показники одразу під головним екраном — щільніше. */
.tmo-cp-section--stats {
	padding-block: 56px;
}

.tmo-cp-head {
	max-width: 90%;
	margin-bottom: 44px;
}

.tmo-cp-head__title {
	position: relative;
	margin: 0;
	padding-top: 22px;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--tmo-blue-dark);
}

.tmo-cp-head__title::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 44px;
	height: 4px;
	border-radius: 2px;
	background: var(--tmo-coral);
}

.tmo-cp-head__intro {
	margin: 6px 0 0;
	font-size: 18px;
	line-height: 1.55;
	color: var(--cp-muted);
}

.tmo-cp-prose {
	font-size: 20px;
	line-height: 36px;
	color: #3b4552;
	font-weight: 300;
}

.tmo-cp-prose > :first-child {
	margin-top: 0;
}

.tmo-cp-prose > :last-child {
	margin-bottom: 0;
}

.tmo-cp-prose p {
	margin: 0 0 1em;
}

.tmo-cp-prose a {
	color: var(--tmo-blue-muted);
}

.tmo-cp-prose h3,
.tmo-cp-prose h4 {
	margin: 1.6em 0 0.6em;
	color: var(--tmo-blue-dark);
}

.tmo-cp-prose strong {
	color: var(--tmo-blue-dark);
}

/* Списки: акуратна риска замість маркера, прив'язана до першого рядка. */
.tmo-cp-prose ul {
	margin: 0 0 1em;
	padding: 0;
	list-style: none;
}

.tmo-cp-prose ul li {
	position: relative;
	padding-left: 46px;
}

.tmo-cp-prose ul li + li {
	margin-top: 16px;
}

.tmo-cp-prose ul li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 20px;
	width: 24px;
	height: 2px;
	background: var(--tmo-coral);
}

.tmo-cp-prose ol {
	margin: 0 0 1em;
	padding-left: 1.4em;
}

.tmo-cp-prose ol li + li {
	margin-top: 10px;
}

.tmo-cp-prose ol li::marker {
	font-weight: 500;
	color: var(--tmo-coral);
}

/* --------------------------------------------------------- Показники */

.tmo-cp-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmo-cp-stat {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 26px 26px 24px;
	border-radius: var(--cp-radius);
	background: #fff;
	box-shadow: 0 1px 0 var(--cp-line);
}

.tmo-cp-section--bg-white .tmo-cp-stat {
	background: var(--cp-tint);
	box-shadow: none;
}

.tmo-cp-stat__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 14px;
	border-radius: 14px;
	background: rgba(115, 156, 210, 0.16);
	color: var(--tmo-blue-muted);
}

.tmo-cp-stat__icon .tmo-icon {
	width: 28px;
	height: 28px;
}

.tmo-cp-stat__value {
	font-size: clamp(34px, 2.6vw, 46px);
	font-weight: 700;
	line-height: 1;
	color: var(--tmo-blue);
}

.tmo-cp-stat__label {
	font-size: 16px;
	line-height: 1.35;
	color: var(--cp-muted);
}

/* --------------------------------------------------------- Про центр */

.tmo-cp-about {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 32px 64px;
	align-items: center;
}

.tmo-cp-about__text .tmo-cp-btn {
	margin-top: 28px;
}

.tmo-cp-about__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: var(--cp-radius);
}

/* Вертикальне фото: книжкове 3 : 4, щоб не зрізало голову на портреті. */
.tmo-cp-about__media--portrait img {
	aspect-ratio: 3 / 4;
}

/* Книжкове фото не розтягуємо на всю колонку — інакше воно вище за текст. */
.tmo-cp-about__media--portrait {
	max-width: 75%;
	margin-inline: auto;
}

/* Рамка-підкладка, як у фото на головному екрані центру. */
.tmo-cp-about__frame {
	position: relative;
	display: block;
	z-index: 0;
}

.tmo-cp-about__frame img {
	box-shadow: var(--cp-shadow);
}

.tmo-cp-about__frame::before {
	content: "";
	position: absolute;
	inset: 28px -28px -28px 28px;
	border-radius: 44px;
	border: 8px solid rgba(115, 156, 210, 0.2);
	z-index: -1;
}

/* Слайдшоу: фото лежать одне на одному, видно активне. */
.tmo-cp-about__slider {
	position: relative;
}

.tmo-cp-about__slides {
	position: relative;
	display: block;
}

.tmo-cp-about__slide {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	opacity: 0;
	transition: opacity 0.9s ease;
}

/* Перший слайд активний уже в розмітці, тож без JS видно саме його. */
.tmo-cp-about__slide:first-child {
	position: relative;
}

.tmo-cp-about__slide.is-active {
	z-index: 2;
	opacity: 1;
}

.tmo-cp-about__slide img {
	height: 100%;
}

.tmo-cp-about__dots {
	position: absolute;
	left: 20px;
	bottom: 20px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgb(255 255 255 / 62%);
	box-shadow: 0 6px 18px rgba(30, 53, 86, 0.12);
	backdrop-filter: blur(6px);
}

.tmo-cp-about__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(58, 81, 110, 0.32);
	cursor: pointer;
	transition: width 0.3s ease, background-color 0.3s ease;
}

.tmo-cp-about__dot:hover {
	background: rgba(58, 81, 110, 0.55);
}

.tmo-cp-about__dot.is-active {
	width: 24px;
	background: var(--tmo-coral);
}

@media (prefers-reduced-motion: reduce) {
	.tmo-cp-about__slide {
		transition: none;
	}
}

/*
 * Заглушка на місці фото: поки знімків відділення немає, колонка тримає
 * макет і стилістику сторінки — світла плитка з іконкою профілю.
 */
.tmo-cp-blank {
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 14px;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(120% 110% at 22% 0%, #fff 0%, rgba(255, 255, 255, 0) 62%),
		linear-gradient(152deg, var(--cp-tint) 0%, #e2ebf8 100%);
	color: rgba(115, 156, 210, 0.75);
	text-align: center;
}

.tmo-cp-blank__icon {
	display: grid;
	place-items: center;
}

.tmo-cp-blank__icon svg {
	width: 100%;
	height: 100%;
}

.tmo-cp-blank__note {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(58, 81, 110, 0.45);
}

/* У секції «Про відділення» — той самий формат і рамка, що й у фото. */
.tmo-cp-blank--about {
	aspect-ratio: 5 / 4;
	border-radius: var(--cp-radius);
	box-shadow: var(--cp-shadow);
}

.tmo-cp-blank--about .tmo-cp-blank__icon {
	width: 86px;
	height: 86px;
}

/* У картці переліку підпису немає — лише іконка на тлі плитки. */
.tmo-cp-blank--card .tmo-cp-blank__icon {
	width: 48px;
	height: 48px;
}

/* Цифри під текстом — компактні плитки без іконок. */
.tmo-cp-about__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.tmo-cp-about__fact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 320px;
	padding: 20px 22px;
	border: 1px solid #fafafa;
	border-radius: var(--cp-radius);
	background: #fafafa;
}

.tmo-cp-about__fact-value {
	font-size: 50px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--tmo-blue);
}

.tmo-cp-about__fact-label {
	font-size: 20px;
	line-height: 1.35;
	color: var(--cp-muted);
}

/* Картка керівника під текстом: фото, ПІБ, посада, звання, профіль. */
.tmo-cp-about__person {
	display: flex;
	gap: 32px;
	align-items: center;
	margin-top: 32px;
	padding: 32px;
	border-radius: 18px;
	background: #e2eaf563;
}

.tmo-cp-about__person-photo img {
	display: block;
	width: 170px;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: center top;
	border-radius: 16px;
	box-shadow: var(--cp-shadow);
}

.tmo-cp-about__person-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tmo-cp-about__person-name {
	font-size: 20px;
	font-weight: 600;
	color: var(--tmo-blue-dark);
}

.tmo-cp-about__person-role {
	font-size: 18px;
	font-weight: 500;
	color: var(--tmo-blue-muted);
}

.tmo-cp-about__person-note {
	font-size: 18px;
	color: var(--cp-muted);
}

.tmo-cp-about__person-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 230px;
	white-space: nowrap;
	margin-top: 12px;
	padding: 12px 20px;
	border: 2px solid #739cd2;
	border-radius: 10px;
	background: #739cd2;
	font-size: 16px;
	font-weight: 500;
	color: #fff;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tmo-cp-about__person-link:hover {
	border-color: var(--tmo-blue-muted);
	background: var(--tmo-blue-muted);
}

.tmo-cp-about__person-link .tmo-icon {
	width: 18px;
	height: 18px;
}

.tmo-cp-features {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.tmo-cp-feature {
	display: flex;
	gap: 14px;
	padding: 22px;
	border-radius: var(--cp-radius-sm);
	background: #fff;
	border: 1px solid var(--cp-line);
}

.tmo-cp-section--bg-white .tmo-cp-feature {
	background: var(--tmo-page, #f8f8f8);
}

.tmo-cp-feature__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--tmo-coral);
	color: #fff;
}

.tmo-cp-feature__icon .tmo-icon {
	width: 18px;
	height: 18px;
	stroke-width: 2.4;
}

.tmo-cp-feature__title {
	display: block;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--tmo-blue-dark);
}

.tmo-cp-feature__text {
	display: block;
	margin-top: 6px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--cp-muted);
}

/* ---------------------------------------------------------- Напрямки */

.tmo-cp-cards {
	display: grid;
	grid-template-columns: repeat(var(--cp-cols, 4), minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmo-cp-cards--2 { --cp-cols: 2; }
.tmo-cp-cards--3 { --cp-cols: 3; }
.tmo-cp-cards--4 { --cp-cols: 4; }

.tmo-cp-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--cp-radius);
	background: #fff;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tmo-cp-section--bg-white .tmo-cp-card {
	background: var(--tmo-page, #f8f8f8);
}

.tmo-cp-card:hover {
	box-shadow: var(--cp-shadow);
	transform: translateY(-3px);
}

.tmo-cp-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 11;
	object-fit: cover;
}

.tmo-cp-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 12px;
	padding: 24px 24px 26px;
}

.tmo-cp-card__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: rgba(245, 122, 117, 0.12);
	color: var(--tmo-coral);
}

.tmo-cp-card__title {
	margin: 0;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--tmo-blue-dark);
}

.tmo-cp-card__text {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--cp-muted);
}

.tmo-cp-card .tmo-cp-more {
	margin-top: auto;
	padding-top: 6px;
}

/* -------------------------------------------------- Керівництво (слайдер) */

.tmo-cp-section--team .tmo-cp-wrap {
	position: relative;
}

.tmo-cp-slider__controls {
	position: absolute;
	top: 14px;
	right: var(--cp-gutter);
	display: flex;
	gap: 10px;
}

.tmo-cp-slider.is-static .tmo-cp-slider__controls {
	display: none;
}

.tmo-cp-slider__btn {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1.5px solid var(--tmo-blue);
	border-radius: 50%;
	background: transparent;
	color: var(--tmo-blue-dark);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.tmo-cp-slider__btn:hover:not(:disabled) {
	background: var(--tmo-blue);
	color: #fff;
}

.tmo-cp-slider__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.tmo-cp-slider__btn--prev .tmo-icon {
	transform: rotate(180deg);
}

.tmo-cp-slider__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 24px) / 4);
	gap: 24px;
	margin: 0;
	padding: 0 0 8px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.tmo-cp-slider__track::-webkit-scrollbar {
	display: none;
}

.tmo-cp-person {
	scroll-snap-align: start;
}

.tmo-cp-person__inner {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.tmo-cp-person__photo {
	display: block;
	margin-bottom: 12px;
	border-radius: var(--cp-radius);
	background: linear-gradient(160deg, rgba(115, 156, 210, 0.25), rgba(115, 156, 210, 0.08));
	overflow: hidden;
	aspect-ratio: 4 / 4.6;
}

.tmo-cp-person__photo-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: rgba(58, 81, 110, 0.38);
}

.tmo-cp-person__photo-empty .tmo-icon {
	width: 52px;
	height: 52px;
	stroke-width: 1.4;
}

.tmo-cp-person__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.35s ease;
}

a.tmo-cp-person__inner:hover .tmo-cp-person__photo img {
	transform: scale(1.04);
}

.tmo-cp-person__name {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--tmo-blue-dark);
}

a.tmo-cp-person__inner:hover .tmo-cp-person__name {
	color: var(--tmo-coral);
}

.tmo-cp-person__role {
	font-size: 15px;
	line-height: 1.45;
	color: var(--cp-muted);
}

/* ---------------------------------------------------------- Структура */

.tmo-cp-structure {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 24px;
	align-items: start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmo-cp-structure__item {
	border-radius: var(--cp-radius-sm);
	background: #fff;
	border: 1px solid var(--cp-line);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tmo-cp-section--bg-white .tmo-cp-structure__item {
	background: var(--tmo-page, #f8f8f8);
}

.tmo-cp-structure__item:hover {
	border-color: rgba(115, 156, 210, 0.6);
}

.tmo-cp-structure__row {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 76px;
	padding: 14px 20px;
	color: var(--tmo-blue-dark);
	text-decoration: none;
	cursor: pointer;
	list-style: none;
}

.tmo-cp-structure__row::-webkit-details-marker {
	display: none;
}

.tmo-cp-structure__num {
	flex: none;
	width: 38px;
	font-size: 15px;
	font-weight: 700;
	color: var(--tmo-coral);
	font-variant-numeric: tabular-nums;
}

.tmo-cp-structure__name {
	flex: 1;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.35;
}

.tmo-cp-structure__go,
.tmo-cp-structure__toggle {
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--cp-tint);
	color: var(--tmo-blue-muted);
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.2s ease;
}

.tmo-cp-structure__go .tmo-icon {
	width: 18px;
	height: 18px;
}

a.tmo-cp-structure__row:hover .tmo-cp-structure__go {
	background: var(--tmo-blue);
	color: #fff;
}

/* Плюс, що обертається на хрестик. */
.tmo-cp-structure__toggle {
	position: relative;
}

.tmo-cp-structure__toggle::before,
.tmo-cp-structure__toggle::after {
	content: "";
	position: absolute;
	width: 14px;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
}

.tmo-cp-structure__toggle::after {
	transform: rotate(90deg);
	transition: transform 0.2s ease;
}

details[open] > summary .tmo-cp-structure__toggle {
	background: var(--tmo-blue);
	color: #fff;
}

details[open] > summary .tmo-cp-structure__toggle::after {
	transform: rotate(0deg);
}

.tmo-cp-structure__body {
	padding: 0 20px 20px 76px;
}

.tmo-cp-structure__body p {
	margin: 0 0 12px;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--cp-muted);
}

/* -------------------------------------------------------------- Лікарі */

.tmo-cp-doctors {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 24px;
}

.tmo-cp-section--bg-white .tmo-cp-doctors .tmo-doctor__link {
	background: var(--tmo-page, #f8f8f8);
}

/* ------------------------------------------------------ Плитки-посилання */

.tmo-cp-tiles {
	display: grid;
	/* Три в ряд — шість плиток лягають рівно 3 × 2. */
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmo-cp-tile {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 100%;
	padding: 22px;
	border-radius: var(--cp-radius-sm);
	background: #fff;
	border: 1px solid var(--cp-line);
	color: var(--tmo-blue-dark);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tmo-cp-section--bg-white .tmo-cp-tile {
	background: var(--tmo-page, #f8f8f8);
}

a.tmo-cp-tile:hover {
	border-color: var(--tmo-blue);
	box-shadow: var(--cp-shadow);
}

.tmo-cp-tile__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: rgba(115, 156, 210, 0.16);
	color: var(--tmo-blue-muted);
}

.tmo-cp-tile__text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tmo-cp-tile__text strong {
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
}

.tmo-cp-tile__text span {
	font-size: 14px;
	line-height: 1.4;
	color: var(--cp-muted);
}

.tmo-cp-tile__go {
	color: var(--tmo-coral);
	transition: transform 0.15s ease;
}

a.tmo-cp-tile:hover .tmo-cp-tile__go {
	transform: translateX(3px);
}

/* ------------------------------------------------------------- Галерея */

.tmo-cp-gallery {
	display: grid;
	grid-template-columns: repeat(var(--cp-cols, 4), minmax(0, 1fr));
	grid-auto-rows: 220px;
	gap: 16px;
}

.tmo-cp-gallery__item {
	position: relative;
	display: block;
	border-radius: var(--cp-radius-sm);
	overflow: hidden;
	background: var(--cp-tint);
}

.tmo-cp-gallery__item:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.tmo-cp-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.tmo-cp-gallery__item:hover img {
	transform: scale(1.04);
}

.tmo-cp-lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(20, 28, 40, 0.94);
	color: #fff;
}

.tmo-cp-lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.tmo-cp-lightbox::backdrop {
	background: transparent;
}

.tmo-cp-lightbox figure {
	margin: 0;
	max-width: calc(100vw - 180px);
	text-align: center;
}

.tmo-cp-lightbox img {
	display: block;
	max-width: 100%;
	max-height: 82vh;
	margin: 0 auto;
	border-radius: 8px;
}

.tmo-cp-lightbox figcaption {
	margin-top: 14px;
	font-size: 15px;
	opacity: 0.8;
}

.tmo-cp-lightbox button {
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
}

.tmo-cp-lightbox button:hover {
	background: rgba(255, 255, 255, 0.24);
}

.tmo-cp-lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 30px;
	line-height: 1;
}

.tmo-cp-lightbox__nav {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0 20px;
	border-radius: 50%;
}

.tmo-cp-lightbox__nav--prev .tmo-icon {
	transform: rotate(180deg);
}

/* ---------------------------------------------------------------- FAQ */

.tmo-cp-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 1000px;
}

.tmo-cp-faq__item {
	border-radius: var(--cp-radius-sm);
	background: #fff;
	border: 1px solid var(--cp-line);
}

.tmo-cp-section--bg-white .tmo-cp-faq__item {
	background: var(--tmo-page, #f8f8f8);
}

.tmo-cp-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 22px;
	font-size: 18px;
	font-weight: 500;
	color: var(--tmo-blue-dark);
	cursor: pointer;
	list-style: none;
}

.tmo-cp-faq__q::-webkit-details-marker {
	display: none;
}

.tmo-cp-faq__a {
	padding: 0 22px 22px;
	font-size: 16px;
}

/* ----------------------------------------------------------- Документи */

.tmo-cp-docs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmo-cp-doc {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	border-radius: var(--cp-radius-sm);
	background: #fff;
	border: 1px solid var(--cp-line);
	color: var(--tmo-blue-dark);
	text-decoration: none;
}

.tmo-cp-section--bg-white .tmo-cp-doc {
	background: var(--tmo-page, #f8f8f8);
}

.tmo-cp-doc:hover {
	border-color: var(--tmo-blue);
}

.tmo-cp-doc__icon {
	color: var(--tmo-coral);
}

.tmo-cp-doc__title {
	flex: 1;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
}

.tmo-cp-doc__meta {
	font-size: 13px;
	color: var(--cp-muted);
	white-space: nowrap;
}

.tmo-cp-doc__go {
	color: var(--tmo-blue);
}

/* ------------------------------------------------------------- Новини */

.tmo-cp-news {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmo-cp-news__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding-bottom: 22px;
	border-radius: var(--cp-radius);
	background: #fff;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
}

.tmo-cp-news__media {
	display: block;
	margin-bottom: 8px;
	aspect-ratio: 16 / 10;
	background: var(--cp-tint);
}

.tmo-cp-news__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tmo-cp-news__date {
	padding-inline: 22px;
	font-size: 14px;
	color: var(--tmo-coral);
}

.tmo-cp-news__title {
	padding-inline: 22px;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--tmo-blue-dark);
}

.tmo-cp-news__card:hover .tmo-cp-news__title {
	color: var(--tmo-coral);
}

/* ------------------------------------------------------------- Банер */

.tmo-cp-cta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px 60px;
	padding: 56px 60px;
	border-radius: 28px;
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.tmo-cp-cta--blue {
	background: linear-gradient(120deg, var(--tmo-blue-dark) 0%, var(--tmo-blue) 100%);
}

.tmo-cp-cta--coral {
	background: linear-gradient(120deg, #e15f5a 0%, var(--tmo-coral) 100%);
}

/* Лінія кардіограми фоном. */
.tmo-cp-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200' preserveAspectRatio='none'%3E%3Cpath d='M0 110h210l20-50 30 110 30-140 26 80h284' fill='none' stroke='white' stroke-opacity='.14' stroke-width='3'/%3E%3C/svg%3E") no-repeat right center / 60% 100%;
}

.tmo-cp-cta__title {
	margin: 0 0 12px;
	font-size: clamp(26px, 2.2vw, 38px);
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
}

.tmo-cp-cta__text p {
	margin: 0;
	max-width: 680px;
	font-size: 18px;
	line-height: 1.55;
	opacity: 0.92;
}

.tmo-cp-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	flex: none;
}

/* -------------------------------------------------------------- Текст */

.tmo-cp-text {
	max-width: 960px;
}

.tmo-cp-text--with-image {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 56px;
	align-items: center;
	max-width: none;
}

.tmo-cp-text--image-left .tmo-cp-text__media {
	order: -1;
}

.tmo-cp-text__media img {
	display: block;
	width: 90%;
	height: auto;
	border-radius: var(--cp-radius);
}

/* ----------------------------------------------------------- Контакти */

.tmo-cp-contacts {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 24px;
	align-items: stretch;
}

.tmo-cp-contacts--no-map {
	grid-template-columns: minmax(0, 1fr);
	max-width: 760px;
}

.tmo-cp-contacts__card {
	display: flex;
	flex-direction: column;
	gap: 26px;
	padding: 36px;
	border-radius: var(--cp-radius);
	background: #fff;
}

.tmo-cp-section--bg-white .tmo-cp-contacts__card {
	background: var(--tmo-page, #f8f8f8);
}

.tmo-cp-contacts__row {
	display: flex;
	gap: 18px;
}

.tmo-cp-contacts__row + .tmo-cp-contacts__row {
	padding-top: 26px;
	border-top: 1px solid var(--cp-line);
}

.tmo-cp-contacts__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: rgba(115, 156, 210, 0.16);
	color: var(--tmo-blue-muted);
}

.tmo-cp-contacts__row h3 {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--cp-muted);
}

.tmo-cp-contacts__row p {
	margin: 0;
}

.tmo-cp-contacts__big {
	font-size: 19px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--tmo-blue-dark);
	text-decoration: none;
}

a.tmo-cp-contacts__big:hover {
	color: var(--tmo-coral);
}

.tmo-cp-contacts__muted {
	display: block;
	margin-top: 2px;
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--cp-muted);
}

.tmo-cp-contacts__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmo-cp-contacts__schedule {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 24px;
	margin: 0;
	font-size: 16px;
}

.tmo-cp-contacts__schedule dt {
	color: var(--cp-muted);
}

.tmo-cp-contacts__schedule dd {
	margin: 0;
	font-weight: 500;
	color: var(--tmo-blue-dark);
}

.tmo-cp-contacts__note {
	padding: 18px 20px;
	border-radius: var(--cp-radius-sm);
	background: var(--cp-tint);
	font-size: 15.5px;
}

.tmo-cp-contacts__map {
	min-height: 420px;
	border-radius: var(--cp-radius);
	overflow: hidden;
	background: var(--cp-tint);
}

.tmo-cp-contacts__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 420px;
	border: 0;
}

/* ------------------------------------------------------------ Адаптив */

@media (max-width: 1400px) {
	.tmo-cp-cards--4 { --cp-cols: 2; }

	.tmo-cp-slider__track {
		grid-auto-columns: calc((100% - 2 * 24px) / 3);
	}

	.tmo-cp-doctors {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1100px) {
	.tmo-cp-main {
		--cp-gutter: 28px;
	}

	.tmo-cp-hero__grid,
	.tmo-cp-about,
	.tmo-cp-text--with-image,
	.tmo-cp-contacts {
		grid-template-columns: minmax(0, 1fr);
	}

	.tmo-cp-about__frame,
	.tmo-cp-hero__media {
		margin-right: 28px;
	}

	.tmo-cp-cards--3 { --cp-cols: 2; }

	.tmo-cp-structure,
	.tmo-cp-docs {
		grid-template-columns: minmax(0, 1fr);
	}

	.tmo-cp-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tmo-cp-doctors {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tmo-cp-gallery {
		grid-auto-rows: 180px;
	}

	.tmo-cp-cta {
		flex-direction: column;
		align-items: flex-start;
		padding: 40px 36px;
	}

	.tmo-cp-slider__track {
		grid-auto-columns: calc((100% - 24px) / 2);
	}
}

@media (max-width: 700px) {
	.tmo-cp-main {
		--cp-gutter: 16px;
	}

	.tmo-cp-hero {
		padding-block: 20px 48px;
	}

	.tmo-cp-hero__crumbs {
		margin-bottom: 20px;
	}

	.tmo-cp-hero__actions .tmo-cp-btn {
		flex: 1 1 100%;
		justify-content: space-between;
	}

	.tmo-cp-hero__media {
		margin-right: 14px;
	}

	.tmo-cp-hero__media::before {
		inset: 14px -14px -14px 14px;
	}

	.tmo-cp-hero__media img {
		border-radius: 18px;
	}

	.tmo-cp-section {
		padding-block: 56px;
	}

	.tmo-cp-head {
		margin-bottom: 28px;
	}

	.tmo-cp-cards--2,
	.tmo-cp-cards--3,
	.tmo-cp-cards--4 {
		--cp-cols: 1;
	}

	.tmo-cp-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.tmo-cp-stat {
		padding: 18px;
	}

	.tmo-cp-tiles {
		grid-template-columns: minmax(0, 1fr);
	}

	.tmo-cp-stat:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.tmo-cp-stat__icon {
		width: 42px;
		height: 42px;
		margin-bottom: 8px;
	}

	.tmo-cp-slider__controls {
		position: static;
		justify-content: flex-end;
		margin: -12px 0 16px;
	}

	.tmo-cp-slider__track {
		grid-auto-columns: 78%;
	}

	.tmo-cp-structure__body {
		padding-left: 20px;
	}

	.tmo-cp-doctors {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 16px;
	}

	.tmo-cp-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 140px;
		gap: 8px;
	}

	/* На телефоні дві колонки: останнє фото без пари тягнемо на всю ширину. */
	.tmo-cp-gallery__item:last-of-type {
		grid-column: auto !important;
	}

	.tmo-cp-gallery__item:nth-of-type(2n):last-of-type {
		grid-column: 1 / -1 !important;
	}

	.tmo-cp-contacts__card {
		padding: 24px 20px;
	}

	.tmo-cp-contacts__map,
	.tmo-cp-contacts__map iframe {
		min-height: 320px;
	}

	.tmo-cp-cta {
		padding: 32px 22px;
		border-radius: 20px;
	}

	.tmo-cp-lightbox figure {
		max-width: 100vw;
	}

	.tmo-cp-lightbox__nav {
		position: absolute;
		bottom: 20px;
	}

	.tmo-cp-lightbox__nav--prev {
		left: 20px;
	}

	.tmo-cp-lightbox__nav:not(.tmo-cp-lightbox__nav--prev) {
		right: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tmo-cp-main *,
	.tmo-cp-main *::before,
	.tmo-cp-main *::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* ------------------------------------------------- Перелік центрів (архів) */

.tmo-cl {
	padding-block: 28px 80px;
}

/*
 * На широких екранах картка меню звисає з шапки — відступ зверху з урахуванням
 * звису, щоб хлібні крихти не підлазили під неї (як у новинах).
 */
@media (min-width: 1401px) {
	.tmo-cl {
		padding-top: 84px;
	}
}

.tmo-cl__crumbs {
	margin-bottom: 16px;
}

.tmo-cl__title {
	margin: 0 0 32px;
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 700;
	line-height: 1.2;
}

.tmo-cl__empty {
	margin: 0;
	color: var(--cp-muted);
}

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

.tmo-cl-card {
	border: 1px solid var(--cp-line);
	border-radius: var(--cp-radius);
	background: #fff;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.tmo-cl-card:hover,
.tmo-cl-card:focus-within {
	border-color: transparent;
	box-shadow: var(--cp-shadow);
	transform: translateY(-3px);
}

.tmo-cl-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.tmo-cl-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--cp-tint);
	overflow: hidden;
}

.tmo-cl-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.tmo-cl-card:hover .tmo-cl-card__media img {
	transform: scale(1.04);
}

.tmo-cl-card__title {
	display: block;
	padding: 20px 22px 22px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
}

.tmo-cl-card__link:hover .tmo-cl-card__title,
.tmo-cl-card__link:focus-visible .tmo-cl-card__title {
	color: var(--tmo-blue);
}

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

@media (max-width: 700px) {
	.tmo-cl {
		padding-block: 20px 56px;
	}

	.tmo-cl__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------------------------------------------- Поява блоків при скролі */

/*
 * Ховаємо лише тоді, коли на <html> є tmo-reveal-on (JS увімкнено й анімації
 * не вимкнені в системі). Без JS усе видно одразу. Логіка — у home-reveal.js.
 */
.tmo-reveal-on .tmo-cp-head,
.tmo-reveal-on .tmo-cp-about__text,
.tmo-reveal-on .tmo-cp-about__media,
.tmo-reveal-on .tmo-cp-about__fact,
.tmo-reveal-on .tmo-cp-text > .tmo-cp-prose,
.tmo-reveal-on .tmo-cp-text__media,
.tmo-reveal-on .tmo-cp-stat,
.tmo-reveal-on .tmo-cp-card,
.tmo-reveal-on .tmo-cp-slider,
.tmo-reveal-on .tmo-cp-gallery__item,
.tmo-reveal-on .tmo-cp-structure__item,
.tmo-reveal-on .tmo-cp-tile,
.tmo-reveal-on .tmo-cp-doc,
.tmo-reveal-on .tmo-cp-faq,
.tmo-reveal-on .tmo-cp-contacts,
.tmo-reveal-on .tmo-cp-cta,
.tmo-reveal-on .tmo-cp-news,
.tmo-reveal-on .tmo-cp-reviews {
	opacity: 0;
	transform: translate3d(0, 40px, 0);
	transition:
		opacity 0.7s cubic-bezier(0.22, 0.7, 0.2, 1) var(--reveal-delay, 0ms),
		transform 0.8s cubic-bezier(0.22, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

.tmo-reveal-on .tmo-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Після появи — без затримок і трансформацій, щоб не заважати слайдерам і наведенню. */
.tmo-reveal-on .tmo-reveal.is-done {
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.tmo-reveal-on .tmo-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
