/* ==========================================================================
   NaturDar - основни стилове (токени, типография, бутони, шапка, футър)
   Концепция: Ин и Ян. Ян = злато, слънце, бор. Ин = нефрит, луна, бамбук.
   Основата е светла „оризова хартия“, текстът е тъмно мастилено-зелен.
   ========================================================================== */

:root {
	/* хартия и мастило */
	--paper: #f6f1e7;
	--paper-2: #efe7d7;
	--paper-3: #e6dcc8;
	--card: #fffdf8;
	--ink: #13231c;
	--ink-2: #26372f;
	--muted: #56645b;
	--line: rgba(19, 35, 28, .12);
	--line-2: rgba(19, 35, 28, .2);

	/* Ин - нефрит и бамбук */
	--jade-950: #0b1a15;
	--jade-900: #10251e;
	--jade-800: #173328;
	--jade-700: #1f4537;
	--jade-500: #3d7660;
	--jade-300: #9cc6b6;
	--bamboo: #779253;

	/* Ян - злато и прашец */
	--gold-800: #7a5718;
	--gold-700: #93691f;
	--gold-600: #ad8130;
	--gold-500: #c79a43;
	--gold-300: #e6cb8c;
	--gold-100: #f6ead0;
	--gold-grad: linear-gradient(100deg, #8f651d 0%, #c2913a 30%, #e9cd86 52%, #b98731 76%, #8f651d 100%);

	/* типография */
	--font: 'Geologica', 'Geologica Fallback', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--font-head: 'Geologica', 'Geologica Fallback Head', 'Segoe UI', system-ui, -apple-system, sans-serif; /* заглавията са тънки (280-340) - резервният е по-тесен */
	--fs-body: 1.0625rem; /* 17px - за читателка 50+ не слизаме под това */
	--lh-body: 1.68;

	/* разстояния и форма */
	--wrap: 1320px;
	--gut: clamp(20px, 4vw, 48px);
	--r-sm: 12px;
	--r: 20px;
	--r-lg: 32px;
	--shadow-sm: 0 1px 2px rgba(19, 35, 28, .06), 0 4px 14px rgba(19, 35, 28, .06);
	--shadow: 0 2px 6px rgba(19, 35, 28, .06), 0 18px 48px -12px rgba(19, 35, 28, .18);
	--ease: cubic-bezier(.22, .8, .24, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);

	--topbar-h: 40px;
	--bar-h: 84px;
}

/* --- основа --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink-2);
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	font-weight: 380;
	font-variation-settings: "SHRP" 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); font-weight: 340; line-height: 1.1; letter-spacing: -.015em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold-300); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 3px; border-radius: 6px; }

.nd-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.nd-i { width: 1em; height: 1em; flex: none; max-width: none; }
.screen-reader-text, .nd-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;
}
.nd-skip {
	position: fixed; left: 16px; top: 12px; z-index: 200; padding: 10px 16px; border-radius: 999px; translate: 0 -200%;
	background: var(--jade-900); color: #fff; transition: translate .2s;
}
.nd-skip:focus { translate: 0 0; }

/* малко надзаглавие с черта отпред */
.nd-eyebrow {
	display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
	font-size: .78rem; font-weight: 560; letter-spacing: .2em; text-transform: uppercase;
	color: var(--gold-700);
}
.nd-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }

/* малкият знак Ин-Ян от CSS (злато = Ян, нефрит = Ин) */
.nd-hero__yy,
.nd-pair__yy {
	--s: 18px;
	--a: var(--gold-500);
	--b: var(--jade-800);
	position: relative; display: inline-block; flex: none; width: var(--s); height: var(--s); border-radius: 50%;
	background:
		radial-gradient(circle at 50% 25%, var(--b) 0 calc(var(--s) * .09), var(--a) calc(var(--s) * .1) calc(var(--s) * .25), transparent calc(var(--s) * .255)),
		radial-gradient(circle at 50% 75%, var(--a) 0 calc(var(--s) * .09), var(--b) calc(var(--s) * .1) calc(var(--s) * .25), transparent calc(var(--s) * .255)),
		linear-gradient(90deg, var(--a) 50%, var(--b) 50%);
	box-shadow: 0 0 0 1px rgba(147, 105, 31, .35);
}
@keyframes ndSpin { to { transform: rotate(360deg); } }

/* --- бутони ---------------------------------------------------------------
   Пил-форма; стрелката е в собствен диск в края. Без видими ръбове по
   златото: преливката покрива и рамката (background-origin: border-box). */
