/* ==========================================================================
   Начална страница - сцена 1 на слайдера (тайдзи кръгът), общите анимации
   на сцените и лентата „партньор на Нова Ера“
   ========================================================================== */

.nd-hero__eyebrow::before { display: none; }
.nd-hero__yy { animation: ndSpin 24s linear infinite; }

/* --- херо ------------------------------------------------------------------ */
.nd-hero__bg {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(60% 70% at 12% 18%, rgba(233, 196, 120, .28), transparent 70%),
		radial-gradient(50% 60% at 92% 88%, rgba(110, 166, 144, .2), transparent 70%),
		linear-gradient(180deg, #f8f3e9 0%, var(--paper) 60%, #f1eadc 100%);
}
.nd-hero__bg::after {
	/* фина хартиена текстура */
	content: ""; position: absolute; inset: 0; opacity: .5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nd-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
	grid-template-areas: ". stage" "head stage" "body stage" ". stage";
	grid-template-rows: 1fr auto auto 1fr;
	column-gap: clamp(28px, 4.5vw, 84px);
	align-items: start;
}
.nd-hero__head { grid-area: head; }
.nd-hero__stage { grid-area: stage; }
.nd-hero__body { grid-area: body; }

.nd-hero__eyebrow { gap: 12px; margin-bottom: 26px; }
/* надписът над заглавието е част от h1 (ключовите думи), но изглежда като преди */
.nd-hero__title .nd-hero__eyebrow { display: flex; width: max-content; max-width: 100%; line-height: 1.4; letter-spacing: .2em; }

.nd-hero__title {
	margin: 0 0 26px;
	font-size: clamp(2.6rem, 4.75vw, 4.45rem);
	font-weight: 280; line-height: 1.02; letter-spacing: -.035em; color: var(--ink);
}
.nd-hero__line { display: block; }
.nd-hero__line--gold em {
	font-style: normal; font-weight: 330;
	background: var(--gold-grad); background-size: 220% 100%; background-position: 0 0;
	-webkit-background-clip: text; background-clip: text; color: transparent;
	padding-bottom: .08em; /* за опашките на „у“, „р“ */
	font-variation-settings: "SHRP" 0;
	animation: ndSheen 9s ease-in-out infinite alternate;
}

.nd-hero__lead { max-width: 30ch; margin: 0 0 14px; font-size: clamp(1.15rem, 1.45vw, 1.38rem); line-height: 1.5; color: var(--ink-2); font-weight: 360; }
.nd-hero__motto {
	display: flex; align-items: center; gap: 12px; margin: 0 0 34px;
	font-size: clamp(1.02rem, 1.2vw, 1.15rem); font-style: oblique 9deg; font-weight: 420; color: var(--gold-700);
}
.nd-hero__motto::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }

.nd-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* третата стъпка в бутоните на всяка сцена: „Безплатна консултация“ като връзка (бутонът е и в шапката) */
.nd-hero__link {
	display: inline-flex; align-items: center; justify-content: center; align-self: center; gap: 8px; padding: 10px 6px; font-weight: 560; color: var(--jade-700); text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 6px calc(100% - 8px) / calc(100% - 12px) 1px no-repeat; transition: color .25s;
}
.nd-hero__link .nd-i { font-size: 1.15rem; color: var(--gold-600); }
.nd-hero__link:hover { color: var(--gold-700); }
.nd-hero__link.is-dark { color: #f4dfa6; }
.nd-hero__link.is-dark .nd-i { color: var(--gold-300); }
.nd-hero__link.is-dark:hover { color: #fff; }
.nd-hero__link:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; border-radius: 8px; }

/* --- сцената с кръга -------------------------------------------------------- */
.nd-hero__stage {
	position: relative; width: 100%; max-width: 680px; aspect-ratio: 1; justify-self: center; align-self: center;
	margin-top: clamp(8px, 2vw, 24px);
	perspective: 1400px;
}
.nd-taiji {
	position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible;
	transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
	transition: transform .9s var(--ease);
}
/* сянката под кръга е отделен статичен слой (filter върху въртящото се SVG се преизчислява всеки кадър) */
.nd-hero__stage::before { content: ""; position: absolute; inset: 9.6%; z-index: 0; border-radius: 50%; box-shadow: 0 40px 60px rgba(19, 35, 28, .22); pointer-events: none; }
.nd-taiji__ring circle { stroke: var(--gold-600); stroke-opacity: .32; stroke-width: 1.2; }
.nd-taiji__ticks line { stroke: var(--gold-600); stroke-opacity: .45; stroke-width: 1.6; stroke-linecap: round; }
.nd-taiji__ticks line.is-major { stroke-opacity: .85; stroke-width: 2.6; }
.nd-taiji__text {
	fill: var(--gold-700); fill-opacity: .78; font-family: var(--font); font-size: 19px; font-weight: 560; letter-spacing: .28em;
	transform-box: fill-box; transform-origin: center; animation: ndSpin 220s linear infinite;
}
.nd-taiji__s { stroke-width: 3; stroke-linecap: round; }
.nd-taiji__s-glow { stroke-width: 12; stroke-linecap: round; opacity: .22; }
.nd-taiji__eye-ring { stroke-width: 2.2; }
.nd-taiji__edge { stroke-width: 2.4; }
.nd-taiji image { transition: opacity .8s var(--ease); }
.nd-taiji__shade { fill: #0a1712; opacity: 0; transition: opacity .8s var(--ease); pointer-events: none; }
.nd-hero__stage.is-yang .nd-taiji__shade--yin,
.nd-hero__stage.is-yin .nd-taiji__shade--yang { opacity: .42; }

.nd-hero__dust { position: absolute; inset: -9%; z-index: 2; width: 118%; height: 118%; pointer-events: none; }

/* продуктите - двойката Ян и Ин */
.nd-hero__prod {
	position: absolute; z-index: 3; bottom: 0; width: 33%; margin: 0;
	transform: translate3d(var(--px, 0), var(--py, 0), 0);
	transition: transform 1s var(--ease);
}
.nd-hero__prod--yang { left: -3%; }
.nd-hero__prod--yin { right: -3%; }
.nd-hero__prod::before {
	/* контактна сянка */
	content: ""; position: absolute; left: 8%; right: 8%; bottom: -3%; height: 12%; z-index: -1;
	background: radial-gradient(closest-side, rgba(19, 35, 28, .38), transparent); filter: blur(4px);
	transition: transform .7s var(--ease), opacity .7s;
}
.nd-hero__prod-link { display: block; transition: transform .7s var(--ease); }
.nd-hero__prod img { width: 100%; animation: ndFloat 7.5s ease-in-out infinite alternate; filter: drop-shadow(0 22px 26px rgba(19, 35, 28, .22)); }
.nd-hero__prod--yin img { animation-delay: -3.7s; }
.nd-hero__prod:hover .nd-hero__prod-link { transform: translateY(-12px) scale(1.025); }
.nd-hero__prod:hover::before { transform: scaleX(.85); opacity: .7; }

.nd-chip {
	position: absolute; top: -13%; display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px;
	background: rgba(255, 253, 248, .95);
	box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
	font-size: .9rem; line-height: 1.15; color: var(--ink); white-space: nowrap;
	transition: transform .6s var(--ease), box-shadow .6s;
}
.nd-chip--yang { left: -4%; }
.nd-chip--yin { right: -4%; }
.nd-chip small { display: block; margin-top: 2px; font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.nd-chip b { font-weight: 640; }
.nd-chip--yang b { color: var(--gold-700); }
.nd-chip--yin b { color: var(--jade-700); }
.nd-chip__sym { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 1.15rem; }
.nd-chip--yang .nd-chip__sym { background: var(--gold-grad) border-box; color: var(--jade-950); }
.nd-chip--yin .nd-chip__sym { background: var(--jade-800); color: var(--jade-300); }
.nd-hero__prod:hover .nd-chip { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }

/* офертата „Двойката на баланса“ */
.nd-pair {
	position: absolute; z-index: 4; bottom: -11%; left: 50%; translate: -50% 0; width: max-content;
	display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 12px; border-radius: 22px;
	background: rgba(255, 253, 248, .95);
	box-shadow: 0 0 0 1px var(--line), var(--shadow);
	color: var(--ink); line-height: 1.25;
	transition: transform .6s var(--ease), box-shadow .6s;
}
.nd-pair:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-2), 0 24px 50px -18px rgba(19, 35, 28, .35); }
.nd-pair__yy { --s: 46px; box-shadow: 0 0 0 3px #fffdf8, 0 0 0 4px rgba(147, 105, 31, .35); transition: transform 1.2s var(--ease); }
.nd-pair:hover .nd-pair__yy { transform: rotate(180deg); }
.nd-pair__txt { display: grid; gap: 1px; font-size: .86rem; color: var(--muted); white-space: nowrap; }
.nd-pair__txt small { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-700); }
.nd-pair__txt b { font-size: 1.04rem; font-weight: 560; color: var(--ink); }
.nd-pair__txt strong { color: var(--ink); font-weight: 640; }
.nd-pair__go { display: grid; place-items: center; width: 40px; height: 40px; margin-left: 4px; border-radius: 50%; background: var(--jade-800); color: var(--gold-300); font-size: 1.1rem; transition: transform .5s var(--ease); }
.nd-pair:hover .nd-pair__go { transform: translateX(3px); }

/* --- лентата „партньор на Нова Ера“ ----------------------------------------- */
.nd-partner { background: var(--paper-2); border-block: 1px solid var(--line); }
.nd-partner__in { display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; padding-block: 26px; flex-wrap: wrap; }
.nd-partner__lead { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 1rem; color: var(--muted); }
.nd-partner__name { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); font-size: .86rem; }
.nd-partner__dash { width: 26px; height: 1px; background: var(--gold-600); }
.nd-partner__lead img { width: 168px; height: auto; }
.nd-partner__facts { display: flex; flex-wrap: wrap; gap: 10px 34px; font-size: .9rem; color: var(--muted); }
.nd-partner__facts li { position: relative; padding-left: 16px; }
.nd-partner__facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
.nd-partner__facts b { color: var(--ink); font-weight: 600; }

