/*
 * List-MFO — финансовые калькуляторы.
 * Подключается только на семи страницах встроенных калькуляторов.
 */
body.list-mfo-spravochnik-calculator .lmfo-calc-container {
	max-width: 1180px;
}

body.list-mfo-spravochnik-calculator .lmfo-calc-main {
	padding-bottom: 0;
}

.lmfo-calc-hero {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	margin: 6px 0 24px;
	padding: 30px 34px;
	border: 1px solid var(--lmfo-ref-line);
	border-radius: 16px;
	background:
		radial-gradient(circle at 93% 12%, rgba(255, 180, 0, 0.14), transparent 28%),
		#fff;
	box-shadow: 0 9px 30px rgba(28, 41, 58, 0.06);
}

.lmfo-calc-hero__icon {
	width: 88px;
	height: 88px;
	display: grid;
	place-items: center;
	border-radius: 24px;
	background: var(--lmfo-ref-yellow-soft);
	color: #16191e;
}

.lmfo-calc-hero__icon svg {
	width: 42px;
	height: 42px;
}

.lmfo-calc-hero__content h1 {
	max-width: 880px;
	margin: 4px 0 12px !important;
	color: #0d1117 !important;
	font-size: clamp(34px, 4vw, 52px) !important;
	font-weight: 900 !important;
	line-height: 1.04 !important;
	letter-spacing: -0.045em !important;
}

.lmfo-calc-hero__content > p {
	max-width: 850px;
	margin: 0 !important;
	color: var(--lmfo-ref-muted) !important;
	font-size: 16px !important;
	line-height: 1.65 !important;
}

.lmfo-calc-hero__features {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.lmfo-calc-hero__features span {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 6px 11px;
	border: 1px solid #e1e6ed;
	border-radius: 999px;
	background: #f8fafc;
	color: #4a5665;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.015em;
}

.lmfo-calc-workspace {
	display: grid;
	grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
	gap: 18px;
	align-items: stretch;
	margin: 0 0 18px;
}

.lmfo-calc-panel {
	min-width: 0;
	padding: 26px;
	border: 1px solid var(--lmfo-ref-line);
	border-radius: 14px;
	background: var(--lmfo-ref-panel);
	box-shadow: 0 7px 24px rgba(28, 41, 58, 0.055);
}

.lmfo-calc-panel--result {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 100% 0, rgba(255, 180, 0, 0.14), transparent 38%),
		#fff;
}

.lmfo-calc-panel--result::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: var(--lmfo-ref-yellow);
}

.lmfo-calc-panel--result[data-state="low"]::after {
	background: #37a267;
}

.lmfo-calc-panel--result[data-state="medium"]::after {
	background: #e6a10a;
}

.lmfo-calc-panel--result[data-state="high"]::after {
	background: #d75850;
}

.lmfo-calc-panel__header {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	margin-bottom: 23px;
}

.lmfo-calc-panel__step {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--lmfo-ref-yellow-soft);
	color: #171a20;
	font-size: 13px;
	font-weight: 900;
}

.lmfo-calc-panel__header h2 {
	margin: 0 0 4px !important;
	color: #101318 !important;
	font-size: 21px !important;
	font-weight: 900 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.025em !important;
}

.lmfo-calc-panel__header p {
	margin: 0 !important;
	color: #758091 !important;
	font-size: 12px !important;
	line-height: 1.45 !important;
}

.lmfo-calc-field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 17px 14px;
}

.lmfo-calc-field-grid--compact {
	gap: 13px 12px;
}

.lmfo-calc-field {
	min-width: 0;
	display: grid;
	gap: 7px;
	margin: 0;
	color: #313a46;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.35;
}

.lmfo-calc-field--wide {
	grid-column: 1 / -1;
}

.lmfo-calc-field > small {
	color: #7a8594;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.4;
}

.lmfo-calc-input-wrap {
	position: relative;
	display: block;
}