.nd-btn {
	--h: 50px;
	position: relative; isolation: isolate;
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: var(--h); padding: 0 24px; border: 1px solid transparent; border-radius: 999px;
	font-size: .97rem; font-weight: 520; letter-spacing: .005em; line-height: 1.1; white-space: nowrap;
	transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.nd-btn--lg { --h: 58px; padding-inline: 30px; font-size: 1.02rem; }
.nd-btn:has(.nd-btn__disc) { padding-right: 7px; }
.nd-btn__disc {
	display: grid; place-items: center; width: calc(var(--h) - 14px); height: calc(var(--h) - 14px); border-radius: 50%;
	font-size: 1.1rem; transition: transform .45s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
}
.nd-btn:hover .nd-btn__disc { transform: translateX(3px); }
.nd-btn__glyph { display: grid; place-items: center; font-size: 1.25rem; margin-left: -4px; }

.nd-btn--jade { background: var(--jade-800); color: #fbf7ee; box-shadow: 0 10px 24px -12px rgba(16, 37, 30, .7); }
.nd-btn--jade .nd-btn__disc { background: var(--gold-grad); background-origin: border-box; color: var(--jade-950); }
.nd-btn--jade .nd-btn__glyph { color: var(--gold-300); }
.nd-btn--jade:hover { background: var(--jade-700); box-shadow: 0 16px 34px -14px rgba(16, 37, 30, .75); }

.nd-btn--line { border-color: var(--line-2); color: var(--ink); background: rgba(255, 253, 248, .55); backdrop-filter: blur(6px); }
.nd-btn--line .nd-btn__glyph { color: var(--gold-600); }
.nd-btn--line:hover { border-color: var(--ink); background: var(--card); }

.nd-btn--gold { background: var(--gold-grad) border-box; background-size: 180% 100%; background-position: 0 0; color: var(--jade-950); box-shadow: 0 12px 28px -14px rgba(122, 87, 24, .8); }
.nd-btn--gold:hover { background-position: 100% 0; }
.nd-btn--gold .nd-btn__disc { background: var(--jade-900); color: var(--gold-300); }

/* светъл контур - върху тъмни снимки и сцени */
.nd-btn--ghost { border-color: rgba(251, 246, 234, .42); color: #fbf6ea; background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nd-btn--ghost .nd-btn__glyph { color: var(--gold-300); }
.nd-btn--ghost:hover { border-color: rgba(251, 246, 234, .8); background: rgba(255, 255, 255, .14); }

/* --- горна лента ---------------------------------------------------------- */
/* Шапката е фиксирана: свиването ѝ не мести съдържанието (иначе браузърът
   компенсира скрола и тя трепти). Мястото ѝ пази .nd-header-space. */
.nd-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: top .45s var(--ease); }
.nd-header.is-stuck { top: calc(var(--topbar-h) * -1); }
.nd-header-space { height: calc(var(--topbar-h) + var(--bar-h)); }
html { scroll-padding-top: 90px; }
.nd-topbar {
	height: var(--topbar-h); background: var(--jade-900); color: #d9e2da;
	font-size: .84rem; letter-spacing: .01em;
}
.nd-topbar__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nd-topbar__note { margin: 0; display: inline-flex; align-items: center; gap: 10px; color: #eef1e9; }
.nd-topbar__note .nd-i { font-size: 1.15rem; color: var(--gold-300); }
.nd-topbar__short { display: none; }
.nd-topbar__links { display: flex; align-items: center; gap: 22px; }
.nd-topbar__links a { display: inline-flex; align-items: center; gap: 8px; transition: color .25s; }
.nd-topbar__links a:hover { color: var(--gold-300); }
.nd-topbar__links .nd-i { font-size: 1.05rem; color: var(--gold-300); }
.nd-topbar__hours { color: #9fb2a6; }
.nd-topbar__partner { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .14); }
.nd-topbar__partner a { gap: 10px; color: #b9c7bd; }
.nd-topbar__partner img { width: 98px; height: auto; }

/* --- лента с логото и менюто --------------------------------------------- */
.nd-bar {
	position: relative;
	background: rgba(246, 241, 231, .86);
	backdrop-filter: saturate(1.2) blur(14px);
	-webkit-backdrop-filter: saturate(1.2) blur(14px);
	border-bottom: 1px solid transparent;
	transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.nd-header.is-stuck .nd-bar { background: rgba(250, 247, 240, .9); border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(19, 35, 28, .5); }
.nd-bar__in { height: var(--bar-h); display: flex; align-items: center; gap: clamp(16px, 2.2vw, 40px); transition: height .4s var(--ease); }
.nd-header.is-stuck .nd-bar__in { height: 70px; }

.nd-brand { display: flex; align-items: center; gap: 16px; flex: none; }
.nd-brand__logo { width: 120px; height: auto; transition: width .4s var(--ease); }
.nd-header.is-stuck .nd-brand__logo { width: 104px; }
.nd-brand__tag {
	padding-left: 16px; border-left: 1px solid var(--line-2);
	font-size: .66rem; line-height: 1.45; letter-spacing: .16em; text-transform: uppercase; font-weight: 520; color: var(--muted);
}

.nd-nav { margin-left: auto; }
.nd-nav__list { display: flex; align-items: center; gap: 2px; }
.nd-nav__list > li > a {
	position: relative; display: block; padding: 10px 13px; border-radius: 999px;
	font-size: .95rem; font-weight: 440; color: var(--ink); white-space: nowrap;
	transition: color .25s, background-color .25s;
}
.nd-nav__list > li > a::after {
	content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 1px;
	background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nd-nav__list > li > a:hover::after,
.nd-nav__list > li.is-current > a::after { transform: scaleX(1); }
.nd-nav__list > li.is-current > a { font-weight: 560; }

.nd-tools { display: flex; align-items: center; gap: 4px; }
.nd-tool {
	position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: transparent; font-size: 1.35rem; color: var(--ink); transition: background-color .25s;
}
.nd-tool:hover { background: rgba(19, 35, 28, .06); }
.nd-tool__count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
	background: var(--gold-grad) border-box; color: var(--jade-950); font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center;
}
.nd-cta { margin-left: 10px; }

.nd-burger { display: none; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--jade-800); color: #f6f1e7; font-size: 1.4rem; transition: background-color .3s; }
.nd-burger:hover { background: var(--jade-700); }

/* търсене */
.nd-search { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.nd-search[hidden] { display: none; }
.nd-search__in { display: flex; align-items: center; gap: 14px; height: 84px; }
.nd-search__in > .nd-i { font-size: 1.5rem; color: var(--gold-600); }
.nd-search input[type="search"] {
	flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; font: inherit; font-size: 1.15rem; color: var(--ink); outline: none;
}
.nd-search__close { border: 0; background: none; font-size: 1.5rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.nd-search__close:hover { background: rgba(19, 35, 28, .06); }

/* --- мобилно меню (чекмедже) ---------------------------------------------- */
.nd-drawer { position: fixed; inset: 0; z-index: 120; }
.nd-drawer[hidden] { display: none; }
.nd-drawer__veil { position: absolute; inset: 0; background: rgba(11, 26, 21, .5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s; }
.nd-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); overflow-y: auto; overscroll-behavior: contain;
	display: flex; flex-direction: column; gap: 22px; padding: 18px 26px 32px;
	background: var(--paper); transform: translateX(100%); transition: transform .5s var(--ease);
}
.nd-drawer.is-open .nd-drawer__veil { opacity: 1; }
.nd-drawer.is-open .nd-drawer__panel { transform: none; }
.nd-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.nd-drawer__head img { width: 104px; }
.nd-drawer__x { width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(19, 35, 28, .06); display: grid; place-items: center; font-size: 1.4rem; }
.nd-drawer__nav > li { border-bottom: 1px solid var(--line); }
.nd-drawer__nav > li > a { display: flex; justify-content: space-between; padding: 15px 2px; font-size: 1.22rem; font-weight: 380; color: var(--ink); }
.nd-drawer__nav > li.is-current > a, .nd-drawer__nav > li.is-current > .nd-acc__btn { color: var(--gold-700); }
.nd-drawer__nav .sub-menu { padding: 0 0 12px 12px; }
.nd-drawer__nav .sub-menu a { display: block; padding: 6px 0; color: var(--muted); }
.nd-drawer__cta { width: 100%; }
.nd-drawer__contacts { display: grid; gap: 10px; font-size: 1.02rem; }
.nd-drawer__contacts a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.nd-drawer__contacts .nd-i { color: var(--gold-600); font-size: 1.2rem; }
.nd-drawer__contacts p { margin: 0; color: var(--muted); font-size: .92rem; }
.nd-drawer__partner { margin: auto 0 0; display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--muted); }
.nd-drawer__partner img { width: 114px; }
html.nd-lock, html.nd-lock body { overflow: hidden; }

/* --- футър (временен) ------------------------------------------------------ */

/* общ шаблон */
.nd-page { padding-block: 80px 120px; min-height: 50vh; }

/* --- пътечка (всички вътрешни страници) --- */
.nd-crumbs { padding: clamp(18px, 2.4vw, 28px) 0 0; font-size: .86rem; color: var(--muted); }
.nd-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.nd-crumbs li { display: inline-flex; align-items: center; }
.nd-crumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 10px; border: solid var(--gold-600); border-width: 1px 1px 0 0; transform: rotate(45deg); opacity: .7; }
.nd-crumbs a { color: var(--ink-2); text-decoration: none; }
.nd-crumbs a:hover { color: var(--jade-700); text-decoration: underline; }
.nd-crumbs [aria-current] { color: var(--muted); }

/* --- текст (описания на продукти, статии, текстови страници) --- */
.nd-prose { max-width: 72ch; font-size: 1.04rem; line-height: 1.75; color: var(--ink-2); }
.nd-prose > :first-child { margin-top: 0; }
.nd-prose p { margin: 0 0 1.05em; }
.nd-prose h2 { margin: 1.8em 0 .6em; font-size: 1.42rem; font-weight: 460; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.nd-prose h3 { margin: 1.5em 0 .5em; font-size: 1.16rem; font-weight: 560; line-height: 1.3; color: var(--ink); }
.nd-prose strong { font-weight: 600; color: var(--ink); }
.nd-prose ul, .nd-prose ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.nd-prose li { position: relative; margin: 0 0 .45em; padding-left: 26px; }
.nd-prose ul li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-grad); }
.nd-prose ol { counter-reset: nd; }
.nd-prose ol li { counter-increment: nd; }
.nd-prose ol li::before { content: counter(nd) "."; position: absolute; left: 0; font-weight: 640; color: var(--gold-700); }
.nd-prose a { color: var(--jade-700); text-decoration: underline; text-underline-offset: 3px; }

.nd-prose h2, .nd-prose h3 { scroll-margin-top: 96px; }
.nd-prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold-500); font-style: oblique 6deg; color: var(--ink); }
.nd-prose figure, .nd-prose .nd-figure { margin: 1.6em 0; }
.nd-prose figure img { width: 100%; height: auto; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.nd-prose figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); text-align: center; }
.nd-prose table { width: 100%; margin: 0 0 1.4em; border-collapse: collapse; font-size: .95rem; }
.nd-prose th, .nd-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.nd-prose th { font-weight: 600; color: var(--ink); background: rgba(173, 129, 48, .06); }