/* --- анимации ---------------------------------------------------------------- */
/* ndSpin, ndFloat, ndSheen и появата [data-reveal] са в main.css */

/* поява при зареждане (само с JS и без prefers-reduced-motion) */
.nd-anim .nd-hero__line,
.nd-anim .nd-pair { opacity: 0; transform: translateY(22px); filter: blur(6px); }
.nd-anim .nd-taiji { opacity: 0; scale: .94; }
.nd-anim .nd-hero__prod { opacity: 0; }
.nd-anim .nd-hero__prod .nd-hero__prod-link { transform: translateY(46px); }
.nd-anim .nd-chip { opacity: 0; }

.nd-anim .nd-hero__line.is-in,
.nd-anim .nd-pair.is-in {
	opacity: 1; transform: none; filter: none;
	transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.nd-anim .nd-taiji.is-in { opacity: 1; scale: 1; transition: opacity 1.6s var(--ease), scale 2.2s var(--ease), transform .9s var(--ease); }
.nd-anim .nd-hero__prod.is-in { opacity: 1; transition: opacity 1.2s var(--ease), transform 1s var(--ease); }
.nd-anim .nd-hero__prod.is-in .nd-hero__prod-link { transform: none; transition: transform 1.4s var(--ease); }
.nd-anim .nd-hero__prod.is-in:hover .nd-hero__prod-link { transform: translateY(-12px) scale(1.025); transition-duration: .7s; }
.nd-anim .nd-hero__prod.is-in .nd-chip { opacity: 1; transition: opacity .9s var(--ease) .5s, transform .6s var(--ease), box-shadow .6s; }

/* --- отзивчивост ------------------------------------------------------------ */
@media (max-height: 820px) and (min-width: 1101px) {
	.nd-hero__title { font-size: clamp(2.3rem, 3.9vw, 3.7rem); margin-bottom: 18px; }
	.nd-hero__eyebrow { margin-bottom: 18px; }
	.nd-hero__motto { margin-bottom: 24px; }
	.nd-hero__stage { max-width: min(680px, calc((100svh - var(--topbar-h) - var(--bar-h) - var(--hs-ui) - 40px) * .92)); margin-top: 0; }
}
@media (max-width: 1240px) {
	.nd-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
	.nd-pair { right: -2%; }
}
@media (max-width: 1100px) {
	.nd-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "head" "stage" "body";
		grid-template-rows: auto;
	}
	.nd-hero__head { padding-top: 12px; text-align: center; }
	.nd-hero__eyebrow { justify-content: center; }
	.nd-hero__stage { max-width: 560px; margin: 26px auto 168px; }
	.nd-hero__body { text-align: center; }
	.nd-hero__lead { margin-inline: auto; }
	.nd-hero__motto { justify-content: center; }
	.nd-hero__motto::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
	.nd-hero__cta { justify-content: center; }
	.nd-pair { bottom: -17%; }
	.nd-partner__in { justify-content: center; text-align: center; }
	.nd-partner__facts { justify-content: center; }
}
@media (max-width: 760px) {
	.nd-hero__eyebrow { font-size: .7rem; letter-spacing: .14em; gap: 10px; }
	.nd-hero__title .nd-hero__eyebrow { display: block; width: auto; margin-inline: auto; text-align: center; }
	.nd-hero__title .nd-hero__eyebrow .nd-hero__yy { display: inline-block; vertical-align: -.35em; margin-right: 8px; }
	.nd-hero__title { font-size: clamp(2.05rem, 9.1vw, 3rem); margin-bottom: 0; }
	.nd-hero__stage { width: calc(100% - 26px); margin: 40px auto 112px; }
	.nd-hero__prod { width: 36%; bottom: 4%; }
	.nd-hero__prod--yang { left: -8%; }
	.nd-hero__prod--yin { right: -8%; }
	.nd-chip { top: -15%; padding: 4px 11px 4px 4px; font-size: .78rem; gap: 7px; }
	.nd-chip small { display: none; }
	.nd-chip__sym { width: 26px; height: 26px; font-size: .95rem; }
	.nd-chip--yang { left: 0; }
	.nd-chip--yin { right: 0; }
	.nd-pair { bottom: -19%; max-width: calc(100vw - 32px); padding: 10px; gap: 12px; }
	.nd-pair__txt { font-size: .8rem; }
	.nd-pair__txt b { font-size: .96rem; }
	.nd-pair__yy { --s: 38px; }
	.nd-hero__cta { flex-direction: column; align-items: stretch; }
	.nd-hero__cta .nd-btn { width: 100%; }
	.nd-partner__lead { flex-wrap: wrap; justify-content: center; }
	.nd-partner__facts { flex-direction: column; align-items: center; gap: 8px; }
}
