.cec-app {
	box-sizing: border-box;
	max-width: 600px;
	margin: 0 auto;
	color: #16302b;
	font-family: inherit;
}

.cec-app *,
.cec-app *::before,
.cec-app *::after {
	box-sizing: border-box;
}

.cec-form,
.cec-card {
	border: 1px solid #d7e1dc;
	border-radius: 8px;
	background: #fff;
	padding: 24px;
	box-shadow: 0 12px 30px rgba(22, 48, 43, 0.08);
}

.cec-form h2,
.cec-card h3 {
	margin: 0 0 12px;
	font-size: 1.45rem;
	line-height: 1.2;
}

.cec-intro,
.cec-privacy,
.cec-found,
.cec-member {
	margin: 0 0 16px;
	color: #4f625d;
}

.cec-field {
	margin-bottom: 16px;
}

.cec-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}

.cec-field input {
	width: 100%;
	min-height: 44px;
	border: 1px solid #bdcbc5;
	border-radius: 6px;
	padding: 10px 12px;
	font: inherit;
}

.cec-button {
	width: 100%;
	min-height: 44px;
	border: 0;
	border-radius: 6px;
	background: #16745f;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.cec-button:hover,
.cec-button:focus {
	background: #105d4c;
}

.cec-message {
	margin: 16px 0;
	font-weight: 700;
	color: #8a4b00;
}

.cec-result {
	margin-top: 18px;
}

.cec-period {
	margin: 0 0 18px;
	font-size: 1.1rem;
	font-weight: 700;
}

.cec-ok {
	border-radius: 6px;
	background: #e6f6ef;
	color: #115f43;
	padding: 10px 12px;
	font-weight: 700;
}

.cec-balance {
	display: grid;
	gap: 6px;
	justify-items: center;
	border-top: 1px solid #edf2ef;
	border-bottom: 1px solid #edf2ef;
	padding: 20px 0;
	margin: 16px 0;
}

.cec-balance strong {
	font-size: 2.15rem;
	line-height: 1.1;
}

.cec-balance em,
.cec-history em {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	border-radius: 999px;
	padding: 4px 10px;
	font-style: normal;
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: 0;
}

.cec-result-grid {
	display: grid;
	gap: 10px;
	margin: 16px 0 24px;
}

.cec-result-row,
.cec-history-row {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 12px;
	align-items: center;
	min-height: 42px;
	border-bottom: 1px solid #edf2ef;
}

.cec-result-row {
	grid-template-columns: 1fr auto;
}

.cec-history {
	display: grid;
}

.cec-status-paid {
	background: #dff4ea;
	color: #106142;
}

.cec-status-pending {
	background: #fff3cf;
	color: #806000;
}

.cec-status-overdue {
	background: #fde4e1;
	color: #9b1c12;
}

.cec-status-partial {
	background: #e5efff;
	color: #1f56a6;
}

@media (max-width: 520px) {
	.cec-form,
	.cec-card {
		padding: 18px;
	}

	.cec-history-row {
		grid-template-columns: 1fr;
		gap: 4px;
		padding: 10px 0;
	}
}
