/* Доработки юзабилити (задача Б24 572748, ноябрь 2026) */

/* ---------- Кнопка «Записаться» в мобильной шапке ---------- */
.header_new_design .block_4 .outer {
	display: flex;
	align-items: center;
}
.s22-header-book {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 14px;
	margin-right: 6px;
	border-radius: 8px;
	background: #255482;
	color: #fff !important;
	font-family: var(--default-font-family, 'TTNorms', Arial, sans-serif);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color .2s ease;
}
/* зона нажатия не меньше 44 px */
.s22-header-book::after {
	content: '';
	position: absolute;
	inset: -2px 0;
}
.s22-header-book:hover,
.s22-header-book:focus-visible {
	background: #1b416a;
}
.s22-header-book:focus-visible {
	outline: 2px solid #255482;
	outline-offset: 2px;
}
/* логотип в new_design_2025.css зафиксирован min-width: 178px !important — на узких экранах уменьшаем */
@media (max-width: 430px) {
	.header_new_design .block_1 img {
		min-width: 0 !important;
		width: 136px;
		height: auto;
	}
}
@media (max-width: 374px) {
	.header_new_design .block_1 img {
		width: 104px;
	}
	.s22-header-book {
		padding: 0 10px;
		font-size: 14px;
	}
}
@media (max-width: 340px) {
	.header_new_design .block_1 img {
		width: 88px;
	}
	.s22-header-book {
		margin-left: 6px;
		padding: 0 8px;
		font-size: 13px;
	}
}

/* ---------- Рассрочка: предложение и ссылка на условия ---------- */
.postpaid-block .postpaidBlock-offer {
	margin-top: 6px;
	font-family: var(--default-font-family, 'TTNorms', Arial, sans-serif);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	color: #fff;
}
.postpaid-block .postpaidBlock-terms-link {
	display: inline-block;
	margin-top: 4px;
	padding: 6px 0;
	font-size: 16px;
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.postpaid-block .postpaidBlock-terms-link:hover {
	text-decoration-thickness: 2px;
}
@media (max-width: 767px) {
	.postpaid-block .postpaidBlock-offer {
		font-size: 15px;
	}
	.postpaid-block .postpaidBlock-terms-link {
		font-size: 14px;
		margin-bottom: 12px;
	}
}
.s22-installment-terms {
	max-width: 560px;
	padding: 32px;
	border-radius: 16px;
	color: #222;
	font-family: var(--default-font-family, 'TTNorms', Arial, sans-serif);
}
.s22-installment-terms__title {
	margin-bottom: 16px;
	font-size: 24px;
	font-weight: 500;
	color: #255482;
}
.s22-installment-terms__offer {
	margin-bottom: 16px;
	padding: 12px 16px;
	border-radius: 8px;
	background: #eef3f9;
	font-size: 16px;
	line-height: 1.45;
}
.s22-installment-terms__list {
	margin: 0 0 16px;
	padding-left: 20px;
	font-size: 16px;
	line-height: 1.45;
}
.s22-installment-terms__list li {
	margin-bottom: 8px;
	list-style: disc;
}
.s22-installment-terms__note {
	margin-bottom: 20px;
	font-size: 14px;
	color: #5c6470;
}
.s22-installment-terms .s22-installment-terms__btn {
	display: inline-block;
	text-align: center;
}
@media (max-width: 767px) {
	.s22-installment-terms {
		padding: 24px 16px;
	}
	.s22-installment-terms__title {
		font-size: 20px;
	}
	.s22-installment-terms__list,
	.s22-installment-terms__offer {
		font-size: 15px;
	}
}

/* ---------- Поиск по прайсу ---------- */
.s22-price-search {
	margin: 8px 0 20px;
	max-width: 640px;
}
.s22-price-search__label,
.s22-doctor-search__label {
	display: block;
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 500;
	color: #222;
}
.s22-price-search__field,
.s22-doctor-search__field {
	display: flex;
	gap: 8px;
	align-items: stretch;
}
.s22-price-search__input,
.s22-doctor-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 1px solid #c9d3df;
	border-radius: 8px;
	background: #fff;
	font-family: inherit;
	font-size: 16px;
	color: #222;
	-webkit-appearance: none;
	appearance: none;
}
.s22-price-search__input:focus,
.s22-doctor-search__input:focus {
	outline: none;
	border-color: #255482;
	box-shadow: 0 0 0 3px rgba(37, 84, 130, .18);
}
.s22-price-search__reset,
.s22-doctor-search__reset {
	flex: 0 0 auto;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid #255482;
	border-radius: 8px;
	background: #fff;
	color: #255482;
	font-family: inherit;
	font-size: 15px;
	cursor: pointer;
}
.s22-price-search__reset:hover,
.s22-doctor-search__reset:hover {
	background: #eef3f9;
}
.s22-price-search__reset[hidden] {
	display: none;
}
.s22-price-search__status {
	margin: 8px 0 0;
	font-size: 15px;
	color: #5c6470;
}
.s22-price-search__status:empty {
	display: none;
}
@media (max-width: 767px) {
	.s22-price-search__reset {
		padding: 0 12px;
		font-size: 14px;
	}
}

