.sales-block:has(+ .tax-deduction),
.home-reviews:has(+ .tax-deduction),
.reviews-new-page:has(+ .tax-deduction),
.rino-reviews-embed:has(+ .tax-deduction) {
	padding-bottom: 28px;
}

.tax-deduction {
	padding: 12px 0 56px;
	background: #f9f9f9;
}

.tax-deduction .section__title {
	margin-bottom: 20px;
}

.tax-deduction__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.92fr);
	align-items: stretch;
	overflow: hidden;
	background: var(--color-white);
	border-radius: var(--radius);
	box-shadow: 0 8px 22px rgba(32, 32, 32, 0.08);
}

.tax-deduction__info,
.tax-deduction__calc {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-width: 0;
	min-height: 0;
	gap: 16px;
}

.tax-deduction__info {
	padding: 24px 28px 24px 24px;
}

.tax-deduction__lead {
	margin: 0;
	font-size: 24px;
	line-height: 1.3;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--color-sage);
}

.tax-deduction__text {
	margin: 0;
	font-size: 17px;
	line-height: 1.45;
	color: var(--color-text);
}

.tax-deduction__points {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
}

.tax-deduction__points li {
	position: relative;
	padding-left: 34px;
	font-size: 17px;
	line-height: 1.4;
	color: var(--color-text);
}

.tax-deduction__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--color-sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2 6.4 11 12.5 4.8'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.tax-deduction__cta {
	align-self: flex-start;
	min-height: 50px;
	padding: 10px 22px;
	border-radius: 8px;
	font-size: 16px;
}

.tax-deduction__calc {
	padding: 24px;
	background: #334f43;
	color: var(--color-white);
}

.tax-deduction__calc-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #e4caaa;
}

.tax-deduction__amount-row,
.tax-deduction__result {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 12px;
	flex-wrap: wrap;
}

.tax-deduction__amount-label,
.tax-deduction__result-label {
	font-size: 17px;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.88);
}

.tax-deduction__amount {
	font-size: 26px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.tax-deduction__range {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	margin: 2px 0;
	border-radius: 999px;
	background: linear-gradient(
		to right,
		#e4caaa 0%,
		#e4caaa var(--tax-fill, 28.6%),
		rgba(255, 255, 255, 0.28) var(--tax-fill, 28.6%),
		rgba(255, 255, 255, 0.28) 100%
	);
	outline: none;
	cursor: pointer;
}

.tax-deduction__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	border: 3px solid #3b5249;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
	cursor: pointer;
}

.tax-deduction__range::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border: 3px solid #3b5249;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
	cursor: pointer;
}

.tax-deduction__range::-moz-range-track {
	height: 6px;
	background: transparent;
	border: none;
}

.tax-deduction__range:focus-visible {
	outline: 2px solid #e4caaa;
	outline-offset: 6px;
}

