/*
 * Шапка, меню, підвал і хіроу — за макетом Figma (1920 px).
 * Розміри з макета переведені у відносні там, де блок має тягнутись.
 */

:root {
	--tmo-blue: #739cd2;
	--tmo-blue-dark: #3a516e;
	--tmo-blue-muted: #5a7ca9;
	--tmo-coral: #f57a75;
	--tmo-ink: #2c2c2c;
	--tmo-page: #f8f8f8;
	--tmo-font: 'Google Sans', 'Product Sans', 'Manrope', Roboto, Arial, sans-serif;
	--tmo-shell: 1920px;
}

/*
 * Шрифт макета — на весь сайт. Тема задає свій через :root :where(...),
 * тож звичайних селекторів вистачає, щоб перекрити її правила.
 */
body,
h1, h2, h3, h4, h5, h6,
input, button, select, textarea,
.wp-block-button__link {
	font-family: var(--tmo-font);
}

.tmo-topbar,
.tmo-nav,
.tmo-footer,
.tmo-hero {
	font-family: var(--tmo-font);
}

/* Смуги шапки/підвалу тягнуться на всю ширину навіть у сітці теми. */
.tmo-topbar,
.tmo-nav,
.tmo-footer {
	width: 100%;
	box-sizing: border-box;
}

.tmo-topbar__inner,
.tmo-footer__inner {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: var(--tmo-shell);
}

/* --------------------------------------------------------------- Шапка */

:root {
	--tmo-navy: #1e3556;
	--tmo-line: rgba(115, 156, 210, 0.22);
}

/* Іконки з набору tmo_icon() — лінії кольором тексту. */
.tmo-icon {
	width: 24px;
	height: 24px;
	flex: none;
}

/* Вся шапка (смуга + картка меню) — одна світла площина.
header.wp-block-template-part:has(.tmo-topbar) {
	position: relative;
	z-index: 20;
	background: linear-gradient(180deg, #fff 0%, #fff 55%, #f6f9fd 100%);
} */


header.wp-block-template-part:has(.tmo-topbar) {
    position: relative;
    z-index: 20;
    background: linear-gradient(180deg, #e7eef7 0%, #ffffff 55%, #fbfbfb 100%);
    border-radius: 0 0 20px 20px;
}

/*
 * Фіксована висота — лише коли шапка в один рядок (понад 1400 px):
 * тоді картка меню звисає з неї. Вужче шапка переноситься на кілька
 * рядків, і з фіксованою висотою меню накривало б початок сторінки.
 */
@media (min-width: 1401px) {
    header.wp-block-template-part:has(.tmo-topbar) {
        height: 160px;
    }
}

/* Вужче шапка в кілька рядків: меню — у звичайному потоці, під смугою, а не поверх сторінки. */
@media (max-width: 1400px) {
    header.wp-block-template-part:has(.tmo-topbar) .tmo-nav {
        position: static;
    }
}



/* Випадайка контактів лягає поверх картки меню. */
.tmo-topbar {
	position: relative;
	z-index: 21;
}

.tmo-topbar__inner {
	display: flex;
	align-items: center;
	gap: 48px;
	min-height: 112px;
	padding: 18px 45px;
}

/* Логотип — широкий лок-ап, у якому видно лише емблему (як у макеті). */
.tmo-brand {
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
	color: var(--tmo-blue-dark);
	flex: none;
}

.tmo-brand__mark {
	display: block;
	width: 60px;
	height: 60px;
	overflow: hidden;
	flex: none;
}

.tmo-brand__mark img {
	display: block;
	height: 100%;
	width: auto;
	max-width: none;
}

.tmo-brand__mark--sm {
	width: 48px;
	height: 41px;
}

.tmo-brand__name {
	font-size: 16px;
	line-height: 1.3;
	font-weight: 400;
	white-space: nowrap;
}

.tmo-brand__name strong {
	display: block;
	font-size: 24px;
	line-height: 1.15;
	font-weight: 500;
	color: var(--tmo-navy);
}

/* Гасло за вертикальною рискою; другий рядок зсунутий, як від руки. */
.tmo-tagline {
	display: flex;
	flex-direction: column;
	flex: none;
	padding: 4px 0 4px 26px;
	border-left: 1px solid var(--tmo-line);
	font-size: 21px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.2;
	color: var(--tmo-blue-muted);
}

.tmo-tagline span + span {
	padding-left: 10px;
}

.tmo-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1 1 560px;
	max-width: 640px;
	height: 54px;
	margin-left: auto;
	padding: 0 8px 0 22px;
	border: 1px solid var(--tmo-line);
	border-radius: 999px;
	background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
	box-shadow: 0 8px 22px rgba(58, 81, 110, 0.07);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tmo-search:focus-within {
	border-color: var(--tmo-blue);
	box-shadow: 0 0 0 4px rgba(115, 156, 210, 0.18), 0 8px 22px rgba(58, 81, 110, 0.07);
}

.tmo-search__icon {
	width: 26px;
	height: 26px;
	color: var(--tmo-blue-dark);
}

.tmo-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 17px;
	color: var(--tmo-navy);
	padding: 0;
}

.tmo-search input[type="search"]::placeholder {
	color: rgba(58, 81, 110, 0.6);
}

.tmo-search input[type="search"]:focus {
	outline: none;
}

.tmo-search__submit {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--tmo-blue-dark);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tmo-search__submit:hover,
.tmo-search__submit:focus-visible {
	background: var(--tmo-blue);
	color: #fff;
}

.tmo-contact {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: none;
	position: relative;
}

.tmo-contact__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(180deg, rgba(115, 156, 210, 0.2), rgba(115, 156, 210, 0.1));
}

.tmo-contact__icon img {
	width: 26px;
	height: 26px;
}

.tmo-contact__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	line-height: 1.15;
}

.tmo-contact__label {
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--tmo-blue-dark);
}

