:root {
	--brand: #227142;
	--brand-deep: #184f2f;
	--brand-soft: #dcecdf;
	--surface: #fbfcf8;
	--panel: rgba(255, 255, 255, 0.88);
	--text: #162018;
	--muted: #5d6a5f;
	--line: rgba(34, 113, 66, 0.14);
	--shadow: 0 24px 60px rgba(20, 46, 28, 0.08);
	--radius: 24px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: "Poppins", sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at top left, rgba(34, 113, 66, 0.16), transparent 32%),
		linear-gradient(180deg, #f5faef 0%, var(--surface) 48%, #eef4ec 100%);
}

.shell {
	width: min(1080px, calc(100% - 32px));
	margin: 0 auto;
	padding: 56px 0 72px;
}

.hero {
	max-width: 680px;
	margin-bottom: 28px;
}

.logo {
	display: block;
	width: min(280px, 55vw);
	height: auto;
	margin-bottom: 12px;
	mix-blend-mode: multiply;
}

.eyebrow {
	margin: 0 0 10px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--brand);
}

.hero h1,
.controls h2 {
	margin: 0;
	line-height: 1.05;
}

.hero h1 {
	font-size: clamp(2.2rem, 6vw, 4.2rem);
	max-width: 10ch;
}

.lede {
	margin: 16px 0 0;
	max-width: 56ch;
	line-height: 1.6;
	color: var(--muted);
}

.key-note {
	margin: 14px 0 0;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--brand-deep);
}

.estimator {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
	gap: 20px;
	margin-bottom: 20px;
}

.panel {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	backdrop-filter: blur(10px);
}

.controls,
.result {
	padding: 28px;
}

.controls h2 {
	font-size: 1.3rem;
	margin-bottom: 20px;
}

.field {
	display: block;
	margin-bottom: 18px;
}

.field span,
.field legend {
	display: block;
	margin-bottom: 8px;
	font-size: 0.95rem;
	font-weight: 500;
}

select {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid rgba(34, 113, 66, 0.18);
	border-radius: 16px;
	font: inherit;
	color: var(--text);
	background: #fff;
}

.sim-field {
	border: 0;
	padding: 0;
	margin: 0 0 16px;
}

.toggle-group {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.toggle-option {
	position: relative;
}

.toggle-option input {
	position: absolute;
	opacity: 0;
	inset: 0;
}

.toggle-option span {
	display: block;
	padding: 14px 16px;
	border-radius: 16px;
	border: 1px solid rgba(34, 113, 66, 0.16);
	background: rgba(255, 255, 255, 0.9);
	text-align: center;
	transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.toggle-option input:checked + span {
	border-color: var(--brand);
	background: var(--brand-soft);
	color: var(--brand-deep);
	transform: translateY(-1px);
}

.helper,
.note {
	margin: 0;
	line-height: 1.5;
	color: var(--muted);
}

.estimate-note {
	color: rgba(247, 255, 247, 0.8);
}

.cta-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 18px;
	padding: 14px 18px;
	border-radius: 16px;
	background: #f7fff7;
	color: var(--brand-deep);
	font-weight: 600;
	text-decoration: none;
	transition: transform 180ms ease, opacity 180ms ease;
}

.cta-link:hover,
.cta-link:focus-visible {
	transform: translateY(-1px);
	opacity: 0.92;
}

.footer-note {
	padding: 18px 22px;
	text-align: center;
	color: var(--muted);
}

.footer-note p {
	margin: 0;
	line-height: 1.6;
}

.footer-note p + p {
	margin-top: 10px;
}

.footer-links {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.admin-link {
	color: var(--brand-deep);
	font-weight: 600;
	text-decoration: none;
}

.admin-link:hover,
.admin-link:focus-visible {
	text-decoration: underline;
}

.contact-stack {
	display: grid;
	gap: 12px;
	margin-top: 18px;
}

.contact-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px;
	border: 1px solid rgba(34, 113, 66, 0.14);
	border-radius: 18px;
	background: rgba(34, 113, 66, 0.05);
	color: var(--text);
	text-decoration: none;
	transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.contact-card:hover,
.contact-card:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(34, 113, 66, 0.28);
	background: rgba(34, 113, 66, 0.08);
}

.contact-card strong {
	font-size: 1rem;
	color: var(--brand-deep);
}

.contact-card span {
	color: var(--muted);
	word-break: break-word;
}

.contact-title {
	font-size: clamp(2rem, 5vw, 3rem);
	margin-bottom: 12px;
}

.result {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: linear-gradient(180deg, rgba(34, 113, 66, 0.96) 0%, rgba(24, 79, 47, 0.96) 100%);
	color: #f7fff7;
}

.result-label {
	margin: 0 0 12px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(247, 255, 247, 0.76);
}

.estimate-value {
	margin: 0;
	font-size: clamp(2.4rem, 7vw, 4rem);
	line-height: 1;
}

.breakdown {
	display: grid;
	gap: 12px;
	margin: 24px 0;
}

.breakdown div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-top: 12px;
	border-top: 1px solid rgba(247, 255, 247, 0.18);
}

