/*
 * Kalkulátor (főoldal és /kalkulator/). Mobil először:
 *   < 960 px: vízszintes lépés körök, panel, alul ragadós sötét összesítő sáv (lenyitható részletek);
 *   960–1199: vízszintes lépéssor felül, panel + ragadós összesítő kártya;
 *   ≥ 1200:   függőleges lépéssáv | panel | ragadós összesítő (240 | 1fr | 320, 40 px réssel).
 * Méretek a designból (1440-es keret, PDF egység / 0,75).
 */

/* Mobil / desktop szövegváltozatok (a design két szövegváltozata) */
.tf-calc__m {
	display: none;
}

@media (max-width: 639.98px) {
	.tf-calc__d {
		display: none !important;
	}

	.tf-calc__m {
		display: inline;
	}

	p.tf-calc__m {
		display: block;
	}
}

.tf-calc__title {
	max-width: 800px;
	margin-bottom: var(--s-7);
	font-size: var(--fs-h2);
	line-height: 1.3;
	text-wrap: wrap;
}

/* Főoldal: rövid bevezető a cím alatt (a cím alsó margóját átveszi). */
.tf-calc__title:has(+ .tf-calc__lead) {
	margin-bottom: var(--s-2);
}

.tf-calc__lead {
	margin-bottom: var(--s-7);
	color: var(--c-text);
	font-size: var(--fs-lead);
}

.tf-calc--home {
	padding-top: calc(var(--s-section) - 16px);
}

.tf-calc__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--s-5);
}

.tf-calc__noscript {
	margin-bottom: var(--s-5);
}

/* ---------- Lépések (mobil: vízszintes körök) ---------- */
.tf-calc__steps {
	display: flex;
	align-items: center;
}

.tf-calc__step {
	display: flex;
	flex: 1 1 0;
	align-items: center;
}

.tf-calc__step:last-child {
	flex: 0 0 auto;
}

.tf-calc__step::after {
	content: "";
	flex: 1;
	height: 3px;
	margin-inline: 6px;
	border-radius: 2px;
	background: var(--c-line-2);
}

.tf-calc__step:last-child::after {
	display: none;
}

.tf-calc__step.is-done::after {
	background: var(--c-blue);
}

.tf-calc__step-btn {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 0;
	border: 0;
	border-radius: var(--r-pill);
	background: none;
	color: var(--c-muted-2);
	text-align: left;
}

.tf-calc__step-btn:disabled {
	cursor: default;
}

.tf-calc__step-num {
	position: relative;
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--c-line-2);
	color: var(--c-muted-2);
	font-family: var(--f-body);
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: 1;
	transition: background-color var(--t-fast) var(--ease);
}

.tf-calc__step-check {
	display: none;
	width: 16px;
	height: 16px;
	stroke-width: 3;
}

.tf-calc__step.is-done .tf-calc__step-check {
	display: block;
}

.tf-calc__step.is-done .tf-calc__step-digit {
	display: none;
}

.tf-calc__step.is-active .tf-calc__step-num,
.tf-calc__step.is-done .tf-calc__step-num {
	background: var(--c-blue);
	color: #fff;
}

.tf-calc__step.is-done .tf-calc__step-btn:hover .tf-calc__step-num {
	background: var(--c-navy);
}

.tf-calc__step-text {
	display: grid;
	min-width: 0;
	line-height: 1.25;
}

.tf-calc__step-label {
	color: inherit;
	font-family: var(--f-head);
	font-size: 1.125rem;
	font-weight: 600;
}

.tf-calc__step.is-active .tf-calc__step-label {
	color: var(--c-navy);
}

.tf-calc__step.is-done .tf-calc__step-label {
	color: var(--c-blue-strong);
}

