/* Мостехэкспертиза — основная таблица стилей.
   Инженерная подача: графит, тёплый светлый фон, терракотовый акцент, Golos Text.
   Технические имена классов ns-* сохранены из исходной темы next-sert. */

@font-face {
	font-family: "Golos Text";
	src: url("../fonts/golos-text-cyrillic.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Golos Text";
	src: url("../fonts/golos-text-latin.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	/* Цвет */
	--ink: #242A2E;          /* основной текст, тёмные секции */
	--ink-2: #1B2023;        /* подвал */
	--bg: #F5F1E9;           /* основной светлый фон */
	--bg-2: #EDE7DC;         /* альтернативные секции */
	--surface: #FFFFFF;      /* карточки и формы */
	--accent: #B64D2E;       /* основная кнопка, акцент */
	--accent-h: #963B23;     /* hover, ссылки */
	--accent-l: #F6E6DF;     /* мягкая подложка акцента */
	--muted: #62676B;        /* вторичный текст */
	--line: #DCD5C9;         /* декоративные линии */
	--field: #8A8173;        /* значимые границы полей */
	--on-dark: #EEE9E0;      /* текст на графите */
	--on-dark-muted: #B9B3A8;
	--note-bg: #FBF4E6;
	--note-line: #D9BF8C;
	--err: #A3261B;
	--err-bg: #FCEDEA;
	--ok: #2F6B3A;
	--ok-bg: #EAF3EA;
	--focus: #242A2E;
	/* Форма */
	--r: 4px;
	--r-lg: 6px;
	/* Шкала отступов: 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 */
	--s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
	--container: 1240px;
	--prose: 740px;
	--gap: clamp(16px, 2.6vw, 32px);
	--sec: clamp(56px, 8vw, 104px);
	--font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.62;
	color: var(--ink);
	background: var(--bg);
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
	font-feature-settings: "kern" 1;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--accent-h); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 700; margin: 0 0 .55em; letter-spacing: -.018em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.25rem + 3.1vw, 3.5rem); font-weight: 800; letter-spacing: -.028em; line-height: 1.06; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.35rem); }
h3 { font-size: clamp(1.12rem, 1.02rem + .45vw, 1.35rem); letter-spacing: -.01em; line-height: 1.3; }
p, ul, ol, dl, table, figure { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.ns-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.ns-skip:focus { top: 12px; color: #fff; outline-color: var(--accent); }
.ns-main:focus { outline: none; }
.ns-muted { color: var(--muted); }
.ns-break { word-break: break-all; }

.ns-container { width: 100%; max-width: calc(var(--container) + 2 * var(--gap)); margin: 0 auto; padding: 0 var(--gap); }
.ns-narrow { max-width: calc(var(--prose) + 2 * var(--gap)); }
.ns-section { padding: var(--sec) 0; }
.ns-section--tight { padding-top: var(--s6); padding-bottom: var(--s7); }
.ns-section--alt { background: var(--bg-2); }
.ns-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: var(--s4); }
.ns-eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--accent); }
.ns-meta { color: var(--muted); font-size: .92rem; }

/* Кнопки */
.ns-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 12px 24px; border-radius: var(--r);
	font: inherit; font-size: 1rem; font-weight: 650; line-height: 1.2; text-align: center; letter-spacing: .005em;
	text-decoration: none; cursor: pointer; border: 2px solid transparent;
	transition: background-color .15s, border-color .15s, color .15s;
}
.ns-btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.ns-btn--primary:hover { background: var(--accent-h); border-color: var(--accent-h); color: #fff; text-decoration: none; }
.ns-btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.ns-btn--secondary:hover { background: var(--ink); color: #fff; text-decoration: none; }
.ns-btn--ghost { background: transparent; color: var(--ink); border-color: transparent; padding-left: 8px; padding-right: 8px; text-decoration: underline; text-underline-offset: .2em; }
.ns-btn--ghost:hover { color: var(--accent-h); }
.ns-btn--sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; white-space: nowrap; }
.ns-btn--block { width: 100%; }
.ns-btn[disabled] { opacity: .65; cursor: progress; }
.ns-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: var(--s5) 0; }
.ns-link-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; }
.ns-link-phone:hover { color: var(--accent-h); }
.ns-icon { flex: none; }