.breakdown span {
	color: rgba(247, 255, 247, 0.76);
}

.admin-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
	gap: 20px;
}

.admin-panel {
	padding: 28px;
}

.admin-panel h2 {
	margin: 0 0 18px;
	font-size: 1.2rem;
}

.admin-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}

.admin-select,
.admin-input {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid rgba(34, 113, 66, 0.18);
	border-radius: 16px;
	font: inherit;
	color: var(--text);
	background: #fff;
}

.condition-price-list {
	display: grid;
	gap: 12px;
	margin-bottom: 18px;
}

.price-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 180px;
	gap: 14px;
	align-items: center;
	padding: 14px 0;
	border-top: 1px solid rgba(34, 113, 66, 0.12);
}

.price-label {
	font-weight: 500;
}

.admin-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 12px;
}

.admin-button {
	padding: 12px 16px;
	border: 1px solid rgba(34, 113, 66, 0.16);
	border-radius: 14px;
	background: #fff;
	color: var(--brand-deep);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.admin-button:hover,
.admin-button:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(34, 113, 66, 0.3);
	background: rgba(34, 113, 66, 0.05);
}

.admin-button-primary {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.admin-button-primary:hover,
.admin-button-primary:focus-visible {
	background: var(--brand-deep);
	border-color: var(--brand-deep);
}

.admin-side-panel {
	display: grid;
	gap: 18px;
	align-content: start;
}

.admin-help {
	padding-top: 12px;
	border-top: 1px solid rgba(34, 113, 66, 0.12);
	color: var(--muted);
}

.admin-help p,
.admin-status {
	margin: 0;
	line-height: 1.6;
}

.admin-help p + p {
	margin-top: 8px;
}

.admin-status {
	margin-top: 14px;
	color: var(--brand-deep);
	font-weight: 500;
}

.admin-status-banner {
	padding: 14px 16px;
	border-radius: 16px;
	border: 1px solid transparent;
	line-height: 1.5;
}

.admin-status-success {
	background: rgba(34, 113, 66, 0.1);
	border-color: rgba(34, 113, 66, 0.18);
	color: var(--brand-deep);
}

.admin-status-error,
.auth-error {
	color: #a52a2a;
}

.admin-status-error {
	background: rgba(165, 42, 42, 0.08);
	border-color: rgba(165, 42, 42, 0.18);
}

.auth-shell {
	display: grid;
	place-items: center;
	min-height: 100vh;
	padding-top: 24px;
	padding-bottom: 24px;
}

.auth-panel {
	width: min(100%, 520px);
	padding: 32px;
}

.auth-panel h1 {
	margin: 0;
	line-height: 1.05;
	font-size: clamp(2rem, 5vw, 3rem);
}

.auth-form {
	margin-top: 24px;
	display: grid;
	gap: 4px;
}

.auth-submit {
	width: 100%;
	justify-content: center;
}

@media (max-width: 820px) {
	.shell {
		width: min(100% - 20px, 1080px);
		padding: 32px 0 44px;
	}

	.estimator {
		grid-template-columns: 1fr;
	}

	.admin-grid {
		grid-template-columns: 1fr;
	}

	.controls,
	.result,
	.admin-panel {
		padding: 22px;
	}

	.breakdown div {
		flex-direction: column;
		align-items: flex-start;
	}

	.price-row,
	.admin-panel-header {
		grid-template-columns: 1fr;
		flex-direction: column;
		align-items: stretch;
	}

	.auth-panel {
		padding: 24px;
	}

	.cta-link {
		width: 100%;
	}
}
