/* AdresCity Mortgage 1.0.0 */

.em-entry[hidden] {
	display: none !important;
}

.em-entry {
	margin-top: 18px;
}

.em-object-button {
	display: flex;
	width: 100%;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 12px 15px;
	color: #087eb5 !important;
	border: 1px solid #bfe5f5;
	border-radius: 12px;
	background: #effaff;
	font-size: 14px;
	font-weight: 750;
	text-align: center;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}

.em-object-button:hover {
	color: #fff !important;
	border-color: #00aaff;
	background: #00aaff;
	transform: translateY(-1px);
}

.em-object-button svg {
	width: 21px;
	height: 21px;
	flex: 0 0 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

#em-root {
	width: 100%;
	min-width: 0;
}

.static-page:has(#em-root) .static-page__meta,
.static-page:has(#em-root) .static-page__tools {
	display: none;
}

.em-object,
.em-card,
.em-notice {
	min-width: 0;
	border: 1px solid var(--border, #e3e3e3);
	border-radius: 17px;
	background: var(--surface, #fff);
	color: var(--text, #111);
}

.em-object {
	padding: 24px;
	background:
		radial-gradient(circle at 100% 0, rgba(0,170,255,.12), transparent 42%),
		var(--surface, #fff);
}

.em-eyebrow {
	margin-bottom: 8px;
	color: #078bc5;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.em-object h2 {
	margin: 0;
	font-size: clamp(21px, 3vw, 29px);
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.em-object p {
	margin: 8px 0 0;
	color: var(--text-secondary, #666);
}

.em-object__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
}

.em-object__bottom > strong {
	font-size: clamp(23px, 3vw, 31px);
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.em-back,
.em-consent a {
	color: #078bc5;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.em-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: 20px;
	margin-top: 20px;
}

.em-card {
	overflow: hidden;
}

.em-card__head {
	padding: 21px 23px;
	border-top: 3px solid #00aaff;
	border-bottom: 1px solid var(--border, #e3e3e3);
	background: rgba(0,170,255,.035);
}

.em-card__head h2 {
	margin: 0;
	font-size: 21px;
	line-height: 1.25;
}

.em-card__head p {
	margin: 6px 0 0;
	color: var(--text-secondary, #666);
	font-size: 13px;
	line-height: 1.5;
}

.em-card__body {
	padding: 23px;
}

.em-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
}

.em-field {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 7px;
	margin-bottom: 18px;
}

.em-field label {
	font-size: 13px;
	font-weight: 700;
}

.em-field input,
.em-field select {
	width: 100%;
	min-width: 0;
	min-height: 49px;
	padding: 12px 13px;
	color: var(--text, #111);
	border: 1px solid var(--border, #d7e3ea);
	border-radius: 11px;
	outline: 0;
	background: var(--surface, #fff);
	font: inherit;
	font-size: 15px;
}

.em-field input:focus,
.em-field select:focus {
	border-color: #00aaff;
	box-shadow: 0 0 0 4px rgba(0,170,255,.12);
}

.em-field input[readonly] {
	background: var(--surface-secondary, #f7f7f7);
	font-weight: 700;
}

.em-help {
	margin: 0;
	color: var(--text-secondary, #666);
	font-size: 12px;
	line-height: 1.6;
}

.em-payment {
	margin-bottom: 19px;
	padding: 20px;
	border: 1px solid rgba(0,170,255,.22);
	border-radius: 13px;
	background: rgba(0,170,255,.07);
}

.em-payment > span {
	display: block;
	color: var(--text-secondary, #666);
	font-size: 13px;
}

.em-payment > strong {
	display: block;
	margin-top: 5px;
	color: #078bc5;
	font-size: clamp(26px, 3.5vw, 36px);
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.em-result {
	margin-bottom: 20px;
}

.em-result-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 15px;
	padding: 13px 0;
	border-bottom: 1px solid var(--border, #e3e3e3);
	font-size: 14px;
}

.em-result-row > span {
	color: var(--text-secondary, #666);
}

.em-result-row > strong {
	text-align: right;
	overflow-wrap: anywhere;
}

.em-application {
	margin-top: 20px;
}

.em-consent {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	font-size: 13px;
	line-height: 1.6;
	cursor: pointer;
}

.em-consent input {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	margin: 3px 0 0;
	accent-color: #00aaff;
}

.em-submit-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 23px;
}

.em-submit {
	display: inline-flex;
	min-height: 51px;
	align-items: center;
	justify-content: center;
	padding: 13px 24px;
	color: #fff;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #00aaff, #008ed0);
	box-shadow: 0 8px 18px rgba(0,170,255,.19);
	font: inherit;
	font-weight: 750;
	cursor: pointer;
}

.em-submit:hover:not(:disabled) {
	filter: brightness(1.05);
}

.em-submit:disabled {
	cursor: default;
	opacity: .65;
}

.em-submit:focus-visible,
.em-object-button:focus-visible {
	outline: 3px solid rgba(0,170,255,.3);
	outline-offset: 3px;
}

.em-message:empty {
	display: none;
}

.em-message,
.em-notice {
	padding: 17px 19px;
	line-height: 1.6;
}

.em-message {
	margin-top: 20px;
	border: 1px solid transparent;
	border-radius: 11px;
}

.em-message--success {
	color: #176b3d;
	border-color: #bfe8d0;
	background: #effbf5;
}

.em-message--error,
.em-notice--error {
	color: #a73543;
	border-color: #f1c7ce;
	background: #fff3f5;
}

.em-error {
	color: #c23f50;
	font-size: 14px;
}

.em-trap {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

html.theme-dark .em-object-button {
	color: #82ddff !important;
	border-color: #365564;
	background: #1d3c4b;
}

html.theme-dark .em-object-button:hover {
	color: #fff !important;
	background: #078bc5;
}

html.theme-dark .em-eyebrow,
html.theme-dark .em-payment > strong,
html.theme-dark .em-back,
html.theme-dark .em-consent a {
	color: #82ddff;
}

html.theme-dark .em-message--success {
	color: #a6e9c0;
	border-color: #315e46;
	background: #1c3529;
}

html.theme-dark .em-message--error,
html.theme-dark .em-notice--error {
	color: #ffb0bb;
	border-color: #68424b;
	background: #34242b;
}

html.theme-dark .em-error {
	color: #ffb0bb;
}

@media (max-width: 900px) {
	.em-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.em-object,
	.em-card__body,
	.em-card__head {
		padding: 18px;
	}

	.em-fields {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.em-card__head h2 {
		font-size: 19px;
	}

	.em-result-row {
		flex-direction: column;
		gap: 5px;
	}

	.em-result-row > strong {
		text-align: left;
	}

	.em-submit {
		width: 100%;
	}

	.em-object__bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}

/* =========================================================
   Пример ежемесячного платежа в объявлении
   ========================================================= */

.em-preview[hidden] {
	display: none !important;
}

.em-preview {
	position: relative;
	margin-bottom: 12px;
	padding: 16px;
	overflow: hidden;
	color: #263b4e;
	border: 1px solid #cce8f5;
	border-radius: 14px;
	background:
		radial-gradient(
			circle at 100% 0,
			rgba(0, 170, 255, .12),
			transparent 55%
		),
		#f3fbff;
}

.em-preview__label {
	color: #587386;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.em-preview__payment {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 5px 7px;
	margin-top: 5px;
	color: #087eb5;
	line-height: 1.2;
}

.em-preview__payment > strong {
	min-width: 0;
	font-size: clamp(25px, 3vw, 31px);
	font-weight: 800;
	overflow-wrap: anywhere;
}

.em-preview__payment > span {
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.em-preview__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 12px;
}

.em-preview__terms > span {
	padding: 5px 8px;
	color: #42677e;
	border: 1px solid #d5eaf5;
	border-radius: 7px;
	background: rgba(255, 255, 255, .75);
	font-size: 11px;
	line-height: 1.4;
}

.em-preview__terms b {
	color: #176487;
	font-weight: 800;
}

.em-preview__down {
	margin-top: 11px;
	color: #587386;
	font-size: 12px;
	line-height: 1.5;
}

.em-preview__down > strong {
	color: #294f66;
	font-weight: 750;
}

.em-preview__note {
	margin: 10px 0 0;
	padding-top: 10px;
	color: #647d8d;
	border-top: 1px solid #d8eaf4;
	font-size: 11px;
	line-height: 1.5;
}

/* Тёмная тема */

html.theme-dark .em-preview {
	color: #dbeaf0;
	border-color: #315365;
	background:
		radial-gradient(
			circle at 100% 0,
			rgba(34, 182, 242, .12),
			transparent 55%
		),
		#1a303d;
}

html.theme-dark .em-preview__label,
html.theme-dark .em-preview__down,
html.theme-dark .em-preview__note {
	color: #aabdc8;
}

html.theme-dark .em-preview__payment {
	color: #82ddff;
}

html.theme-dark .em-preview__terms > span {
	color: #b9d4e0;
	border-color: #355566;
	background: #203b4a;
}

html.theme-dark .em-preview__terms b,
html.theme-dark .em-preview__down > strong {
	color: #d7f3ff;
}

html.theme-dark .em-preview__note {
	border-color: #315365;
}

/* Пример платежа на мобильных устройствах */
@media screen and (max-width: 760px) {

	.property-full .property-sidebar .em-preview:not([hidden]) {
		display: block !important;
		width: 100%;
		max-width: 100%;
		margin-bottom: 12px;
		padding: 15px;
		visibility: visible;
		opacity: 1;
	}

	.property-full .em-preview__label {
		display: block;
		font-size: 12px;
		line-height: 1.5;
	}

	.property-full .em-preview__payment {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 5px 7px;
	}

	.property-full .em-preview__payment > strong {
		font-size: 28px;
		line-height: 1.25;
	}

	.property-full .em-preview__payment > span {
		font-size: 14px;
		white-space: nowrap;
	}

	.property-full .em-preview__terms {
		display: flex;
		flex-wrap: wrap;
	}
}

/* =========================================================
   Обновлённая страница ипотечного расчёта
   ========================================================= */

#em-root,
#em-root * {
	box-sizing: border-box;
}

#em-root {
	--em-accent: #009fe8;
	--em-track: #dceaf1;
}

#em-root .em-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 22px;
	padding: 30px;
	border: 1px solid var(--border, #dceaf1);
	border-radius: 22px;
	background:
		radial-gradient(
			circle at 100% 0,
			rgba(0, 170, 255, .15),
			transparent 55%
		),
		var(--surface, #fff);
}

#em-root .em-hero__content {
	min-width: 0;
}

#em-root .em-hero h2 {
	margin: 0;
	color: var(--text, #162c3b);
	font-size: clamp(27px, 4vw, 42px);
	line-height: 1.15;
	letter-spacing: -.025em;
}

#em-root .em-hero p {
	max-width: 520px;
	margin: 13px 0 0;
	color: var(--text-secondary, #667b89);
	font-size: 15px;
	line-height: 1.65;
}

#em-root .em-hero__rate {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 5px;
	padding: 20px 24px;
	border: 1px solid rgba(0, 170, 255, .18);
	border-radius: 17px;
	background: rgba(0, 170, 255, .07);
}

#em-root .em-hero__rate span {
	color: var(--text-secondary, #667b89);
	font-size: 12px;
	line-height: 1.5;
}

#em-root .em-hero__rate strong {
	color: #078bc5;
	font-size: clamp(30px, 4vw, 43px);
	line-height: 1.15;
	white-space: nowrap;
}

#em-root .em-layout {
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: 24px;
	margin-top: 24px;
}

#em-root .em-card {
	border-radius: 20px;
}

#em-root .em-card__head {
	padding: 23px 25px;
	border-top: 0;
	background: transparent;
}

#em-root .em-card__body {
	padding: 25px;
}

#em-root .em-field input:not([type="range"]),
#em-root .em-field select {
	min-height: 54px;
	border-radius: 12px;
}

#em-root .em-slider-block {
	margin: -3px 0 26px;
}

#em-root .em-slider-title {
	display: block;
	margin-bottom: 9px;
	color: var(--text-secondary, #667b89);
	font-size: 12px;
	font-weight: 600;
}

#em-root input.em-range {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 26px;
	min-height: 26px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: none;
	background: transparent;
	cursor: pointer;
	accent-color: var(--em-accent);
}

#em-root input.em-range::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 99px;
	background: linear-gradient(
		to right,
		var(--em-accent) 0%,
		var(--em-accent) var(--em-fill, 0%),
		var(--em-track) var(--em-fill, 0%),
		var(--em-track) 100%
	);
}

#em-root input.em-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 24px;
	height: 24px;
	margin-top: -9px;
	border: 3px solid var(--surface, #fff);
	border-radius: 50%;
	background: var(--em-accent);
	box-shadow: 0 2px 8px rgba(0, 100, 150, .25);
}

#em-root input.em-range::-moz-range-track {
	height: 6px;
	border-radius: 99px;
	background: var(--em-track);
}

#em-root input.em-range::-moz-range-progress {
	height: 6px;
	border-radius: 99px;
	background: var(--em-accent);
}

#em-root input.em-range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 3px solid var(--surface, #fff);
	border-radius: 50%;
	background: var(--em-accent);
	box-shadow: 0 2px 8px rgba(0, 100, 150, .25);
}

#em-root input.em-range:focus-visible {
	outline: 3px solid rgba(0, 170, 255, .35);
	outline-offset: 5px;
	border-radius: 8px;
}

#em-root input.em-range:disabled {
	opacity: .45;
	cursor: default;
}

#em-root .em-range-labels {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 6px 0 9px;
	color: var(--text-secondary, #667b89);
	font-size: 12px;
	line-height: 1.5;
}

#em-root .em-range-labels > span:last-child {
	text-align: right;
}

#em-root .em-payment {
	padding: 24px;
	border-radius: 17px;
}

#em-root .em-payment > strong {
	margin-top: 9px;
	font-size: clamp(29px, 3.5vw, 43px);
	letter-spacing: -.025em;
}

#em-root .em-application {
	margin-top: 24px;
}

html.theme-dark #em-root {
	--em-accent: #48c4ff;
	--em-track: #365363;
}

html.theme-dark #em-root .em-hero__rate strong {
	color: #82ddff;
}

@media (max-width: 900px) {
	#em-root .em-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	#em-root .em-hero {
		align-items: stretch;
		flex-direction: column;
		gap: 20px;
		padding: 21px;
		border-radius: 17px;
	}

	#em-root .em-hero__rate {
		padding: 17px 19px;
	}

	#em-root .em-card__head,
	#em-root .em-card__body {
		padding: 19px;
	}

	#em-root .em-range-labels {
		font-size: 11px;
	}
}
