.opc-calculator {
	--opc-primary: #537c2d;
	--opc-secondary: #84a85e;
	--opc-accent: #ffffff;
	--opc-card: #678f3a;
	--opc-text: #ffffff;
	--opc-muted: rgba(255, 255, 255, 0.92);
	--opc-input-bg: #678f3a;
	margin: 32px 0;
	font-family: inherit;
}

.opc-shell {
	background: var(--opc-primary);
	color: var(--opc-text);
	border-radius: 20px;
	padding: 40px 32px;
	box-sizing: border-box;
	overflow: hidden;
}

.opc-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
	gap: 36px;
	align-items: start;
	margin-bottom: 34px;
}

.opc-title {
	margin: 0;
	font-size: clamp(2.8rem, 6vw, 5rem);
	line-height: 0.95;
	letter-spacing: -0.04em;
	color: var(--opc-text);
}

.opc-intro {
	margin: 0;
	font-size: clamp(1.15rem, 2vw, 1.8rem);
	line-height: 1.55;
	font-weight: 500;
	color: var(--opc-muted);
	max-width: 32ch;
}

.opc-form-wrap {
	background: var(--opc-secondary);
	border: 1px solid rgba(255,255,255,0.55);
	border-radius: 22px;
	padding: 28px 32px;
	margin-bottom: 34px;
}

.opc-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.opc-field label {
	display: block;
	font-size: clamp(1.1rem, 1.4vw, 1.7rem);
	font-weight: 700;
	color: var(--opc-text);
	margin-bottom: 12px;
}

.opc-input {
	width: 100%;
	min-height: 70px;
	padding: 16px 20px;
	border-radius: 18px;
	border: 0;
	background: var(--opc-input-bg);
	color: var(--opc-text);
	font-size: clamp(1.35rem, 1.8vw, 2rem);
	font-weight: 800;
	box-sizing: border-box;
}

.opc-input:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

.opc-money-input {
	position: relative;
}

.opc-money-input__symbol {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: clamp(1.3rem, 1.6vw, 1.8rem);
	font-weight: 800;
	color: var(--opc-text);
	pointer-events: none;
}

.opc-input--money {
	padding-left: 48px;
}

.opc-helper {
	margin: 18px 0 0;
	color: var(--opc-muted);
	font-size: 1rem;
}

.opc-results {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 34px;
	row-gap: 44px;
}

.opc-result-card {
	background: transparent;
	border-radius: 14px;
	padding: 6px 0;
}

.opc-result-heading {
	margin: 0 0 14px;
	font-size: clamp(1.2rem, 1.8vw, 1.8rem);
	line-height: 1.18;
	font-weight: 700;
	color: var(--opc-text);
	max-width: 18ch;
}

.opc-result-value {
	font-size: clamp(2.4rem, 4.6vw, 4rem);
	line-height: 1;
	letter-spacing: -0.03em;
	font-weight: 800;
	color: var(--opc-accent);
	margin-bottom: 0;
	word-break: break-word;
}

@media (max-width: 1100px) {
	.opc-results {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.opc-shell {
		padding: 34px 18px 28px;
		border-radius: 18px;
	}

	.opc-hero,
	.opc-form-grid,
	.opc-results {
		grid-template-columns: 1fr;
	}

	.opc-hero {
		gap: 22px;
		margin-bottom: 26px;
	}

	.opc-title {
		font-size: clamp(2.6rem, 14vw, 4.2rem);
	}

	.opc-intro {
		max-width: 100%;
		width: 100%;
		font-size: 1.32rem;
		line-height: 1.5;
	}

	.opc-form-wrap {
		padding: 20px 18px 24px;
		margin-bottom: 42px;
	}

	.opc-form-grid {
		gap: 26px;
	}

	.opc-field:last-child {
		margin-bottom: 10px;
	}

	.opc-field label,
	.opc-result-heading {
		font-size: 1rem;
	}

	.opc-helper {
		margin-top: 14px;
		font-size: 0.98rem;
	}

	.opc-result-card {
		padding: 0;
	}

	.opc-result-heading {
		margin-bottom: 12px;
		max-width: none;
	}

	.opc-result-value {
		font-size: clamp(2rem, 10vw, 3rem);
	}
}
