.tm-search {
	position: fixed;
	z-index: 1200;
	width: min(460px, calc(100vw - 32px));
	background: #fff;
	border: 1px solid #d5e1f8;
	box-shadow: 0 18px 45px rgba(44, 104, 228, 0.12);
	padding: 14px;
}

.tm-search__panel {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.tm-search__panel input,
.tm-search-page__form input {
	flex: 1;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #d5e1f8;
	border-radius: 0;
	background: #fff;
	color: #101820;
	font: inherit;
	font-size: 15px;
}

.tm-search__panel button,
.tm-search-page__form button {
	height: 44px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	background: #2c68e4;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.tm-search__close {
	background: transparent !important;
	color: #101820 !important;
	padding: 0 8px !important;
}

.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;
}

.tm-search-page {
	padding: 148px 0 96px;
	min-height: 70vh;
	background: #fff;
	color: #101820;
}

.tm-search-page .container {
	width: min(calc(100% - 96px), 1400px);
	max-width: 1400px;
	margin: 0 auto;
}

.tm-search-page h1 {
	margin: 0 0 24px;
	font-size: clamp(42px, 5vw, 68px);
	line-height: 1.02;
	letter-spacing: -0.055em;
	font-weight: 650;
	color: #101820;
}

.tm-search-page__form {
	display: flex;
	gap: 8px;
	max-width: 720px;
	margin: 0 0 28px;
}

.tm-search-page__status {
	margin: 0 0 28px;
	color: #5c6770;
	font-size: 16px;
}

.tm-search-page__list {
	display: flex;
	flex-direction: column;
	border-top: 1px solid #e4ebf5;
}

.tm-result {
	display: block;
	padding: 22px 0;
	border-bottom: 1px solid #e4ebf5;
	color: inherit;
	text-decoration: none;
}

.tm-result__type {
	display: block;
	margin-bottom: 6px;
	color: #2c68e4;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tm-result h2 {
	margin: 0;
	color: #101820;
	font-size: 28px;
	line-height: 1.2;
	letter-spacing: -0.03em;
	font-weight: 650;
}

.tm-result p {
	margin: 8px 0 0;
	max-width: 760px;
	color: #5c6770;
	font-size: 16px;
	line-height: 1.6;
}

.tm-result:hover h2 {
	color: #2c68e4;
}

.tm-search-page__pages {
	margin-top: 32px;
}

.tm-search-page__pages ul {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tm-search-page__pages a,
.tm-search-page__pages span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #d5e1f8;
	color: #101820;
	text-decoration: none;
}

.tm-search-page__pages .current {
	background: #2c68e4;
	border-color: #2c68e4;
	color: #fff;
}

@media (max-width: 720px) {
	.tm-search-page {
		padding: 112px 0 72px;
	}

	.tm-search-page .container {
		width: calc(100% - 40px);
	}

	.tm-search-page__form,
	.tm-search__panel {
		flex-wrap: wrap;
	}

	.tm-search-page__form input,
	.tm-search__panel input {
		flex-basis: 100%;
	}
}
