/**
 * Секция «Главный баннер» — первый экран главной страницы.
 * Шаблон: template-parts/sections/main-banner.php
 *
 * Блок изолирован собственным неймспейсом .main-banner__*,
 * старые классы .m_1* не используются и не переопределяются.
 *
 * Круг за врачом — часть самой фотографии, отдельной подложки в стилях нет.
 */

.main-banner {
	position: relative;
	padding: 44px 0 48px;
	background-color: #fff;
	overflow: hidden;
}

.main-banner__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
	align-items: end;
}

.main-banner--has-photo .main-banner__grid {
	grid-template-columns: minmax(0, 1fr) minmax(0, 50%);
	gap: 32px;
}

.main-banner__content {
	min-width: 0;
}

/* --- Текстовая часть --- */

.main-banner__eyebrow {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.3;
	font-weight: bold;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #6e8494;
}

.main-banner .main-banner__title {
	margin: 0;
	padding: 0;
	font-size: 56px;
	line-height: 1.08;
	font-weight: bold;
	color: #133b50;
	text-transform: none;
}

.main-banner__subtitle {
	max-width: 560px;
	margin: 22px 0 0;
	font-size: 22px;
	line-height: 1.35;
	color: #133b50;
}

.main-banner__description {
	max-width: 560px;
	margin: 14px 0 0;
	font-size: 17px;
	line-height: 1.5;
	color: #5a6e7b;
}

/* --- Форма --- */

.main-banner__form {
	max-width: 470px;
	margin-top: 34px;
}

.main-banner__form-label {
	margin: 0 0 14px;
	font-size: 17px;
	line-height: 1.35;
	font-weight: bold;
	color: #133b50;
}

.main-banner__form .wpcf7-form {
	margin-bottom: 0;
}

.main-banner__form .wpcf7-form-control {
	height: 58px;
	margin-bottom: 14px;
	font-size: 16px;
	border: 1px solid #d3dce2;
	border-radius: 4px;
}

.main-banner__form .wpcf7-form-control:focus {
	outline: none;
	border-color: #133b50;
	box-shadow: 0 0 0 3px rgba(19, 59, 80, 0.1);
}

.main-banner__form input[type="submit"] {
	height: 58px;
	line-height: 58px;
	margin-bottom: 0;
	font-size: 18px;
	border-radius: 4px;
	box-shadow: 0 6px 18px 0 rgba(165, 30, 36, 0.28);
}

.main-banner__form input[type="submit"]:hover {
	box-shadow: 0 8px 26px 2px rgba(165, 30, 36, 0.38);
}

.main-banner__consent {
	margin-top: 16px;
	font-size: 13px;
	line-height: 1.45;
	color: #8a98a2;
}

.main-banner__consent p:last-child {
	margin-bottom: 0;
}

.main-banner__consent a {
	color: inherit;
	text-decoration: underline;
}

.main-banner__consent a:hover {
	color: #a51e24;
}

/* --- Фото и карточка врача --- */

.main-banner__media {
	position: relative;
	min-width: 0;
	text-align: center;
}

.main-banner__photo {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

/* Плашка с именем поверх нижней части фото */
.main-banner__card {
	position: absolute;
	right: 100px;
	bottom: 8%;
	z-index: 2;
	width: 65%;
	padding: 18px 24px;
	text-align: left;
	color: #133b50;
	background-color: rgba(255, 255, 255, 0.86);
}

.main-banner__card-name {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
	color: #133b50;
}

.main-banner__card-note {
	margin: 10px 0 0;
	font-size: 16px;
	line-height: 1.35;
	color: #133b50;
}

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

@media (max-width: 1199px) {
	.main-banner .main-banner__title {
		font-size: 46px;
	}

	.main-banner__subtitle {
		font-size: 20px;
	}

	.main-banner__card {
		padding: 14px 18px;
	}

	.main-banner__card-name {
		font-size: 18px;
	}

	.main-banner__card-note {
		margin-top: 8px;
		font-size: 14px;
	}
}

@media (max-width: 991px) {
	.main-banner {
		padding: 34px 0 40px;
	}

	.main-banner--has-photo .main-banner__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.main-banner .main-banner__title {
		font-size: 38px;
	}

	.main-banner__form {
		max-width: none;
	}

	.main-banner__photo {
		max-width: 420px;
	}

	/* Одна колонка — плашке некуда наезжать, ставим её под фото */
	.main-banner__card {
		position: static;
		width: 100%;
		max-width: 420px;
		margin: -30px auto 0;
		background-color: rgba(255, 255, 255, 0.92);
	}
}

@media (max-width: 767px) {
	.main-banner {
		padding: 28px 0 36px;
		text-align: center;
	}

	.main-banner__eyebrow {
		margin-bottom: 12px;
		font-size: 12px;
	}

	.main-banner .main-banner__title {
		font-size: 30px;
		line-height: 1.15;
	}

	.main-banner__subtitle {
		margin: 16px auto 0;
		font-size: 18px;
	}

	.main-banner__description {
		margin: 12px auto 0;
		font-size: 15px;
	}

	.main-banner__form {
		margin: 26px auto 0;
		max-width: 470px;
	}

	.main-banner__form .wpcf7-form-control,
	.main-banner__form input[type="submit"] {
		height: 52px;
	}

	.main-banner__form input[type="submit"] {
		line-height: 52px;
		font-size: 16px;
	}

	/* Фото на телефоне скрыто — как и в старой вёрстке первого экрана */
	.main-banner__media {
		display: none;
	}
}