.lmfo-calc-field input,
.lmfo-calc-field select {
	width: 100% !important;
	height: 48px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 1px solid #d5dce6 !important;
	border-radius: 9px !important;
	background: #fff !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	color: #17202c !important;
	font: inherit !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 48px !important;
	outline: none !important;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease !important;
}

.lmfo-calc-field select {
	padding-right: 40px !important;
	line-height: normal !important;
	cursor: pointer;
}

.lmfo-calc-input-wrap input {
	padding-right: 62px !important;
}

.lmfo-calc-input-wrap b {
	position: absolute;
	top: 50%;
	right: 13px;
	max-width: 54px;
	transform: translateY(-50%);
	color: #798493;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	pointer-events: none;
	white-space: nowrap;
}

.lmfo-calc-field input:focus,
.lmfo-calc-field select:focus {
	border-color: var(--lmfo-ref-yellow) !important;
	box-shadow: 0 0 0 3px rgba(255, 180, 0, 0.17) !important;
}

.lmfo-calc-field.is-invalid input,
.lmfo-calc-field.is-invalid select {
	border-color: #cf4f4a !important;
	background: #fff9f8 !important;
	box-shadow: 0 0 0 3px rgba(207, 79, 74, 0.1) !important;
}

.lmfo-calc-field-group {
	margin-bottom: 24px;
	padding-bottom: 23px;
	border-bottom: 1px solid var(--lmfo-ref-line-soft);
}

.lmfo-calc-field-group:last-of-type {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.lmfo-calc-field-group h3 {
	margin: 0 0 13px !important;
	color: #17202c !important;
	font-size: 13px !important;
	font-weight: 900 !important;
	line-height: 1.2 !important;
}

.lmfo-calc-error {
	margin-top: 16px;
	padding: 11px 13px;
	border: 1px solid #f0c4c1;
	border-radius: 8px;
	background: #fff6f5;
	color: #9c322e;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.45;
}

.lmfo-calc-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
}

.lmfo-calc-submit,
.lmfo-calc-reset {
	min-height: 48px;
	border-radius: 9px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 900;
	line-height: 1.25;
	cursor: pointer;
	transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}

.lmfo-calc-submit {
	flex: 1 1 auto;
	padding: 12px 20px;
	border: 1px solid var(--lmfo-ref-yellow);
	background: var(--lmfo-ref-yellow);
	color: #11161d;
}

.lmfo-calc-reset {
	flex: 0 0 auto;
	padding: 12px 17px;
	border: 1px solid #dbe1e9;
	background: #fff;
	color: #526071;
}

.lmfo-calc-submit:hover,
.lmfo-calc-submit:focus,
.lmfo-calc-reset:hover,
.lmfo-calc-reset:focus {
	transform: translateY(-1px);
	filter: brightness(0.98);
	outline: none;
}

.lmfo-calc-primary-result {
	margin: 0 0 17px;
	padding: 20px;
	border: 1px solid #f1d270;
	border-radius: 12px;
	background: var(--lmfo-ref-yellow-pale);
}

.lmfo-calc-primary-result span {
	display: block;
	margin-bottom: 6px;
	color: #66572b;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.035em;
}

.lmfo-calc-primary-result strong {
	display: block;
	color: #11151a;
	font-size: clamp(28px, 3.6vw, 40px);
	font-weight: 900;
	line-height: 1.08;
	letter-spacing: -0.045em;
	word-break: break-word;
}

.lmfo-calc-result-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.lmfo-calc-result-grid > div {
	min-width: 0;
	min-height: 82px;
	padding: 13px;
	border: 1px solid #e4e9ef;
	border-radius: 10px;
	background: #fafbfd;
}

.lmfo-calc-result-grid span {
	display: block;
	margin-bottom: 8px;
	color: #778292;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.35;
}

.lmfo-calc-result-grid strong {
	display: block;
	color: #16202b;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.28;
	word-break: break-word;
}

.lmfo-calc-result-note {
	margin: 16px 0 0 !important;
	color: #788391 !important;
	font-size: 10px !important;
	font-weight: 600 !important;
	line-height: 1.5 !important;
}

