/* Kalkulator kredytowy — page-scoped styles. */
.sf-calc-page {
	background: var(--sf-white);
}

.sf-calc [hidden],
.sf-calc-page [hidden] {
	display: none !important;
}

/* Workspace */
.sf-calc {
	padding: var(--sf-space-12) 0 clamp(40px, 6vw, 64px);
	background: var(--sf-white);
}

.sf-calc__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
	align-items: start;
	gap: clamp(20px, 3vw, 32px);
}

.sf-calc__main,
.sf-calc__compare,
.sf-calc__schedule {
	border: 1px solid var(--sf-line-soft);
	background: var(--sf-white);
}

.sf-calc__main {
	padding: clamp(20px, 3vw, 32px);
}

.sf-calc__intro {
	max-width: 68ch;
}

.sf-calc__intro h2,
.sf-calc__section-head h2,
.sf-calc-content__intro h2,
.sf-calc-note h2,
.sf-calc__final h2 {
	margin: 0 0 var(--sf-space-3);
	font-family: var(--sf-font-display);
	font-size: var(--sf-type-subheading);
	font-weight: 400;
	line-height: var(--sf-leading-tight);
}

.sf-calc__intro h2 {
	font-size: var(--sf-type-title-large);
}

.sf-calc__intro p,
.sf-calc__section-head p {
	max-width: 68ch;
	margin: 0;
	color: var(--sf-muted);
	font-size: var(--sf-type-small);
	line-height: var(--sf-leading-reading);
}

/* Tabs */
.sf-calc__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 22px 0 24px;
}

.sf-calc__tab {
	flex: 0 0 auto;
	padding: 10px 16px;
	border: 1px solid var(--sf-line-soft);
	border-radius: 0;
	background: var(--sf-white);
	color: var(--sf-muted);
	font: inherit;
	font-size: var(--sf-type-small);
	font-weight: 500;
	cursor: pointer;
}

.sf-calc__tab:hover {
	border-color: var(--sf-gold);
	color: var(--sf-ink);
}

.sf-calc__tab.is-active {
	border-color: var(--sf-ink);
	background: var(--sf-ink);
	color: var(--sf-white);
}

.sf-calc__tab:focus-visible {
	outline: 2px solid var(--sf-blue);
	outline-offset: 2px;
}

/* Form */
.sf-calc__form {
	display: grid;
	gap: 18px;
}

.sf-calc__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 22px;
}

.sf-calc__field {
	display: grid;
	min-width: 0;
	gap: 7px;
	margin: 0;
	padding: 0;
	border: 0;
}

.sf-calc__field-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.sf-calc__field label,
.sf-calc__field legend {
	padding: 0;
	color: var(--sf-ink);
	font-size: var(--sf-type-small);
	font-weight: 500;
	line-height: 1.4;
}

