/* med-est: правки 2026-10. Подключается из includes/custom-function.php после main-style.css */

/* ---------- Шапка: голубой блок с логотипом по левому краю контента (фото доктора) ---------- */
.header .logo {
	padding-bottom: 10px;
}

@media (min-width: 1400px) {
	.header .logo {
		margin: 0 -200px 0 30px;
	}
}

@media (min-width: 1200px) and (max-width: 1399px) {
	.header .logo {
		margin: 0 -30px 0 30px;
		padding-left: 30px;
		padding-right: 30px;
	}
}

@media (min-width: 979px) and (max-width: 1199px) {
	.header .logo {
		margin: 0 -30px 0 30px;
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media (min-width: 768px) and (max-width: 978px) {
	.header .logo {
		padding-bottom: 20px;
	}
}

/* ---------- Кнопки соцсетей ---------- */
.medest-social {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	margin: 8px -4px 0;
	line-height: 0;
}

.medest-social .medest-social__btn {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 4px;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
	-webkit-transition: -webkit-transform 0.15s ease, box-shadow 0.15s ease;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.medest-social .medest-social__btn:hover,
.medest-social .medest-social__btn:focus {
	color: #fff;
	text-decoration: none;
	-webkit-transform: translateY(-2px);
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.medest-social .medest-social__btn svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.medest-social .medest-social__btn--wa { background: #25d366; }
.medest-social .medest-social__btn--max { background: #3c22fe; background: linear-gradient(135deg, #1bbcff 0%, #3c22fe 55%, #8419ff 100%); }
.medest-social .medest-social__btn--tg { background: #26a5e4; }
.medest-social .medest-social__btn--vk { background: #0077ff; }
.medest-social .medest-social__btn--yt { background: #ff0000; }

.header .medest-social--header {
	margin-top: 12px;
}

/* ---------- Подвал: вдвое ниже, разделы по две колонки ---------- */
.footer,
body.home .footer {
	padding: 26px 0 16px 0;
}

@media (max-width: 767px) {
	.footer,
	body.home .footer {
		padding: 26px 20px 16px 20px;
	}
}

.footer .footer-widgets.medest-footer {
	margin-bottom: 16px;
}

.medest-footer h4 {
	margin-bottom: 12px;
}

.medest-footer p {
	margin: 0 0 8px;
}

.medest-footer .medest-footer__part p:last-child {
	margin-bottom: 0;
}

.medest-footer .medest-footer__col--address a,
.medest-footer .medest-footer__phone a {
	color: inherit;
	text-decoration: underline;
}

.medest-footer .medest-footer__col--address a:hover,
.medest-footer .medest-footer__phone a:hover {
	color: #fff;
}

.medest-footer .medest-footer__phone {
	display: none;
}

.medest-footer .medest-social--footer {
	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;
	margin-top: -4px;
}

@media (min-width: 1200px) {
	.medest-footer .medest-footer__menu {
		display: -ms-grid;
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: repeat(3, auto);
		grid-auto-flow: column;
		-webkit-column-gap: 20px;
		column-gap: 20px;
	}

	.medest-footer .medest-footer__menu li:nth-child(3n+1) {
		border-top: none;
	}
}

@media (min-width: 979px) {
	.medest-footer .medest-footer__cols {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
	}

	.medest-footer .medest-footer__part {
		-webkit-box-flex: 1;
		-ms-flex: 1 1 0;
		flex: 1 1 0;
	}

	.medest-footer .medest-footer__part + .medest-footer__part {
		margin-left: 30px;
	}
}

@media (min-width: 768px) and (max-width: 978px) {
	.medest-footer .medest-footer__part + .medest-footer__part {
		margin-top: 8px;
	}
}

@media (max-width: 767px) {
	.footer .medest-footer .medest-footer__col {
		padding-top: 0;
	}

	.medest-footer .medest-footer__col + .medest-footer__col {
		padding-top: 26px;
	}

	/* В мобильной версии вместо блока «Наш адрес» — телефон и кнопки соцсетей */
	.medest-footer .medest-footer__col--address,
	.medest-footer .medest-footer__col--social h4 {
		display: none;
	}

	.medest-footer .medest-footer__phone {
		display: block;
		margin-bottom: 6px;
	}

	.medest-footer .medest-social--footer {
		-webkit-box-pack: center;
		-ms-flex-pack: center;
		justify-content: center;
		margin-top: 0;
	}
}

/* ---------- «О докторе»: преимущества, стандарты и принципы на одном уровне ---------- */
.medest-about-col > ul {
	margin-top: 0;
}

@media (min-width: 768px) {
	.medest-about-col > ul > li + li {
		margin-top: 10px;
	}
}

@media (min-width: 1200px) {
	.medest-about-col {
		width: calc((100% - 90px) / 3);
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.medest-about-col {
		width: calc((100% - 60px) / 3);
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.medest-footer .medest-footer__col--social h4 {
		font-size: 16px;
	}
}