.tmo-contact__phone {
	font-size: 25px;
	font-weight: 500;
	color: var(--tmo-navy);
	text-decoration: none;
	white-space: nowrap;
}

.tmo-contact__phone:hover,
.tmo-contact__phone:focus-visible {
	color: var(--tmo-coral);
}

.tmo-contact__more {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: var(--tmo-navy);
	transition: background-color 0.2s ease;
}

.tmo-contact__more .tmo-icon {
	width: 20px;
	height: 20px;
	transform: rotate(90deg);
	transition: transform 0.2s ease;
}

.tmo-contact:hover .tmo-contact__more,
.tmo-contact:focus-within .tmo-contact__more {
	background: rgba(115, 156, 210, 0.16);
}

.tmo-contact:hover .tmo-contact__more .tmo-icon,
.tmo-contact:focus-within .tmo-contact__more .tmo-icon {
	transform: rotate(270deg);
}

/* ---------------------------------------- Випадайка контактів у шапці */

/*
 * Розкривається по наведенню на весь блок контактів і по фокусу з
 * клавіатури (:focus-within ловить таб на номер усередині).
 */
.tmo-contact__drop {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 30;
	box-sizing: border-box;
	width: max-content;
	max-width: min(620px, calc(100vw - 32px));
	margin-top: 14px;
	border-radius: 12px;
	background: #fff;
	/* Нижня смуга з поштою та соцмережами йде врівень із краями. */
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(44, 44, 44, 0.16);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

/* Місток під блоком, щоб курсор дійшов до випадайки крізь відступ. */
.tmo-contact__drop::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 100%;
	left: 0;
	height: 14px;
}

.tmo-contact:hover .tmo-contact__drop,
.tmo-contact:focus-within .tmo-contact__drop {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

/* Номери — двома стовпцями, як на макеті контактів. */
.tmo-phones {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 40px;
}

.tmo-phones__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tmo-phones__number {
	font-size: 20px;
	line-height: 1.15;
	color: var(--tmo-blue);
	text-decoration: none;
	white-space: nowrap;
}

.tmo-phones__number b {
	font-weight: 500;
	color: var(--tmo-ink);
}

.tmo-phones__number:hover,
.tmo-phones__number:focus-visible {
	color: var(--tmo-blue-dark);
}

.tmo-phones__label {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--tmo-blue-muted);
}

.tmo-contact__drop .tmo-phones {
	padding: 24px 28px 20px;
}

.tmo-contact__drop-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 28px;
	border-top: none;
	background: #e1e9f5;
}

.tmo-contact__mail {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	color: var(--tmo-blue-dark);
	text-decoration: none;
}

.tmo-contact__mail img {
	width: 28px;
	height: auto;
}

.tmo-contact__mail:hover,
.tmo-contact__mail:focus-visible {
	color: var(--tmo-blue);
}

.tmo-contact__social {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

/* Іконки соцмереж і пошти в шапці малюються маскою, тож колір задається тут. */
.tmo-contact__social a,
.tmo-contact__mail-icon {
	display: block;
	width: 28px;
	height: 28px;
	background-color: var(--tmo-blue);
	-webkit-mask: var(--tmo-mask-icon) center / contain no-repeat;
	mask: var(--tmo-mask-icon) center / contain no-repeat;
	transition: background-color 0.15s ease;
}

.tmo-contact__mail-icon {
	flex: none;
	width: 24px;
	height: 24px;
}

.tmo-contact__social a:hover,
.tmo-contact__social a:focus-visible {
	background-color: var(--tmo-blue-dark);
}

.tmo-contact__social img {
	display: block;
	width: 28px;
	height: 28px;
}

.tmo-contact__social a:hover img,
.tmo-contact__social a:focus-visible img {
	opacity: 0.75;
}

.tmo-cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: none;
	height: 60px;
	padding: 0 24px 0 26px;
	border-radius: 999px;
	background: linear-gradient(135deg, #f78a85 0%, var(--tmo-coral) 45%, #ec625d 100%);
	box-shadow: 0 12px 26px rgba(245, 122, 117, 0.38);
	color: #fff;
	font-size: 18px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tmo-cta img {
	width: 26px;
	height: 26px;
}

.tmo-cta__arrow {
	width: 20px;
	height: 20px;
	transition: transform 0.25s ease;
}

.tmo-cta:hover,
.tmo-cta:focus-visible {
	color: #fff;
	box-shadow: 0 16px 32px rgba(245, 122, 117, 0.48);
	transform: translateY(-1px);
}

.tmo-cta:hover .tmo-cta__arrow,
.tmo-cta:focus-visible .tmo-cta__arrow {
	transform: translateX(4px);
}

/* ---------------------------------------------------------------- Меню */

/* Меню — біла картка з тінню в межах сітки шапки, а не смуга на всю ширину. */
.tmo-nav {
	box-sizing: border-box;
	max-width: var(--tmo-shell);
	margin: 0 auto;
	padding: 0 45px 22px;
}

.tmo-nav{
	box-sizing: border-box;
	max-width: 100%;
	margin: 0 auto;
	position: absolute;
}

/*
 * Колір пунктів задаємо тут, а не на самому посиланні. Ядро тримає
 * правило .wp-block-navigation .wp-block-navigation-item__content
 * .wp-block-navigation-item__content { color: inherit } — клас у ньому
 * подвоєний, тож воно переважає будь-який наш селектор із двох класів,
 * хоч би в якому порядку підключались файли. Замість боротьби зі
 * специфічністю даємо цьому inherit правильне джерело.
 *
 * Картка — лише на <nav>: внутрішній <ul> ядро теж позначає класом
 * wp-block-navigation, і без тега рамка з тінню малювалась би двічі.
 */
.tmo-nav nav.wp-block-navigation {
	box-sizing: border-box;
	min-height: 78px;
	padding: 0 34px;
	display: flex;
	align-items: stretch;
	border: 1px solid rgba(115, 156, 210, 0.14);
	border-radius: 16px;
	background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
	box-shadow: 0 14px 34px rgba(58, 81, 110, 0.1);
	color: var(--tmo-navy);
}


.tmo-nav nav.wp-block-navigation{
	max-width: calc( var(--tmo-shell) - 90px);
	margin:0 auto;
}

.tmo-nav .wp-block-navigation__container {
	gap: 12px 52px;
	flex-wrap: wrap;
	align-items: stretch;
}

.tmo-nav .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: var(--tmo-navy);
}

.tmo-nav .wp-block-navigation-item__content {
	font-size: 19px;
	font-weight: 500;
	text-decoration: none;
}

/* Галочка верхнього рядка — під колір тексту. */
.tmo-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-icon {
	color: var(--tmo-navy);
	margin-left: 8px;
	margin-top: -4px;
}

.tmo-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-icon svg {
	width: 13px;
	height: 13px;
	stroke: currentColor;
	stroke-width: 2px;
}

@media (min-width: 600px) {
	/* Пункт займає всю висоту картки — підкреслення лягає на її нижній край. */
	.tmo-nav .wp-block-navigation__container > .wp-block-navigation-item {
		position: relative;
		align-items: center;
	}

	.tmo-nav .wp-block-navigation__container > .wp-block-navigation-item::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 4px;
		border-radius: 4px 4px 0 0;
		background: var(--tmo-blue);
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform 0.25s ease;
	}

	.tmo-nav .wp-block-navigation__container > .wp-block-navigation-item:hover::before,
	.tmo-nav .wp-block-navigation__container > .wp-block-navigation-item:focus-within::before,
	.tmo-nav .wp-block-navigation__container > .current-menu-item::before,
	.tmo-nav .wp-block-navigation__container > .current-menu-ancestor::before {
		transform: scaleX(1);
	}

	.tmo-nav .wp-block-navigation__container > .wp-block-navigation-item:hover:not(.current-menu-item):not(.current-menu-ancestor)::before {
		background: rgba(115, 156, 210, 0.45);
	}

	.tmo-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		padding-block: 26px;
	}
}