.sf-calc__display {
	color: var(--sf-muted);
	font-size: var(--sf-type-caption);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sf-calc__input-wrap {
	position: relative;
}

.sf-calc__input-wrap input,
.sf-calc__field select {
	width: 100%;
	height: 52px;
	padding: 0 48px 0 13px;
	border: 1px solid var(--sf-line-soft);
	border-radius: 0;
	background: var(--sf-white);
	color: var(--sf-ink);
	font: inherit;
	font-size: var(--sf-type-body);
}

.sf-calc__field select {
	padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2328262b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 14px 14px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.sf-calc__input-wrap input:focus,
.sf-calc__field select:focus {
	border-color: var(--sf-blue);
	outline: 2px solid rgb(30 115 190 / 18%);
	outline-offset: 1px;
}

.sf-calc__unit {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	color: var(--sf-muted);
	font-size: var(--sf-type-caption);
	pointer-events: none;
}

.sf-calc__range {
	width: 100%;
	margin: 1px 0 0;
	accent-color: var(--sf-blue);
	cursor: pointer;
}

.sf-calc__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sf-calc__chips button {
	padding: 6px 9px;
	border: 1px solid var(--sf-line-soft);
	border-radius: 0;
	background: var(--sf-white);
	color: var(--sf-muted);
	font: inherit;
	font-size: var(--sf-type-caption);
	cursor: pointer;
}

.sf-calc__chips button:hover,
.sf-calc__chips button:focus-visible {
	border-color: var(--sf-gold);
	color: var(--sf-ink);
}

.sf-calc__chips small {
	color: var(--sf-muted-strong);
	font-size: 10px;
}

.sf-calc__hint {
	margin: 0;
	color: var(--sf-muted);
	font-size: var(--sf-type-caption);
	line-height: 1.5;
}

.sf-calc__error {
	margin: 0;
	color: #a52d3b;
	font-size: var(--sf-type-caption);
	line-height: 1.45;
}

.sf-calc__error-summary {
	margin: 0;
	padding: 10px 12px;
	border-left: 3px solid #a52d3b;
	background: #fdf2f3;
	color: #7d1f2c;
	font-size: var(--sf-type-small);
}

.sf-calc__field [aria-invalid="true"] {
	border-color: #a52d3b;
}

/* Segmented control */
.sf-calc__field legend {
	margin-bottom: 8px;
}

.sf-calc__segmented {
	display: flex;
	width: 100%;
	min-height: 48px;
	gap: 3px;
	padding: 3px;
	border: 1px solid var(--sf-line-soft);
	background: var(--sf-white);
}

.sf-calc__segmented label {
	position: relative;
	display: flex;
	flex: 1 1 0;
	cursor: pointer;
}

.sf-calc__segmented input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.sf-calc__segmented span {
	display: grid;
	width: 100%;
	min-height: 40px;
	place-items: center;
	padding: 0 14px;
	color: var(--sf-muted);
	font-size: var(--sf-type-small);
	text-align: center;
}

.sf-calc__segmented input:checked + span {
	background: var(--sf-ink);
	color: var(--sf-white);
}

.sf-calc__segmented input:focus-visible + span {
	outline: 2px solid var(--sf-blue);
	outline-offset: 2px;
}

/* Product-only blocks and advanced options */
.sf-calc__product-extra {
	padding: 16px;
	border-left: 3px solid var(--sf-gold);
	background: var(--sf-surface-soft);
}

.sf-calc__advanced {
	padding-top: 16px;
	border-top: 1px solid var(--sf-line-soft);
}

.sf-calc__advanced summary {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--sf-ink);
	font-size: var(--sf-type-small);
	font-weight: 500;
	cursor: pointer;
}

.sf-calc__advanced summary::marker {
	color: var(--sf-pink);
}

.sf-calc__advanced[open] summary {
	margin-bottom: 18px;
}

.sf-calc__summary-count {
	display: inline-grid;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	place-items: center;
	background: var(--sf-gold);
	color: var(--sf-ink);
	font-size: 11px;
	font-weight: 600;
}

.sf-calc__noscript {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-left: 3px solid var(--sf-gold);
	background: #fbf7ee;
	color: var(--sf-muted);
	font-size: var(--sf-type-caption);
	line-height: 1.55;
}

.sf-table-wrap:focus-visible {
	outline: 2px solid var(--sf-blue);
	outline-offset: 2px;
}

.sf-calc__form-note {
	max-width: 68ch;
	margin: 0;
	color: var(--sf-muted);
	font-size: var(--sf-type-caption);
	line-height: 1.55;
}

/* Summary */
.sf-calc__aside {
	display: grid;
	gap: 16px;
	position: sticky;
	top: 24px;
}

.sf-calc__summary {
	padding: clamp(22px, 3vw, 30px);
	border: 1px solid var(--sf-blue-night);
	background: var(--sf-blue-night);
	color: var(--sf-white);
}

.sf-calc__summary-label {
	margin: 0 0 6px;
	color: rgb(255 255 255 / 72%);
	font-size: var(--sf-type-small);
	font-weight: 500;
	line-height: 1.4;
}

.sf-calc__payment {
	margin: 0;
	color: var(--sf-white);
	font-family: var(--sf-font-display);
	font-size: clamp(2.5rem, 3.7vw, 3.4rem);
	font-variant-numeric: tabular-nums;
	font-weight: 400;
	line-height: 1.05;
	overflow-wrap: anywhere;
}

.sf-calc__payment-note {
	min-height: 40px;
	margin: 8px 0 20px;
	color: rgb(255 255 255 / 72%);
	font-size: var(--sf-type-small);
	line-height: 1.55;
}

.sf-calc__metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
	margin: 0 0 20px;
	padding: 18px 0 0;
	border-top: 1px solid rgb(255 255 255 / 16%);
}

.sf-calc__metrics dt {
	color: rgb(255 255 255 / 68%);
	font-size: var(--sf-type-caption);
	letter-spacing: 0.05em;
	line-height: 1.35;
	text-transform: uppercase;
}

