/* Page 6882 only; loaded after the hero guard in marko-author-article-zamena-page.php.
 * The author's text, images and their placement are untouched; this file only restyles them.
 * Values follow Cambridge 14174 / reconstruction hub 45993: navy #102f49, action #165582, text #172b3a,
 * muted #405b6f, line #c9dce9, pale #eef6fb; radii 7 / 12 / 18. */

/* The shared promo strip repeats the hero actions here, as on Cambridge 14174. */
body.page-id-6882 #marko-trust-strip {
	display: none !important;
}

/* ---------- Hero ---------- */
body.page-id-6882 .marko-author-zamena-hero {
	display: grid;
	grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
	grid-template-areas: "copy photo" "actions photo";
	align-items: center;
	gap: 16px 32px;
	width: min(1120px, calc(100% - 32px));
	margin: 24px auto 8px;
	padding: 32px;
	border: 1px solid #c9dce9;
	border-radius: 18px;
	background: #eef6fb;
	color: #102f49;
	font-family: Roboto, Arial, sans-serif;
	box-sizing: border-box;
}

body.page-id-6882 .marko-author-zamena-hero * {
	box-sizing: border-box;
}

body.page-id-6882 .marko-author-zamena-hero > * {
	min-width: 0;
}

body.page-id-6882 .marko-author-zamena-hero__copy {
	grid-area: copy;
	align-self: end;
}

body.page-id-6882 .marko-author-zamena-eyebrow {
	margin: 0 0 12px;
	color: #165582;
	font: 700 14px/1.4 Roboto, Arial, sans-serif;
	text-align: left;
}

body.page-id-6882 .marko-author-zamena-hero #marko-author-zamena-title {
	margin: 0 0 20px;
	color: #102f49;
	font: 750 clamp(28px, 2.6vw, 38px)/1.15 Roboto, Arial, sans-serif;
	letter-spacing: -.02em;
	text-align: left;
	text-transform: none;
	text-wrap: balance;
}

body.page-id-6882 .marko-author-zamena-byline {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	color: #405b6f;
	font: 400 16px/1.45 Roboto, Arial, sans-serif;
	text-align: left;
}