/* Спільна основа випадайок. Колір — знову джерело для ядрового inherit. */
.tmo-nav .wp-block-navigation .wp-block-navigation__submenu-container {
	background: #fff;
	border: 1px solid rgba(115, 156, 210, 0.16);
	border-radius: 16px;
	box-shadow: 0 24px 48px rgba(30, 53, 86, 0.14), 0 2px 6px rgba(30, 53, 86, 0.04);
	padding: 8px;
	min-width: 300px;
	margin-top: 10px;
	color: var(--tmo-navy);
	transform: translateY(8px);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Ширина з подвоєним класом — інакше ядро при наведенні ставить min-width: 200px. */
.tmo-nav .wp-block-navigation .has-child > .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
	min-width: 300px;
}

/* Поява: панель трохи під'їжджає знизу. */
.tmo-nav .wp-block-navigation .has-child:hover > .wp-block-navigation__submenu-container,
.tmo-nav .wp-block-navigation .has-child:focus-within > .wp-block-navigation__submenu-container,
.tmo-nav .wp-block-navigation .has-child > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
	transform: none;
}

/*
 * Між карткою меню і панеллю є проміжок. Щоб курсор не «випадав»
 * у ньому і меню не закривалось, розтягуємо область наведення пункту вниз.
 */
.tmo-nav .wp-block-navigation .wp-block-navigation__container > .has-child::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 14px;
}

/* Вкладені панелі відкриваються збоку — з таким самим проміжком. */
.tmo-nav .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
	top: -9px;
	margin-top: 0;
	margin-left: 10px;
	min-width: 300px;
	transform: translateX(-6px);
}

.tmo-nav .wp-block-navigation .wp-block-navigation__submenu-container .has-child:hover > .wp-block-navigation__submenu-container,
.tmo-nav .wp-block-navigation .wp-block-navigation__submenu-container .has-child:focus-within > .wp-block-navigation__submenu-container {
	transform: none;
}

/* Місток до бічної панелі. */
.tmo-nav .wp-block-navigation .wp-block-navigation__submenu-container .has-child::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 100%;
	width: 12px;
}

.tmo-nav .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item {
	position: relative;
	background: transparent;
}

/*
 * Простий вигляд — для всіх пунктів, крім «Центрів»: список посилань
 * з округлою підсвіткою рядка під курсором.
 */
.tmo-nav .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content.wp-block-navigation-item__content {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border-radius: 10px;
	color: var(--tmo-navy);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	padding: 11px 16px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.tmo-nav .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content.wp-block-navigation-item__content:hover,
.tmo-nav .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content.wp-block-navigation-item__content:focus-visible,
.tmo-nav .wp-block-navigation .wp-block-navigation__submenu-container .has-child:hover > .wp-block-navigation-item__content.wp-block-navigation-item__content {
	background: #eef4fb;
	color: #2f5d97;
	text-decoration: none;
}

/* Сторінка, на якій зараз відвідувач. */
.tmo-nav .wp-block-navigation .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content.wp-block-navigation-item__content {
	background: #eef4fb;
	color: #2f5d97;
	box-shadow: inset 3px 0 0 var(--tmo-blue);
}

/* Галочка вкладеного рівня — праворуч у рядку, під колір тексту. */
.tmo-nav .wp-block-navigation .wp-block-navigation__submenu-container .has-child > .wp-block-navigation-item__content {
	padding-right: 42px;
}

/* Іконка малюється stroke: currentColor, тож колір задаємо кнопці. */
.tmo-nav .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	padding: 0;
	font-size: 20px;
	color: var(--tmo-blue-muted);
	background: transparent;
	/* Над підсвіткою рядка, інакше при наведенні галочка ховається під фоном. */
	z-index: 1;
}

.tmo-nav .wp-block-navigation .wp-block-navigation__submenu-container .has-child:hover > .wp-block-navigation__submenu-icon {
	color: #2f5d97;
}