/* --- поява при скрол (main.js слага .is-in; само с JS и без prefers-reduced-motion) --- */
@keyframes ndSheen { from { background-position: 0 0; } to { background-position: 100% 0; } }
@keyframes ndFloat { from { transform: translateY(0); } to { transform: translateY(-9px); } }
.nd-anim [data-reveal] { opacity: 0; transform: translateY(22px); filter: blur(6px); }
.nd-anim .is-in[data-reveal] {
	opacity: 1; transform: none; filter: none;
	transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}

.nd-cta__short { display: none; }

/* --- отзивчивост на шапката ----------------------------------------------- */
/* Стегнатият вид важи за всички десктопи: шапката е в ширината на сайта (1320 px), а с подзаглавието,
   иконата за профила и по-широките отстояния не се събира - бутонът „Безплатна консултация“ излизаше вдясно над 1580 px. */
.nd-brand__tag { display: none; }
.nd-bar__in { gap: 14px; }
.nd-brand__logo { width: 108px; }
.nd-nav__list > li > a { padding-inline: 8px; font-size: .92rem; }
.nd-nav__list > li > a::after { left: 8px; right: 8px; }
.nd-cta { margin-left: 4px; padding-inline: 18px 20px; }
.nd-tool--account { display: none; }
@media (max-width: 1400px) {
	.nd-btn--lg { padding-inline: 24px; gap: 10px; }
	.nd-cta { padding-inline: 18px 20px; }
	.nd-cta__long { display: none; }
	.nd-cta__short { display: inline; }
}
@media (max-width: 1240px) {
	.nd-topbar__hours { display: none; }
	.nd-nav, .nd-cta { display: none; }
	.nd-burger { display: grid; margin-left: 6px; }
	.nd-tools { margin-left: auto; }
	.nd-brand__tag { display: block; }
}
@media (max-width: 760px) {
	:root { --topbar-h: 36px; --bar-h: 68px; }
	.nd-topbar { font-size: .78rem; white-space: nowrap; }
	.nd-topbar__in { gap: 12px; }
	.nd-topbar__links li:not(:first-child) { display: none; }
	.nd-topbar__note .nd-i { display: none; }
	.nd-topbar__long { display: none; }
	.nd-topbar__short { display: inline; }
	.nd-brand__tag { display: none; }
	.nd-brand__logo { width: 96px; }
	.nd-header.is-stuck .nd-brand__logo { width: 88px; }
	.nd-header.is-stuck .nd-bar__in { height: 62px; }
	.nd-tool--account { display: none; }
	.nd-search__in { height: 70px; }
	.nd-search .nd-btn { display: none; }
}
@media (max-width: 420px) {
	.nd-topbar__note span { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
