/*
 * Правки по ТЗ «ФонМед: главная и цены» (10.2026).
 * Подключается после source/build/css/style.min.css, исходники SCSS темы отсутствуют.
 */

:root {
	--fm-green: #22A599;
	--fm-green-hover: #1C8E84;
	--fm-red: #FA3450;
	--fm-red-hover: #F02845;
	--fm-text: #2F4864;
}

/* ---------- 1.1 Рейтинг в Яндексе: оценка + число оценок ---------- */
.rating-yandex {
	width: auto;
	min-width: 132px;
	padding: 0 8px;
}
.rating-yandex__value {
	font-weight: 700;
	font-size: 15px;
	line-height: 18px;
	color: var(--fm-text);
}
.rating-yandex__text {
	white-space: nowrap;
}

/* ---------- 1.2 Кнопка «Обратный звонок» в зелёный цвет бренда ---------- */
.header-site__actions .btn-main,
.menu-mobile__fix .btn-main {
	background: var(--fm-green);
}
.header-site__actions .btn-main:hover,
.menu-mobile__fix .btn-main:hover {
	background: var(--fm-green-hover);
}

/* мобильный телефон под логотипом выводится только в mobile-line */
.contact-info--mobile {
	display: none;
}

@media screen and (max-width: 991px) {
	/* телефон убираем из правого верхнего угла */
	.contact-info.header-site__contact-info {
		display: none;
	}
	.header-site__top {
		padding-top: 36px;
	}
	.mobile-line {
		-webkit-box-align: center;
		    -ms-flex-align: center;
		        align-items: center;
		-webkit-box-pack: justify;
		    -ms-flex-pack: justify;
		        justify-content: space-between;
		gap: 10px 12px;
		margin-top: 10px;
	}
	.contact-info--mobile {
		display: block;
		padding-left: 0;
		background: none;
		text-align: left;
		margin: 0;
		-webkit-box-ordinal-group: 0;
		    -ms-flex-order: -1;
		        order: -1;
	}
	.contact-info--mobile .contact-info__phone {
		font-size: 22px;
		line-height: 26px;
		font-weight: 700;
		white-space: nowrap;
	}
	.contact-info--mobile .contact-info__label {
		display: block;
		font-size: 13px;
		line-height: 16px;
		color: var(--fm-text);
	}
	.header-site__actions--mobile {
		margin: 0 0 0 auto;
	}
	.header-site__actions--mobile .btn-main {
		white-space: nowrap;
	}
}

@media screen and (max-width: 767px) {
	/* на телефоне в строке только номер и кнопка, Telegram остаётся в шапке десктопа */
	.header-site__socials--mobile {
		display: none;
	}
	/* номер и кнопка в одну строку от 360px */
	.mobile-line {
		gap: 8px 10px;
		-ms-flex-wrap: nowrap;
		    flex-wrap: nowrap;
	}
	.contact-info--mobile .contact-info__phone {
		font-size: 19px;
		line-height: 23px;
		letter-spacing: -.2px;
	}
	.header-site__actions--mobile .btn-main {
		padding: 8px 10px;
		font-size: 13px;
		line-height: 18px;
	}
}

@media screen and (max-width: 349px) {
	/* совсем узкие экраны: кнопку убираем, номер остаётся (ТЗ 1.2) */
	.header-site__actions--mobile {
		display: none;
	}
}

/* ---------- 2. Первый экран ---------- */
@media screen and (min-width: 768px) {
	.section-first__prs-item {
		width: 240px;
		margin: 20px;
	}
}
.section-first__title {
	margin-bottom: 14px;
}
.section-first__subtitle {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 40px;
	font-size: 18px;
	line-height: 26px;
	color: var(--fm-text);
}
.section-first__cta {
	text-align: center;
	margin-top: 48px;
}
.section-first__button {
	display: inline-block;
	min-width: 300px;
	padding: 17px 32px;
	background: var(--fm-red);
	color: #fff;
	font-weight: 600;
	font-size: 18px;
	line-height: 24px;
	text-decoration: none;
	-webkit-transition: background .2s;
	transition: background .2s;
}
.section-first__button:hover {
	background: var(--fm-red-hover);
	color: #fff;
}
.section-first__cta-note {
	margin-top: 8px;
	font-size: 14px;
	line-height: 18px;
	color: var(--fm-text);
	opacity: .8;
}