/* ------------------------------------- Розгорнута випадайка «Центри» */

/*
 * Тільки в цьому пункті — назва центру, опис під нею і кружечок зі
 * стрілкою. Вкладений рівень (відділення) сюди не потрапляє: його
 * зрізає tmo_nav_flatten(), тож і стрілки-розкривачки тут немає.
 *
 * Класи подвоєні: ядро при наведенні ставить min-width: 200px
 * селектором із :hover, і без цього панель стискалась.
 */
.tmo-nav .wp-block-navigation .tmo-nav__centers.has-child > .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
	min-width: 540px;
	padding: 10px;
}

.tmo-nav .wp-block-navigation .tmo-nav__centers .wp-block-navigation__submenu-container .wp-block-navigation-item + .wp-block-navigation-item {
	margin-top: 2px;
}

.tmo-nav .wp-block-navigation .tmo-nav__centers .wp-block-navigation__submenu-container .wp-block-navigation-item__content.wp-block-navigation-item__content {
	position: relative;
	border-radius: 12px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.25;
	padding: 14px 68px 14px 16px;
}

/* Кружечок зі стрілкою праворуч; під курсором стає кораловим. */
.tmo-nav .wp-block-navigation .tmo-nav__centers .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	border-radius: 50%;
	background: rgba(115, 156, 210, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a7ca9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / 18px;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.tmo-nav .wp-block-navigation .tmo-nav__centers .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover::after,
.tmo-nav .wp-block-navigation .tmo-nav__centers .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible::after {
	background: var(--tmo-coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / 18px;
	transform: translateX(3px);
}

.tmo-submenu__desc {
	display: block;
	margin-top: 5px;
	max-width: 430px;
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(44, 63, 87, 0.7);
}

/* ---------------------------------------------------- Показники (stats) */

/*
 * Група з показниками на головній — у тій самій сітці, що хіроу й меню.
 * Відступи групи (padding 34px з редактора) скидаємо: край задає --tmo-gutter.
 */
.has-global-padding > .alignfull:has(> .tmo-stats),
.alignfull:has(> .tmo-stats) {
	margin-left: max(calc(var(--tmo-gutter) - var(--wp--style--root--padding-left, 0px)), calc((100% - var(--tmo-shell) + 2 * var(--tmo-gutter)) / 2)) !important;
	margin-right: max(calc(var(--tmo-gutter) - var(--wp--style--root--padding-right, 0px)), calc((100% - var(--tmo-shell) + 2 * var(--tmo-gutter)) / 2)) !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	width: auto;
	max-width: none;
}

/*
 * Плитки — у стилі показників сторінки центру: біла картка, іконка
 * в заокругленому квадраті. Іконка й текст — в один рядок, щоб ряд був низьким.
 */
.tmo-stats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--tmo-font);
}

.tmo-stat {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	padding: 18px 20px;
	border: 1px solid rgba(115, 156, 210, 0.16);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(58, 81, 110, 0.06);
	box-sizing: border-box;
	justify-content: space-between;
}

.tmo-stat__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: rgba(115, 156, 210, 0.16);
}

.tmo-stat__icon img {
	display: block;
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.tmo-stat__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	align-items: flex-end;
}

.tmo-stat__value {
	font-size: clamp(26px, 2vw, 38px);
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	color: var(--tmo-blue);
}

.tmo-stat__label {
	font-size: 14.5px;
	line-height: 1.3;
	color: rgba(44, 63, 87, 0.68);
}

/* Вузькі десктопи: п'ять плиток ще в ряд, тож компактніші іконка й відступи. */
@media (max-width: 1400px) {
	.tmo-stats {
		gap: 14px;
	}

	.tmo-stat {
		gap: 12px;
		padding: 16px;
	}

	.tmo-stat__icon {
		width: 46px;
		height: 46px;
		border-radius: 14px;
	}

	.tmo-stat__icon img {
		width: 30px;
		height: 30px;
	}

	.tmo-stat__value {
		font-size: 26px;
	}

	.tmo-stat__label {
		font-size: 13.5px;
	}
}

/* Планшет: 3 + 2 — сітка з 6 колонок, останні дві плитки ширші. */
@media (max-width: 1200px) {
	.tmo-stats {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 16px;
	}

	.tmo-stat {
		grid-column: span 2;
	}

	.tmo-stat:nth-child(n + 4) {
		grid-column: span 3;
	}
}

