/* N-Enterprise niche pages: the few blocks added on top of each catalog's own design (24 Oct 2026, SEO phase 1).
   Each page keeps its own catalog.css; this file only maps that page's colours and fonts (html[data-nx-page]) onto
   --nx-* and styles: breadcrumbs, the N-Enterprise logo in the header, text blocks, «входит / не входит», «кто мы», FAQ. */

html[data-nx-page="beauty"] { --nx-ink: var(--ink); --nx-muted: var(--muted); --nx-line: var(--line); --nx-accent: var(--accent);
  --nx-surface: var(--surface); --nx-head: var(--display); --nx-body: var(--body); --nx-radius: 18px; }
html[data-nx-page="atelier"] { --nx-ink: var(--ink); --nx-muted: var(--muted); --nx-line: var(--rule); --nx-accent: var(--blue);
  --nx-surface: var(--sheet); --nx-head: var(--serif); --nx-body: var(--sans); --nx-radius: 4px; }
html[data-nx-page="lawyer"] { --nx-ink: var(--ink); --nx-muted: var(--muted); --nx-line: var(--rule); --nx-accent: var(--accent);
  --nx-surface: var(--sheet); --nx-head: var(--serif); --nx-body: var(--sans); --nx-radius: 6px; }
html[data-nx-page="accounting"] { --nx-ink: var(--ink); --nx-muted: var(--muted); --nx-line: var(--line); --nx-accent: var(--ink);
  --nx-surface: var(--surface); --nx-head: var(--f-display); --nx-body: var(--f-body); --nx-radius: var(--r-m); }

/* ---- breadcrumbs inside the thin N-Enterprise bar at the very top ---- */
.nx-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.nx-crumbs li { display: inline-flex; align-items: center; }
.nx-crumbs li + li::before { content: "›"; margin: 0 .55em; opacity: .55; }
.nx-crumbs a { color: inherit; }
.nx-crumbs [aria-current="page"] { opacity: .78; }
.nx-crumbs .studio-bar__link::after { content: none; }   /* the catalogs mark this link as external; here it is our home page */

/* ---- the official logo file (brand/logo), never redrawn ---- */
.nx-logo { display: block; height: 22px; width: auto; min-width: 96px; }
.nx-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.nx-brand__sub { font-size: 13px; line-height: 1.2; color: var(--nx-muted); white-space: nowrap; }
@media (max-width: 420px) { .nx-brand__sub { display: none; } }

/* ---- text blocks ---- */
.nx-prose { max-width: 74ch; color: var(--nx-ink); font-family: var(--nx-body); }
.nx-prose > * + * { margin-top: 1em; }
.nx-prose > :first-child { margin-top: 0; }
.nx-prose h3 { margin: 1.6em 0 0; font-family: var(--nx-head); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.25; }
.nx-prose p, .nx-prose li { font-size: 17px; line-height: 1.65; }
.nx-prose ul { padding-left: 1.2em; }
.nx-prose li + li { margin-top: .35em; }
.nx-prose strong { font-weight: 600; }
.nx-two { display: grid; gap: 28px 48px; }
@media (min-width: 900px) { .nx-two { grid-template-columns: 1fr 1fr; } .nx-two .nx-prose { max-width: none; } }

.nx-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 28px; }
.nx-card { padding: 22px 22px 24px; border: 1px solid var(--nx-line); border-radius: var(--nx-radius); background: var(--nx-surface); color: var(--nx-ink); }
.nx-card h3 { margin: 0 0 10px; font-family: var(--nx-head); font-size: 19px; line-height: 1.3; }
.nx-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--nx-muted); }
.nx-card p + p { margin-top: .6em; }

.nx-list { margin: 0; padding: 0; list-style: none; }
.nx-list li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.55; }
.nx-list li + li { margin-top: 10px; }
.nx-list li::before { position: absolute; left: 0; top: .05em; width: 18px; text-align: center; font-weight: 700; }
.nx-list--yes li::before { content: "✓"; color: var(--nx-accent); }
.nx-list--no li::before { content: "—"; color: var(--nx-muted); }
.nx-card--muted { background: transparent; }

/* ---- who we are ---- */
.nx-about { display: grid; gap: 24px; margin-top: 28px; }
@media (min-width: 900px) { .nx-about { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.nx-facts { margin: 0; display: grid; gap: 14px; }
.nx-facts div { padding-bottom: 14px; border-bottom: 1px solid var(--nx-line); }
.nx-facts dt { font-size: 13px; letter-spacing: .02em; color: var(--nx-muted); }
.nx-facts dd { margin: 4px 0 0; font-size: 16px; line-height: 1.5; color: var(--nx-ink); }
.nx-facts a { color: inherit; }

/* ---- FAQ ---- */
.nx-faq { margin-top: 28px; border-top: 1px solid var(--nx-line); max-width: 880px; }
.nx-faq details { border-bottom: 1px solid var(--nx-line); }
.nx-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none;
  font-family: var(--nx-head); font-size: 18px; line-height: 1.35; color: var(--nx-ink); }
.nx-faq summary::-webkit-details-marker { display: none; }
.nx-faq summary::after { content: "+"; flex: none; font-family: var(--nx-body); font-size: 22px; line-height: 1; transition: transform .2s; }
.nx-faq details[open] summary::after { transform: rotate(45deg); }
.nx-faq summary:focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 4px; }
.nx-faq .nx-faq__a { padding: 0 0 20px; max-width: 74ch; font-size: 16px; line-height: 1.65; color: var(--nx-muted); }
.nx-faq .nx-faq__a p { margin: 0; }
.nx-faq .nx-faq__a p + p { margin-top: .6em; }

.nx-note { margin-top: 18px; font-size: 14px; line-height: 1.55; color: var(--nx-muted); }

/* ---- AI administrator page: example dialog ---- */
.nx-chat { max-width: 440px; padding: 18px; border: 1px solid var(--nx-line); border-radius: 22px; background: var(--nx-surface); }
.nx-chat__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--nx-line); font-size: 14px; color: var(--nx-muted); }
.nx-chat__head b { color: var(--nx-ink); font-weight: 600; }
.nx-chat__msg { width: fit-content; max-width: 86%; margin: 0 0 10px; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.nx-chat__msg--in { background: var(--surface-2, rgba(0,0,0,.06)); color: var(--nx-ink); border-bottom-left-radius: 4px; }
.nx-chat__msg--out { margin-left: auto; background: var(--nx-accent); color: var(--accent-ink, #fff); border-bottom-right-radius: 4px; }
.nx-chat__sys { margin: 4px 0 12px; font-size: 13px; text-align: center; color: var(--nx-muted); }

/* ---- numbered steps: contract, acceptance, payment ---- */
.nx-steps { counter-reset: nxs; list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; max-width: 900px; }
.nx-steps li { counter-increment: nxs; position: relative; padding: 0 0 16px 54px; border-bottom: 1px solid var(--nx-line);
  font-size: 16px; line-height: 1.6; color: var(--nx-muted); }
.nx-steps li::before { content: counter(nxs); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--nx-line); display: grid; place-items: center; font-family: var(--nx-head); font-size: 15px; color: var(--nx-ink); }
.nx-steps b { display: block; margin-bottom: 2px; font-family: var(--nx-head); font-size: 18px; font-weight: 600; color: var(--nx-ink); }
/* first-screen note under the free-demo button (2 Nov 2026) */
.nx-hero-note { margin: 12px 0 0; font-size: 13px; line-height: 1.45; opacity: .72; max-width: 36em; }