.lmfo-calc-ratio {
	margin-top: 17px;
}

.lmfo-calc-ratio > span,
.lmfo-calc-ratio > strong {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
}

.lmfo-calc-ratio > span {
	color: #657182;
}

.lmfo-calc-ratio > strong {
	float: right;
	color: #17202a;
}

.lmfo-calc-ratio > div {
	clear: both;
	height: 7px;
	margin-top: 9px;
	overflow: hidden;
	border-radius: 999px;
	background: #edf0f4;
}

.lmfo-calc-ratio i {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--lmfo-ref-yellow);
	transition: width 0.28s ease;
}

.lmfo-calc-gauge {
	position: relative;
	height: 12px;
	margin: 3px 2px 18px;
	border-radius: 999px;
	background: linear-gradient(90deg, #45a66c 0 30%, #e8a51c 30% 50%, #d85b54 50% 100%);
}

.lmfo-calc-gauge i {
	position: absolute;
	top: 50%;
	left: 0;
	width: 18px;
	height: 18px;
	transform: translate(-50%, -50%);
	border: 4px solid #fff;
	border-radius: 50%;
	background: #17202a;
	box-shadow: 0 2px 8px rgba(15, 24, 34, 0.25);
	transition: left 0.28s ease;
}

.lmfo-calc-budget-bars {
	margin-top: 16px;
	padding: 15px;
	border: 1px solid #e4e9ef;
	border-radius: 10px;
	background: #fafbfd;
}

.lmfo-calc-budget-bars h3 {
	margin: 0 0 11px !important;
	font-size: 11px !important;
	font-weight: 900 !important;
	line-height: 1.3 !important;
}

.lmfo-calc-budget-bars > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border-top: 1px solid #edf0f4;
	font-size: 10px;
	line-height: 1.35;
}

.lmfo-calc-budget-bars span {
	color: #687485;
}

.lmfo-calc-budget-bars strong {
	color: #17202a;
	font-weight: 900;
	white-space: nowrap;
}

.lmfo-calc-progress {
	margin-top: 17px;
}

.lmfo-calc-progress > div {
	height: 10px;
	overflow: hidden;
	border-radius: 999px;
	background: #e9edf2;
}

.lmfo-calc-progress i {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--lmfo-ref-yellow);
	transition: width 0.28s ease;
}

.lmfo-calc-progress > span {
	display: block;
	margin-top: 7px;
	text-align: right;
	color: #596678;
	font-size: 11px;
	font-weight: 900;
}

.lmfo-calc-target-date {
	margin: 14px 0 0 !important;
	padding: 12px;
	border-radius: 8px;
	background: #f5f7fa;
	color: #687485 !important;
	font-size: 11px !important;
	line-height: 1.45 !important;
}

.lmfo-calc-target-date strong {
	color: #17202a;
}

.lmfo-calc-schedule {
	margin: 0 0 18px;
	border: 1px solid var(--lmfo-ref-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 5px 18px rgba(28, 41, 58, 0.04);
}

.lmfo-calc-schedule summary {
	position: relative;
	padding: 18px 52px 18px 20px;
	color: #17202a;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.3;
	cursor: pointer;
	list-style: none;
}

.lmfo-calc-schedule summary::-webkit-details-marker {
	display: none;
}

.lmfo-calc-schedule summary span {
	position: absolute;
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
	font-size: 22px;
	font-weight: 500;
	transition: transform 0.15s ease;
}

.lmfo-calc-schedule[open] summary span {
	transform: translateY(-50%) rotate(45deg);
}

.lmfo-calc-table-wrap {
	max-height: 520px;
	overflow: auto;
	border-top: 1px solid var(--lmfo-ref-line-soft);
}

.lmfo-calc-table-wrap table {
	width: 100%;
	border-collapse: collapse;
	font-size: 11px;
}

.lmfo-calc-table-wrap th,
.lmfo-calc-table-wrap td {
	padding: 11px 14px;
	border-bottom: 1px solid #edf0f4;
	text-align: right;
	white-space: nowrap;
}

.lmfo-calc-table-wrap th:first-child,
.lmfo-calc-table-wrap td:first-child {
	text-align: left;
}

.lmfo-calc-table-wrap th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #f8fafc;
	color: #5f6b7b;
	font-weight: 900;
}