/* Телефон: по одній плитці в рядок — горизонтальні плитки й так низькі. */
@media (max-width: 600px) {
	.tmo-stats {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.tmo-stat,
	.tmo-stat:nth-child(n + 4) {
		grid-column: auto;
		padding: 12px 16px;
		gap: 14px;
	}

	.tmo-stat__icon {
		width: 48px;
		height: 48px;
		border-radius: 14px;
	}

	.tmo-stat__icon img {
		width: 30px;
		height: 30px;
	}

	.tmo-stat__value {
		font-size: 26px;
	}

	.tmo-stat__label {
		font-size: 14px;
	}
}

/* -------------------------------------------------------------- Підвал */

.tmo-footer {
	color: #fff;
}

.tmo-footer__main {
	background: var(--tmo-blue);
	padding: 61px 0 60px;
}

.tmo-footer__main .tmo-footer__inner {
	display: grid;
	grid-template-columns: 1.55fr 0.95fr 1fr 1.35fr;
	gap: 40px;
	padding: 0 75px;
	align-items: start;
}

.tmo-footer__heading {
	margin: 0 0 30px;
	font-size: 26px;
	line-height: 1.15;
	font-weight: 500;
	color: #fff;
}

.tmo-footer__col--contacts .tmo-footer__heading + * {
	margin-top: 0;
}

.tmo-footer__col--contacts .tmo-footer__heading:not(:first-child) {
	margin-top: 44px;
}

.tmo-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.tmo-footer__list a,
.tmo-footer__list span {
	color: #fff;
	font-size: 18px;
	line-height: 20px;
	text-decoration: none;
}

.tmo-footer__list a:hover,
.tmo-footer__list a:focus-visible {
	text-decoration: underline;
}

.tmo-footer__phones {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 18px 24px;
}

.tmo-footer__icon {
	width: 36px;
	height: auto;
	flex: none;
}

.tmo-footer__phone {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 160px;
}

.tmo-footer__phone a {
	display: block;
	color: #fff;
	font-size: 20px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.tmo-footer__phone b {
	font-weight: 500;
	color: rgba(255, 255, 255, 0.72);
}

.tmo-footer__phone span {
	font-size: 12px;
	color: #fff;
}

.tmo-footer__email {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 26px;
}

.tmo-footer__email a {
	color: #fff;
	font-size: 20px;
	text-decoration: underline;
}

.tmo-footer__schedule {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 20px;
	max-width: 420px;
}

.tmo-footer__schedule-name {
	display: block;
	font-size: 18px;
	font-weight: 500;
}

.tmo-footer__schedule-time {
	display: block;
	margin-top: 6px;
	font-size: 14px;
}

.tmo-footer__social {
	display: flex;
	gap: 28px;
	margin-top: 44px;
}

.tmo-footer__social img {
	width: 36px;
	height: 36px;
	display: block;
}

.tmo-footer__logos {
	grid-column: 2 / span 2;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 30px 62px;
	margin-top: 30px;
}

.tmo-footer__logos img {
	height: 63px;
	width: auto;
	max-width: 100%;
}

/* Нижня біла смуга */

.tmo-footer__bottom {
	background: #fff;
	color: #2f2f2f;
}

.tmo-footer__bottom .tmo-footer__inner {
	display: flex;
	align-items: center;
	gap: 40px;
	min-height: 100px;
	padding: 16px 35px;
	flex-wrap: wrap;
}

.tmo-footer__org {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
}

.tmo-footer__org-text {
	font-size: 14px;
	line-height: 14px;
	display: grid;
	gap: 8px;
}

.tmo-footer__copy {
	color: var(--tmo-blue-muted);
	font-size: 11px;
}

.tmo-footer__legal {
	display: flex;
	gap: 40px;
	flex: none;
	/* Праворуч у нижньому рядку підвалу. */
	margin-left: auto;
}

.tmo-footer__legal a,
.tmo-footer__legal span {
	color: var(--tmo-blue-muted);
	font-size: 16px;
	text-decoration: none;
}

.tmo-footer__legal a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------- Хіроу */

/*
 * Хіроу — заокруглена картка в тій самій сітці, що й меню: відступ від
 * країв вікна --tmo-gutter, ширина не більша за --tmo-shell.
 *
 * Блок має клас alignfull, і тема розтягує його від'ємними відступами на
 * свій root padding. Замість цього рахуємо відступ від батька: або
 * «root padding мінус наш відступ», або половина зайвої ширини, коли
 * вікно ширше за --tmo-shell (тоді картка стоїть по центру).
 */
:root {
	--tmo-gutter: 45px;
}

.tmo-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 534px;
	background: #f5f5f5;
	overflow: hidden;
	padding: 0;
	border-radius: 28px;
	box-shadow: 0 18px 44px rgba(30, 53, 86, 0.08);
	isolation: isolate;
}

.has-global-padding > .alignfull.tmo-hero,
.alignfull.tmo-hero {
	margin-left: max(calc(var(--tmo-gutter) - var(--wp--style--root--padding-left, 0px)), calc((100% - var(--tmo-shell) + 2 * var(--tmo-gutter)) / 2)) !important;
	margin-right: max(calc(var(--tmo-gutter) - var(--wp--style--root--padding-right, 0px)), calc((100% - var(--tmo-shell) + 2 * var(--tmo-gutter)) / 2)) !important;
	margin-top: 64px;
	width: auto;
	max-width: none;
}

.wp-director{
	    background: #739cd2d9;
    border-radius: 200px;
    padding: 6px 17px;
    font-size: 14px;
    color: white;
    letter-spacing: 0;
    font-weight: 700;
}

.tmo-hero__media {
	position: absolute;
	inset: 0 auto 0 0;
	width: 80%;
	margin: 0;
}

.tmo-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left center;
}

.tmo-hero__content {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--tmo-shell);
	margin: 0 auto;
	padding: 60px 60px 60px 51.9%;
}

.tmo-hero__title {
	margin: 0;
	font-size: clamp(30px, 2.5vw, 48px);
	line-height: 1.15;
	font-weight: 400;
	color: #1e3556cf;
}

.tmo-hero__title strong {
	font-weight: 700;
}

.tmo-hero__text {
	margin: 22px 0 0;
	max-width: 880px;
	font-size: clamp(16px, 1.25vw, 24px);
	line-height: 1.38;
	color: rgba(96, 119, 150, 0.76);
}

.tmo-hero__actions {
	margin-top: 40px;
	gap: 32px;
}

.tmo-hero .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	min-height: 70px;
	padding: 0 27px;
	border-radius: 6px;
	font-size: 22px;
	font-weight: 400;
	color: #fff;
}

.tmo-hero .tmo-btn--coral .wp-block-button__link {
	background: var(--tmo-coral);
}

.tmo-hero .tmo-btn--blue .wp-block-button__link {
	background: var(--tmo-blue);
}

.tmo-hero .tmo-btn--coral .wp-block-button__link::after,
.tmo-hero .tmo-btn--blue .wp-block-button__link::after {
	content: "";
	display: block;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	flex: none;
}

.tmo-hero .tmo-btn--coral .wp-block-button__link::after {
	width: 20px;
	height: 20px;
	background-image: url("img/hero-arrow.svg");
	transform: rotate(270deg);
}

.tmo-hero .tmo-btn--blue .wp-block-button__link::after {
	width: 24px;
	height: 24px;
	background-image: url("img/hero-search.svg");
}

