.trce {
	--trce-navy: #071b3a;
	--trce-blue: #233479;
	--trce-sky: #6fabdd;
	--trce-border: #dfe5ec;
	--trce-muted: #5c6570;
	max-width: 880px;
	margin: 40px auto;
	padding: 42px;
	background: #fff;
	border: 1px solid var(--trce-border);
	border-radius: 16px;
	box-shadow: 0 22px 60px rgba(7, 27, 58, .12);
	color: var(--trce-navy);
}

.trce *, .trce *::before, .trce *::after { box-sizing: border-box; }
.trce__header { max-width: 660px; }
.trce__eyebrow { margin: 0 0 8px; color: var(--trce-blue); font-size: 12px; font-weight: 800; letter-spacing: 1.8px; }
.trce__header h2 { margin: 0 0 10px; color: var(--trce-navy); font-size: clamp(30px, 4vw, 44px); line-height: 1.08; }
.trce__header > p:last-child { margin: 0; color: var(--trce-muted); font-size: 16px; }

.trce__progress { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; margin: 32px 0 38px; }
.trce__progress-bar { height: 7px; overflow: hidden; background: #edf1f5; border-radius: 20px; }
.trce__progress-bar span { display: block; width: 33.333%; height: 100%; background: linear-gradient(90deg, var(--trce-blue), var(--trce-sky)); transition: width .25s ease; }
.trce__progress-text { color: var(--trce-muted); font-size: 13px; font-weight: 700; }

.trce__step h3 { margin: 0 0 25px; color: var(--trce-navy); font-size: 27px; }
.trce label, .trce legend { color: var(--trce-navy); font-size: 15px; font-weight: 700; }
.trce fieldset { min-width: 0; margin: 28px 0; padding: 0; border: 0; }
.trce legend { margin-bottom: 12px; }
.trce input[type="number"], .trce select { display: block; width: 100%; min-height: 52px; margin-top: 9px; padding: 11px 14px; border: 1px solid #cbd3dd; border-radius: 7px; background: #fff; color: var(--trce-navy); font: inherit; }
.trce input[type="number"]:focus, .trce select:focus { border-color: var(--trce-sky); outline: 3px solid rgba(111, 171, 221, .2); }
.trce__hint { margin: 8px 0 0; color: var(--trce-muted); font-size: 13px; line-height: 1.5; }

.trce__choices { display: grid; gap: 10px; }
.trce__choices--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trce__choices--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trce__choices label { position: relative; cursor: pointer; }
.trce__choices input { position: absolute; opacity: 0; pointer-events: none; }
.trce__choices span { display: flex; min-height: 56px; flex-direction: column; justify-content: center; gap: 3px; padding: 14px 16px; border: 1px solid var(--trce-border); border-radius: 8px; background: #f8fafc; transition: .18s ease; }
.trce__choices small { color: var(--trce-muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.trce__choices input:checked + span { border-color: var(--trce-blue); background: #eef2ff; box-shadow: inset 0 0 0 1px var(--trce-blue); }
.trce__choices input:focus-visible + span { outline: 3px solid rgba(111, 171, 221, .35); }

.trce__result { padding: 32px; background: linear-gradient(145deg, #f7f9fc, #edf2f7); border-radius: 12px; }
.trce__result h3 { margin-bottom: 8px; }
.trce__price { display: flex; align-items: baseline; color: var(--trce-blue); }
.trce__price > span { font-size: 25px; font-weight: 800; }
.trce__price strong { font-size: 66px; line-height: 1; }
.trce__price small { margin-left: 7px; color: var(--trce-muted); font-size: 15px; }
.trce__credit { display: flex; justify-content: space-between; gap: 20px; margin: 24px 0; padding: 16px 18px; background: var(--trce-navy); border-radius: 8px; color: #fff; }
.trce__credit strong { color: var(--trce-sky); }
.trce__result ul { padding-left: 21px; color: var(--trce-muted); line-height: 1.8; }
.trce__notice { margin: 25px 0 0; padding-top: 20px; border-top: 1px solid var(--trce-border); color: var(--trce-muted); font-size: 13px; line-height: 1.6; }
.trce__connection { display: grid; gap: 3px; margin-top: 18px; padding: 15px 17px; border: 1px dashed #a9b4c1; border-radius: 7px; color: var(--trce-muted); font-size: 12px; }
.trce__connection strong { color: var(--trce-navy); font-size: 14px; }

.trce__actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; }
.trce__button { min-height: 48px; padding: 11px 24px; border: 0; border-radius: 7px; background: var(--trce-blue); color: #fff; cursor: pointer; font: inherit; font-weight: 800; }
.trce__button:hover { background: var(--trce-navy); }
.trce__button--secondary { border: 1px solid var(--trce-border); background: #fff; color: var(--trce-navy); }
.trce__button--secondary:hover { background: #f2f5f8; }
.trce__error { min-height: 20px; margin: 15px 0 0; color: #a3261d; font-size: 13px; font-weight: 700; }
.trce [hidden] { display: none !important; }

@media (max-width: 680px) {
	.trce { margin: 24px auto; padding: 27px 19px; border-radius: 11px; }
	.trce__choices--two, .trce__choices--three { grid-template-columns: 1fr; }
	.trce__result { padding: 25px 18px; }
	.trce__price strong { font-size: 54px; }
	.trce__credit { flex-direction: column; gap: 4px; }
	.trce__actions { justify-content: stretch; }
	.trce__button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.trce__progress-bar span { transition: none; }
}
