/* Compact right-aligned doctor-author card (parity with Bitrix /articles/ P0-refine) */
.mb-article-author {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 320px;
	width: 100%;
	margin: 8px 0 22px auto;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(69, 190, 201, 0.22);
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(34, 60, 80, 0.05);
	box-sizing: border-box;
}
.mb-article-author__photo {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	background: #f4f4f4;
	border: 2px solid rgba(69, 190, 201, 0.25);
}
.mb-article-author__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.mb-article-author__body {
	flex: 1 1 auto;
	min-width: 0;
}
.mb-article-author__label {
	font-family: "Open Sans", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #45BEC9;
	margin: 0 0 3px;
	line-height: 1.2;
}
.mb-article-author__name {
	font-family: "Open Sans", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 3px;
}
.mb-article-author__name a {
	color: #333;
	text-decoration: none;
}
.mb-article-author__name a:hover {
	color: #45BEC9;
}
.mb-article-author__spec,
.mb-article-author__stazh {
	font-family: "Open Sans", sans-serif;
	font-size: 12px;
	line-height: 1.35;
	color: #777;
	margin: 0 0 1px;
}
.mb-article-author__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-top: 8px;
}
.mb-article-author__link {
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #45BEC9;
	text-decoration: none;
	border-bottom: 1px solid rgba(69, 190, 201, 0.45);
	line-height: 1.2;
	padding-bottom: 1px;
}
.mb-article-author__link:hover,
.mb-article-author__link:focus {
	color: #3aaab4;
	border-bottom-color: transparent;
}
.mb-article-author__actions .btn-primary-author {
	font-family: "Open Sans", sans-serif;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 999px;
	line-height: 1.2;
	color: #fff;
	border: 1px solid #45BEC9;
	background: #45BEC9;
	text-decoration: none;
	display: inline-block;
}
.mb-article-author__actions .btn-primary-author:hover,
.mb-article-author__actions .btn-primary-author:focus {
	color: #fff;
	border-color: #3aaab4;
	background: #3aaab4;
}

/* Desktop: title + compact card share a row (card stays right) */
@media (min-width: 768px) {
	.mb-blog-single__head:has(> .mb-article-author) {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
		justify-content: space-between;
		gap: 10px 20px;
	}
	.mb-blog-single__head:has(> .mb-article-author) > .mb-blog-single__meta {
		flex: 1 1 100%;
		width: 100%;
	}
	.mb-blog-single__head:has(> .mb-article-author) > .mb-blog-single__title {
		flex: 1 1 260px;
		min-width: 0;
		margin-bottom: 0;
		max-width: calc(100% - 340px);
	}
	.mb-blog-single__head:has(> .mb-article-author) > .mb-article-author {
		flex: 0 0 300px;
		max-width: 300px;
		margin: 0 0 8px auto;
	}
	.mb-blog-single__head:has(> .mb-article-author) > .mb-blog-single__hero {
		flex: 1 1 100%;
		width: 100%;
	}
}

@media (max-width: 767px) {
	.mb-article-author {
		max-width: none;
		width: 100%;
		margin: 6px 0 16px;
		padding: 10px 12px;
		gap: 10px;
		border-radius: 12px;
	}
	.mb-article-author__photo {
		flex-basis: 56px;
		width: 56px;
		height: 56px;
	}
	.mb-article-author__name {
		font-size: 14px;
	}
	.mb-article-author__spec,
	.mb-article-author__stazh {
		font-size: 11px;
	}
	.mb-article-author__actions {
		width: 100%;
		gap: 8px 12px;
	}
	.mb-article-author__actions .btn-primary-author {
		padding: 7px 12px;
		font-size: 12px;
	}
}