@media screen and (max-width: 767px) {
	.section-first__subtitle {
		font-size: 16px;
		line-height: 22px;
		margin-bottom: 28px;
	}
	.section-first__cta {
		margin-top: 32px;
	}
	.section-first__button {
		display: block;
		min-width: 0;
		width: 100%;
	}
}

/* ---------- 5. Иконка «Персональный менеджер» мельче остальных в исходнике ---------- */
.advantages img[src*="adv-manager"] {
	width: 40px;
	height: auto;
}

/* ---------- 4.3 Крупные карточки услуг ---------- */
.service-cards {
	display: -ms-grid;
	display: grid;
	-ms-grid-columns: 1fr 32px 1fr;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	margin-top: 50px;
}
.service-card {
	position: relative;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	min-height: 300px;
	overflow: hidden;
	background: #fff;
	-webkit-box-shadow: 0 10px 40px rgba(28, 82, 136, .08);
	        box-shadow: 0 10px 40px rgba(28, 82, 136, .08);
}
.service-card__body {
	position: relative;
	z-index: 2;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	width: 56%;
	padding: 32px 24px 28px 32px;
}
.service-card__title {
	font-weight: 600;
	font-size: 22px;
	line-height: 28px;
	color: var(--fm-text);
	text-decoration: none;
}
.service-card__title:hover {
	color: var(--fm-green);
}
.service-card__text {
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 22px;
	color: var(--fm-text);
}
.service-card__actions {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 10px 18px;
	margin-top: auto;
	padding-top: 22px;
}
.service-card__btn {
	display: inline-block;
	padding: 11px 18px;
	background: var(--fm-green);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	line-height: 18px;
	text-decoration: none;
}
.service-card__btn:hover {
	background: var(--fm-green-hover);
	color: #fff;
}
.service-card__more {
	font-weight: 600;
	font-size: 15px;
	line-height: 18px;
	color: var(--fm-green);
}
.service-card__image {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 50%;
}
.service-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	   object-fit: cover;
	-o-object-position: 60% center;
	   object-position: 60% center;
}
/* мягкий переход от текста к фото */
.service-card__image::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 40%;
	background: -webkit-gradient(linear, left top, right top, from(#fff), to(rgba(255, 255, 255, 0)));
	background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

@media screen and (max-width: 1190px) {
	.service-cards {
		gap: 20px;
	}
	.service-card__body {
		width: 60%;
		padding: 24px 18px 22px 24px;
	}
	.service-card__title {
		font-size: 20px;
		line-height: 25px;
	}
}

@media screen and (max-width: 991px) {
	.service-cards {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media screen and (max-width: 575px) {
	.service-cards {
		margin-top: 30px;
	}
	.service-card {
		-webkit-box-orient: vertical;
		-webkit-box-direction: reverse;
		    -ms-flex-direction: column-reverse;
		        flex-direction: column-reverse;
		min-height: 0;
	}
	.service-card__image {
		position: relative;
		width: 100%;
		height: 190px;
	}
	.service-card__image::before {
		display: none;
	}
	.service-card__body {
		width: 100%;
		padding: 20px 18px 22px;
	}
}

/* ---------- 8. Кнопка заявки под шагами вместо промоблока ---------- */
.process__cta {
	text-align: center;
	margin-top: 40px;
}
.process__cta .promo-block__button {
	display: inline-block;
	padding: 18px 40px;
}
.process__cta .promo-block__button:hover {
	background: var(--fm-green-hover);
	color: #fff;
}
@media screen and (max-width: 767px) {
	.process__cta .promo-block__button {
		display: block;
		padding: 16px 20px;
	}
}

/* ---------- Формы: постоянные подписи полей (аудит T03) ---------- */
.form-field--caption {
	display: block;
}
.form-field__caption {
	display: block;
	margin: 0 0 6px;
	font-weight: 600;
	font-size: 14px;
	line-height: 18px;
	color: var(--fm-text);
	text-align: left;
}
.form-field__req {
	color: var(--fm-red);
}
/* отступ слева был под звёздочку внутри поля, теперь она в подписи */
.form-field--caption .form-field__input {
	padding-left: 18px;
}