.sf-calc__metrics dd {
	margin: 4px 0 0;
	color: var(--sf-white);
	font-size: var(--sf-type-body);
	font-variant-numeric: tabular-nums;
	line-height: 1.4;
}

.sf-calc__metric-extra dd {
	color: var(--sf-gold);
}

.sf-calc__bar {
	display: flex;
	width: 100%;
	height: 9px;
	margin: 0 0 12px;
	overflow: hidden;
	background: rgb(255 255 255 / 12%);
}

.sf-calc__bar-segment {
	display: block;
	width: 0;
	height: 100%;
}

.sf-calc__bar-segment--principal {
	background: var(--sf-gold);
}

.sf-calc__bar-segment--interest {
	background: var(--sf-pink);
}

.sf-calc__bar-segment--commission {
	background: #8cc4ff;
}

.sf-calc__bar-segment--insurance {
	background: #8f989f;
}

.sf-calc__legend {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 7px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	color: rgb(255 255 255 / 72%);
	font-size: var(--sf-type-small);
	line-height: 1.45;
}

.sf-calc__legend li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sf-calc__legend strong {
	margin-left: auto;
	color: var(--sf-white);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.sf-calc__dot {
	flex: 0 0 7px;
	width: 7px;
	height: 7px;
}

.sf-calc__dot--principal {
	background: var(--sf-gold);
}

.sf-calc__dot--interest {
	background: var(--sf-pink);
}

.sf-calc__dot--commission {
	background: #8cc4ff;
}

.sf-calc__dot--insurance {
	background: #8f989f;
}

.sf-calc__advisor-button {
	width: 100%;
	justify-content: center;
}

.sf-calc__summary-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
	margin-top: 13px;
}

.sf-calc__summary-actions button {
	padding: 0;
	border: 0;
	background: transparent;
	color: rgb(255 255 255 / 82%);
	font: inherit;
	font-size: var(--sf-type-small);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.sf-calc__summary-actions button:hover,
.sf-calc__summary-actions button:focus-visible {
	color: var(--sf-gold);
}

.sf-calc__share-status {
	min-height: 18px;
	margin: 8px 0 0;
	color: var(--sf-gold);
	font-size: var(--sf-type-caption);
	line-height: 1.45;
	text-align: center;
}

.sf-calc__disclaimer {
	margin: 16px 0 0;
	color: rgb(255 255 255 / 62%);
	font-size: var(--sf-type-caption);
	line-height: 1.6;
}

.sf-calc__example {
	padding: 20px;
	border: 1px solid var(--sf-line-soft);
	background: var(--sf-white);
}

.sf-calc__example-line {
	margin: 0 0 4px;
	color: var(--sf-muted);
	font-size: var(--sf-type-caption);
}

.sf-calc__example-value {
	display: block;
	color: var(--sf-ink);
	font-family: var(--sf-font-display);
	font-size: var(--sf-type-title-large);
	font-weight: 400;
	line-height: 1.25;
}

.sf-calc__example-note {
	margin: 8px 0 0;
	color: var(--sf-muted);
	font-size: var(--sf-type-caption);
	line-height: 1.55;
}

/* Comparison and schedule */
.sf-calc__compare,
.sf-calc__schedule {
	margin-top: 20px;
	padding: clamp(20px, 3vw, 28px);
}

.sf-calc__section-head {
	max-width: 68ch;
}

.sf-calc__section-head--row {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	max-width: none;
}

.sf-calc__section-head--row > div {
	max-width: 68ch;
}

.sf-calc__section-head h2 {
	font-size: var(--sf-type-title-large);
}

.sf-calc__csv {
	flex: 0 0 auto;
	min-height: 46px;
	font-family: var(--sf-font-body);
	font-size: var(--sf-type-small);
}

.sf-calc__csv:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.sf-table-wrap {
	overflow-x: auto;
	margin-top: 18px;
	border: 1px solid var(--sf-line-soft);
}

.sf-calc__table {
	width: 100%;
	border-collapse: collapse;
	color: var(--sf-ink);
	font-size: var(--sf-type-small);
}

.sf-calc__table th,
.sf-calc__table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--sf-line-soft);
	text-align: left;
	vertical-align: middle;
	white-space: nowrap;
}