.tax-deduction__presets {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tax-deduction__preset {
	min-height: 38px;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tax-deduction__preset:hover,
.tax-deduction__preset:focus-visible {
	background: rgba(255, 255, 255, 0.18);
	border-color: #fff;
}

.tax-deduction__preset.is-active {
	background: #fff;
	border-color: #fff;
	color: var(--color-sage-dark);
}

.tax-deduction__result {
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 10px 16px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.tax-deduction__result-value {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	margin-left: auto;
}

.tax-deduction__refund {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 2px solid #e4caaa;
	border-radius: 10px;
	font-size: 28px;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #fff;
	white-space: nowrap;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.tax-deduction__hint {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1100px) {
	.tax-deduction__grid {
		grid-template-columns: 1fr;
	}

	.tax-deduction__info {
		padding: 22px 22px 8px;
	}

	.tax-deduction__calc {
		padding: 20px 22px 22px;
	}

	.tax-deduction__cta {
		width: 100%;
	}
}

@media (max-width: 720px) {
	.tax-deduction {
		padding: 4px 0 40px;
	}

	.tax-deduction .section__title {
		margin-bottom: 16px;
	}

	.tax-deduction__info,
	.tax-deduction__calc {
		padding: 18px 16px;
		gap: 12px;
	}

	.tax-deduction__lead {
		font-size: 22px;
	}

	.tax-deduction__text,
	.tax-deduction__points li {
		font-size: 16px;
	}

	.tax-deduction__amount {
		font-size: 22px;
	}

	.tax-deduction__refund {
		font-size: 24px;
		padding: 7px 12px;
	}

	.tax-deduction__preset {
		flex: 1 1 calc(50% - 8px);
		text-align: center;
	}

	.tax-deduction__result {
		flex-direction: column;
		align-items: stretch;
		flex-wrap: wrap;
		gap: 8px 0;
	}

	.tax-deduction__hint {
		flex: 0 0 auto;
		max-width: 100%;
	}

	.tax-deduction__result-value {
		margin-left: 0;
		width: 100%;
		justify-content: space-between;
		flex-shrink: 1;
		flex-wrap: wrap;
		gap: 8px;
	}
}

.tax-deduction-alt {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	box-shadow: 0 18px 46px rgba(31, 50, 42, 0.11);
}

.tax-deduction-alt__content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
	gap: 28px;
	align-items: stretch;
	min-height: 420px;
	padding: 34px;
}

.tax-deduction-alt__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-width: 0;
	gap: 16px;
}

.tax-deduction-alt__kicker,
.tax-deduction-alt__title,
.tax-deduction-alt__text {
	margin: 0;
}

.tax-deduction-alt__kicker {
	font-size: 15px;
	line-height: 1.3;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #334f43;
}

.tax-deduction-alt__title {
	max-width: 660px;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.03;
	font-weight: 900;
	letter-spacing: -0.045em;
	color: #24382f;
}

.tax-deduction-alt__text {
	max-width: 620px;
	font-size: 19px;
	line-height: 1.5;
	color: #4d5d55;
}

.tax-deduction-alt__cta {
	min-height: 52px;
	margin-top: 4px;
	padding: 12px 24px;
	border-radius: 12px;
}

.tax-deduction-alt__benefits {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.tax-deduction-alt__benefits span {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 7px 12px;
	border: 1px solid rgba(228, 202, 170, 0.38);
	border-radius: 999px;
	background: rgba(228, 202, 170, 0.16);
	color: #f3e2c8;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
}

.tax-deduction-alt .tax-deduction__calc {
	min-height: 100%;
	border-radius: 24px;
	box-shadow: 0 16px 38px rgba(21, 32, 28, 0.16);
}

.tax-deduction-alt .tax-deduction__result {
	display: grid;
	grid-template-columns: 1fr;
	align-items: stretch;
	justify-content: stretch;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
}

.tax-deduction-alt .tax-deduction__hint {
	flex: none;
	width: 100%;
	max-width: 100%;
}

.tax-deduction-alt .tax-deduction__result-value {
	margin-left: 0;
	width: 100%;
	justify-content: space-between;
	flex-shrink: 1;
	flex-wrap: wrap;
	gap: 8px;
}

.tax-deduction-alt--warm {
	background: #e4caaa;
}

.tax-deduction__calc--cream {
	background: #334f43;
}

@media (max-width: 1100px) {
	.tax-deduction-alt__content {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.tax-deduction-alt__copy {
		justify-content: flex-start;
	}

	.tax-deduction-alt .tax-deduction__calc {
		min-height: 0;
	}
}

@media (max-width: 720px) {
	.tax-deduction-alt {
		border-radius: 20px;
	}

	.tax-deduction-alt__content {
		gap: 18px;
		padding: 18px 16px 16px;
	}

	.tax-deduction-alt__title {
		font-size: 28px;
	}

	.tax-deduction-alt__text {
		font-size: 16px;
	}

	.tax-deduction-alt__cta {
		width: 100%;
	}

	.tax-deduction-alt__benefits {
		width: 100%;
	}

	.tax-deduction-alt__benefits span {
		width: auto;
	}
}
