/* Списки в контенте — как /zaimi/ (infozet-zmc1). body.infozet-prose-lists задаётся в теме. */

/* H2/H3 в статье — как .infozet-zmc1__title / __subtitle на /zaimi/ и dengimigom */
body.infozet-prose-lists .entry-content h2:not(.infozet-lic__title):not(.infozet-mfo-single-offers__title),
body.infozet-prose-lists .entry-content h2.wp-block-heading:not(.infozet-lic__title):not(.infozet-mfo-single-offers__title) {
	margin: var(--infozet-prose-h2-margin, 1.55em 0 0.65rem);
	font-size: var(--infozet-prose-h2-font-size, 1.452rem);
	line-height: var(--infozet-prose-h2-line-height, 1.3);
	font-weight: var(--infozet-prose-h2-font-weight, 700);
	letter-spacing: var(--infozet-prose-h2-letter-spacing, -0.02em);
	color: var(--infozet-prose-h2-color, #111827);
}

body.infozet-prose-lists .entry-content h3:not(.infozet-lic__panel-title),
body.infozet-prose-lists .entry-content h3.wp-block-heading:not(.infozet-lic__panel-title) {
	margin: var(--infozet-mfo-h3-margin, 0 0 0.55rem);
	font-size: var(--infozet-mfo-h3-font-size, 1.2rem);
	line-height: var(--infozet-mfo-h3-line-height, 1.35);
	font-weight: var(--infozet-mfo-h3-font-weight, 700);
	color: var(--infozet-mfo-h3-color, #111827);
}

body.infozet-prose-lists .entry-content h2 + h3,
body.infozet-prose-lists .entry-content h2.wp-block-heading + h3,
body.infozet-prose-lists .entry-content h2 + h3.wp-block-heading {
	margin-top: 0.85rem;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__list {
	margin: 0 0 1.2em 1.2em;
	padding: 0;
	font-size: 18px;
	line-height: 1.7;
	list-style: disc;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__list > li + li {
	margin-top: 0.6em;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__steps {
	margin: 0 0 1.2em 1.25em;
	padding: 0;
	font-size: 18px;
	line-height: 1.7;
	counter-reset: infozet-zmc1-step;
	list-style: none;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__steps > li {
	counter-increment: infozet-zmc1-step;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__steps > li::marker {
	content: counter(infozet-zmc1-step) ". ";
	font-weight: inherit;
}

/* Текст перед списком — как h3 + list на /zaimi/ (без большого зазора) */
body.infozet-prose-lists .entry-content .infozet-zmc1__subtitle + .infozet-zmc1__list,
body.infozet-prose-lists .entry-content .infozet-zmc1__subtitle + .infozet-zmc1__steps,
body.infozet-prose-lists .entry-content p + .infozet-zmc1__list,
body.infozet-prose-lists .entry-content p + .infozet-zmc1__steps,
body.infozet-prose-lists .entry-content h2 + .infozet-zmc1__list,
body.infozet-prose-lists .entry-content h2 + .infozet-zmc1__steps,
body.infozet-prose-lists .entry-content h3 + .infozet-zmc1__list,
body.infozet-prose-lists .entry-content h3 + .infozet-zmc1__steps {
	margin-top: 0;
}

body.infozet-prose-lists .entry-content p:has(+ .infozet-zmc1__list),
body.infozet-prose-lists .entry-content p:has(+ .infozet-zmc1__steps),
body.infozet-prose-lists .entry-content h3:has(+ .infozet-zmc1__list),
body.infozet-prose-lists .entry-content h3:has(+ .infozet-zmc1__steps),
body.infozet-prose-lists .article-post.infozet-mfo--split-below-nav .entry-content p:has(+ .infozet-zmc1__list),
body.infozet-prose-lists .article-post.infozet-mfo--split-below-nav .entry-content p:has(+ .infozet-zmc1__steps) {
	margin-bottom: 0.55rem;
}

body.infozet-prose-lists .entry-content p:has(+ .infozet-zmc1--inline-cmp) {
	margin-bottom: 1.15rem;
}

body.infozet-prose-lists .entry-content .infozet-zmc1--inline-cmp {
	margin-top: 0.75em;
}

body.infozet-prose-lists .entry-content .infozet-zmc1--inline-cmp + p {
	margin-top: 0.85rem;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__step + .infozet-zmc1__step,
body.infozet-prose-lists .entry-content .infozet-zmc1__steps > li + li {
	margin-top: 0.85em;
}

/* Вложенный список внутри пункта */
body.infozet-prose-lists .entry-content .infozet-zmc1__steps > li > .infozet-zmc1__steps,
body.infozet-prose-lists .entry-content .infozet-zmc1__steps > li > .infozet-zmc1__list,
body.infozet-prose-lists .entry-content .infozet-zmc1__list > li > .infozet-zmc1__steps,
body.infozet-prose-lists .entry-content .infozet-zmc1__list > li > .infozet-zmc1__list {
	margin: 0.55em 0 0;
	padding-left: 1.35em;
	list-style-position: outside;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__steps > li > .infozet-zmc1__steps {
	counter-reset: infozet-zmc1-substep;
	list-style: none;
	font-size: 0.92em;
	padding-left: 1.85em;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__steps > li > .infozet-zmc1__steps > li {
	counter-increment: infozet-zmc1-substep;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__steps > li > .infozet-zmc1__steps > li::marker {
	content: counter(infozet-zmc1-step) "." counter(infozet-zmc1-substep) ". ";
	font-weight: inherit;
	font-size: 0.88em;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__steps .infozet-zmc1__steps > li + li,
body.infozet-prose-lists .entry-content .infozet-zmc1__steps .infozet-zmc1__list > li + li,
body.infozet-prose-lists .entry-content .infozet-zmc1__list .infozet-zmc1__steps > li + li,
body.infozet-prose-lists .entry-content .infozet-zmc1__list .infozet-zmc1__list > li + li {
	margin-top: 0.45em;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__step > .infozet-zmc1__text {
	margin-bottom: 0;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__list a,
body.infozet-prose-lists .entry-content .infozet-zmc1__steps a {
	color: #2563eb;
	text-decoration: underline;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__list a:hover,
body.infozet-prose-lists .entry-content .infozet-zmc1__list a:focus-visible,
body.infozet-prose-lists .entry-content .infozet-zmc1__steps a:hover,
body.infozet-prose-lists .entry-content .infozet-zmc1__steps a:focus-visible {
	color: #ff8c00;
}

@media (max-width: 767.98px) {
	body.infozet-prose-lists .entry-content .infozet-zmc1__list,
	body.infozet-prose-lists .entry-content .infozet-zmc1__steps {
		font-size: 16px;
	}
}

/* Таблица сравнения — как /zaimi/ (infozet-zmc1__cmp-table), поверх .entry-content table темы Reboot */
body.infozet-prose-lists .entry-content .infozet-zmc1--inline-cmp .infozet-zmc1__cmp-scroll {
	--z10-corner: 8px;
	--z10-border: #e8eaed;
	margin: 0 0 1.2em;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: var(--z10-corner);
	background: #fff;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__cmp-scroll {
	--z10-corner: 8px;
	--z10-border: #e8eaed;
	margin: 0.85em 0 1.2em;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: var(--z10-corner);
	background: #fff;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__cmp-scroll .infozet-z10__table {
	width: 100%;
	min-width: 0;
	margin: 0;
	border: none;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
	background: transparent;
	font-size: 0.875rem;
	line-height: 1.45;
	color: #1a1a1a;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__cmp-scroll .infozet-z10__table.infozet-zmc1__cmp-table--2col .infozet-z10__col-loan {
	width: 42%;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__cmp-scroll .infozet-z10__table.infozet-zmc1__cmp-table--2col .infozet-z10__col-approve {
	width: 58%;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__cmp-scroll .infozet-z10__table th,
body.infozet-prose-lists .entry-content .infozet-zmc1__cmp-scroll .infozet-z10__table td {
	border: none;
	border-bottom: 1px solid var(--z10-border);
	border-right: 1px solid var(--z10-border);
	padding: 0.75rem 0.65rem;
	vertical-align: top;
	text-align: left;
	box-sizing: border-box;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
	color: #1a1a1a;
	background: transparent;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__cmp-scroll .infozet-z10__table thead th {
	font-weight: 600;
	font-size: 0.8125rem;
	color: #374151;
	background: #fafbfc;
	border-bottom: 1px solid #dfe3e8;
	line-height: 1.3;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__cmp-scroll .infozet-z10__table th:last-child,
body.infozet-prose-lists .entry-content .infozet-zmc1__cmp-scroll .infozet-z10__table td:last-child {
	border-right: none;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__cmp-scroll .infozet-z10__table th.infozet-z10__col-loan[scope="row"],
body.infozet-prose-lists .entry-content .infozet-zmc1__cmp-scroll .infozet-z10__table th.infozet-z10__col-loan[scope='row'] {
	font-weight: 400;
	font-size: 0.875rem;
	color: #1a1a1a;
	background: transparent;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__cmp-scroll .infozet-z10__table tbody tr:last-child th,
body.infozet-prose-lists .entry-content .infozet-zmc1__cmp-scroll .infozet-z10__table tbody tr:last-child td {
	border-bottom: none;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__cmp-scroll .infozet-z10__table caption.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__cmp-term-dates {
	line-height: 1.3;
	padding-top: 0.55rem;
	padding-bottom: 0.55rem;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__cmp-term-line {
	display: block;
}

body.infozet-prose-lists .entry-content .infozet-zmc1__cmp-term-line + .infozet-zmc1__cmp-term-line {
	margin-top: 0.1em;
}