.lmfo-calc-comparison {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 18px;
}

.lmfo-calc-comparison > div {
	padding: 16px;
	border: 1px solid var(--lmfo-ref-line);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 15px rgba(28, 41, 58, 0.035);
}

.lmfo-calc-comparison span,
.lmfo-calc-comparison strong {
	display: block;
}

.lmfo-calc-comparison span {
	min-height: 31px;
	margin-bottom: 8px;
	color: #758091;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.45;
}

.lmfo-calc-comparison strong {
	color: #17202a;
	font-size: 16px;
	font-weight: 900;
	line-height: 1.25;
}

.lmfo-calc-privacy-note {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 34px;
	padding: 14px 17px;
	border: 1px solid #d8e8df;
	border-radius: 10px;
	background: #f6fcf8;
}

.lmfo-calc-privacy-note > span {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #dff2e6;
	color: #23794a;
	font-size: 13px;
	font-weight: 900;
}

.lmfo-calc-privacy-note p {
	margin: 0 !important;
	color: #567064 !important;
	font-size: 11px !important;
	line-height: 1.5 !important;
}

.lmfo-calc-privacy-note strong {
	color: #284f3b;
}

.lmfo-calc-explanation,
.lmfo-calc-faq,
.lmfo-calc-other {
	margin-top: 36px;
}

.lmfo-calc-explanation__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 18px;
}

.lmfo-calc-formula-card {
	padding: 24px;
	border: 1px solid #efd471;
	border-radius: 12px;
	background: var(--lmfo-ref-yellow-pale);
}

.lmfo-calc-formula-card > span {
	display: block;
	margin-bottom: 10px;
	color: #806b2a;
	font-size: 10px;
	font-weight: 900;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.lmfo-calc-formula-card > strong {
	display: block;
	color: #282313;
	font-size: 17px;
	font-weight: 900;
	line-height: 1.55;
}

.lmfo-calc-formula-card p {
	margin: 15px 0 0 !important;
	color: #746a4b !important;
	font-size: 11px !important;
	line-height: 1.55 !important;
}

.lmfo-calc-steps {
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	gap: 10px;
	list-style: none !important;
}

.lmfo-calc-steps li {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	padding: 16px;
	border: 1px solid var(--lmfo-ref-line);
	border-radius: 10px;
	background: #fff;
}

.lmfo-calc-steps li > span {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--lmfo-ref-yellow-soft);
	color: #1b2027;
	font-size: 11px;
	font-weight: 900;
}

.lmfo-calc-steps p {
	margin: 3px 0 0 !important;
	color: #596676 !important;
	font-size: 12px !important;
	font-weight: 650 !important;
	line-height: 1.5 !important;
}

.lmfo-calc-faq__list {
	display: grid;
	gap: 9px;
}

.lmfo-calc-faq details {
	border: 1px solid var(--lmfo-ref-line);
	border-radius: 10px;
	background: #fff;
}

.lmfo-calc-faq summary {
	position: relative;
	padding: 17px 52px 17px 18px;
	color: #17202a;
	font-size: 13px;
	font-weight: 850;
	line-height: 1.45;
	cursor: pointer;
	list-style: none;
}

.lmfo-calc-faq summary::-webkit-details-marker {
	display: none;
}

.lmfo-calc-faq summary span {
	position: absolute;
	top: 50%;
	right: 18px;
	transform: translateY(-50%);
	color: #5d6878;
	font-size: 22px;
	font-weight: 400;
	transition: transform 0.16s ease;
}

.lmfo-calc-faq details[open] summary span {
	transform: translateY(-50%) rotate(45deg);
}

