/* =========================================================
   EXPERIENCE / STAZH CALCULATOR
   Specific styles only for calculators/stazh.tpl
   ========================================================= */

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

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

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

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

.experience-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);
}

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

.experience-note {
	margin-bottom: 16px;
	padding: 13px 15px;
	border-radius: 12px;
	background: #f8fafc;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.5;
}

.experience-periods {
	display: grid;
	gap: 16px;
}

.experience-period {
	padding: 16px;
	border: 1px solid #edf0f3;
	border-radius: 12px;
	background: #ffffff;
}

.experience-period-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.experience-period-header strong {
	color: #111827;
	font-weight: 800;
}

.experience-remove {
	padding: 0;
	border: 0;
	background: transparent;
	color: #dc2626;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.experience-remove:hover {
	text-decoration: underline;
}

.experience-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

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

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

.experience-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	color: #374151;
	cursor: pointer;
}

.experience-check input {
	width: 16px;
	height: 16px;
	margin: 0;
}

.experience-period-result {
	margin-top: 12px;
	padding: 11px 13px;
	border-radius: 10px;
	background: #f9fafb;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.45;
}

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

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

.experience-warning {
	min-height: 20px;
	margin-top: 8px;
	color: #b45309;
	font-size: 14px;
	font-weight: 600;
}


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

.experience-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;
}

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

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

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

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

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

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

.experience-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) {
	.experience-calculator {
		max-width: 720px;
	}

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

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

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

	.experience-fields {
		grid-template-columns: 1fr;
	}

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

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

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

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

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

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

	.experience-period {
		padding: 13px;
	}
}