/* ==========================================================================
   Eritellimuse kiirhind + projektilehe kujundus
   ========================================================================== */
.tmk-q,
.tmk-proj {
	--q-ink: var(--wp--preset--color--tint, #161817);
	--q-muted: var(--wp--preset--color--grafiit, #4a504c);
	--q-line: rgba(22, 24, 23, .1);
	--q-paper: #fff;
	--q-soft: #f2efe9;
	--q-sage: #56685a;
	--q-sage-soft: #e3e8df;
	--q-radius: 20px;
	--q-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ----- Kalkulaator ----- */
.tmk-q { position: relative; margin-block: var(--wp--preset--spacing--40, 2rem); }
.tmk-q__nojs { padding: 1rem; border: 1px dashed var(--q-line); border-radius: 12px; }
.tmk-q__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: start;
}
.tmk-q__main {
	background: var(--q-paper);
	border-radius: var(--q-radius);
	padding: clamp(1.25rem, 3vw, 2.25rem);
	box-shadow: 0 0 0 1px var(--q-line), 0 30px 60px -40px rgba(22, 24, 23, .35);
}
.tmk-q__step { display: flex; align-items: baseline; gap: .75rem; margin: 0 0 1rem; }
.tmk-q__step:not(:first-child) { margin-top: 2.25rem; }
.tmk-q__step-n { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--q-sage); }
.tmk-q__step-title { margin: 0 !important; font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem); font-stretch: 84%; letter-spacing: -.02em; }