.lmfo-calc-faq details p {
	margin: 0 !important;
	padding: 0 18px 18px !important;
	color: #626e7d !important;
	font-size: 12px !important;
	line-height: 1.65 !important;
}

.lmfo-calc-other__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.lmfo-calc-other__card {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 24px;
	gap: 12px;
	align-items: center;
	min-width: 0;
	padding: 16px;
	border: 1px solid var(--lmfo-ref-line);
	border-radius: 10px;
	background: #fff;
	color: inherit !important;
	text-decoration: none !important;
	box-shadow: 0 4px 15px rgba(28, 41, 58, 0.035);
	transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.lmfo-calc-other__card:hover,
.lmfo-calc-other__card:focus {
	transform: translateY(-2px);
	border-color: #e1bc3c;
	box-shadow: 0 9px 24px rgba(28, 41, 58, 0.08);
	outline: none;
}

.lmfo-calc-other__icon {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--lmfo-ref-yellow-soft);
}

.lmfo-calc-other__icon svg {
	width: 21px;
	height: 21px;
}

.lmfo-calc-other__card strong,
.lmfo-calc-other__card small {
	display: block;
}

.lmfo-calc-other__card strong {
	margin-bottom: 4px;
	color: #17202a;
	font-size: 12px;
	font-weight: 900;
	line-height: 1.3;
}

.lmfo-calc-other__card small {
	overflow: hidden;
	color: #758090;
	font-size: 9px;
	font-weight: 600;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.lmfo-calc-other__card i {
	color: #8a94a1;
	font-size: 17px;
	font-style: normal;
	text-align: right;
}

.lmfo-calc-disclaimer {
	margin-top: 36px;
}

.lmfo-calc-noscript {
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid #f0c4c1;
	border-radius: 9px;
	background: #fff6f5;
	color: #85332f;
	font-size: 12px;
	line-height: 1.5;
}

@media (max-width: 980px) {
	.lmfo-calc-workspace {
		grid-template-columns: 1fr;
	}

	.lmfo-calc-panel--result {
		min-height: 0;
	}

	.lmfo-calc-explanation__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.lmfo-calc-hero {
		grid-template-columns: 58px minmax(0, 1fr);
		gap: 15px;
		padding: 22px 19px;
		border-radius: 12px;
	}

	.lmfo-calc-hero__icon {
		width: 58px;
		height: 58px;
		border-radius: 17px;
	}

	.lmfo-calc-hero__icon svg {
		width: 29px;
		height: 29px;
	}

	.lmfo-calc-hero__content h1 {
		font-size: clamp(28px, 8vw, 38px) !important;
	}

	.lmfo-calc-hero__content > p {
		grid-column: 1 / -1;
		font-size: 13px !important;
	}

	.lmfo-calc-hero__features {
		grid-column: 1 / -1;
	}

	.lmfo-calc-panel {
		padding: 20px 17px;
		border-radius: 11px;
	}

	.lmfo-calc-field-grid,
	.lmfo-calc-result-grid {
		grid-template-columns: 1fr;
	}

	.lmfo-calc-field--wide {
		grid-column: auto;
	}

	.lmfo-calc-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.lmfo-calc-reset {
		width: 100%;
	}

	.lmfo-calc-primary-result strong {
		font-size: 30px;
	}

	.lmfo-calc-comparison {
		grid-template-columns: 1fr;
	}

	.lmfo-calc-other__grid {
		grid-template-columns: 1fr;
	}

	.lmfo-calc-table-wrap th,
	.lmfo-calc-table-wrap td {
		padding: 10px;
	}
}

@media (max-width: 440px) {
	.lmfo-calc-hero {
		display: block;
	}

	.lmfo-calc-hero__icon {
		margin-bottom: 15px;
	}

	.lmfo-calc-hero__features span {
		font-size: 9px;
	}

	.lmfo-calc-panel__header h2 {
		font-size: 18px !important;
	}

	.lmfo-calc-result-grid > div {
		min-height: 70px;
	}
}
