.stc-calculator {
	--stc-accent: #ff5800;
	--stc-accent-dark: #d94900;
	--stc-black: #111111;
	--stc-white: #ffffff;
	--stc-muted: #676767;
	--stc-surface: #f4f4f2;
	--stc-border: #d8d8d5;
	--stc-radius: 2px;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	color: var(--stc-black);
	font: inherit;
}

.stc-calculator *,
.stc-calculator *::before,
.stc-calculator *::after {
	box-sizing: border-box;
}

.stc-calculator [hidden] {
	display: none !important;
}

.stc-calculator__intro {
	max-width: 820px;
	margin-bottom: 30px;
}

.stc-calculator__eyebrow,
.stc-result__label {
	margin: 0 0 8px;
	color: var(--stc-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1.3;
	text-transform: uppercase;
}

.stc-calculator__title {
	margin: 0 0 14px;
	color: var(--stc-black);
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.05;
}

.stc-calculator__description {
	margin: 0;
	color: var(--stc-muted);
	font-size: 17px;
	line-height: 1.65;
}

.stc-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr) auto;
	gap: 22px;
	align-items: end;
	padding: 28px;
	background: var(--stc-surface);
	border-left: 4px solid var(--stc-accent);
}

.stc-field {
	min-width: 0;
}

.stc-field label {
	display: block;
	margin: 0 0 9px;
	color: var(--stc-black);
	font-size: 14px;
	font-weight: 750;
	line-height: 1.3;
}

.stc-field small {
	display: block;
	margin-top: 8px;
	color: var(--stc-muted);
	font-size: 12px;
	line-height: 1.4;
}

.stc-input-with-unit {
	position: relative;
}

.stc-input-with-unit__unit {
	position: absolute;
	top: 50%;
	right: 17px;
	transform: translateY(-50%);
	color: var(--stc-muted);
	font-size: 14px;
	font-weight: 700;
	pointer-events: none;
}