body.page-id-6882 .marko-author-zamena-hero__portrait {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

body.page-id-6882 .marko-author-zamena-byline a {
	color: #102f49;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

body.page-id-6882 .marko-author-zamena-actions {
	grid-area: actions;
	align-self: start;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

body.page-id-6882 .marko-author-zamena-hero .marko-author-zamena-action {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border: 1px solid #165582;
	border-radius: 7px;
	font: 700 15px/1.3 Roboto, Arial, sans-serif;
	text-align: center;
	text-decoration: none;
	touch-action: manipulation;
}

body.page-id-6882 .marko-author-zamena-hero .marko-author-zamena-action--primary,
body.page-id-6882 .marko-author-zamena-hero .marko-author-zamena-action--primary:visited {
	background: #165582;
	color: #fff;
}

body.page-id-6882 .marko-author-zamena-hero .marko-author-zamena-action--secondary,
body.page-id-6882 .marko-author-zamena-hero .marko-author-zamena-action--secondary:visited {
	background: #fff;
	color: #165582;
}

body.page-id-6882 .marko-author-zamena-hero .marko-author-zamena-action--primary:hover,
body.page-id-6882 .marko-author-zamena-hero .marko-author-zamena-action--primary:active {
	border-color: #102f49;
	background: #102f49;
	color: #fff;
}

body.page-id-6882 .marko-author-zamena-hero .marko-author-zamena-action--secondary:hover,
body.page-id-6882 .marko-author-zamena-hero .marko-author-zamena-action--secondary:active {
	background: #dfeef8;
	color: #102f49;
}

body.page-id-6882 .marko-author-zamena-hero a:focus-visible,
body.page-id-6882 .elementor-6882 a:focus-visible {
	outline: 3px solid #a95200;
	outline-offset: 3px;
}

body.page-id-6882 .marko-author-zamena-hero__photo {
	grid-area: photo;
	margin: 0;
}

body.page-id-6882 .marko-author-zamena-hero__photo a {
	display: block;
	line-height: 0;
	border-radius: 12px;
}

body.page-id-6882 .marko-author-zamena-hero__photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

body.page-id-6882 .marko-author-zamena-hero__photo figcaption {
	margin-top: 8px;
	color: #405b6f;
	font: 400 14px/1.4 Roboto, Arial, sans-serif;
	font-style: normal;
	text-align: center;
}

/* ---------- The authored article (Elementor document, unchanged markup) ---------- */
body.page-id-6882 .elementor-6882 > .e-con,
body.page-id-6882 .elementor-6882 > .elementor-section {
	--padding-top: 0px;
	--padding-bottom: 0px;
	padding-top: 0;
	padding-bottom: 0;
}

body.page-id-6882 .elementor-6882 > .e-con > .e-con-inner,
body.page-id-6882 .elementor-6882 > .elementor-section > .elementor-container {
	width: min(1120px, calc(100% - 32px));
	max-width: none;
	margin-inline: auto;
	padding-inline: 0;
}

body.page-id-6882 .elementor-6882 .elementor-column > .elementor-widget-wrap {
	padding: 0;
}

body.page-id-6882 .elementor-6882 .elementor-widget-heading .elementor-heading-title {
	margin: 56px 0 16px;
	color: #102f49;
	font: 750 28px/1.25 Roboto, Arial, sans-serif;
	letter-spacing: -.015em;
	text-align: left;
	text-transform: none;
	text-wrap: balance;
}

body.page-id-6882 .elementor-6882 .elementor-widget-text-editor {
	color: #172b3a;
	font: 400 17px/1.65 Roboto, Arial, sans-serif;
}

body.page-id-6882 .elementor-6882 .elementor-widget-text-editor p {
	margin: 0 0 18px;
	color: #172b3a;
	font: inherit;
	text-align: left !important;
	letter-spacing: normal;
}

body.page-id-6882 .elementor-6882 .elementor-widget-text-editor::after {
	content: "";
	display: table;
	clear: both;
}

body.page-id-6882 .elementor-6882 .elementor-widget-text-editor a,
body.page-id-6882 .elementor-6882 .elementor-widget-text-editor a:visited {
	color: #165582;
	font: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

body.page-id-6882 .elementor-6882 .elementor-widget-text-editor a:hover,
body.page-id-6882 .elementor-6882 .elementor-widget-text-editor a:active {
	color: #102f49;
}

body.page-id-6882 .elementor-6882 .elementor-widget-text-editor strong a {
	font-weight: 700;
}

/* The author's photographs stay on the side where he placed them («на картинке слева»). */
body.page-id-6882 .elementor-6882 .elementor-widget-text-editor img.alignleft,
body.page-id-6882 .elementor-6882 .elementor-widget-text-editor img.alignright {
	display: block;
	width: auto;
	max-width: min(300px, 42%);
	height: auto;
	max-height: 420px;
	border: 1px solid #c9dce9;
	border-radius: 12px;
}

body.page-id-6882 .elementor-6882 .elementor-widget-text-editor img.alignleft {
	float: left;
	margin: 6px 28px 16px 0;
}

body.page-id-6882 .elementor-6882 .elementor-widget-text-editor img.alignright {
	float: right;
	margin: 6px 0 16px 28px;
}

/* Two pictures in one paragraph («до и после») sit side by side. */
body.page-id-6882 .elementor-6882 .elementor-widget-text-editor a + a > img.alignright {
	margin-left: 16px;
}

/* Site section after the article (not part of the author's text). */
body.page-id-6882 .elementor-6882 .elementor-element-234b5ca {
	margin-top: 56px;
	padding-top: 8px;
	border-top: 1px solid #c9dce9;
}

body.page-id-6882 .elementor-6882 .elementor-element-234b5ca .elementor-heading-title {
	margin-top: 32px;
	font-size: 24px;
}

body.page-id-6882 .elementor-6882 .elementor-element-234b5ca h2,
body.page-id-6882 .elementor-6882 .elementor-element-234b5ca h3 {
	color: #102f49;
	text-align: left;
	text-transform: none;
}

body.page-id-6882 .elementor-6882 .elementor-element-234b5ca h3 {
	margin: 20px 0 8px;
	font: 700 19px/1.35 Roboto, Arial, sans-serif;
}

@media (hover: hover) and (pointer: fine) {
	body.page-id-6882 .marko-author-zamena-hero a,
	body.page-id-6882 .elementor-6882 .elementor-widget-text-editor a {
		transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	body.page-id-6882 .marko-author-zamena-hero {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "copy" "actions" "photo";
		gap: 16px;
		margin-top: 16px;
		padding: 20px 16px;
	}

	body.page-id-6882 .marko-author-zamena-hero #marko-author-zamena-title {
		font-size: 27px;
	}

	body.page-id-6882 .marko-author-zamena-byline {
		font-size: 15px;
	}

	body.page-id-6882 .marko-author-zamena-actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	body.page-id-6882 .marko-author-zamena-hero .marko-author-zamena-action {
		width: 100%;
	}

	body.page-id-6882 .elementor-6882 .elementor-widget-heading .elementor-heading-title {
		margin-top: 40px;
		font-size: 23px;
	}

	body.page-id-6882 .elementor-6882 .elementor-widget-text-editor {
		font-size: 16px;
	}

	body.page-id-6882 .elementor-6882 .elementor-widget-text-editor img.alignleft,
	body.page-id-6882 .elementor-6882 .elementor-widget-text-editor img.alignright,
	body.page-id-6882 .elementor-6882 .elementor-widget-text-editor a + a > img.alignright {
		float: none;
		width: 100%;
		max-width: 340px;
		margin: 8px auto 16px;
	}
}
