/* ==========================================================================
   Сцена 3 - Вашият дом: една стая „преди/след“, S-линия, дръжка
   ========================================================================== */

.nd-ho { --hx: 58%; --hy: 50%; --tb: 58%; color: #f3efe4; background: #1c2622; }
.nd-ho__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.nd-ho__img { position: absolute; inset: 0; display: block; }
.nd-ho__img img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
.nd-ho__img--before { clip-path: inset(0 42% 0 0); } /* без JS; скриптът слага S-линия */
.nd-ho__shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(9, 18, 14, .82) 0%, rgba(9, 18, 14, .62) 30%, rgba(9, 18, 14, .16) 56%, transparent 72%),
		linear-gradient(0deg, rgba(9, 18, 14, .5), transparent 32%);
}
.nd-ho__air { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.nd-ho__seam { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.nd-ho__seam path { fill: none; }
.nd-ho__seam-line { stroke: #ecd08a; stroke-width: 2; }
.nd-ho__seam-glow { stroke: #f4dfa6; stroke-width: 12; opacity: .3; filter: blur(7px); }

/* дръжката и етикетите следват линията */
.nd-ho__handle {
	position: absolute; left: 0; top: var(--hy); z-index: 3; translate: calc(var(--hx) - 50%) -50%;
	display: flex; align-items: center; justify-content: center; gap: 0; width: 58px; height: 58px; border-radius: 50%;
	background: rgba(255, 253, 248, .92); color: var(--jade-800); font-size: 1rem; cursor: ew-resize; touch-action: none;
	box-shadow: 0 0 0 1px rgba(230, 203, 140, .9), 0 0 0 7px rgba(236, 208, 138, .22), 0 16px 34px -12px rgba(0, 0, 0, .6);
	transition: box-shadow .4s var(--ease), scale .4s var(--ease);
}
.nd-ho__handle:hover, .nd-ho__handle.is-drag { scale: 1.08; box-shadow: 0 0 0 1px #ecd08a, 0 0 0 10px rgba(236, 208, 138, .3), 0 18px 38px -12px rgba(0, 0, 0, .7); }
.nd-ho__handle:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 6px; }
.nd-ho__harr { display: grid; place-items: center; margin: 0 -2px; }
.nd-ho__harr--l .nd-i { transform: scaleX(-1); }
.nd-ho__tag {
	position: absolute; left: 0; top: 15%; z-index: 2; display: inline-flex; align-items: center; gap: 9px;
	padding: 6px 14px 6px 6px; border-radius: 999px; white-space: nowrap; font-size: .8rem; line-height: 1.15; color: #f3efe4;
	background: rgba(9, 18, 14, .72); box-shadow: inset 0 0 0 1px rgba(230, 203, 140, .3);
	transition: opacity .6s var(--ease);
}
.nd-ho__tag b { display: block; font-size: .66rem; font-weight: 640; letter-spacing: .16em; text-transform: uppercase; }
.nd-ho__tag > .nd-i { display: grid; place-items: center; width: 30px; height: 30px; padding: 6px; box-sizing: border-box; border-radius: 50%; }
.nd-ho__tag--before { translate: calc(var(--tb) - 100% - 22px) 0; }
.nd-ho__tag--before > .nd-i { background: rgba(140, 160, 150, .3); color: #cfd9d3; }
.nd-ho__tag--before b { color: #b9c7bf; }
.nd-ho__tag--after { translate: calc(var(--tb) + 22px) 0; background: rgba(255, 253, 248, .92); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(173, 129, 48, .35); }
.nd-ho__tag--after > .nd-i { background: var(--gold-grad) border-box; color: var(--jade-950); }
.nd-ho__tag--after b { color: var(--gold-700); }

/* --- текстът --- */
.nd-ho__copy { max-width: 600px; }
.nd-ho__eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 24px; font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-300); }
.nd-ho__ei { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 1rem; color: var(--jade-950); background: var(--gold-grad) border-box; }
.nd-ho__title { margin: 0 0 22px; font-size: clamp(2.5rem, 4.4vw, 4.3rem); font-weight: 260; line-height: 1.03; letter-spacing: -.032em; color: #fbf6ea; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.nd-ho__line { display: block; }
.nd-ho__line--gold em { font-style: normal; font-weight: 320; background: linear-gradient(100deg, #c7953b 0%, #f4dfa6 40%, #e2bf72 62%, #b8862f 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; animation: ndSheen 9s ease-in-out infinite alternate; }
.nd-ho__lead { max-width: 34ch; margin: 0 0 26px; font-size: clamp(1.08rem, 1.3vw, 1.22rem); line-height: 1.55; color: #dfe6e1; font-weight: 340; }
.nd-ho__feats { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 0 0 32px; }
.nd-ho__feats li { display: flex; align-items: center; gap: 12px; font-size: .84rem; line-height: 1.25; color: #c9d4cc; }
.nd-ho__feats b { display: block; font-size: 1rem; font-weight: 560; color: #fbf6ea; }
.nd-ho__fi { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; font-size: 1.35rem; color: var(--gold-300); background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 1px rgba(230, 203, 140, .38); }
.nd-ho__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* --- поява --- */
.nd-anim .nd-ho .nd-ho__handle, .nd-anim .nd-ho .nd-ho__tag { opacity: 0; }
.nd-anim .nd-ho.is-shown .nd-ho__handle, .nd-anim .nd-ho.is-shown .nd-ho__tag { opacity: 1; transition: opacity .9s var(--ease), box-shadow .4s var(--ease), scale .4s var(--ease); }

/* --- отзивчивост --- */
@media (max-height: 820px) and (min-width: 1101px) {
	.nd-ho__title { font-size: clamp(2.2rem, 3.6vw, 3.5rem); margin-bottom: 14px; }
	.nd-ho__lead { margin-bottom: 18px; }
	.nd-ho__feats { margin-bottom: 22px; }
}
@media (max-width: 1100px) {
	.nd-ho { --hy: 78%; }
	.nd-scene.nd-ho { align-items: flex-start; }
	.nd-ho__img img { object-position: 50% 50%; }
	.nd-ho__shade { background: linear-gradient(180deg, rgba(9, 18, 14, .86) 0%, rgba(9, 18, 14, .7) 38%, rgba(9, 18, 14, .18) 62%, transparent 74%), linear-gradient(0deg, rgba(9, 18, 14, .55), transparent 22%); }
	.nd-ho__copy { max-width: 640px; margin-inline: auto; text-align: center; }
	.nd-ho__lead { margin-inline: auto; }
	.nd-ho__feats, .nd-ho__cta { justify-content: center; }
	.nd-ho__tag { top: 66%; }
	/* линията не минава през текста: появява се под него */
	.nd-ho__seam { -webkit-mask-image: linear-gradient(180deg, transparent 52%, #000 64%); mask-image: linear-gradient(180deg, transparent 52%, #000 64%); }
}
@media (max-width: 760px) {
	.nd-ho__eyebrow { font-size: .68rem; letter-spacing: .14em; gap: 9px; }
	.nd-ho__title { font-size: clamp(2.05rem, 9vw, 3rem); }
	.nd-ho__feats { gap: 12px 18px; }
	.nd-ho__feats li { text-align: left; }
	.nd-ho__cta { flex-direction: column; align-items: stretch; }
	.nd-ho__tag { font-size: .72rem; padding-right: 10px; }
	.nd-ho__tag span { font-size: 0; }
	.nd-ho__tag span b { font-size: .7rem; }
	.nd-ho__handle { width: 50px; height: 50px; }
}