.stc-calculator input[type="text"],
.stc-calculator select {
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 48px 0 16px;
	color: var(--stc-black);
	background-color: var(--stc-white);
	border: 1px solid var(--stc-border);
	border-radius: var(--stc-radius);
	box-shadow: none;
	font: inherit;
	font-size: 16px;
	line-height: 1;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.stc-calculator select {
	padding-right: 42px;
	cursor: pointer;
}

.stc-calculator input[type="text"]:focus,
.stc-calculator select:focus {
	outline: none;
	border-color: var(--stc-accent);
	box-shadow: 0 0 0 3px rgba(255, 88, 0, 0.16);
}

.stc-calculator input[aria-invalid="true"] {
	border-color: var(--stc-accent);
	box-shadow: 0 0 0 3px rgba(255, 88, 0, 0.16);
}

.stc-form__action {
	padding-bottom: 27px;
}

.stc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	margin: 0;
	padding: 14px 24px;
	color: var(--stc-white);
	background: var(--stc-black);
	border: 1px solid var(--stc-black);
	border-radius: var(--stc-radius);
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.035em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.stc-button:hover,
.stc-button:focus-visible {
	color: var(--stc-white);
	background: var(--stc-accent);
	border-color: var(--stc-accent);
}

.stc-button:active {
	transform: translateY(1px);
}

.stc-form__error {
	grid-column: 1 / -1;
	margin: -6px 0 0;
	padding: 12px 14px;
	color: #7a2a00;
	background: #fff1ea;
	border-left: 3px solid var(--stc-accent);
	font-size: 14px;
	line-height: 1.45;
}

.stc-result {
	margin-top: 26px;
	padding: 30px;
	color: var(--stc-white);
	background: var(--stc-black);
}

.stc-result__heading {
	display: flex;
	gap: 24px;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.stc-result__heading h3 {
	margin: 0;
	color: var(--stc-white);
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.stc-result__range {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
	line-height: 1.4;
	text-align: right;
}

.stc-result__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1px;
	background: rgba(255, 255, 255, 0.17);
}

.stc-result__item {
	min-width: 0;
	padding: 20px;
	background: #1b1b1b;
}

.stc-result__item span {
	display: block;
	min-height: 34px;
	margin-bottom: 10px;
	color: rgba(255, 255, 255, 0.64);
	font-size: 12px;
	font-weight: 650;
	line-height: 1.35;
}

.stc-result__item strong {
	display: block;
	color: var(--stc-white);
	font-size: clamp(17px, 2vw, 22px);
	font-weight: 750;
	line-height: 1.2;
	white-space: nowrap;
}

.stc-result__item--emphasis {
	background: var(--stc-accent);
}

.stc-result__item--emphasis span {
	color: rgba(255, 255, 255, 0.84);
}

.stc-reference {
	margin-top: 22px;
	border: 1px solid var(--stc-border);
}

.stc-reference summary {
	position: relative;
	padding: 18px 54px 18px 20px;
	color: var(--stc-black);
	background: var(--stc-white);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}

.stc-reference summary::-webkit-details-marker {
	display: none;
}

.stc-reference summary::after {
	content: '+';
	position: absolute;
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
	color: var(--stc-accent);
	font-size: 26px;
	font-weight: 400;
	line-height: 1;
}

.stc-reference[open] summary::after {
	content: '−';
}

.stc-reference__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.stc-reference__table {
	width: 100%;
	min-width: 970px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: var(--stc-white);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.stc-reference__table th,
.stc-reference__table td {
	padding: 11px 10px;
	border: 1px solid var(--stc-border);
	text-align: center;
	vertical-align: middle;
}

.stc-reference__table thead th {
	color: var(--stc-white);
	background: var(--stc-black);
	font-weight: 750;
	white-space: nowrap;
}

.stc-reference__table tbody th {
	padding: 0;
	background: var(--stc-surface);
}

.stc-reference__table tbody th button {
	width: 100%;
	min-width: 62px;
	padding: 14px 12px;
	color: var(--stc-black);
	background: transparent;
	border: 0;
	font: inherit;
	font-size: 13px;
	font-weight: 850;
	cursor: pointer;
}

.stc-reference__table tbody th button:hover,
.stc-reference__table tbody th button:focus-visible {
	color: var(--stc-white);
	background: var(--stc-accent);
	outline: none;
}

.stc-reference__table td span {
	display: block;
	line-height: 1.45;
	white-space: nowrap;
}

.stc-reference__table td span:first-child {
	font-weight: 750;
}

.stc-reference__table .is-selected {
	background: #fff1ea;
}

.stc-reference__table thead .is-selected,
.stc-reference__table tr.is-selected > th,
.stc-reference__table tr.is-selected > td.is-selected {
	color: var(--stc-white);
	background: var(--stc-accent);
}

.stc-reference__table tr.is-selected > th button {
	color: inherit;
}

.stc-reference__legend {
	margin: 0;
	padding: 12px 18px;
	color: var(--stc-muted);
	background: var(--stc-surface);
	font-size: 12px;
	line-height: 1.45;
}

.stc-calculator__note {
	margin: 16px 0 0;
	color: var(--stc-muted);
	font-size: 12px;
	line-height: 1.55;
}

@media (max-width: 960px) {
	.stc-form {
		grid-template-columns: minmax(0, 1fr) minmax(210px, 0.7fr);
	}

	.stc-form__action {
		grid-column: 1 / -1;
		padding-bottom: 0;
	}

	.stc-button {
		width: 100%;
	}

	.stc-result__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.stc-result__item:last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 620px) {
	.stc-calculator__intro {
		margin-bottom: 22px;
	}

	.stc-calculator__description {
		font-size: 15px;
	}

	.stc-form {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 22px 18px;
	}

	.stc-form__action,
	.stc-form__error {
		grid-column: auto;
	}

	.stc-result {
		padding: 24px 18px;
	}

	.stc-result__heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.stc-result__range {
		text-align: left;
	}

	.stc-result__grid {
		grid-template-columns: 1fr;
	}

	.stc-result__item:last-child {
		grid-column: auto;
	}

	.stc-result__item span {
		min-height: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.stc-calculator *,
	.stc-calculator *::before,
	.stc-calculator *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
