/**
 * Maximum Link Router.
 * Все селекторы под префиксом .mlr- — глобальные стили не затрагиваются.
 */

.mlr-cta {
	--mlr-accent: #ff922b;
	--mlr-ink: #212529;
	--mlr-muted: #495057;
	box-sizing: border-box;
	position: relative;
	margin: 32px 0;
	padding: 24px 132px 24px 24px;
	border: 0;
	border-radius: 12px;
	background: #fff4e6;
	color: var(--mlr-ink);
	overflow: hidden;
}

.mlr-cta__content {
	position: relative;
	z-index: 1;
}

.mlr-cta__eyebrow,
.mlr-text__eyebrow {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.4;
	text-transform: uppercase;
}

.mlr-cta__eyebrow::before,
.mlr-text__eyebrow::before {
	content: "";
	flex: 0 0 7px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mlr-accent);
}

.mlr-cta__title {
	margin: 0 0 8px;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.2;
}

.mlr-cta__description {
	margin: 0 0 18px;
	color: var(--mlr-muted);
	font-size: 14px;
	line-height: 1.5;
}

.mlr-cta__description p {
	margin: 0 0 8px;
}

.mlr-cta__description p:last-child {
	margin-bottom: 0;
}

.mlr-cta a.mlr-cta__button[href] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 8px;
	background: #212529;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s ease, transform .2s ease;
}

.mlr-cta a.mlr-cta__button[href],
.mlr-cta a.mlr-cta__button[href]:link,
.mlr-cta a.mlr-cta__button[href]:visited,
.mlr-cta a.mlr-cta__button[href]:hover,
.mlr-cta a.mlr-cta__button[href]:focus,
.mlr-cta a.mlr-cta__button[href]:focus-visible,
.mlr-cta a.mlr-cta__button[href]:active,
.mlr-cta a.mlr-cta__button[href] span {
	color: #fff !important;
	text-decoration: none !important;
}

.mlr-cta a.mlr-cta__button[href]:visited {
	color: #fff;
	text-decoration: none;
}

.mlr-cta a.mlr-cta__button[href]:hover {
	background: #343a40;
	color: #fff;
	text-decoration: none;
}

.mlr-cta a.mlr-cta__button[href]:focus-visible {
	outline: 3px solid #228be6;
	outline-offset: 3px;
}

.mlr-cta a.mlr-cta__button[href]:active {
	transform: translateY(1px);
}

.mlr-ui-arrow {
	margin-left: 9px;
	font-size: 16px;
	line-height: 1;
}

.mlr-cta__shape {
	position: absolute;
	right: -42px;
	bottom: -80px;
	width: 170px;
	height: 200px;
	border-radius: 90px 0 0;
	background: var(--mlr-accent);
	transform: rotate(-10deg);
}

/* Формат text: инлайн-абзац со ссылкой, без рамки. */
.mlr-text {
	--mlr-accent: #ff922b;
	box-sizing: border-box;
	display: block;
	margin: 28px 0;
	padding: 3px 0 3px 18px;
	border-left: 4px solid var(--mlr-accent);
	color: #212529;
}

.mlr-text__eyebrow {
	margin-bottom: 7px;
}

.mlr-text__lead {
	display: block;
	margin-bottom: 8px;
	color: #495057;
	font-size: 14px;
	line-height: 1.5;
}

.mlr-text a.mlr-text__link[href] {
	display: inline-flex;
	align-items: center;
	color: #934600;
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mlr-text a.mlr-text__link[href]:visited {
	color: #6f3500;
}

.mlr-text a.mlr-text__link[href]:hover {
	color: #6f3500;
	text-decoration-thickness: 2px;
}

.mlr-text a.mlr-text__link[href]:focus-visible {
	outline: 3px solid #228be6;
	outline-offset: 3px;
	border-radius: 2px;
}

.mlr-related {
	box-sizing: border-box;
	margin: 32px 0 0;
	padding: 20px 0 4px;
	border-top: 1px solid #d7dade;
}

.mlr-related__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.mlr-related__title::before {
	content: "";
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: #ff922b;
}

.mlr-related__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mlr-related__item {
	margin: 0;
	border-top: 1px solid #eceeef;
}

.mlr-related__item:first-child {
	border-top: 0;
}

.mlr-related a.mlr-related__link[href] {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr) 22px;
	gap: 9px;
	align-items: center;
	padding: 11px 0;
	color: #212529;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

.mlr-related a.mlr-related__link[href]:visited {
	color: #212529;
}

.mlr-related a.mlr-related__link[href]:hover {
	color: #6f3500;
	text-decoration: none;
}

.mlr-related a.mlr-related__link[href]:focus-visible {
	outline: 3px solid #228be6;
	outline-offset: 3px;
	border-radius: 2px;
}

.mlr-related__number {
	color: #934600;
	font-size: 11px;
	font-weight: 700;
}

.mlr-related__text {
	min-width: 0;
}

.mlr-related .mlr-ui-arrow {
	margin-left: 0;
	color: #934600;
	text-align: right;
}

/* Формат image: кликабельная картинка. */
.mlr-image {
	margin: 28px 0;
}

.mlr-image a.mlr-image__link[href] {
	display: block;
	overflow: hidden;
	border-radius: 16px;
	line-height: 0;
	transition: transform .2s ease;
}

.mlr-image a.mlr-image__link[href]:focus-visible {
	outline: 3px solid #228be6;
	outline-offset: 3px;
}

.mlr-image a.mlr-image__link[href]:active {
	transform: translateY(1px);
}

.mlr-image__img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 0;
}