/* Тёмные контексты: светлая обводка фокуса и кнопок */
.ns-final, .ns-footer, .ns-topbar { --focus: #F5F1E9; }
.ns-final .ns-btn--primary, .ns-footer .ns-btn--primary { border-color: #F5F1E9; }
.ns-final .ns-btn--secondary, .ns-footer .ns-btn--secondary { color: var(--on-dark); border-color: var(--on-dark); }
.ns-final .ns-btn--secondary:hover, .ns-footer .ns-btn--secondary:hover { background: var(--on-dark); color: var(--ink); }
.ns-final .ns-panel { --focus: #242A2E; }
.ns-final .ns-panel .ns-btn--primary { border-color: var(--accent); }

/* Шапка */
.ns-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.admin-bar .ns-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ns-header { top: 0; position: relative; } }
.ns-topbar { background: var(--ink); color: var(--on-dark); font-size: .86rem; }
.ns-topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.ns-topbar__region { margin: 0; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-topbar__region .ns-icon { color: #E39A80; }
.ns-topbar__sep { margin: 0 6px; opacity: .55; }
.ns-utility { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.ns-utility a { color: #fff; font-weight: 500; text-decoration: none; }
.ns-utility a:hover { text-decoration: underline; color: #fff; }
.ns-header__in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.ns-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; flex-shrink: 0; }
.ns-brand:hover { color: var(--ink); }
.ns-brand__mark { display: block; width: 42px; height: 42px; flex: none; }
.ns-brand__mark svg { display: block; width: 100%; height: 100%; }
.ns-brand__logo { max-height: 44px; width: auto; }
.ns-brand__text { display: flex; flex-direction: column; min-width: 0; }
.ns-brand__name { font-weight: 800; font-size: 1.28rem; line-height: 1.05; white-space: nowrap; letter-spacing: -.02em; }
.ns-brand__tag { font-size: .8rem; color: var(--muted); line-height: 1.3; max-width: 250px; margin-top: 2px; }
.ns-nav { display: flex; align-items: center; gap: 20px; }
.ns-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.ns-menu > li { position: relative; }
.ns-menu a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: var(--ink); font-weight: 550; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.ns-menu > li > a { position: relative; }
.ns-menu > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: transparent; transition: background-color .15s; }
.ns-menu > li > a:hover::after { background: var(--line); }
.ns-menu > li > a:hover { color: var(--ink); }
.ns-menu > .current-menu-item > a::after, .ns-menu > .current-menu-ancestor > a::after, .ns-menu > .current-page-ancestor > a::after, .ns-menu > .current-menu-parent > a::after { background: var(--accent); }
.ns-menu > .current-menu-item > a, .ns-menu > .current-menu-ancestor > a, .ns-menu > .current-page-ancestor > a, .ns-menu > .current-menu-parent > a { font-weight: 700; }
.ns-menu__icon { flex: none; color: var(--accent); }
@media (min-width: 1101px) { .ns-menu > li > a .ns-menu__icon { display: none; } }
@media (prefers-reduced-motion: reduce) { .ns-menu > li > a::after { transition: none; } }
.ns-menu .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 0 0 var(--r) var(--r); box-shadow: 0 12px 32px rgba(36, 42, 46, .12); display: none; z-index: 5; }
.ns-menu li:hover > .sub-menu, .ns-menu li:focus-within > .sub-menu { display: block; }
.ns-menu .sub-menu a { white-space: normal; font-weight: 500; padding: 9px 18px; }
.ns-menu .sub-menu a:hover, .ns-menu .sub-menu .current-menu-item > a { background: var(--bg); color: var(--accent-h); }
.ns-nav__actions { display: flex; align-items: center; gap: 20px; }
.ns-header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 1.05rem; letter-spacing: -.01em; }
.ns-header__phone .ns-icon { color: var(--accent); }
.ns-header__phone:hover { color: var(--accent-h); }
.ns-burger { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--ink); background: transparent; border-radius: var(--r); font: inherit; font-weight: 650; color: var(--ink); cursor: pointer; }
.ns-burger__close { display: none; }
.ns-burger[aria-expanded="true"] .ns-burger__open { display: none; }
.ns-burger[aria-expanded="true"] .ns-burger__close { display: block; }

@media (max-width: 1100px) {
	:root { --header-h: 64px; }
	.ns-burger { display: inline-flex; }
	.ns-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(36, 42, 46, .14); padding: 8px var(--gap) 20px; flex-direction: column; align-items: stretch; max-height: calc(100dvh - 110px); overflow: auto; }
	.ns-nav.is-open { display: flex; }
	.ns-menu { flex-direction: column; gap: 0; }
	.ns-menu > li { border-bottom: 1px solid var(--line); }
	.ns-menu a { padding: 14px 4px; font-size: 1.08rem; white-space: normal; min-height: 48px; }
	.ns-menu > li > a { gap: 12px; }
	.ns-menu > li > a::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
	.ns-menu > li > a:hover::after { background: transparent; }
	.ns-menu > li > a { padding-left: 14px; }
	.ns-menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 8px 38px; min-width: 0; background: transparent; }
	.ns-menu .sub-menu a { padding: 8px 4px; font-size: 1rem; }
	.ns-nav__actions { flex-direction: column; align-items: stretch; padding-top: 16px; gap: 12px; }
	.ns-header__phone { justify-content: center; padding: 10px; border: 1.5px solid var(--ink); border-radius: var(--r); }
	.ns-nav__actions .ns-btn { width: 100%; }
	.ns-topbar__nav { display: none; }
	.ns-header__in { position: relative; }
}
@media (max-width: 420px) {
	.ns-brand__tag { display: none; }
	.ns-burger__label { display: none; }
	.ns-brand__name { font-size: 1.12rem; }
}

/* Хлебные крошки */
.ns-crumbs { font-size: .9rem; color: var(--muted); margin-bottom: var(--s5); }
.ns-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.ns-crumbs li + li::before { content: "/"; margin: 0 8px 0 4px; color: var(--field); }
.ns-crumbs a { color: var(--muted); }
.ns-crumbs a:hover { color: var(--accent-h); }
.ns-crumbs p { margin: 0; }