.sf-calc__table thead th {
	background: var(--sf-surface-soft);
	color: var(--sf-muted);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sf-calc__table tbody th {
	font-weight: 500;
}

.sf-calc__table td {
	font-variant-numeric: tabular-nums;
}

.sf-calc__table tbody tr:last-child th,
.sf-calc__table tbody tr:last-child td {
	border-bottom: 0;
}

.sf-calc__table-empty {
	padding: 24px 14px !important;
	color: var(--sf-muted);
	text-align: center !important;
	white-space: normal !important;
}

.sf-calc__compare-note,
.sf-calc__schedule-note {
	margin: 12px 0 0;
	color: var(--sf-muted);
	font-size: var(--sf-type-caption);
	line-height: 1.5;
}

.sf-calc__schedule-wrap {
	max-height: 540px;
	overflow: auto;
}

.sf-calc__schedule-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 14px;
}

.sf-calc__schedule-actions .sf-text-link {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--sf-blue);
	cursor: pointer;
}

.sf-calc__schedule-actions .sf-text-link .sf-icon {
	width: 16px;
	height: 16px;
}

/* Editorial content */
.sf-calc-content {
	padding: clamp(48px, 7vw, 80px) 0 clamp(56px, 8vw, 96px);
	background: var(--sf-white);
}

.sf-calc-content__intro {
	max-width: 68ch;
	margin-bottom: 30px;
}

.sf-calc-content__intro p {
	max-width: 64ch;
	margin: 0;
	color: var(--sf-muted);
	font-size: var(--sf-type-body);
	line-height: var(--sf-leading-reading);
}

.sf-calc-info-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.sf-calc-info {
	padding: 24px;
	border: 1px solid var(--sf-line-soft);
}

.sf-calc-info__icon {
	display: grid;
	width: 44px;
	height: 44px;
	margin-bottom: 16px;
	place-items: center;
	border: 1px solid rgb(197 160 92 / 35%);
	background: #fbf7ee;
	color: #9a7431;
}

.sf-calc-info__svg,
.sf-calc-factor__svg {
	width: 22px;
	height: 22px;
}

.sf-calc-info h3,
.sf-calc-factor h3 {
	margin: 0 0 6px;
	font-family: var(--sf-font-display);
	font-size: var(--sf-type-title);
	font-weight: 400;
	line-height: var(--sf-leading-tight);
}

.sf-calc-info p,
.sf-calc-factor p {
	margin: 0;
	color: var(--sf-muted);
	font-size: var(--sf-type-small);
	line-height: var(--sf-leading-reading);
}

.sf-calc-content__split {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 16px;
	margin-top: clamp(40px, 6vw, 64px);
}

.sf-calc-content__split > div {
	min-width: 0;
	grid-column: span 2;
}

.sf-calc-content__split h2 {
	margin: 0 0 22px;
	font-family: var(--sf-font-display);
	font-size: var(--sf-type-subheading);
	font-weight: 400;
	line-height: var(--sf-leading-tight);
}

