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

.age-calculator {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	overflow: hidden;
}

.age-layout {
	display: grid;
	grid-template-columns: minmax(0, 520px) minmax(340px, 480px);
	gap: 24px;
	align-items: start;
	justify-content: center;
}

.age-layout > * {
	min-width: 0;
}

.age-card {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	padding: 22px;
	border: 1px solid #e1e5ee;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.05);
}

.age-card-title {
	margin: 0 0 18px;
	color: #111827;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	text-transform: none;
}

.age-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.age-field label {
	display: block;
	margin-bottom: 7px;
	color: #374151;
	font-weight: 700;
}

.age-field input {
	width: 100%;
	max-width: 100%;
	height: 44px;
	box-sizing: border-box;
	border-radius: 8px;
}

.age-hint {
	margin-top: 6px;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.45;
}

.age-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.age-error {
	min-height: 20px;
	margin-top: 14px;
	color: #dc2626;
	font-size: 14px;
	font-weight: 600;
}


/* =========================================================
   RESULT CARD
   ========================================================= */

.age-main-result {
	margin-bottom: 16px;
	padding: 16px;
	border-radius: 12px;
	background: #f8fafc;
	color: #111827;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	word-break: break-word;
}

.age-result-list {
	overflow: hidden;
	border: 1px solid #edf0f3;
	border-radius: 12px;
}

.age-result-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 13px 15px;
	border-bottom: 1px solid #edf0f3;
}

.age-result-row:last-child {
	border-bottom: 0;
}

.age-result-row span {
	color: #4b5563;
}

.age-result-row strong {
	color: #111827;
	font-weight: 800;
	text-align: right;
	word-break: break-word;
}

.age-result-row-main {
	background: #f9fafb;
}

.age-formula {
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #f8fafc;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.5;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media only screen and (max-width: 991px) {
	.age-calculator {
		max-width: 720px;
	}

	.age-layout {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

@media only screen and (max-width: 575px) {
	.age-card {
		padding: 15px;
		border-radius: 12px;
	}

	.age-card-title {
		margin-bottom: 14px;
		font-size: 16px;
	}

	.age-actions {
		flex-direction: column;
	}

	.age-actions .btn {
		width: 100%;
	}

	.age-main-result {
		padding: 12px;
		font-size: 18px;
	}

	.age-result-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		padding: 11px 13px;
	}

	.age-result-row strong {
		text-align: left;
	}
}

@media only screen and (max-width: 420px) {
	.age-card {
		padding: 13px;
	}
}