/* Первый экран главной */
.ns-hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); overflow: hidden; }
.ns-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: .45; -webkit-mask-image: linear-gradient(100deg, transparent 45%, #000 85%); mask-image: linear-gradient(100deg, transparent 45%, #000 85%); pointer-events: none; }
.ns-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ns-hero h1 { max-width: 19ch; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
.ns-hero__lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--ink); max-width: 600px; line-height: 1.55; }
.ns-hero__points { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); max-width: 680px; }
.ns-hero__points li { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 0 0; font-weight: 550; font-size: .95rem; line-height: 1.4; color: var(--ink); }
.ns-hero__points li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.ns-hero__points strong { display: block; font-size: 1rem; }
.ns-hero__points span { color: var(--muted); font-weight: 400; }
.ns-hero__points span strong { color: var(--ink); font-weight: 700; }
ol.ns-hero__points { counter-reset: hp; }
ol.ns-hero__points li { position: relative; }
ol.ns-hero__points li + li::before { content: "→"; position: absolute; left: -9px; top: 12px; background: var(--bg); color: var(--accent); font-weight: 700; line-height: 1; padding: 2px 0; }
.ns-hero__call { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; max-width: 640px; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.ns-hero__call .ns-link-phone { font-size: 1.15rem; color: var(--ink); }
.ns-hero__call .ns-link-phone .ns-icon { color: var(--accent); align-self: center; }
.ns-hero__points .ns-icon { color: var(--accent); }
.ns-hero__form.ns-panel { border-top: 4px solid var(--accent); }
@media (max-width: 960px) { .ns-hero__grid { grid-template-columns: 1fr; } .ns-hero h1 { max-width: 20ch; } }
@media (max-width: 600px) {
	.ns-hero__points { grid-template-columns: 1fr; border-top: 0; }
	.ns-hero__points li, .ns-hero__points li + li { flex-direction: row; align-items: flex-start; padding: 10px 0; border-left: 0; border-top: 1px solid var(--line); }
	ol.ns-hero__points li + li::before { display: none; }
}

.ns-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); }

/* Заголовок страницы */
.ns-pagehead { background: var(--bg); padding: clamp(28px, 4.5vw, 64px) 0 clamp(32px, 4.5vw, 56px); border-bottom: 1px solid var(--ink); margin-bottom: clamp(32px, 4.5vw, 56px); }
.ns-pagehead h1 { max-width: 22ch; font-size: clamp(1.9rem, 1.3rem + 2.5vw, 3rem); }
.ns-pagehead__lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); max-width: 720px; margin-bottom: 0; line-height: 1.55; }
.ns-pagehead__note { color: var(--muted); font-size: .95rem; margin-top: var(--s3); max-width: 700px; }
.ns-pagehead__with-icon { display: flex; gap: 24px; align-items: flex-start; }
.ns-pagehead__icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r); background: var(--ink); color: #fff; }
@media (max-width: 600px) { .ns-pagehead__icon { width: 48px; height: 48px; } .ns-pagehead__with-icon { gap: 14px; } }
.ns-pagehead__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
@media (max-width: 860px) { .ns-pagehead__grid { grid-template-columns: 1fr; } }

/* Сводка услуги: строка «паспорта» вместо одинаковых карточек */
.ns-summary { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 0 0 var(--r) var(--r); }
.ns-summary__item { padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-content: start; }
.ns-summary__item + .ns-summary__item { border-left: 1px solid var(--line); }
.ns-summary__icon { grid-row: span 2; color: var(--accent); padding-top: 2px; }
.ns-summary__label { font-weight: 700; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.ns-summary__value { font-size: .97rem; line-height: 1.5; }
@media (max-width: 1000px) {
	.ns-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ns-summary__item:nth-child(3) { border-left: 0; }
	.ns-summary__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
	.ns-summary { grid-template-columns: 1fr; }
	.ns-summary__item + .ns-summary__item { border-left: 0; border-top: 1px solid var(--line); }
}

/* Статья с оглавлением */
.ns-article-layout { display: grid; grid-template-columns: 260px minmax(0, var(--prose)); gap: clamp(28px, 5vw, 72px); justify-content: center; padding-bottom: var(--sec); }
.ns-article-layout__aside:empty { display: none; }
.ns-article-layout:has(.ns-article-layout__aside:empty) { grid-template-columns: minmax(0, var(--prose)); }
.ns-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .93rem; border-top: 3px solid var(--ink); padding-top: 14px; }
.ns-toc__title { font-weight: 700; color: var(--ink); margin-bottom: .6rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.ns-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: toc; }
.ns-toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.ns-toc a { display: grid; grid-template-columns: 28px 1fr; padding: 8px 0; color: var(--ink); text-decoration: none; line-height: 1.4; }
.ns-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--muted); font-variant-numeric: tabular-nums; font-size: .82rem; padding-top: 2px; }
.ns-toc a:hover { color: var(--accent-h); }
@media (max-width: 1000px) {
	.ns-article-layout { grid-template-columns: minmax(0, 1fr); }
	.ns-toc { position: static; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 16px 20px; }
}
.ns-narrow { padding-bottom: var(--sec); }

