/* Страница врача /doctors-and-experts/doc-N/: стаж, «Сферы экспертной практики», «Материалы под редакцией врача», публикации, истории */

/* ФИО — H1 с видом прежнего заголовка карточки */
h1.st7dcdth_name {
	margin: 0;
	font-weight: inherit;
}

.st7dcdth_exp {
	display: block;
	align-self: flex-start;
	width: fit-content;
	margin-top: 12px;
	padding: 6px 12px;
	border-radius: 8px;
	background: #e6e9f4;
	color: #576AA8;
	font-size: 18px;
	line-height: 24px;
}

/* Карточки статей */
.doc_cards {
	margin: 104px 0;
}

	.doc_cards h2,
	.doc_publications h2 {
		margin: 0 0 40px;
		color: #232323;
		font-size: 40px;
		font-weight: 400;
		line-height: 120%;
		text-align: center;
	}

	.doc_cards_grid {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 32px 24px;
	}

		.doc_card {
			display: flex;
			flex-direction: column;
			gap: 12px;
		}

			.doc_card img {
				width: 100%;
				aspect-ratio: 266 / 182;
				object-fit: cover;
				border-radius: 16px;
			}

			.doc_card a {
				color: #7786B8;
				font-size: 20px;
				line-height: 130%;
				text-decoration: underline;
				text-decoration-color: rgba(119, 134, 184, .5);
				text-underline-offset: 4px;
			}

				.doc_card a:hover {
					text-decoration-color: currentColor;
				}

			.doc_card p {
				margin: 0;
				color: #585858;
				font-size: 16px;
				line-height: 140%;
			}

/* Публикации */
.doc_publications {
	margin: 104px 0;
}

	.doc_publications ol {
		max-width: 1000px;
		margin: 0 auto;
		color: #232323;
		font-size: 20px;
		line-height: 140%;
	}

		.doc_publications li + li {
			margin-top: 12px;
		}

		.doc_publications a {
			color: #7786B8;
		}

/* Истории: ссылка на полный текст и на все истории */
.st8cil_more a {
	color: #7786B8;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.doc_cases_all {
	margin-top: 32px;
	text-align: center;
}

	.doc_cases_all a {
		display: inline-block;
		padding: 13px 18px;
		border-radius: 12px;
		background: #7786B8;
		color: #fff;
		font-size: 20px;
		line-height: 28px;
		text-decoration: none;
		transition: background-color .2s ease-in-out;
	}

		.doc_cases_all a:hover {
			background: #6474A8;
			color: #fff;
		}

@media (max-width: 1199px) {
	.doc_cards_grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.doc_cards h2,
	.doc_publications h2 {
		font-size: 32px;
	}

	.doc_cards_grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.doc_cards,
	.doc_publications {
		margin: 64px 0;
	}

		.doc_cards h2,
		.doc_publications h2 {
			margin-bottom: 24px;
			font-size: 26px;
		}

	.doc_cards_grid {
		grid-template-columns: 1fr;
	}

	.st7dcdth_exp {
		font-size: 16px;
	}
}

/* «Методы лечения»: колонки строго равной ширины. С 1fr колонка с длинным словом
   («Органосохраняющие», «Лапароскопические») расширялась, и квадратная картинка в ней была крупнее соседних */
section.st-7.doc_methods .st7b_wrapper {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

	section.st-7.doc_methods .st5cd_name {
		overflow-wrap: break-word;
		hyphens: auto;
	}

@media (max-width: 991px) {
	section.st-7.doc_methods .st7b_wrapper {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	section.st-7.doc_methods .st7b_wrapper {
		grid-template-columns: minmax(0, 1fr);
	}
}