.sf-calc-factors {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.sf-calc-factor {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: start;
	gap: 14px;
	padding: 20px;
	border: 1px solid var(--sf-line-soft);
	background: var(--sf-white);
}

.sf-calc-factor > span {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 1px solid rgb(197 160 92 / 35%);
	background: #fbf7ee;
	color: #9a7431;
}

.sf-calc-note {
	display: flex;
	grid-column: 3;
	flex-direction: column;
	padding: 24px;
	border: 1px solid var(--sf-line-soft);
	border-left: 3px solid var(--sf-gold);
	background: var(--sf-surface-soft);
}

.sf-calc-note h2 {
	margin-bottom: 14px;
	font-size: var(--sf-type-title-large);
}

.sf-calc-note p,
.sf-calc-note li {
	color: var(--sf-muted);
	font-size: var(--sf-type-small);
	line-height: var(--sf-leading-reading);
}

.sf-calc-note p {
	margin: 0 0 14px;
}

.sf-calc-note p:last-child {
	margin-bottom: 0;
}

.sf-calc-note ul {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.sf-calc-note li {
	position: relative;
	padding-left: 16px;
}

.sf-calc-note li + li {
	margin-top: 6px;
}

.sf-calc-note li::before {
	position: absolute;
	top: 0.62em;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--sf-gold);
	content: "";
}

/* FAQ */
.sf-calc-faq {
	max-width: 860px;
	margin-top: clamp(48px, 7vw, 76px);
}

.sf-calc-faq__item {
	border-top: 1px solid var(--sf-line-soft);
}

.sf-calc-faq__item:last-child {
	border-bottom: 1px solid var(--sf-line-soft);
}

.sf-calc-faq__item summary {
	padding: 16px 0;
	color: var(--sf-ink);
	font-size: var(--sf-type-body);
	font-weight: 500;
	cursor: pointer;
}

.sf-calc-faq__item summary::marker {
	color: var(--sf-pink);
}

.sf-calc-faq__item p {
	max-width: 72ch;
	margin: 0;
	padding: 0 0 18px;
	color: var(--sf-muted);
	font-size: var(--sf-type-small);
	line-height: var(--sf-leading-reading);
}

/* Related and final CTA */
.sf-calc-related {
	margin-top: clamp(48px, 7vw, 76px);
}

.sf-calc-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.sf-calc-related__card {
	display: flex;
	min-height: 150px;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 22px;
	border: 1px solid var(--sf-line-soft);
	background: var(--sf-white);
	color: var(--sf-ink);
	transition:
		border-color 0.18s ease,
		background 0.18s ease;
}

.sf-calc-related__card:hover,
.sf-calc-related__card:focus-visible {
	border-color: var(--sf-gold);
	background: var(--sf-surface-soft);
}

.sf-calc-related__card strong {
	font-family: var(--sf-font-display);
	font-size: var(--sf-type-title);
	font-weight: 400;
	line-height: var(--sf-leading-tight);
}

.sf-calc-related__card span {
	color: var(--sf-muted);
	font-size: var(--sf-type-small);
	line-height: 1.5;
}

.sf-calc-related__card .sf-icon {
	width: 18px;
	height: 18px;
	margin-top: auto;
}

/* Advisor dialog */
.sf-calc-dialog {
	width: min(92vw, 540px);
	max-height: 90vh;
	padding: 0;
	overflow: auto;
	border: 1px solid var(--sf-line-soft);
	border-radius: 0;
	background: var(--sf-white);
	color: var(--sf-ink);
}

.sf-calc-dialog::backdrop {
	background: rgb(11 24 34 / 72%);
}

.sf-calc-dialog__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 24px 0;
}

.sf-calc-dialog__head h2 {
	margin: 0;
	font-family: var(--sf-font-display);
	font-size: var(--sf-type-subheading);
	font-weight: 400;
	line-height: var(--sf-leading-tight);
}

.sf-calc-dialog__close {
	display: grid;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	place-items: center;
	border: 1px solid var(--sf-line-soft);
	background: var(--sf-white);
	color: var(--sf-ink);
	cursor: pointer;
}

.sf-calc-dialog__close .sf-icon {
	width: 16px;
	height: 16px;
}

.sf-calc-dialog__lead {
	margin: 12px 24px 0;
	color: var(--sf-muted);
	font-size: var(--sf-type-small);
	line-height: var(--sf-leading-reading);
}

.sf-calc-dialog__summary {
	margin: 14px 24px 18px;
	padding: 10px 12px;
	border-left: 3px solid var(--sf-gold);
	background: var(--sf-surface-soft);
	color: var(--sf-ink);
	font-size: var(--sf-type-small);
	line-height: 1.5;
}

.sf-calc-dialog .sf-contact-form {
	padding: 0 24px 24px;
}

.sf-calc-dialog .sf-contact-form__field > span {
	font-size: var(--sf-type-caption);
}

.sf-calc-dialog__include {
	display: grid;
	grid-template-columns: 16px minmax(0, 1fr);
	align-items: start;
	gap: 8px;
	color: var(--sf-muted);
	font-size: var(--sf-type-caption);
	line-height: 1.45;
}

.sf-calc-dialog__include input {
	width: 15px;
	height: 15px;
	margin: 1px 0 0;
	accent-color: var(--sf-blue);
}

.sf-calc-dialog__include small {
	color: var(--sf-muted-strong);
}