/* Текст */
.ns-prose > * + h2 { margin-top: 2.2em; padding-top: .9em; border-top: 1px solid var(--line); }
.ns-prose > h2:first-child { margin-top: 0; }
.ns-prose > * + h3 { margin-top: 1.6em; }
.ns-prose ul, .ns-prose ol { padding-left: 1.3em; }
.ns-prose li { margin-bottom: .45em; }
.ns-prose li::marker { color: var(--accent); }
.ns-prose table, .ns-blocks table, .ns-table { width: 100%; border-collapse: collapse; font-size: .96rem; background: var(--surface); }
.ns-prose .wp-block-table, .ns-blocks .wp-block-table { overflow-x: auto; margin: 1.5em 0; -webkit-overflow-scrolling: touch; }
.ns-prose .wp-block-table:focus-visible { outline-offset: 0; }
.ns-prose th, .ns-prose td, .ns-blocks th, .ns-blocks td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.ns-prose thead th, .ns-blocks thead th { background: var(--ink); color: #fff; font-weight: 650; font-size: .9rem; border-bottom: 0; }
.ns-prose tbody tr:nth-child(even), .ns-blocks tbody tr:nth-child(even) { background: #FBF9F5; }
.ns-prose .wp-block-table figcaption { font-size: .86rem; color: var(--muted); }
.ns-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); color: var(--ink); font-size: 1.05em; }
.ns-checked { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 2.5em; }
.ns-checked .ns-icon { color: var(--accent); }

/* Этапы: инженерная схема с номерами */
ol.ns-steps { list-style: none; padding: 0 !important; margin: 1.5em 0 2em; counter-reset: st; display: grid; gap: 0; border-top: 2px solid var(--ink); }
ol.ns-steps > li { counter-increment: st; position: relative; padding: 16px 0 18px 64px; margin: 0; border-bottom: 1px solid var(--line); }
ol.ns-steps > li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
ol.ns-steps > li strong:first-child { display: block; color: var(--ink); margin-bottom: 4px; font-size: 1.05em; }
ol.ns-steps > li em { display: block; font-style: normal; color: var(--muted); font-size: .93rem; margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--accent); }
.ns-blocks ol.ns-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; border-top: 0; }
.ns-blocks ol.ns-steps > li { padding: 20px 0 22px; border-top: 2px solid var(--ink); border-bottom: 0; }
.ns-blocks ol.ns-steps > li::before { position: static; display: block; margin-bottom: 12px; font-size: 2.25rem; }
@media (max-width: 960px) { .ns-blocks ol.ns-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	.ns-blocks ol.ns-steps { grid-template-columns: 1fr; }
	.ns-blocks ol.ns-steps > li { padding-left: 56px; }
	.ns-blocks ol.ns-steps > li::before { position: absolute; left: 0; top: 20px; font-size: 1.6rem; }
}

/* Чек-лист */
ul.ns-checklist, ul.is-style-ns-checklist { list-style: none; padding: 0 !important; display: grid; gap: 0; margin: 1em 0 1.5em; border-top: 1px solid var(--line); }
ul.ns-checklist > li, ul.is-style-ns-checklist > li { position: relative; padding: 10px 0 10px 34px; margin: 0; border-bottom: 1px solid var(--line); }
ul.ns-checklist > li::before, ul.is-style-ns-checklist > li::before { content: ""; position: absolute; left: 0; top: calc(10px + .28em); width: 20px; height: 20px; border-radius: 3px; border: 1.5px solid var(--ink); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B64D2E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Факторы стоимости: открытые блоки с разделителями */
ul.ns-factors { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 1.25em 0 1.5em; }
ul.ns-factors > li { border-top: 1px solid var(--ink); padding: 14px 0 18px; margin: 0; font-size: .98rem; }
ul.ns-factors > li strong:first-child { display: block; color: var(--ink); margin-bottom: 4px; font-size: 1.05em; }
.ns-blocks ul.ns-factors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .ns-blocks ul.ns-factors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { ul.ns-factors, .ns-blocks ul.ns-factors { grid-template-columns: 1fr; } }

/* Сводный список */
ul.ns-summary-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); }
ul.ns-summary-list > li { padding: 18px 20px; margin: 0; }
ul.ns-summary-list > li + li { border-left: 1px solid var(--line); }
ul.ns-summary-list strong:first-child { display: block; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
@media (max-width: 700px) { ul.ns-summary-list { grid-template-columns: 1fr; } ul.ns-summary-list > li + li { border-left: 0; border-top: 1px solid var(--line); } }

/* Примечание и образец */
.ns-note, .is-style-ns-note { background: var(--note-bg); border: 0; border-left: 4px solid var(--note-line); border-radius: 0 var(--r) var(--r) 0; padding: 16px 20px !important; margin: 1.5em 0; }
.ns-note > :last-child { margin-bottom: 0; }
.ns-sample { border: 1.5px dashed var(--field); border-radius: var(--r); padding: 20px 24px !important; background: var(--surface); margin: 1.5em 0; }
.ns-sample__label { display: inline-block; font-size: .78rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; background: var(--ink); padding: 3px 8px; border-radius: 2px; margin-bottom: .8em !important; }
.ns-sample ol { margin-bottom: 0; }

/* FAQ: нативные details/summary */
.ns-faq { display: grid; gap: 0; margin: 1.25em 0 2em; border-top: 2px solid var(--ink); }
.ns-faq .wp-block-details, .ns-prose details.wp-block-details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 0; margin: 0; }
.ns-faq summary, .ns-prose details.wp-block-details summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 0; font-weight: 650; color: var(--ink); position: relative; line-height: 1.4; }
.ns-faq summary::-webkit-details-marker, .ns-prose details.wp-block-details summary::-webkit-details-marker { display: none; }
.ns-faq summary::before, .ns-faq summary::after, .ns-prose details.wp-block-details summary::before, .ns-prose details.wp-block-details summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--accent); transition: transform .15s; }
.ns-faq summary::after, .ns-prose details.wp-block-details summary::after { transform: rotate(90deg); }
.ns-faq details[open] summary::after, .ns-prose details.wp-block-details[open] summary::after { transform: rotate(0deg); }
.ns-faq summary:hover, .ns-prose details.wp-block-details summary:hover { color: var(--accent-h); }
.ns-faq details > :not(summary), .ns-prose details.wp-block-details > :not(summary) { padding: 0 48px 0 0; }
.ns-faq details > :last-child, .ns-prose details.wp-block-details > :last-child { padding-bottom: 18px; margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .ns-faq summary::after { transition: none; } }