.tmk-q__drop {
	position: relative;
	display: grid;
	justify-items: center;
	gap: .35rem;
	padding: clamp(1.5rem, 4vw, 2.75rem) 1rem;
	border-radius: 16px;
	border: 1.5px dashed rgba(86, 104, 90, .45);
	background:
		radial-gradient(70% 90% at 50% 0%, rgba(143, 160, 138, .14), transparent 70%),
		var(--q-soft);
	text-align: center;
	cursor: pointer;
	transition: border-color .2s, background-color .2s, transform .25s var(--q-ease);
}
.tmk-q__drop:hover, .tmk-q__drop.is-over { border-color: var(--q-sage); transform: translateY(-1px); }
.tmk-q__drop.is-over { background-color: var(--q-sage-soft); }
.tmk-q__drop:focus-within { outline: 2px solid var(--wp--preset--color--plaat, #a8803a); outline-offset: 3px; }
.tmk-q__file { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.tmk-q__drop-icon { color: var(--q-sage); margin-bottom: .25rem; }
.tmk-q__drop-title { font-weight: 600; font-size: 1.0625rem; }
.tmk-q__drop-title u { text-underline-offset: .2em; }
.tmk-q__drop-meta { font-size: .8125rem; color: var(--q-muted); }

.tmk-q__files { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.tmk-q__item {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .65rem .75rem .65rem 1rem;
	border-radius: 14px;
	background: var(--q-soft);
	box-shadow: inset 0 0 0 1px transparent;
	transition: box-shadow .2s, background-color .2s;
	animation: tmk-q-in .35s var(--q-ease) both;
}
.tmk-q__item.is-active { background: #fff; box-shadow: inset 0 0 0 1.5px var(--q-sage); }
.tmk-q__item.is-error { background: #fbeeec; }
@keyframes tmk-q-in { from { opacity: 0; transform: translateY(6px); } }
.tmk-q__item-main { flex: 1; min-width: 0; display: grid; gap: .15rem; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.tmk-q__item-main:disabled { cursor: default; }
.tmk-q__item-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmk-q__item-meta { font-size: .8125rem; color: var(--q-muted); }
.tmk-q__item-warn { font-size: .8125rem; color: #8a4b16; }
.tmk-q__item.is-error .tmk-q__item-meta { color: #b3261e; }
.tmk-q__item-ctrl { display: flex; align-items: center; gap: .4rem; flex: none; }
.tmk-q__unit { font: inherit; font-size: .8125rem; padding: .3rem .4rem; border-radius: 8px; border: 1px solid var(--q-line); background: #fff; }
.tmk-q__qty { display: inline-flex; align-items: center; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--q-line); }
.tmk-q__qty button { width: 30px; height: 32px; border: 0; background: none; font-size: 1.05rem; cursor: pointer; color: var(--q-ink); }
.tmk-q__qty input { width: 2.6rem; border: 0; text-align: center; font: inherit; font-weight: 600; background: none; -moz-appearance: textfield; }
.tmk-q__qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tmk-q__remove { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; font-size: 1.2rem; color: var(--q-muted); cursor: pointer; }
.tmk-q__remove:hover { background: rgba(22, 24, 23, .07); color: var(--q-ink); }
.tmk-q__msg { margin: .75rem 0 0; color: #8a4b16; font-size: .9375rem; }

.tmk-q__field { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.tmk-q__field legend { padding: 0; margin-bottom: .55rem; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--q-muted); }
.tmk-q__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.tmk-q__card {
	position: relative;
	display: grid;
	gap: .25rem;
	padding: .9rem 1rem;
	border-radius: 14px;
	background: var(--q-soft);
	cursor: pointer;
	box-shadow: inset 0 0 0 1px transparent;
	transition: box-shadow .2s, background-color .2s, transform .2s var(--q-ease);
}
.tmk-q__card:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--q-line); }
.tmk-q__card:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 2px var(--q-ink); }
.tmk-q__card:has(input:focus-visible), .tmk-q__pill:has(input:focus-visible) { outline: 2px solid var(--wp--preset--color--plaat, #a8803a); outline-offset: 2px; }
.tmk-q__card input, .tmk-q__pill input { position: absolute; opacity: 0; pointer-events: none; }
.tmk-q__card-title { font-family: var(--wp--preset--font-family--kuva); font-size: 1.35rem; font-weight: 700; font-stretch: 84%; }
.tmk-q__card-text { font-size: .8125rem; line-height: 1.4; color: var(--q-muted); }
.tmk-q__pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.tmk-q__pill { position: relative; }
.tmk-q__pill span {
	display: inline-block;
	padding: .5rem .9rem;
	border-radius: 999px;
	background: var(--q-soft);
	font-size: .9rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.tmk-q__pill input:checked + span { background: var(--q-ink); color: #fff; }
.tmk-q__two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }

/* Parem veerg */
.tmk-q__side { position: sticky; top: 6rem; display: grid; gap: 1rem; }
.tmk-q__viewer {
	position: relative;
	aspect-ratio: 5 / 4;
	border-radius: var(--q-radius);
	overflow: hidden;
	background:
		radial-gradient(70% 70% at 50% 40%, #fff 0%, rgba(255, 255, 255, 0) 70%),
		linear-gradient(180deg, #f6f4ef, #e9e5dc);
	box-shadow: 0 0 0 1px var(--q-line);
}
.tmk-q__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s; cursor: grab; touch-action: pan-y; }
.tmk-q__canvas:active { cursor: grabbing; }
.tmk-q__viewer.has-model .tmk-q__canvas { opacity: 1; }
.tmk-q__viewer-empty { position: absolute; inset: 0; display: grid; place-content: center; gap: .3rem; text-align: center; color: var(--q-muted); transition: opacity .3s; }
.tmk-q__viewer-empty span { font-family: var(--wp--preset--font-family--kuva); font-weight: 700; font-size: 1.25rem; font-stretch: 84%; color: var(--q-ink); }
.tmk-q__viewer.has-model .tmk-q__viewer-empty { opacity: 0; visibility: hidden; pointer-events: none; }
.tmk-q__dims, .tmk-q__hint { position: absolute; margin: 0; font-size: .8125rem; pointer-events: none; }
.tmk-q__dims { left: .9rem; bottom: .8rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); font-weight: 600; }
.tmk-q__hint { right: .9rem; top: .8rem; color: rgba(22, 24, 23, .45); }

.tmk-q__price {
	padding: 1.4rem 1.5rem 1.5rem;
	border-radius: var(--q-radius);
	background: var(--q-ink);
	color: #fff;
	box-shadow: 0 30px 60px -36px rgba(22, 24, 23, .7);
}
.tmk-q__price.is-bump .tmk-q__price-value { animation: tmk-q-bump .45s var(--q-ease); }
@keyframes tmk-q-bump { 40% { transform: scale(1.04); } }
.tmk-q__price-label { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.tmk-q__price-value { margin: .2rem 0 0; font-family: var(--wp--preset--font-family--kuva); font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.4rem); font-weight: 800; font-stretch: 78%; line-height: 1; letter-spacing: -.03em; transform-origin: left; }
.tmk-q__price-range { margin: .45rem 0 0; font-size: .875rem; color: rgba(255, 255, 255, .7); }
.tmk-q__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 1.1rem 0 0; padding: 1rem 0 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.tmk-q__facts div { margin: 0; }
.tmk-q__facts dt { font-size: .75rem; color: rgba(255, 255, 255, .55); }
.tmk-q__facts dd { margin: .1rem 0 0; font-weight: 600; }
.tmk-q__note { margin: 1rem 0 0; font-size: .8125rem; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.tmk-q__next { width: 100%; margin-top: 1.1rem; padding: .95rem 1.2rem; border: 0; border-radius: 6px; background: #fff !important; color: var(--q-ink) !important; font-weight: 700; cursor: pointer; transition: background-color .2s, opacity .2s; }
.tmk-q__next:hover:not(:disabled) { background: #ede6d8 !important; }
.tmk-q__next:disabled { opacity: .35; cursor: not-allowed; }
.tmk-q__price.is-compact .tmk-q__note, .tmk-q__price.is-compact .tmk-q__facts { display: none; }

.tmk-q__form, .tmk-q__done {
	padding: 1.4rem 1.5rem;
	border-radius: var(--q-radius);
	background: #fff;
	box-shadow: 0 0 0 1px var(--q-line);
	display: grid;
	gap: .75rem;
	animation: tmk-q-in .35s var(--q-ease) both;
}
.tmk-q__form[hidden], .tmk-q__done[hidden], .tmk-q__price[hidden] { display: none; }
.tmk-q__form-title { margin: 0 !important; font-size: 1.35rem; font-stretch: 84%; }
.tmk-q__hp { position: absolute; left: -9999px; }
.tmk-q__input { display: grid; gap: .3rem; font-size: .875rem; font-weight: 600; }
.tmk-q__input em { font-style: normal; font-weight: 400; color: var(--q-muted); }
.tmk-q__input input, .tmk-q__input textarea {
	font: inherit;
	font-weight: 400;
	font-size: 1rem;
	padding: .7rem .8rem;
	border-radius: 8px;
	border: 1px solid rgba(22, 24, 23, .18);
	background: #fff;
	width: 100%;
	box-sizing: border-box;
}
.tmk-q__input input:focus, .tmk-q__input textarea:focus { outline: 2px solid var(--q-sage); outline-offset: 0; border-color: transparent; }
.tmk-q__consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .8125rem; line-height: 1.45; color: var(--q-muted); }
.tmk-q__consent input { margin-top: .2rem; width: 18px; height: 18px; flex: none; accent-color: var(--q-ink); }
.tmk-q__progress { display: grid; gap: .35rem; }
.tmk-q__progress[hidden] { display: none; }
.tmk-q__progress-bar { height: 4px; border-radius: 4px; background: var(--q-soft); overflow: hidden; }
.tmk-q__progress-bar i { display: block; height: 100%; background: var(--q-sage); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.tmk-q__progress-text { font-size: .8125rem; color: var(--q-muted); }
.tmk-q__form-msg { margin: 0; color: #b3261e; font-size: .9rem; }
.tmk-q__form-actions { display: flex; gap: .5rem; justify-content: space-between; align-items: center; }
.tmk-q__back, .tmk-q__again { font: inherit; font-weight: 600; background: none; border: 0; padding: .8rem .2rem; cursor: pointer; color: var(--q-muted); text-decoration: underline; text-underline-offset: .2em; }
.tmk-q__send { padding: .9rem 1.4rem; border: 0; border-radius: 6px; cursor: pointer; font-weight: 700; }
.tmk-q__send:disabled { opacity: .5; cursor: wait; }
.tmk-q__done { text-align: center; justify-items: center; padding-block: 2rem; }
.tmk-q__done h3 { margin: 0 !important; font-stretch: 84%; }
.tmk-q__done-icon { margin: 0; width: 3.25rem; height: 3.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--q-sage); color: #fff; font-size: 1.5rem; }
.tmk-q__done-text { margin: 0; color: var(--q-muted); max-width: 36ch; }

@media (max-width: 960px) {
	.tmk-q__grid { grid-template-columns: 1fr; }
	.tmk-q__side { position: static; }
}
/* Telefoni hinnariba */
.tmk-q__mbar { display: none; }
@media (max-width: 960px) {
	.tmk-q__mbar {
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: 12px;
		z-index: 50;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		padding: .7rem .7rem .7rem 1.1rem;
		border-radius: 14px;
		background: var(--q-ink);
		color: #fff;
		box-shadow: 0 18px 40px -16px rgba(22, 24, 23, .6);
		transform: translateY(140%);
		transition: transform .35s var(--q-ease);
	}
	.tmk-q__mbar.is-on { transform: none; }
	.tmk-q__mbar span { font-size: .8125rem; color: rgba(255, 255, 255, .7); }
	.tmk-q__mbar b { display: block; font-size: 1.25rem; color: #fff; }
	.tmk-q__mbar button { border: 0; border-radius: 8px; padding: .65rem 1rem; background: #fff; color: var(--q-ink); font: inherit; font-weight: 700; }
}
@media (max-width: 600px) {
	.tmk-q__cards { grid-template-columns: 1fr; }
	.tmk-q__card { grid-template-columns: auto 1fr; align-items: baseline; column-gap: .75rem; }
	.tmk-q__two { grid-template-columns: 1fr; }
	.tmk-q__item { flex-wrap: wrap; }
	.tmk-q__item-ctrl { width: 100%; justify-content: flex-end; }
	.tmk-q__facts { grid-template-columns: repeat(3, auto); }
	.tmk-q__price { padding: 1rem 1.1rem; }
	.tmk-q__note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.tmk-q *, .tmk-proj * { animation: none !important; transition: none !important; }
}

/* ----- Projektilehe sektsioonid ----- */
.tmk-proj-h2 { max-width: none !important; }
.tmk-proj-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(55% 80% at 85% 20%, rgba(143, 160, 138, .22), transparent 70%),
		radial-gradient(40% 60% at 5% 100%, rgba(217, 203, 178, .45), transparent 70%),
		#f2efe9;
}
.tmk-proj-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -30px;
	bottom: -40px;
	width: clamp(200px, 28vw, 400px);
	aspect-ratio: 380 / 400;
	background: url("../oks-salvei.svg") no-repeat center / contain;
	opacity: .14;
	transform: scaleX(-1);
	pointer-events: none;
}
.tmk-proj-eyebrow { margin-top: 0 !important; margin-bottom: 1rem !important; display: flex; align-items: center; gap: .65rem; font-size: .8125rem !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--q-muted, #4a504c); }
.tmk-proj-eyebrow::before { content: ""; width: 1.75rem; height: 1.5px; background: currentColor; }
.tmk-proj-title { margin: 0 !important; font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.4rem) !important; font-weight: 800; font-stretch: 78% !important; line-height: .95 !important; letter-spacing: -.035em; max-width: 14ch; }
.tmk-proj-title em { font-style: normal; color: #56685a; font-weight: 600; }
.tmk-proj-lead { max-width: 40rem; margin-top: 1.25rem !important; color: var(--q-muted, #4a504c); }
.tmk-proj-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0 !important; margin: 1.5rem 0 0 !important; }
.tmk-proj-chips li { margin: 0; padding: .45rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px rgba(22, 24, 23, .08); font-size: .875rem; font-weight: 600; }

.tmk-proj-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 0 !important; margin: 0 !important; }
.tmk-proj-steps li { counter-increment: s; margin: 0; padding: 1.25rem 1.25rem 1.4rem; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(22, 24, 23, .08); }
.tmk-proj-steps li::before { content: "0" counter(s); display: block; margin-bottom: .9rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: #56685a; }
.tmk-proj-steps strong { display: block; margin-bottom: .35rem; font-family: var(--wp--preset--font-family--kuva); font-size: 1.3rem; font-stretch: 84%; letter-spacing: -.01em; }
.tmk-proj-steps span { color: #4a504c; font-size: .9375rem; }

.tmk-proj-mats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tmk-proj-mat { margin: 0 !important; padding: 1.5rem; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(22, 24, 23, .08); }
.tmk-proj-mat h3 { margin: 0 0 .25rem !important; font-size: 2.2rem !important; font-stretch: 78%; letter-spacing: -.02em; }
.tmk-proj-mat p { margin: 0 0 .9rem !important; color: #4a504c; }
.tmk-proj-mat ul { margin: 0 !important; padding: 0 !important; list-style: none; display: grid; gap: .35rem; font-size: .9375rem; }
.tmk-proj-mat li { margin: 0; padding-left: 1.4rem; position: relative; }
.tmk-proj-mat li::before { content: ""; position: absolute; left: 0; top: .5em; width: .55rem; height: .55rem; border-radius: 50%; background: #8fa08a; }
.tmk-proj-mat--petg li::before { background: #c9a867; }
.tmk-proj-mat--asa li::before { background: #c98b5e; }

@media (max-width: 960px) {
	.tmk-proj-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tmk-proj-mats { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.tmk-proj-steps { grid-template-columns: 1fr; }
}

/* Hind tuleb serverist: arvutamise ajal tuhm */
.tmk-q__price [data-out="total"]{transition:opacity .2s ease}
.tmk-q__price.is-loading [data-out="total"]{opacity:.45}

/* ==========================================================================
   Liikumine (proj-fx.js): 3D-hammasrattad, ilmumine, raamid, kallutamine
   ========================================================================== */
@property --fx-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* Hero: tekst tõuseb sisse (CSS, ilma JS-ita), hammasrattad paremal */
@keyframes tmk-fx-rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
.tmk-proj-hero > .tmk-proj-eyebrow,
.tmk-proj-hero > .tmk-proj-title,
.tmk-proj-hero > .tmk-proj-lead,
.tmk-proj-hero > .wp-block-buttons,
.tmk-proj-chips li { animation: tmk-fx-rise .9s var(--q-ease, cubic-bezier(.2, .7, .2, 1)) both; }
.tmk-proj-hero > .tmk-proj-title { animation-delay: .08s; }
.tmk-proj-hero > .tmk-proj-lead { animation-delay: .18s; }
.tmk-proj-chips li:nth-child(1) { animation-delay: .28s; }
.tmk-proj-chips li:nth-child(2) { animation-delay: .34s; }
.tmk-proj-chips li:nth-child(3) { animation-delay: .4s; }
.tmk-proj-chips li:nth-child(4) { animation-delay: .46s; }
.tmk-proj-hero > .wp-block-buttons { animation-delay: .5s; }
.tmk-proj-title em { display: inline-block; background: linear-gradient(100deg, #56685a 0 40%, #8fa08a 50%, #56685a 60% 100%) 100% 0 / 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: tmk-fx-sheen 6s 1.2s ease-in-out infinite; }
@keyframes tmk-fx-sheen { 0%, 70% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.tmk-proj-hero.has-stage > .tmk-proj-lead { max-width: min(36rem, 52%) !important; margin-left: max(0px, calc((100% - 1360px) / 2)) !important; }
.tmk-proj-hero.has-stage::after { right: auto; left: -50px; transform: none; opacity: .1; }
.tmk-proj-stage {
	position: absolute;
	z-index: 0;
	top: 0;
	bottom: 0;
	right: max(0px, calc((100% - 1360px) / 2));
	width: min(46%, 640px);
	max-width: none !important;
	margin: 0 !important;
	pointer-events: none;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.tmk-proj-stage.is-ready { opacity: 1; }
.tmk-proj-stage::before {
	content: "";
	position: absolute;
	left: 18%;
	right: 18%;
	bottom: 14%;
	height: 12%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(22, 24, 23, .16), transparent);
	filter: blur(6px);
}
.tmk-proj-stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tmk-proj-hero > *:not(.tmk-proj-stage) { position: relative; z-index: 1; }
@media (max-width: 900px) {
	.tmk-proj-hero.has-stage > .tmk-proj-lead { max-width: none !important; }
	.tmk-proj-stage { position: relative; top: auto; bottom: auto; right: auto; width: 100%; height: clamp(220px, 62vw, 340px); margin-top: 1.5rem !important; }
}

/* Kerimisel ilmumine */
.tmk-fx .tmk-fx-up { opacity: 0; translate: 0 34px; transition: opacity .8s var(--q-ease), translate .9s var(--q-ease), transform .45s var(--q-ease), box-shadow .45s var(--q-ease); transition-delay: calc(var(--fx-i, 0) * 90ms); }
.tmk-fx .tmk-fx-up.is-in { opacity: 1; translate: none; }

/* Sammude kaardid: ülaserv „prinditakse“ täis */
.tmk-proj-steps > li { background: linear-gradient(#56685a, #8fa08a) top left / 0% 3px no-repeat, #fff; transition: background-size 1.1s var(--q-ease); }
.tmk-proj-steps > li.is-in, html:not(.tmk-fx) .tmk-proj-steps > li { background-size: 100% 3px, auto; transition-delay: calc(var(--fx-i, 0) * 160ms + .25s); }

/* Raamid: mööda serva jookseb valgusjoon (kalkulaator ja hinnakast pidevalt, kaardid hiirega) */
.tmk-fx-frame { position: relative; isolation: isolate; }
.tmk-fx-frame::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	padding: 1.5px;
	background: conic-gradient(from var(--fx-a), transparent 0 62%, rgba(143, 160, 138, .0) 64%, #8fa08a 80%, #56685a 88%, transparent 96%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	opacity: 0;
	transition: opacity .6s ease;
}
.tmk-q__main.tmk-fx-frame::after,
.tmk-q__price.tmk-fx-frame::after { opacity: .9; animation: tmk-fx-trace 9s linear infinite; }
.tmk-q__price.tmk-fx-frame::after { background: conic-gradient(from var(--fx-a), transparent 0 60%, rgba(255, 255, 255, 0) 64%, rgba(227, 232, 223, .55) 82%, #b9c7b3 88%, transparent 96%); animation-duration: 7s; animation-direction: reverse; }
.tmk-fx-tilt.tmk-fx-frame:hover::after { opacity: 1; animation: tmk-fx-trace 3.2s linear infinite; }
@keyframes tmk-fx-trace { to { --fx-a: 360deg; } }

/* Kallutamine ja valguslaik hiire all */
.tmk-fx-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; will-change: transform; }
.tmk-fx-tilt:hover { box-shadow: 0 0 0 1px rgba(22, 24, 23, .08), 0 28px 50px -30px rgba(22, 24, 23, .35) !important; }
.tmk-fx-tilt::before { transition: color .3s; }
.tmk-proj-mat.tmk-fx-tilt { background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(143, 160, 138, .14), transparent 60%), #fff; }

@media (prefers-reduced-motion: reduce) {
	.tmk-fx .tmk-fx-up { opacity: 1; translate: none; }
	.tmk-fx-frame::after { display: none; }
	.tmk-proj-title em { color: #56685a; background: none; }
}

/* Ainult ekraanilugejale ja otsingumootorile (pealkirjade järjekord H1 → H2 → H3) */
.tmk-q__sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