/* Responsive */
@media (max-width: 1100px) {
	.sf-calc__layout {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

@media (max-width: 1000px) {
	.sf-calc__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.sf-calc__aside {
		position: static;
		grid-template-columns: minmax(0, 1fr);
	}

	.sf-calc__summary {
		grid-row: auto;
	}

	.sf-calc-content__split {
		grid-template-columns: minmax(0, 1fr);
	}

	.sf-calc-content__split > div,
	.sf-calc-note {
		grid-column: auto;
	}

	.sf-calc-info-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 820px) {
	.sf-calc__intro h2,
	.sf-calc__section-head h2,
	.sf-calc-content__intro h2,
	.sf-calc-note h2 {
		font-size: var(--sf-type-subheading);
	}

	.sf-calc-related__grid {
		grid-template-columns: minmax(0, 1fr);
	}

}

@media (max-width: 720px) {
	.sf-calc__main,
	.sf-calc__compare,
	.sf-calc__schedule {
		padding: 18px;
	}

	.sf-calc__grid,
	.sf-calc-factors {
		grid-template-columns: minmax(0, 1fr);
	}

	.sf-calc__tabs {
		display: flex;
		overflow: visible;
	}

	.sf-calc__tab {
		flex: 1 1 0;
		min-width: 0;
		min-height: 44px;
		padding: 10px 3px;
		font-size: 12px;
		text-align: center;
		white-space: nowrap;
	}

	.sf-calc__legend {
		grid-template-columns: minmax(0, 1fr);
	}

	.sf-calc__compare .sf-calc__table th,
	.sf-calc__compare .sf-calc__table td {
		white-space: normal;
	}

	.sf-calc__aside {
		grid-template-columns: minmax(0, 1fr);
	}

	.sf-calc__summary {
		grid-row: auto;
	}

	.sf-calc__section-head--row {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
	}

	.sf-calc__csv {
		width: 100%;
	}

	.sf-calc__payment {
		font-size: clamp(2.35rem, 11vw, 3rem);
	}

	.sf-calc__segmented {
		display: flex;
		width: 100%;
	}

	.sf-calc__segmented span {
		padding-inline: 8px;
	}

	.sf-calc__schedule-wrap {
		max-height: 440px;
	}

	.sf-calc__table th,
	.sf-calc__table td {
		padding: 10px;
		font-size: var(--sf-type-caption);
	}

	.sf-calc__table thead th {
		font-size: 11px;
		letter-spacing: 0.04em;
	}

	.sf-calc__chips button {
		min-height: 40px;
		padding: 8px 10px;
		font-size: 12px;
	}

	.sf-calc-dialog__head,
	.sf-calc-dialog .sf-contact-form {
		padding-right: 18px;
		padding-left: 18px;
	}

	.sf-calc-dialog__lead,
	.sf-calc-dialog__summary {
		margin-right: 18px;
		margin-left: 18px;
	}
}

@media (max-width: 360px) {
	.sf-calc__tabs {
		flex-wrap: wrap;
	}

	.sf-calc__tab {
		flex: 1 1 calc(50% - 2px);
	}

	.sf-calc__tab:last-child {
		flex-basis: 100%;
	}
}

@media (max-width: 430px) {
	.sf-calc__chips button {
		padding: 6px 8px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.sf-calc__bar-segment,
	.sf-calc-related__card {
		transition: none;
	}
}

@media print {
	.sf-header,
	.sf-footer,
	.sf-skip-link,
	.sf-single__hero,
	.sf-breadcrumbs,
	.sf-calc__form,
	.sf-calc__tabs,
	.sf-calc__example,
	.sf-calc__advisor-button,
	.sf-calc__summary-actions,
	.sf-calc__share-status,
	.sf-calc__csv,
	.sf-calc__schedule-actions,
	.sf-calc-content,
	.sf-final-cta,
	.sf-calc-dialog {
		display: none !important;
	}

	.sf-calc {
		padding: 20px 0;
		background: var(--sf-white);
	}

	.sf-calc__layout {
		display: block;
	}

	.sf-calc__aside {
		display: block;
	}

	.sf-calc__summary {
		border: 1px solid #333;
		background: var(--sf-white);
		color: var(--sf-ink);
	}

	.sf-calc__payment,
	.sf-calc__metrics dd,
	.sf-calc__legend strong {
		color: var(--sf-ink);
	}

	.sf-calc__metrics dt,
	.sf-calc__legend,
	.sf-calc__payment-note,
	.sf-calc__disclaimer {
		color: #444;
	}

	.sf-calc__compare,
	.sf-calc__schedule {
		margin-top: 16px;
		page-break-inside: avoid;
	}

	.sf-calc__schedule-wrap {
		max-height: none;
		overflow: visible;
	}
}