.tf-calc__step.is-done .tf-calc__step-btn:hover .tf-calc__step-label {
	color: var(--c-navy);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.tf-calc__step-value {
	margin-top: 2px;
	color: var(--c-muted);
	font-size: var(--fs-xs);
}

@media (max-width: 1199.98px) {
	.tf-calc__step-value {
		display: none;
	}

	.tf-calc__step-label {
		font-size: var(--fs-sm);
	}
}

@media (max-width: 639.98px) {
	/* Mobilon csak a körök látszanak, a címkét a képernyőolvasó kapja. */
	.tf-calc__step-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* ---------- Panel ---------- */
.tf-calc__panels {
	min-width: 0;
}

.tf-calc__kicker {
	margin-bottom: 6px;
	color: var(--c-blue-strong);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.tf-calc__panel-title {
	margin-bottom: var(--s-5);
	text-wrap: wrap;
	font-size: clamp(1.875rem, 1.7rem + 0.4vw, 2.125rem);
	line-height: 1.22;
}

.tf-calc__panel-title:focus-visible {
	outline-offset: 4px;
}

@media (min-width: 960px) {
	.tf-calc__kicker {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* Rádió kártyák (fólia, geotextília) */
.tf-calc__options {
	gap: 12px;
}

.tf-calc__option {
	gap: 18px;
	min-height: 70px;
	padding: 12px 20px;
	border-radius: 16px;
}

.tf-calc__option input[type="radio"] {
	width: 22px;
	height: 22px;
}

.tf-calc__option input[type="radio"]:checked {
	background: radial-gradient(circle, var(--c-blue) 0 5px, var(--c-bg) 5.5px);
}

.tf-calc__option .tf-option__title {
	font-size: 1.0625rem;
}

.tf-calc__option .tf-option__title small {
	font-size: var(--fs-sm);
}

.tf-calc__option .tf-option__sub {
	font-size: var(--fs-xs);
}

.tf-calc__option .tf-option__aside {
	gap: 20px;
}

.tf-calc__option .tf-option__price {
	color: var(--c-ink);
	font-size: 1.125rem;
	font-weight: 700;
}

.tf-calc__option .tf-badge--success {
	padding: 3px 10px;
	font-size: 0.6875rem;
}

/* „/m²” az ár után, kisebben (bruttó négyzetméterár). */
.tf-calc__unit {
	margin-left: 2px;
	color: var(--c-muted);
	font-size: var(--fs-2xs);
	font-weight: 500;
}

/* Segédsor a lépés alján (árak, geotextília, cím). */
.tf-calc__hint {
	margin-top: 12px;
	color: var(--c-muted);
	font-size: var(--fs-xs);
	line-height: 1.5;
}

/* A választott fólia rövid leírása az 1. lépés alján. */
.tf-calc__info {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-top: 14px;
	padding: 12px 16px;
	border-radius: var(--r-md);
	background: var(--c-sky-100);
	color: var(--c-blue-ink);
	font-size: var(--fs-xs);
	line-height: 1.5;
}

.tf-calc__info-icon {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	color: var(--c-blue);
}

/* „Nincs” geotextíliánál figyelmeztetés a garanciáról. */
.tf-calc__warn {
	margin-top: 12px;
	padding: 12px 16px;
	border-radius: var(--r-md);
	background: #fff4d6;
	color: #5c4300;
	font-size: var(--fs-xs);
	font-weight: 500;
	line-height: 1.5;
}

.tf-calc__more {
	margin-top: 12px;
	font-size: var(--fs-sm);
}

@media (min-width: 640px) {
	.tf-calc__option {
		gap: 20px;
		min-height: 86px;
		padding: 14px 26px;
	}

	.tf-calc__option .tf-option__title {
		font-size: 1.125rem;
	}

	.tf-calc__option .tf-option__sub {
		font-size: var(--fs-sm);
	}

	.tf-calc__option .tf-option__price {
		font-size: 1.5rem;
	}
}

/* ---------- 2. lépés: méret ---------- */
.tf-calc__dims {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-areas:
		"a b"
		"area area"
		"sliders sliders"
		"err err"
		"note note";
	gap: 12px;
}

.tf-calc__dim[data-dim="a"] {
	grid-area: a;
}

.tf-calc__dim[data-dim="b"] {
	grid-area: b;
}

.tf-calc__dim--area {
	grid-area: area;
}

.tf-calc__sliders {
	grid-area: sliders;
}

.tf-calc__dim-error {
	grid-column: 1 / -1;
	color: var(--c-error);
	font-size: var(--fs-xs);
	font-weight: 500;
}

.tf-calc__epdm-note {
	grid-area: note;
	color: var(--c-muted);
	font-size: var(--fs-xs);
}

.tf-calc__epdm-more,
.tf-calc__epdm-snap {
	grid-column: 1 / -1;
	font-size: var(--fs-xs);
}

.tf-calc__epdm-more {
	color: var(--c-muted);
}

.tf-calc__epdm-snap {
	color: var(--c-blue-ink);
	font-weight: 600;
}

.tf-calc__op {
	display: none;
}

.tf-calc__dim {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	padding: 14px 18px 10px;
	border: 1.5px solid transparent;
	border-radius: 18px;
	background: var(--c-sky-100);
	transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.tf-calc__dim:focus-within {
	border-color: var(--c-blue);
	box-shadow: var(--sh-focus);
}

.tf-calc__dim.is-error {
	border-color: var(--c-error);
	background: var(--c-error-bg);
}

.tf-calc__dim-label {
	color: var(--c-blue-strong);
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: 1.3;
}

.tf-calc__dim-value {
	display: flex;
	gap: 6px;
	align-items: baseline;
	min-width: 0;
	color: var(--c-navy);
	font-family: var(--f-head);
	font-weight: 700;
	line-height: 1.1;
}

.tf-calc__dim-input,
.tf-calc__dim-select {
	width: 3.4ch;
	min-width: 2ch;
	max-width: 100%;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-family: var(--f-head);
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.1;
	field-sizing: content;
}

@supports (field-sizing: content) {
	.tf-calc__dim-input {
		width: auto;
	}
}

.tf-calc__dim-select {
	width: auto;
	padding-right: 22px;
	background-position: right 0 center;
	background-size: 18px;
	cursor: pointer;
}

.tf-calc__dim-input:focus-visible,
.tf-calc__dim-select:focus-visible {
	border: 0;
	background-color: transparent;
	box-shadow: none;
}

.tf-calc__dim-unit {
	font-size: 1.125rem;
	font-weight: 600;
}

/* EPDM: a B mező gyári szélesség választó */
.tf-calc__dim-value--sel,
.tf-calc__dims.is-epdm .tf-calc__dim-value--num {
	display: none;
}

.tf-calc__dims.is-epdm .tf-calc__dim-value--sel {
	display: flex;
}

.tf-calc__dim--area {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	padding-block: 10px;
	background: var(--c-navy);
	color: #fff;
}

.tf-calc__dim--area .tf-calc__dim-label {
	color: var(--c-sky-300);
}

.tf-calc__dim--area .tf-calc__dim-value {
	color: #fff;
}

.tf-calc__area {
	font-size: 2.5rem;
}

.tf-calc__dim--area .tf-calc__dim-unit {
	font-size: 2.5rem;
}

/* Csúszkák */
.tf-calc__sliders {
	display: grid;
	gap: 6px;
	margin-top: 4px;
	padding-inline: 6px;
}

.tf-calc__range {
	--fill: 0%;
	display: block;
	width: 100%;
	height: 28px;
	margin: 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.tf-calc__range::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 3px;
	background: linear-gradient(to right, var(--c-blue) var(--fill), var(--c-sky-300) var(--fill));
}

.tf-calc__range::-webkit-slider-thumb {
	width: 26px;
	height: 26px;
	margin-top: -10px;
	border: 3px solid var(--c-blue);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(8, 41, 52, 0.18);
	-webkit-appearance: none;
	appearance: none;
}

.tf-calc__range::-moz-range-track {
	height: 6px;
	border-radius: 3px;
	background: var(--c-sky-300);
}

.tf-calc__range::-moz-range-progress {
	height: 6px;
	border-radius: 3px;
	background: var(--c-blue);
}

.tf-calc__range::-moz-range-thumb {
	box-sizing: border-box;
	width: 26px;
	height: 26px;
	border: 3px solid var(--c-blue);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(8, 41, 52, 0.18);
}

.tf-calc__range:focus-visible {
	outline: none;
}

.tf-calc__range:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 4px rgba(31, 162, 223, 0.45);
}

.tf-calc__range:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 4px rgba(31, 162, 223, 0.45);
}

/* „Hogyan mérjem a tavat?” doboz */
.tf-calc__measure {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	margin-top: var(--s-6);
	padding: 12px 16px 12px 12px;
	border-radius: var(--r-lg);
	background: #fff;
	box-shadow: var(--sh-card);
	color: var(--c-ink);
	font-size: var(--fs-sm);
	line-height: 1.45;
}

.tf-calc__measure-img {
	width: 96px;
	height: 96px;
	border-radius: 12px;
	object-fit: cover;
}

.tf-calc__measure-body > * + * {
	margin-top: 4px;
}

.tf-calc__measure-title {
	font-weight: 700;
}

.tf-calc__measure-example {
	color: var(--c-muted);
	font-size: var(--fs-xs);
}

.tf-calc__measure-extra {
	color: var(--c-muted);
	font-size: var(--fs-xs);
}

.tf-calc__measure-link {
	font-size: var(--fs-xs);
}

@media (min-width: 640px) {
	.tf-calc__dims {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
		grid-template-areas:
			"a x b eq area"
			"sliders sliders sliders sliders sliders"
			"err err err err err"
			"note note note note note";
		gap: 0 20px;
		align-items: stretch;
	}

	.tf-calc__op {
		display: grid;
		place-items: center;
		color: var(--c-sky-400);
		font-family: var(--f-body);
		font-size: 1.875rem;
		font-weight: 600;
	}

	.tf-calc__dim {
		min-height: 113px;
		padding: 16px 22px 12px;
	}

	.tf-calc__dim-label {
		font-size: var(--fs-2xs);
	}

	.tf-calc__dim-input,
	.tf-calc__dim-select,
	.tf-calc__area {
		font-size: 2.875rem;
	}

	.tf-calc__dim-unit {
		font-size: 1.25rem;
	}

	.tf-calc__dim-value {
		gap: 12px;
	}

	.tf-calc__dim--area {
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		padding-block: 16px 12px;
	}

	.tf-calc__dim--area .tf-calc__dim-unit {
		font-size: 1.25rem;
	}

	.tf-calc__sliders {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
		margin-top: 14px;
		padding-inline: 0;
	}

	.tf-calc__dim-error,
	.tf-calc__epdm-note {
		margin-top: 8px;
	}

	.tf-calc__measure {
		grid-template-columns: 200px minmax(0, 1fr);
		gap: 24px;
		margin-top: 28px;
		padding: 18px 24px 18px 20px;
	}

	.tf-calc__measure-img {
		width: 200px;
		height: 130px;
	}

	.tf-calc__measure-title {
		font-size: var(--fs-body);
	}
}

/* ---------- 4. lépés: megrendelés ---------- */
.tf-calc__errors {
	margin-bottom: var(--s-5);
	padding: 12px 18px;
	font-size: var(--fs-sm);
	font-weight: 500;
}

.tf-calc__errors:focus-visible {
	outline: 3px solid var(--c-error);
	outline-offset: 2px;
}

.tf-calc__errors .tf-calc__errors-list {
	margin-top: 6px;
	padding-left: 1.1em;
	list-style: disc;
	font-weight: 400;
}

.tf-calc__choice {
	min-width: 0;
	margin: 0 0 var(--s-5);
	padding: 0;
	border: 0;
}

.tf-calc__choice-title {
	margin-bottom: 12px;
	padding: 0;
	color: var(--c-ink);
	font-size: var(--fs-body);
	font-weight: 600;
}

.tf-calc__choice-hint {
	margin-top: 8px;
	color: var(--c-muted);
	font-size: var(--fs-xs);
}

.tf-calc__choice-error {
	margin-top: 6px;
}

/* A választott szállítási / fizetési mód leírása a chipek alatt. */
.tf-calc__choice-desc {
	margin-top: 10px;
	color: var(--c-muted);
	font-size: var(--fs-xs);
	line-height: 1.5;
}

.tf-calc__choice-hint--note {
	color: var(--c-blue-ink);
	font-weight: 600;
}

.tf-calc__address-hint {
	margin-top: 0;
	margin-bottom: -6px;
}

/* Céges számla */
.tf-calc__company {
	margin-top: 18px;
}

.tf-calc__company-label input {
	width: 22px;
	height: 22px;
}

.tf-calc__company-fields {
	margin-top: 14px;
}

.tf-calc__note {
	margin-top: 18px;
}

.tf-calc__note .tf-field__box {
	padding: 9px 18px 8px;
}

.tf-calc__note textarea {
	width: 100%;
	min-height: 3em;
	resize: vertical;
}

.tf-calc__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tf-calc__chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 16px;
	border-radius: var(--r-pill);
	background: var(--c-sky-100);
	color: var(--c-blue-ink);
	font-size: var(--fs-xs);
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
	transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.tf-calc__chip:hover {
	background: var(--c-sky-300);
	color: var(--c-navy);
}

.tf-calc__chip:has(input:checked) {
	background: var(--c-navy);
	color: #fff;
}

.tf-calc__chip:has(input:disabled) {
	background: var(--c-sky-50);
	color: var(--c-disabled);
	cursor: not-allowed;
}

.tf-calc__chip:has(input:focus-visible) {
	outline: 3px solid var(--c-focus);
	outline-offset: 2px;
}

.tf-calc__fields {
	gap: 18px;
	margin-top: var(--s-6);
}

.tf-calc__fields .tf-field__box {
	min-height: 57px;
	padding: 9px 18px 8px;
}

.tf-calc__fields .tf-field__label {
	color: var(--c-ink);
}

.tf-calc__fields .tf-field__error {
	margin-top: 4px;
	font-size: var(--fs-xs);
}

.tf-calc__fields .tf-field__box input[aria-invalid="true"] {
	background-color: transparent;
}

.tf-calc__terms {
	margin-top: var(--s-6);
}

.tf-calc__terms-label {
	gap: 14px;
	font-size: var(--fs-xs);
}

.tf-calc__terms-label input {
	width: 22px;
	height: 22px;
}

.tf-calc__terms.is-error .tf-calc__terms-label {
	color: var(--c-error);
}

.tf-calc__terms.is-error input {
	border-color: var(--c-error);
	border-width: 2px;
}

.tf-calc__terms .tf-field__error {
	margin-top: 4px;
	padding-left: 36px;
	font-size: var(--fs-xs);
}

/* Mobilon a fókuszba kerülő mező ne bújjon az alsó összesítő sáv mögé. */
.tf-calc__panels :is(input, select) {
	scroll-margin: calc(var(--header-h) + 16px) 0 120px;
}

@media (min-width: 640px) {
	.tf-calc__chip {
		min-height: 46px;
		padding-inline: 20px;
		font-size: var(--fs-sm);
	}

	.tf-calc__fields {
		gap: 14px 18px;
	}
}

/* ---------- Összesítő (mobil: alsó sötét sáv) ---------- */
.tf-calc__summary {
	position: sticky;
	bottom: 12px;
	z-index: 20;
	margin-top: var(--s-2);
}

.tf-calc__sum-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0 12px;
	align-items: center;
	padding: 12px 14px 12px 20px;
	border-radius: 20px;
	background: var(--c-navy);
	box-shadow: var(--sh-float);
	color: #fff;
}

.tf-calc__sum-head {
	grid-row: 2;
	min-width: 0;
}

.tf-calc__sum-label--d {
	display: none;
}

.tf-calc__sum-toggle {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 2px 0;
	border: 0;
	background: none;
	color: var(--c-sky-300);
	font-size: var(--fs-2xs);
	line-height: 1.3;
}

.tf-calc__sum-caret {
	width: 0;
	height: 0;
	border-right: 4px solid transparent;
	border-bottom: 5px solid currentColor;
	border-left: 4px solid transparent;
}

.tf-calc__sum-toggle[aria-expanded="true"] .tf-calc__sum-caret {
	transform: rotate(180deg);
}

.tf-calc__sum-total {
	color: #fff;
	font-family: var(--f-head);
	font-size: 1.4375rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.tf-calc__sum-details {
	display: none;
	grid-column: 1 / -1;
	grid-row: 1;
	margin-bottom: 12px;
	padding-bottom: 6px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.tf-calc__summary.is-open .tf-calc__sum-details {
	display: block;
}

.tf-calc__sum-net {
	padding-top: 4px;
	color: var(--c-sky-300);
	font-size: var(--fs-xs);
}

.tf-calc__sum-rows .tf-row {
	border-color: rgba(255, 255, 255, 0.12);
}

.tf-calc__summary .tf-row__label,
.tf-calc__summary .tf-row__value {
	color: #fff;
}

.tf-calc__summary .tf-row__label small {
	color: var(--c-sky-300);
}

.tf-calc__sum-note,
.tf-calc__sum-error {
	padding-top: 8px;
	font-size: var(--fs-2xs);
	line-height: 1.45;
}

.tf-calc__sum-note {
	color: var(--c-sky-300);
}

.tf-calc__sum-error {
	color: #ffb4a8;
	font-weight: 600;
}

/* „Barion · SSL titkosítás · Számla e-mailben”: csak a desktop kártyán. */
.tf-calc__sum-trust {
	display: none;
}

.tf-calc__next {
	grid-row: 2;
	width: auto;
	min-height: 46px;
	padding-inline: 24px;
	background: var(--c-blue-bright);
	color: var(--c-navy);
}

/* A .tf-btn:hover sötétkékje a sötét mobil sávon eltüntetné a gombot (érintés után is „hover” marad). */
.tf-calc__next:hover {
	background: var(--c-blue-bright);
	color: var(--c-navy);
}

/* Érintőképernyőn a koppintás után ne ragadjon fehéren a gomb. */
@media (hover: hover) {
	.tf-calc__next:hover {
		background: #fff;
		color: var(--c-navy);
	}
}

.tf-calc__next[aria-busy="true"] {
	cursor: progress;
	opacity: 0.75;
}

.tf-calc__next-d {
	display: none;
}

/* ---------- 960 px fölött: panel + összesítő kártya ---------- */
@media (min-width: 960px) {
	.tf-calc__layout {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: var(--s-8) 40px;
		align-items: start;
	}

	.tf-calc__rail {
		grid-column: 1 / -1;
	}

	.tf-calc__summary {
		top: calc(var(--header-h) + 24px);
		bottom: auto;
		margin-top: 0;
	}

	.tf-calc__sum-card {
		display: block;
		padding: 26px 28px 28px;
		border-radius: var(--r-lg);
		background: #fff;
		box-shadow: var(--sh-card);
		color: var(--c-text);
	}

	.tf-calc__sum-toggle {
		display: none;
	}

	.tf-calc__sum-label--d {
		display: block;
		color: var(--c-muted);
		font-size: var(--fs-xs);
	}

	.tf-calc__sum-total {
		margin-top: 8px;
		color: var(--c-navy);
		font-size: 2.75rem;
		line-height: 1.15;
	}

	.tf-calc__sum-details {
		display: block;
		margin: 0;
		padding: 0;
		border: 0;
	}

	.tf-calc__sum-net {
		margin-top: 6px;
		padding: 0 0 18px;
		border-bottom: 1px solid var(--c-line);
		color: var(--c-muted);
		font-size: var(--fs-xs);
	}

	.tf-calc__sum-rows .tf-row {
		gap: 10px;
		padding-block: 12px;
		border-color: var(--c-line);
		font-size: var(--fs-2xs);
	}

	.tf-calc__summary .tf-row__label,
	.tf-calc__summary .tf-row__value {
		color: var(--c-ink);
	}

	.tf-calc__summary .tf-row__label small {
		color: var(--c-muted);
	}

	.tf-calc__sum-note {
		color: var(--c-muted);
	}

	.tf-calc__sum-error {
		color: var(--c-error);
	}

	.tf-calc__sum-trust:not([hidden]) {
		display: flex;
		gap: 6px;
		align-items: center;
		justify-content: center;
		margin-top: 12px;
		color: var(--c-muted);
		font-size: var(--fs-3xs);
	}

	.tf-calc__sum-trust-icon {
		width: 14px;
		height: 14px;
	}

	.tf-calc__next {
		width: 100%;
		min-height: 50px;
		margin-top: 18px;
		background: var(--c-blue-strong);
		color: #fff;
		font-size: var(--fs-body);
	}

	.tf-calc__next:hover {
		background: var(--c-navy);
		color: #fff;
	}

	.tf-calc__next-d {
		display: inline;
	}

	.tf-calc__next-m {
		display: none;
	}
}

/* ---------- 1200 px fölött: függőleges lépéssáv ---------- */
@media (min-width: 1200px) {
	.tf-calc__title {
		margin-bottom: var(--s-9);
	}

	.tf-calc__layout {
		grid-template-columns: 240px minmax(0, 1fr) 320px;
		gap: 40px;
	}

	.tf-calc__rail {
		grid-column: auto;
	}

	.tf-calc__summary {
		top: 24px;
	}

	.tf-calc__steps {
		display: grid;
	}

	.tf-calc__step {
		display: block;
		min-height: 66px;
		padding: 14px 0 14px 18px;
		border-left: 3px solid var(--c-line-2);
	}

	.tf-calc__step::after {
		display: none;
	}

	.tf-calc__step.is-done {
		border-left-color: var(--c-sky-400);
	}

	.tf-calc__step.is-active {
		border-left-color: var(--c-blue);
	}

	.tf-calc__step-btn {
		gap: 14px;
		align-items: flex-start;
		border-radius: var(--r-sm);
	}

	.tf-calc__step-num {
		width: 34px;
		height: 34px;
		margin-top: -5px;
	}

	.tf-calc__step-label {
		font-size: 1.125rem;
	}

	.tf-calc__step-value {
		display: block;
	}
}

/* Admin sáv mellett a ragadós összesítő ne csússzon alá. */
@media (min-width: 1200px) {
	.admin-bar .tf-calc__summary {
		top: calc(var(--wp-admin--admin-bar--height, 32px) + 24px);
	}
}