/* Секции из блоков на главной и в каталогах */
.ns-blocks > .wp-block-group, .ns-blocks > section, .ns-bsec { padding: var(--sec) 0; }
.ns-blocks > .wp-block-group.ns-alt, .ns-bsec.ns-alt { background: var(--bg-2); }
.ns-blocks > .wp-block-group + .wp-block-group:not(.ns-alt), .ns-blocks > section + section:not(.ns-alt) { border-top: 1px solid var(--line); }
.ns-blocks > .wp-block-group > * { max-width: calc(var(--container) + 2 * var(--gap)) !important; margin-left: auto !important; margin-right: auto !important; padding-left: var(--gap); padding-right: var(--gap); }
.ns-blocks > .wp-block-group > h2, .ns-blocks > .wp-block-group > .ns-section-lead { box-sizing: border-box; }
.ns-blocks > .wp-block-group > h2 { margin-bottom: .4em; }
.ns-blocks > .wp-block-group > p.ns-section-lead { margin-bottom: var(--s6); }
.ns-blocks > .wp-block-group > ol.ns-steps, .ns-blocks > .wp-block-group > ul.ns-factors, .ns-blocks > .wp-block-group > ul.ns-checklist { padding-left: var(--gap) !important; padding-right: var(--gap) !important; }
.ns-blocks h2 { max-width: 24ch; }
.ns-blocks .ns-section-lead { max-width: 720px; color: var(--ink); font-size: 1.08em; }
.ns-blocks .ns-quiz-wrap .ns-quiz { max-width: 860px; }
.ns-faq > *, .ns-prose .ns-faq > * { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; width: 100%; }
.ns-blocks > .wp-block-group > .ns-faq { max-width: calc(var(--prose) + 2 * var(--gap)) !important; margin-left: max(0px, calc((100% - var(--container) - 2 * var(--gap)) / 2)) !important; }
.ns-prose .is-layout-constrained > * { max-width: none; margin-left: 0 !important; margin-right: 0 !important; }
.ns-section-head { max-width: 760px; margin-bottom: var(--s6); }
.ns-section-head h2 { margin-bottom: .4em; }
.ns-section-lead { color: var(--ink); font-size: 1.06em; margin-bottom: 0; }
.ns-more { margin: var(--s6) 0 0; }
.ns-quiz-wrap { max-width: 860px; margin-top: var(--s5); }