/* ------------------------------------------------------------ Адаптив */

@media (max-width: 1600px) {
	.tmo-tagline {
		display: none;
	}

	.tmo-nav .wp-block-navigation__container {
		column-gap: 36px;
	}

	.tmo-nav .wp-block-navigation-item__content {
		font-size: 18px;
	}
}

@media (max-width: 1400px) {
	.tmo-topbar__inner {
		flex-wrap: wrap;
		row-gap: 14px;
	}

	.tmo-search {
		order: 5;
		max-width: none;
		flex-basis: 100%;
		margin-left: 0;
	}

	.tmo-contact {
		margin-left: auto;
	}

	.tmo-footer__main .tmo-footer__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 0 40px;
	}

	.tmo-footer__logos {
		grid-column: auto;
	}
}

@media (max-width: 1100px) {
	:root {
		--tmo-gutter: 24px;
	}

	.tmo-hero {
		display: block;
		min-height: 0;
		border-radius: 22px;
	}

	.tmo-hero__media {
		position: static;
		width: 100%;
	}

	.tmo-hero__media img {
		aspect-ratio: 2.5 / 1;
		height: auto;
	}

	.tmo-hero__content {
		padding: 32px 24px 40px;
	}

	.tmo-topbar__inner {
		padding-inline: 24px;
	}

	.tmo-nav {
		padding-inline: 24px;
	}

	.tmo-nav nav.wp-block-navigation {
		padding: 0 24px;
	}

	.tmo-nav .wp-block-navigation__container {
		column-gap: 26px;
	}

	.tmo-nav .wp-block-navigation-item__content {
		font-size: 17px;
	}
}

@media (max-width: 782px) {
	:root {
		--tmo-gutter: 16px;
	}

	.tmo-topbar__inner {
		gap: 12px 10px;
		padding: 14px 16px;
	}

	.tmo-brand {
		flex: 1 1 100%;
	}

	.tmo-brand__name {
		font-size: 13px;
		white-space: normal;
	}

	.tmo-brand__name strong {
		font-size: 19px;
	}

	.tmo-brand__mark {
		width: 56px;
		height: 48px;
	}

	.tmo-contact__icon {
		width: 42px;
		height: 42px;
	}

	.tmo-contact__icon img {
		width: 20px;
		height: 20px;
	}

	.tmo-contact__more {
		display: none;
	}

	.tmo-nav {
		padding: 0 16px 14px;
	}

	.tmo-nav nav.wp-block-navigation {
		min-height: 56px;
		padding: 0 12px;
		align-items: center;
	}

	/* Телефон і кнопка ділять один рядок і стискаються під екран. */
	.tmo-contact {
		flex: 1 1 auto;
		min-width: 0;
		margin-left: 0;
		gap: 8px;
	}

	.tmo-contact__phone {
		font-size: 18px;
	}

	.tmo-contact__label {
		font-size: 10px;
	}

	/* На вузькому екрані номери стають в один стовпець. */
	.tmo-contact__drop {
		padding: 18px 20px 16px;
	}

	.tmo-phones {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.tmo-phones__number {
		font-size: 18px;
	}

	.tmo-contact__drop-foot {
		flex-wrap: wrap;
		gap: 12px 16px;
	}

	.tmo-cta {
		margin-left: auto;
		gap: 8px;
		height: 46px;
		padding: 0 16px;
		font-size: 15px;
		box-shadow: 0 8px 18px rgba(245, 122, 117, 0.32);
	}

	.tmo-cta img {
		width: 20px;
		height: 20px;
	}

	.tmo-cta__arrow {
		display: none;
	}

	.tmo-search {
		height: 50px;
		padding: 0 4px 0 16px;
	}

	.tmo-search__submit {
		width: 40px;
		height: 40px;
	}

	.tmo-footer__main .tmo-footer__inner {
		grid-template-columns: minmax(0, 1fr);
		padding: 0 24px;
	}

	.tmo-footer__phones {
		grid-template-columns: 36px 1fr;
	}

	.tmo-footer__phones .tmo-footer__phone:last-child {
		grid-column: 2;
	}

	.tmo-footer__bottom .tmo-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px 16px;
	}

	.tmo-footer__legal {
		margin-left: 0;
	}

	.tmo-hero {
		border-radius: 18px;
	}

	.tmo-hero .wp-block-button__link {
		min-height: 56px;
		font-size: 18px;
	}
}

/* ------------------------------------------ Хлібні крихти та заголовок сторінки */

.tmo-crumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 26px;
	font-size: 14px;
	color: rgba(44, 44, 44, 0.78);
}

.tmo-crumbs a {
	color: var(--tmo-blue-muted);
	text-decoration: none;
}

.tmo-crumbs a:hover {
	text-decoration: underline;
}

.tmo-crumbs a::after {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 10px;
	vertical-align: -1px;
	background: url("img/icon-chevron.svg") no-repeat center / contain;
	transform: rotate(-90deg);
	opacity: 0.6;
}

.tmo-page-title {
	margin: 0 0 30px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--tmo-ink);
}

/* На телефоні в картці меню — «гамбургер» із підписом, щоб картка не виглядала порожньою. */
.tmo-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
	align-items: center;
	gap: 10px;
	color: var(--tmo-navy);
}

.tmo-nav .wp-block-navigation__responsive-container-open:not(.always-shown)::after {
	content: "Меню";
	font-family: var(--tmo-font);
	font-size: 17px;
	font-weight: 500;
}

/* ------------------------------------------------------- Кнопка «Нагору» */

.tmo-scroll-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 40;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	/* Темна кнопка з білою обвідкою — видно і на білому тлі, і на голубому підвалі. */
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--tmo-blue-dark);
	box-shadow: 0 10px 24px rgba(30, 53, 86, 0.3);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s, background-color 0.15s ease, box-shadow 0.15s ease;
}

