/* ==========================================================================
   Секция 3 - „Безплатна консултация“: тъмна нефритена секция + светла форма
   ========================================================================== */

.nd-consult {
	position: relative; isolation: isolate; overflow: clip; scroll-margin-top: 80px;
	padding: clamp(80px, 9vw, 140px) 0;
	color: #e9f0ec;
	background:
		radial-gradient(45% 55% at 100% 0%, rgba(201, 154, 62, .16), transparent 70%),
		radial-gradient(50% 60% at 0% 100%, rgba(61, 118, 96, .32), transparent 70%),
		linear-gradient(160deg, #10291f 0%, #0b1b15 70%);
}
.nd-consult__mark {
	position: absolute; right: -14%; top: 50%; z-index: -1; width: min(72vw, 940px); translate: 0 -50%;
	fill: none; stroke: #c99a3e; stroke-opacity: .13; stroke-width: 1.4; vector-effect: non-scaling-stroke; overflow: visible;
	animation: ndSpin 260s linear infinite;
}
.nd-consult__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 5vw, 96px); align-items: start; }

/* --- информацията --- */
.nd-consult__eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-300); }
.nd-consult__ei { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 1.05rem; color: var(--jade-950); background: var(--gold-grad) border-box; }
.nd-consult__title { margin: 0 0 22px; font-size: clamp(2.2rem, 4vw, 3.7rem); font-weight: 280; line-height: 1.05; letter-spacing: -.03em; color: #fbf6ea; }
.nd-consult__title em {
	display: block; font-style: normal; font-weight: 330;
	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-consult__lead { max-width: 56ch; margin: 0 0 34px; font-size: clamp(1.05rem, 1.25vw, 1.18rem); line-height: 1.62; color: #c9d6cf; }
.nd-consult__lead strong { font-weight: 560; color: #fbf6ea; }

.nd-consult__steps { position: relative; display: grid; gap: 22px; margin: 0 0 36px; padding: 0; list-style: none; }
.nd-consult__steps::before { content: ""; position: absolute; left: 25px; top: 30px; bottom: 30px; width: 1px; background: linear-gradient(180deg, rgba(230, 203, 140, .6), rgba(230, 203, 140, .1)); }
.nd-consult__steps li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; font-size: .98rem; line-height: 1.55; color: #c9d6cf; }
.nd-consult__steps strong { display: block; margin: 2px 0 3px; font-size: 1.1rem; font-weight: 560; color: #fbf6ea; }
.nd-consult__si { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem; color: var(--gold-300); background: #10291f; box-shadow: inset 0 0 0 1px rgba(230, 203, 140, .45); }
.nd-consult__si b { position: absolute; right: -4px; top: -4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .72rem; font-weight: 700; color: var(--jade-950); background: var(--gold-grad) border-box; }

.nd-consult__quote {
	display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; align-items: center; margin: 0 0 30px; padding: 20px 22px; border-radius: 22px;
	background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(230, 203, 140, .2);
}
.nd-consult__ava { grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-weight: 600; letter-spacing: .06em; color: var(--jade-950); background: var(--gold-grad) border-box; box-shadow: 0 0 0 3px #10291f, 0 0 0 4px rgba(230, 203, 140, .5); }
.nd-consult__quote blockquote { margin: 0; }
.nd-consult__quote p { margin: 0 0 6px; font-size: 1.08rem; font-style: oblique 8deg; line-height: 1.5; color: #fbf6ea; }
.nd-consult__quote figcaption { font-size: .84rem; color: #a9bbb2; }
.nd-consult__quote figcaption b { margin-right: 6px; font-weight: 600; color: var(--gold-300); }

.nd-consult__direct { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.nd-consult__direct a {
	display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px; color: #fbf6ea; text-decoration: none; line-height: 1.2;
	background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(230, 203, 140, .3);
	transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.nd-consult__direct a:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.nd-consult__direct small { display: block; font-size: .72rem; color: #a9bbb2; }
.nd-consult__phone { font-size: 1.15rem; font-weight: 600; }
.nd-consult__phone .nd-consult__di { color: var(--jade-950); background: var(--gold-grad) border-box; }
.nd-consult__di { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; color: var(--gold-300); background: rgba(255, 255, 255, .08); }
.nd-consult__hours { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .9rem; color: #a9bbb2; }
.nd-consult__hours .nd-i { font-size: 1.1rem; color: var(--gold-300); }

/* карта към безплатния тест (под каналите) */
.nd-test-promo {
	display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 26px; padding: 16px 18px; border-radius: 22px;
	color: #fbf6ea; text-decoration: none; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(230, 203, 140, .35);
	transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.nd-test-promo:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(230, 203, 140, .7); transform: translateY(-2px); }
.nd-test-promo__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; color: var(--jade-950); background: var(--gold-grad) border-box; }
.nd-test-promo__txt { display: grid; gap: 2px; line-height: 1.3; }
.nd-test-promo__txt small { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); }
.nd-test-promo__txt b { font-size: 1.12rem; font-weight: 520; }
.nd-test-promo__txt span { font-size: .9rem; color: #c3d1c9; }
.nd-test-promo__go { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--gold-300); box-shadow: inset 0 0 0 1px rgba(230, 203, 140, .45); transition: transform .4s var(--ease); }
.nd-test-promo:hover .nd-test-promo__go { transform: translateX(4px); }

/* --- формата --- */
.nd-consult__card {
	position: relative; padding: clamp(28px, 3.4vw, 44px); border-radius: clamp(24px, 3vw, 34px); color: var(--ink);
	background: linear-gradient(180deg, #fffdf8, #f8f2e6);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(230, 203, 140, .35);
}
.nd-form__title { margin: 0 0 8px; font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 340; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.nd-form__title em { font-style: normal; color: var(--gold-700); }
.nd-form__sub { margin: 0 0 24px; font-size: .92rem; color: var(--muted); }
.nd-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nd-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.nd-field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.nd-field label, .nd-field legend { display: block; margin-bottom: 8px; font-size: .95rem; font-weight: 560; color: var(--ink); }
.nd-field__opt { font-weight: 400; color: var(--muted); }
.nd-field input[type="text"], .nd-field input[type="tel"], .nd-field input[type="email"], .nd-field textarea {
	display: block; width: 100%; padding: 15px 18px; border: 1px solid rgba(19, 35, 28, .18); border-radius: 14px;
	background: #fff; color: var(--ink); font: inherit; font-size: 1.05rem; line-height: 1.4;
	transition: border-color .25s, box-shadow .25s;
}
.nd-field textarea { resize: vertical; min-height: 96px; }
.nd-field input::placeholder, .nd-field textarea::placeholder { color: #9aa49e; }
.nd-field input:focus, .nd-field textarea:focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 4px rgba(201, 154, 62, .2); }
.nd-field.is-invalid input, .nd-field.is-invalid textarea { border-color: #b4473a; box-shadow: 0 0 0 3px rgba(180, 71, 58, .14); }
.nd-field__err { display: block; min-height: 0; margin-top: 6px; font-size: .86rem; color: #a33c30; }
.nd-field__err:empty { display: none; }

.nd-field--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-field--chips legend { width: 100%; }
.nd-chipbox { position: relative; cursor: pointer; margin: 0 !important; }
.nd-chipbox input { position: absolute; opacity: 0; pointer-events: none; }
.nd-chipbox span {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border-radius: 999px; font-size: .98rem; font-weight: 500;
	background: #fff; box-shadow: inset 0 0 0 1px rgba(19, 35, 28, .16); transition: background-color .25s, color .25s, box-shadow .25s;
}
.nd-chipbox span .nd-i { font-size: 1.1rem; color: var(--gold-700); transition: color .25s; }
.nd-chipbox input:checked + span { background: var(--jade-800); color: #fbf6ea; box-shadow: none; }
.nd-chipbox input:checked + span .nd-i { color: var(--gold-300); }
.nd-chipbox input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 2px; }

.nd-check { display: grid !important; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-weight: 400 !important; font-size: .9rem !important; line-height: 1.5; color: var(--ink-2) !important; cursor: pointer; }
.nd-check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border: 1px solid rgba(19, 35, 28, .3); border-radius: 7px; background: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.nd-check input:checked { background: var(--jade-800); border-color: var(--jade-800); }
.nd-check input:checked::after { content: ""; width: 6px; height: 11px; margin-top: -2px; border: solid var(--gold-300); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.nd-check input:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.nd-check a { color: var(--jade-700); }
.nd-field--check.is-invalid .nd-check input { border-color: #b4473a; }

.nd-form__send { width: 100%; justify-content: space-between; gap: 14px; margin-top: 6px; white-space: normal; text-align: left; }
.nd-form__send > span:first-child { flex: 1 1 auto; min-width: 0; }
.nd-form__send .nd-btn__disc { flex: none; }
.nd-form__send[disabled] { opacity: .7; cursor: progress; }
.nd-form__status { margin: 14px 0 0; font-size: .92rem; color: var(--jade-700); }
.nd-form__status:empty { display: none; }
.nd-form__status.is-error { color: #a33c30; }

.nd-form__done { display: grid; justify-items: center; gap: 14px; padding: 40px 10px; text-align: center; }
.nd-form__done[hidden] { display: none; }
.nd-form__done .nd-pair__yy { --s: 74px; animation: ndSpin 6s var(--ease) 1; }
.nd-form__done-t { margin: 0; font-size: 1.35rem; font-weight: 400; line-height: 1.4; color: var(--ink); outline: none; }
.nd-form__done-s { margin: 0; color: var(--muted); }
.nd-form__done-s a { color: var(--jade-700); font-weight: 600; }

/* --- отзивчивост --- */
@media (max-width: 1024px) {
	.nd-consult__grid { grid-template-columns: minmax(0, 1fr); }
	.nd-consult__card { max-width: 680px; }
}
@media (max-width: 760px) {
	.nd-consult__mark { right: -40%; width: 120vw; }
	.nd-form__row { grid-template-columns: 1fr; }
	.nd-consult__direct li { flex: 1 1 100%; }
	.nd-consult__direct a { width: 100%; }
	.nd-consult__title { font-size: clamp(2rem, 8.6vw, 2.8rem); }
}
@media (prefers-reduced-motion: reduce) {
	.nd-consult__mark, .nd-form__done .nd-pair__yy { animation: none; }
}