/* Два пути выбора на главной */
ul.ns-paths { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
ul.ns-paths > li { position: relative; margin: 0; padding: clamp(24px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 0 0 var(--r-lg) var(--r-lg); display: flex; flex-direction: column; gap: 10px; }
ul.ns-paths > li:nth-child(2) { border-top-color: var(--accent); }
ul.ns-paths > li > strong:first-child { display: block; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.2; letter-spacing: -.015em; }
ul.ns-paths > li > a { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border: 2px solid var(--ink); border-radius: var(--r); color: var(--ink); font-weight: 650; text-decoration: none; }
ul.ns-paths > li > a::after { content: "→"; margin-left: 10px; color: var(--accent); }
ul.ns-paths > li > a:hover { background: var(--ink); color: #fff; }
ul.ns-paths > li > a:hover::after { color: #fff; }
@media (max-width: 760px) { ul.ns-paths { grid-template-columns: 1fr; } }

/* Сценарии клиентов */
ul.ns-scenarios { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
ul.ns-scenarios > li { margin: 0; padding: 18px 0 8px; border-top: 2px solid var(--ink); font-size: .98rem; }
ul.ns-scenarios > li > strong:first-child { display: block; font-size: 1.25rem; margin-bottom: 8px; letter-spacing: -.01em; }
ul.ns-scenarios ul { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--line); }
ul.ns-scenarios ul li { margin: 0; border-bottom: 1px solid var(--line); }
ul.ns-scenarios ul a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; color: var(--ink); text-decoration: none; font-weight: 550; }
ul.ns-scenarios ul a::after { content: "→"; color: var(--accent); }
ul.ns-scenarios ul a:hover { color: var(--accent-h); text-decoration: underline; }
@media (max-width: 900px) { ul.ns-scenarios { grid-template-columns: 1fr; gap: 24px; } }

/* Карточки каталога: открытые блоки с верхней линией, без «плиток» */
.ns-cards { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 8px 32px; }
.ns-cards--compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ns-card { position: relative; background: transparent; border-top: 2px solid var(--ink); padding: 18px 0 24px; display: flex; flex-direction: column; gap: 8px; margin: 0; transition: border-color .15s; }
.ns-card:hover { border-top-color: var(--accent); }
.ns-card__icon { color: var(--accent); display: block; margin-bottom: 2px; }
.ns-card__icon .ns-icon { width: 28px; height: 28px; }
.ns-card__title { font-size: 1.14rem; margin: 0; line-height: 1.3; }
.ns-card__title a { color: var(--ink); text-decoration: none; }
.ns-card__title a::after { content: ""; position: absolute; inset: 0; }
.ns-card:hover .ns-card__title a { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.ns-card__title a:focus-visible { outline: none; }
.ns-card:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; }
.ns-card__text { margin: 0; font-size: .97rem; line-height: 1.5; color: var(--ink); }
.ns-card__meta { margin: 4px 0 0; display: flex; gap: 6px; align-items: flex-start; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.ns-card__meta .ns-icon { margin-top: 1px; color: var(--muted); }
.ns-card__more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .93rem; color: var(--accent-h); }
.ns-cards--compact .ns-card { padding: 16px 0 20px; }
.ns-group { margin-bottom: var(--s8); display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 0 48px; }
.ns-group > .ns-cards { margin-top: 0; }
.ns-group__title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); padding-top: 14px; border-top: 4px solid var(--accent); }
@media (max-width: 900px) { .ns-group { grid-template-columns: 1fr; } .ns-group__title { margin-bottom: var(--s4); } }
.ns-catalog { padding-bottom: var(--s6); }

.ns-articles { list-style: none; margin: var(--s5) 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px 32px; }
.ns-article-card { border-top: 1px solid var(--ink); padding: 16px 0 20px; margin: 0; }
.ns-article-card h2, .ns-article-card h3 { font-size: 1.12rem; margin-bottom: .4em; line-height: 1.35; }
.ns-article-card a { color: var(--ink); text-decoration: none; }
.ns-article-card a:hover { color: var(--accent-h); text-decoration: underline; }
.ns-article-card p { margin-bottom: .4em; font-size: .97rem; }
.ns-linklist { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ns-linklist li { border-bottom: 1px solid var(--line); }
.ns-linklist a { display: block; padding: 12px 0; font-weight: 650; }

/* Сведения о компании */
.ns-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; margin-top: var(--s5); }
.ns-trust__item { display: flex; gap: 14px; border-top: 2px solid var(--ink); padding: 18px 0 22px; }
.ns-trust__item > .ns-icon { color: var(--accent); }
.ns-trust__item h3 { font-size: 1.08rem; margin-bottom: .3em; }
.ns-trust__item p { margin: 0; font-size: .97rem; }
.ns-requisites { margin: 0; display: grid; gap: 6px; font-size: .94rem; }
.ns-requisites div { display: grid; grid-template-columns: minmax(0, 150px) 1fr; gap: 8px; }
.ns-requisites dt { color: var(--muted); }
.ns-requisites dd { margin: 0; overflow-wrap: anywhere; }

/* Контакты */
.ns-contacts { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 16px; }
.ns-contacts li { display: flex; gap: 12px; align-items: flex-start; }
.ns-contacts li > .ns-icon { color: var(--accent); margin-top: 3px; }
.ns-contacts__label { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ns-contacts a { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.ns-contacts a:hover { color: var(--accent-h); }
.ns-contacts--compact { gap: 10px; font-size: .95rem; }
.ns-contacts--compact .ns-contacts__label { display: none; }
.ns-contacts-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: var(--s7); }
.ns-contacts-page__info h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); padding-top: 14px; border-top: 2px solid var(--ink); }
.ns-contacts-page__info h2 ~ h2 { margin-top: var(--s7); }
@media (max-width: 860px) { .ns-contacts-page { grid-template-columns: 1fr; } }
.ns-copy { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 10px; min-height: 36px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink); background: transparent; border: 1.5px solid var(--field); border-radius: var(--r); cursor: pointer; }
.ns-copy:hover { border-color: var(--ink); }
.ns-contacts__actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.ns-contacts__actions a { font-weight: 600; font-size: .92rem; }
.ns-map { margin: var(--s5) 0; }