/* ---------- Поиск врача ---------- */
.s22-doctor-search {
	margin-bottom: 20px;
	max-width: 520px;
}
.s22-doctor-search__empty {
	margin-top: 16px;
	padding: 16px;
	border-radius: 12px;
	background: #eef3f9;
	color: #222;
}
.s22-doctor-search__empty[hidden] {
	display: none;
}
.s22-doctor-search__empty p {
	margin: 0 0 12px;
	font-size: 16px;
}

/* ---------- Контакты: этаж и быстрые действия у адреса ---------- */
.contacts-address .address-floor {
	display: block;
	margin-top: 4px;
	font-weight: 600;
}
.contacts-route-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 24px;
}
.contacts-route-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 8px;
	color: #fff !important;
	font-size: 15px;
	text-decoration: none;
	transition: background-color .2s ease;
}
.contacts-route-link:hover,
.contacts-route-link:focus-visible {
	background: rgba(255, 255, 255, .12);
}
.contacts-route-link--map {
	background: #fff;
	color: #255482 !important;
	border-color: #fff;
}
.contacts-route-link--map:hover,
.contacts-route-link--map:focus-visible {
	background: #eef3f9;
}
#kak-proyti {
	scroll-margin-top: 90px;
}

/* ---------- До и после: врач и услуга ---------- */
.shirblock-meta {
	flex: 1 1 100%;
	width: 100%;
	margin-top: -30px;
	padding: 0 10px 10px;
	font-size: 16px;
	line-height: 1.5;
	color: #222;
}
.shirblock-meta__row + .shirblock-meta__row {
	margin-top: 2px;
}
.shirblock-meta__label {
	color: #5c6470;
}
.shirblock-meta a {
	color: #255482;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.shirblock-meta__role {
	color: #5c6470;
}

/* ---------- Общая форма записи: подписи над полями ---------- */
#callback_form .s22-form-field {
	display: block;
}
#callback_form .s22-form-label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #222;
	text-align: left;
}
#callback_form .s22-form-label__opt {
	font-weight: 400;
	color: #5c6470;
}
#callback_form .s22-form-label__req {
	color: #d8402b;
}
/* телефон стал type="tel" — повторяем оформление текстового поля формы */
#callback_form input[type="tel"] {
	display: inline-block;
	width: 100%;
	height: 38px;
	margin: 0 0 15px;
	padding: 10px 15px;
	border: 1px solid #000;
	border-radius: 8px;
	background: #fff;
	color: #000;
	font-family: inherit;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}
/* 16 px — чтобы iPhone не увеличивал страницу при вводе */
#callback_form input[name="form_text_1"],
#callback_form input[type="tel"] {
	font-size: 16px;
}
/* свой «Сбросить поиск» вместо крестика браузера */
.s22-price-search__input::-webkit-search-cancel-button,
.s22-doctor-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	display: none;
}