.tmo-scroll-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.tmo-scroll-top:hover,
.tmo-scroll-top:focus-visible {
	background: var(--tmo-coral);
	box-shadow: 0 14px 30px rgba(245, 122, 117, 0.4);
}

.tmo-scroll-top:focus-visible {
	outline: 3px solid rgba(115, 156, 210, 0.55);
	outline-offset: 3px;
}

.tmo-scroll-top .tmo-icon {
	width: 24px;
	height: 24px;
	transition: transform 0.15s ease;
}

.tmo-scroll-top:hover .tmo-icon {
	transform: translateY(-2px);
}

@media (max-width: 782px) {
	.tmo-scroll-top {
		right: 16px;
		bottom: 16px;
		width: 46px;
		height: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tmo-scroll-top,
	.tmo-scroll-top .tmo-icon {
		transition: none;
	}
}

/* ------------------------------------------- Мобільне меню: бургер і панель */

/*
 * До 900 px головне меню (біла картка з wp:navigation) ховаємо, а навігація
 * живе у висувній панелі зліва: nav-mobile.php друкує її в підвалі,
 * nav-mobile.js відкриває. Бургер стоїть першим у верхній смузі шапки.
 */

.tmo-burger {
	display: none;
	align-items: center;
	gap: 10px;
	flex: none;
	height: 44px;
	padding: 0 14px 0 12px;
	border: 1px solid var(--tmo-line);
	border-radius: 14px;
	background: #fff;
	color: var(--tmo-navy);
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.tmo-burger:active {
	background: #f1f6fd;
}

.tmo-burger:focus-visible {
	outline: 3px solid rgba(115, 156, 210, 0.55);
	outline-offset: 2px;
}

.tmo-burger__bars {
	display: grid;
	gap: 4px;
	width: 22px;
}

.tmo-burger__bars span {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

/* Панель поверх сторінки. Схована атрибутом hidden, поки не відкрита. */
.tmo-drawer {
	position: fixed;
	inset: 0;
	z-index: 100;
}

.tmo-drawer[hidden] {
	display: none;
}

.tmo-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(30, 53, 86, 0.55);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.tmo-drawer.is-open .tmo-drawer__backdrop {
	opacity: 1;
}

.tmo-drawer__panel {
	position: absolute;
	inset: 0 auto 0 0;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: min(360px, 88vw);
	background: #fff;
	box-shadow: 18px 0 44px rgba(30, 53, 86, 0.22);
	transform: translateX(-100%);
	transition: transform 0.3s ease;
}

.tmo-drawer.is-open .tmo-drawer__panel {
	transform: none;
}

.tmo-drawer__head {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
	padding: 14px 14px 14px 18px;
	border-bottom: 1px solid var(--tmo-line);
}

.tmo-drawer__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	text-decoration: none;
	color: var(--tmo-navy);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
}

.tmo-drawer__brand img {
	flex: none;
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.tmo-drawer__close {
	display: grid;
	place-items: center;
	flex: none;
	width: 42px;
	height: 42px;
	margin-left: auto;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #f1f6fd;
	color: var(--tmo-blue-dark);
	cursor: pointer;
}

.tmo-drawer__close:active {
	background: #e3edfb;
}

.tmo-drawer__close:focus-visible,
.tmo-drawer__toggle:focus-visible,
.tmo-drawer__link:focus-visible {
	outline: 3px solid rgba(115, 156, 210, 0.55);
	outline-offset: -3px;
}

/* Список прокручується, шапка й підвал панелі лишаються на місці. */
.tmo-drawer__nav {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 6px 0 14px;
}

.tmo-drawer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmo-drawer__item {
	position: relative;
}

.tmo-drawer__list--1 > .tmo-drawer__item + .tmo-drawer__item {
	border-top: 1px solid rgba(115, 156, 210, 0.16);
}

.tmo-drawer__row {
	display: flex;
	align-items: stretch;
	min-height: 52px;
}

.tmo-drawer__link {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 10px 12px 18px;
	text-decoration: none;
	color: var(--tmo-navy);
	font-size: 16px;
	line-height: 1.3;
}

.tmo-drawer__link:active {
	background: #f4f8fe;
}

.tmo-drawer__item.is-current > .tmo-drawer__row > .tmo-drawer__link {
	color: var(--tmo-blue-dark);
	font-weight: 500;
}

/* Поточний пункт позначаємо смужкою — на дотик підсвітки hover немає. */
.tmo-drawer__item.is-current > .tmo-drawer__row::before {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 0;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--tmo-coral);
}

/* Розкривачка — окрема кнопка, тож сам пункт лишається посиланням. */
.tmo-drawer__toggle {
	display: grid;
	place-items: center;
	flex: none;
	width: 52px;
	padding: 0;
	border: 0;
	border-left: 1px solid rgba(115, 156, 210, 0.16);
	background: transparent;
	color: var(--tmo-blue-dark);
	cursor: pointer;
}

.tmo-drawer__toggle svg {
	transition: transform 0.2s ease;
}

.tmo-drawer__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.tmo-drawer__sub[hidden] {
	display: none;
}

/* Вкладені рівні — із відступом і на блакитнуватому тлі, щоб було видно глибину. */
.tmo-drawer__sub {
	background: #f7faff;
	box-shadow: inset 0 1px 0 rgba(115, 156, 210, 0.16), inset 0 -1px 0 rgba(115, 156, 210, 0.16);
}

.tmo-drawer__sub .tmo-drawer__row {
	min-height: 46px;
}

.tmo-drawer__list--2 > .tmo-drawer__item > .tmo-drawer__row > .tmo-drawer__link {
	padding-left: 32px;
	font-size: 15px;
}

.tmo-drawer__list--3 > .tmo-drawer__item > .tmo-drawer__row > .tmo-drawer__link {
	padding-left: 44px;
	font-size: 14.5px;
	color: var(--tmo-blue-dark);
}

.tmo-drawer__list--2 > .tmo-drawer__item + .tmo-drawer__item,
.tmo-drawer__list--3 > .tmo-drawer__item + .tmo-drawer__item {
	border-top: 1px solid rgba(115, 156, 210, 0.14);
}

.tmo-drawer__sub .tmo-drawer__sub {
	background: #eef5ff;
}

.tmo-drawer__foot {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: none;
	padding: 14px 18px 18px;
	border-top: 1px solid var(--tmo-line);
	background: #fff;
}

.tmo-drawer__phone {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--tmo-navy);
	font-size: 19px;
	font-weight: 500;
}

.tmo-drawer__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 50px;
	border-radius: 999px;
	background: var(--tmo-coral);
	color: #fff;
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	box-shadow: 0 10px 22px rgba(245, 122, 117, 0.34);
}