/* Финальный блок обращения */
.ns-final { background: var(--ink); color: var(--on-dark); padding: var(--sec) 0; }
.ns-final h2 { color: #fff; }
.ns-final a { color: #fff; }
.ns-final__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.ns-final .ns-contacts a, .ns-final .ns-contacts { color: #fff; }
.ns-final .ns-contacts li > .ns-icon { color: #E39A80; }
.ns-final .ns-contacts__label { color: var(--on-dark-muted); }
.ns-final .ns-contacts__empty { color: var(--on-dark-muted); }
.ns-final .ns-muted { color: var(--on-dark-muted); }
.ns-mini-steps { list-style: none; padding: 0; margin: var(--s5) 0; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.18); counter-reset: ms; }
.ns-mini-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.ns-mini-steps span { flex: none; min-width: 28px; color: #E39A80; font-weight: 800; font-variant-numeric: tabular-nums; }
.ns-final .ns-panel { color: var(--ink); border: 0; }
.ns-final .ns-panel a { color: var(--accent-h); }
@media (max-width: 900px) { .ns-final__grid { grid-template-columns: 1fr; } }

/* Полоса действия */
.ns-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; padding: clamp(20px, 3vw, 36px); }
.ns-band__title { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); margin-bottom: .3em; }
.ns-band p { margin: 0; max-width: 620px; }
.ns-band__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
@media (max-width: 860px) { .ns-band { flex-direction: column; align-items: flex-start; } }

/* Формы */
.ns-form__title { font-size: 1.35rem; margin-bottom: .35em; }
.ns-form__intro { color: var(--muted); font-size: .97rem; }
.ns-form__fields { display: grid; gap: 16px; }
.ns-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .ns-form__row { grid-template-columns: 1fr; } }
.ns-field { display: grid; gap: 6px; }
.ns-field label { font-weight: 650; color: var(--ink); font-size: .95rem; }
.ns-req { color: var(--err); }
.ns-field input[type=text], .ns-field input[type=email], .ns-field input[type=tel], .ns-field textarea, .ns-search input, .ns-quiz input[type=text] {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
	border: 1.5px solid var(--field); border-radius: var(--r); padding: 12px 14px; min-height: 50px; line-height: 1.4;
}
.ns-field textarea { resize: vertical; min-height: 100px; }
.ns-field input:focus, .ns-field textarea:focus, .ns-search input:focus, .ns-quiz input:focus { outline: 3px solid rgba(36, 42, 46, .22); outline-offset: 0; border-color: var(--ink); }
.ns-field ::placeholder, .ns-search ::placeholder { color: #7C7568; opacity: 1; }
.ns-field__hint { margin: 0; color: var(--muted); font-size: .86rem; }
.ns-field__err { margin: 0; color: var(--err); font-size: .9rem; font-weight: 600; }
.ns-field__err:not(:empty)::before { content: "! "; font-weight: 800; }
.ns-field__err:empty { display: none; }
.ns-field.has-error input, .ns-field.has-error textarea { border-color: var(--err); border-width: 2px; background: var(--err-bg); }
.ns-form__more summary { cursor: pointer; color: var(--ink); font-weight: 600; font-size: .93rem; padding: 4px 0; text-decoration: underline; text-decoration-color: var(--field); text-underline-offset: .2em; }
.ns-form__more[open] > .ns-field { margin-top: 12px; }
.ns-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--ink) !important; font-size: .88rem !important; line-height: 1.5; cursor: pointer; }
.ns-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.ns-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ns-form { position: relative; }
.ns-form__note { margin: 10px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.ns-form__status:empty { display: none; }
.ns-form__msg { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r); font-size: .95rem; font-weight: 600; border-left: 4px solid currentColor; }
.ns-form__msg--err { background: var(--err-bg); color: var(--err); }
.ns-form__msg--ok { background: var(--ok-bg); color: var(--ok); }
.ns-form__done { background: var(--ok-bg); border-left: 4px solid var(--ok); border-radius: var(--r); padding: 20px; }
.ns-form__done-title { font-weight: 800; color: var(--ok); font-size: 1.1rem; margin-bottom: .4em; }
.ns-form__done p:last-child { margin: 0; }

/* Квиз */
.ns-quiz { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: clamp(20px, 3vw, 36px); }
.ns-quiz__progress { display: none; list-style: none; padding: 0; margin: 0 0 24px; gap: 6px; }
.ns-quiz.is-js .ns-quiz__progress { display: flex; }
.ns-quiz__progress li { flex: 1; height: 4px; background: var(--line); }
.ns-quiz__progress li.is-done { background: var(--accent); }
.ns-quiz__step { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.ns-quiz.is-js .ns-quiz__step { margin-bottom: 0; }
.ns-quiz legend, .ns-quiz__legend { font-weight: 700; color: var(--ink); font-size: 1.2rem; margin-bottom: 14px; padding: 0; }
.ns-quiz__num { display: block; font-size: .8rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.ns-quiz__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ns-opt { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--field); border-radius: var(--r); padding: 12px 14px; cursor: pointer; min-height: 50px; background: var(--surface); }
.ns-opt:hover { border-color: var(--ink); }
.ns-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-l); box-shadow: inset 0 0 0 1px var(--accent); }
.ns-opt input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.ns-quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.ns-quiz__nav [data-quiz-next]:only-child { margin-left: auto; }
.ns-quiz:not(.is-js) .ns-quiz__nav { display: none; }
.ns-quiz:not(.is-js) .ns-quiz__final > [data-quiz-prev] { display: none; }