/* Формат form: лид-магнит с формой прямо в статье. */
.mlr-form {
	box-sizing: border-box;
	margin: 24px 0;
}

.mlr-form__inner {
	--mlr-accent: #ff922b;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	padding: 20px 24px;
	border-radius: 12px;
	background: #fff4e6;
	color: #212529;
}

.mlr-form__content {
	flex: 1 1 260px;
	min-width: 0;
}

.mlr-form__title {
	margin: 0 0 8px;
	font-size: 1.125em;
	font-weight: 700;
	line-height: 1.35;
}

.mlr-form__description {
	margin: 0 0 16px;
	font-size: 0.9375em;
	line-height: 1.5;
}

.mlr-form__description p {
	margin: 0 0 8px;
}

.mlr-form__description p:last-child {
	margin-bottom: 0;
}

.mlr-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}

.mlr-form__field {
	flex: 1 1 160px;
	min-width: 0;
}

.mlr-form__label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.8125em;
}

.mlr-form__input {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #adb5bd;
	border-radius: 8px;
	background: #fff;
	color: #212529;
	font-size: 1em;
}

.mlr-form__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-end;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 8px;
	background: #212529;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.mlr-form__btn:hover {
	background: #343a40;
}

.mlr-form__btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.mlr-form__bottom {
	margin-bottom: 8px;
}

.mlr-form__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.8125em;
	line-height: 1.4;
}

.mlr-form__checkbox-input {
	margin-top: 3px;
}

.mlr-form .mlr-form__checkbox-label a[href] {
	color: #934600;
}

.mlr-form .mlr-form__checkbox-label a[href]:visited {
	color: #6f3500;
}

.mlr-form__error {
	margin: 8px 0 0;
	color: #c92a2a;
	font-size: 0.875em;
}

.mlr-form__success {
	text-align: center;
}

.mlr-form__success-text {
	margin: 0 0 12px;
	font-size: 1em;
}

.mlr-form a.mlr-form__success-download[href] {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 8px;
	background: #212529;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.mlr-form a.mlr-form__success-download[href]:visited {
	color: #fff;
	text-decoration: none;
}

.mlr-form a.mlr-form__success-download[href]:hover,
.mlr-form a.mlr-form__success-download[href]:focus {
	color: #fff;
	text-decoration: none;
}

.mlr-form__inner[hidden],
.mlr-form__success-download[hidden] { display: none; }

.mlr-form__input:focus-visible,
.mlr-form__btn:focus-visible,
.mlr-form__checkbox-input:focus-visible,
.mlr-form a.mlr-form__success-download[href]:focus-visible {
	outline: 3px solid #228be6;
	outline-offset: 3px;
}

@media ( max-width: 600px ) {
	.mlr-cta {
		padding: 20px;
	}

	.mlr-cta__shape {
		display: none;
	}

	.mlr-cta__title {
		font-size: 18px;
	}

	.mlr-cta a.mlr-cta__button[href] {
		width: 100%;
	}

	.mlr-text {
		padding-left: 14px;
	}

	.mlr-related a.mlr-related__link[href] {
		grid-template-columns: 22px minmax(0, 1fr) 20px;
	}

	.mlr-form__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.mlr-form__row {
		flex-direction: column;
	}

	.mlr-form__btn {
		align-self: stretch;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.mlr-cta a.mlr-cta__button[href],
	.mlr-image a.mlr-image__link[href] {
		transition: none;
	}
}