/* Поки панель відкрита — сторінка під нею не прокручується. */
html.tmo-drawer-open,
html.tmo-drawer-open body {
	overflow: hidden;
}

@media (max-width: 900px) {
	/* Пункти меню переїхали в панель, тож білу картку з блоком навігації ховаємо. */
	.tmo-nav {
		display: none;
	}

	header.wp-block-template-part:has(.tmo-topbar) {
		height: auto;
	}

	/* Бургер — лише іконка: у шапці й так тісно від телефона та «Онлайн запису». */
	.tmo-burger {
		display: flex;
		width: 46px;
		height: 44px;
		padding: 0;
		justify-content: center;
	}

	.tmo-burger__text {
		display: none;
	}

	/*
	 * Шапка у два рядки: бургер із логотипом, під ними — пошук і «Онлайн запис».
	 * Логотип просить майже всю ширину, тож решта переноситься на другий рядок.
	 */
	.tmo-topbar__inner {
		gap: 12px 10px;
	}

	/*
	 * Емблема впритул до назви, а сам лок-ап трохи відсунутий від бургера.
	 * Відступ закладений і в flex-basis, щоб логотип лишався в одному рядку
	 * з бургером, а не з'їжджав під нього.
	 */
	.tmo-brand {
		flex: 1 1 calc(100% - 80px);
		min-width: 0;
		gap: 0;
		margin-left: 8px;
	}

	/* Телефони й пошта вже є у висувному меню — у шапці вони лише займають місце. */
	.tmo-contact {
		display: none;
	}

	.tmo-search {
		order: 0;
		flex: 1 1 0;
		min-width: 0;
		max-width: none;
		height: 46px;
		margin-left: 0;
		padding: 0 4px 0 12px;
	}

	.tmo-search__icon {
		width: 20px;
		height: 20px;
	}

	/*
	 * Дрібніший робимо саме підказку, а не поле: при шрифті менше 16px
	 * Safari на iPhone підсмикує сторінку зумом, щойно торкнутися пошуку.
	 */
	.tmo-search input[type="search"] {
		font-size: 16px;
	}

	.tmo-search input[type="search"]::placeholder {
		font-size: 14px;
	}

	.tmo-search__submit {
		width: 38px;
		height: 38px;
	}

	/* Кнопка — без іконки й дрібнішим шрифтом, щоб стати поруч із пошуком. */
	.tmo-cta {
		flex: none;
		gap: 6px;
		height: 46px;
		margin-left: 0;
		padding: 0 16px;
		font-size: 14px;
	}

	.tmo-cta img,
	.tmo-cta__arrow {
		display: none;
	}
}

@media (min-width: 901px) {
	.tmo-drawer {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tmo-drawer__panel,
	.tmo-drawer__backdrop,
	.tmo-drawer__toggle svg {
		transition: none;
	}
}

/* Найвужчі екрани (360 px і менше): кнопка компактніша, підказка пошуку дрібніша. */
@media (max-width: 420px) {
	.tmo-search {
		gap: 8px;
	}

	.tmo-cta {
		padding: 0 12px;
		font-size: 13.5px;
	}

	.tmo-search input[type="search"]::placeholder {
		font-size: 12.5px;
	}
}

/* Хіроу на мобільному: впритул до шапки і трохи вища картинка. */
@media (max-width: 900px) {
	.has-global-padding > .alignfull.tmo-hero,
	.alignfull.tmo-hero {
		margin-top: 0;
	}

	.tmo-hero__media img {
		aspect-ratio: 1.8 / 1;
		height: auto;
		border-radius: 22px;
	}
}

/* Кнопки хіроу на мобільному — в один рядок, по половині ширини кожна. */
@media (max-width: 900px) {
	.tmo-hero__actions {
		display: flex;
		align-items: stretch;
		flex-wrap: nowrap;
		gap: 12px;
		margin-top: 28px;
	}

	.tmo-hero__actions .wp-block-button {
		flex: 1 1 0;
		min-width: 0;
	}

	/* Довгий підпис переноситься на два рядки, а не розпирає кнопку. */
	.tmo-hero .wp-block-button__link {
		display: flex;
		justify-content: center;
		gap: 10px;
		width: 100%;
		box-sizing: border-box;
		min-height: 54px;
		padding: 8px 14px;
		font-size: 16px;
		line-height: 1.2;
		text-align: left;
	}
}

@media (max-width: 420px) {
	.tmo-hero__actions {
		gap: 8px;
	}

	.tmo-hero .wp-block-button__link {
		gap: 8px;
		padding: 8px 12px;
		font-size: 14.5px;
	}
}

/*
 * Політики: на десктопі — у нижній білій смузі, на мобільному — останнім
 * блоком синього підвалу, перед логотипами (друга копія в розмітці).
 */
.tmo-footer__legal--mobile {
	display: none;
}

@media (max-width: 900px) {
	.tmo-footer__legal--bottom {
		display: none;
	}

	.tmo-footer__legal--mobile {
		display: flex;
		flex-direction: column;
		gap: 12px;
		margin-top: 6px;
	}

	.tmo-footer__legal--mobile a,
	.tmo-footer__legal--mobile span {
		color: #fff;
	}
}