/* Модальное окно */
.ns-modal { border: 0; border-top: 4px solid var(--accent); padding: 0; border-radius: var(--r-lg); width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 24px 64px rgba(27, 32, 35, .35); color: var(--ink); background: var(--surface); }
.ns-modal::backdrop { background: rgba(27, 32, 35, .62); }
.ns-modal__inner { padding: clamp(20px, 4vw, 36px); position: relative; }
.ns-modal__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); border-radius: var(--r); cursor: pointer; }
.ns-modal__close:hover { background: var(--bg); }
.ns-modal__title { font-size: 1.4rem; padding-right: 40px; }
.ns-modal__service { color: var(--accent-h); font-weight: 650; margin-top: -.3em; }
html.ns-modal-open { overflow: hidden; }

/* Поиск и служебные состояния */
.ns-search { display: flex; gap: 8px; max-width: 580px; margin-top: var(--s4); }
.ns-search input { flex: 1; min-width: 0; }
.ns-search .ns-btn span { display: inline; }
.ns-empty { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 0 var(--r) var(--r) 0; padding: clamp(20px, 3vw, 36px); max-width: 780px; }
.ns-pagination, .navigation.pagination { margin: 32px 0; }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--field); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 600; background: var(--surface); }
.nav-links .page-numbers:hover { border-color: var(--ink); }
.nav-links .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Подвал */
.ns-footer { background: var(--ink-2); color: var(--on-dark-muted); padding: 64px 0 28px; font-size: .95rem; }
.ns-footer a { color: #fff; }
.ns-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.ns-footer__brand { font-weight: 800; font-size: 1.35rem; color: #fff; margin-bottom: .4em; letter-spacing: -.02em; }
.ns-footer__title { font-weight: 700; color: #fff; margin-bottom: 1em; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.ns-footer__menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ns-footer__menu a { color: var(--on-dark); text-decoration: none; }
.ns-footer__menu a:hover { color: #fff; text-decoration: underline; }
.ns-footer .ns-contacts a { color: #fff; }
.ns-footer .ns-contacts li > .ns-icon { color: #E39A80; }
.ns-footer .ns-requisites dt { color: var(--on-dark-muted); }
.ns-footer .ns-muted { color: var(--on-dark-muted); }
.ns-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14); margin-top: 48px; padding-top: 22px; font-size: .88rem; }
.ns-footer__bottom p { margin: 0; }
.ns-footer__bottom a { color: var(--on-dark); }
@media (max-width: 900px) { .ns-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ns-footer__grid { grid-template-columns: 1fr; } }

/* Мобильная панель связи */
.ns-mobilebar { display: none; }
@media (max-width: 760px) {
	.ns-mobilebar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--bg); border-top: 1px solid var(--field); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
	.ns-mobilebar .ns-btn { flex: 1; min-height: 48px; padding: 8px 12px; font-size: .95rem; }
	body { padding-bottom: 72px; }
	body.ns-typing .ns-mobilebar, html.ns-modal-open .ns-mobilebar { display: none; }
}

/* Блоки ядра */
.wp-block-image img { border-radius: var(--r); }
.wp-block-image figcaption { font-size: .88rem; color: var(--muted); }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.wp-block-button__link { background: var(--accent); color: #fff; border-radius: var(--r); padding: 12px 24px; font-weight: 650; text-decoration: none; }
.wp-block-button__link:hover { background: var(--accent-h); color: #fff; }
.wp-block-columns { gap: 32px; }
.alignwide { max-width: var(--container); }
.has-text-align-center { text-align: center; }

@media print {
	.ns-header, .ns-footer, .ns-mobilebar, .ns-final, .ns-band, .ns-modal { display: none !important; }
	body { padding: 0; background: #fff; }
}

/* Шапка на десктопе: бренд и контакты в первой строке, текстовое меню во второй */
@media (min-width: 1101px) {
	:root { --header-h: 124px; }
	.ns-header__in { flex-wrap: wrap; column-gap: 24px; row-gap: 0; min-height: 0; }
	.ns-nav { display: contents; }
	.ns-nav > nav { order: 3; flex: 0 0 100%; border-top: 1px solid var(--line); }
	.ns-nav__actions { order: 2; }
	.ns-brand { padding: 14px 0; }
	.ns-brand__logo { max-height: 40px; }
	.ns-menu { flex-wrap: wrap; gap: 0 8px; margin-left: -12px; }
	.ns-menu > li > a { padding: 12px 12px 14px; }
}

/* Исполнитель этапа в схеме услуги */
.ns-step-actor { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); }
ol.ns-steps > li .ns-step-actor + em { margin-top: 6px; }

/* Таблицы на узких экранах: строка → карточка с подписями колонок (data-label из разметки) */
@media (max-width: 640px) {
	.ns-table table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ns-table table, .ns-table tbody, .ns-table tr, .ns-table td { display: block; width: 100%; }
	.ns-prose .ns-table tr, .ns-blocks .ns-table tr { border: 1px solid var(--line); border-top: 3px solid var(--ink); background: var(--surface); margin-bottom: 12px; }
	.ns-prose .ns-table tbody tr:nth-child(even) { background: var(--surface); }
	.ns-prose .ns-table td, .ns-blocks .ns-table td { border-bottom: 1px solid var(--line); padding: 10px 14px; }
	.ns-prose .ns-table td:last-child { border-bottom: 0; }
	.ns-table td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
	.ns-prose .wp-block-table.ns-table { overflow: visible; }
}
