/* «НСтрах» — тема «Тёмная» (taste skill: dark room, seed 82725751, «Forest and lime»).
   Тёмная комната, в которой один освещённый предмет: старый снимок страхового случая. Классическая раскладка форума:
   таблица разделов, таблица тем, сообщения с колонкой участника. Лаймовый квадрат — знак «покрыто» — только на мелких
   отметках и на кнопке. Playfair Display для заголовков, Jost для текста. Без градиентов, теней, тонких линий, плашек
   и моноширинного шрифта. Префикс ns-. */

@font-face { font-family: "Playfair Display"; font-weight: 400; font-display: swap; src: url(fonts/playfair-display-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-display: swap; src: url(fonts/playfair-display-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2212; }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/playfair-display-cyrillic-400-italic.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/playfair-display-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2212; }
@font-face { font-family: "Playfair Display"; font-weight: 500; font-display: swap; src: url(fonts/playfair-display-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-weight: 500; font-display: swap; src: url(fonts/playfair-display-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2212; }
@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url(fonts/jost-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url(fonts/jost-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2212, U+00D7; }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url(fonts/jost-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url(fonts/jost-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2212, U+00D7; }

:root {
	color-scheme: dark;
	--bg: #0f1f10;
	--surface: #162a17;
	--raise: #1e361f;
	--ink: #ffffff;
	--muted: #a7b0a7;
	--accent: #c6f19d;
	--accent-ink: #0f1f10;
	--black: #000000;
	--paper: #ffffff;
	--paper-ink: #0f1f10;
	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--f: "Jost", "Segoe UI", Arial, sans-serif;
	--step-small: 1rem;
	--step-body: 1.125rem;
	--step-lead: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
	--step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
	--step-display: clamp(2.75rem, 1.2rem + 4.6vw, 5.75rem);
	--gutter: clamp(16px, 3.4vw, 48px);
	--ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 var(--step-body)/1.6 var(--f); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; text-decoration-color: rgba(255, 255, 255, .45); }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.08; }
p { margin: 0; }
b, strong { font-weight: 500; }
table { border-collapse: collapse; }
script, template { display: none !important; }
.ns-sr, .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ns-skip { position: absolute; left: 12px; top: -60px; z-index: 50; color: var(--accent-ink); background: var(--accent); padding: 8px 14px; }
.ns-skip:focus { top: 12px; }
.float_left { float: none; }
.ns-main { display: block; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 8vw, 120px); }
.ns-page--index .ns-main { max-width: none; padding: 0; }

/* ---------- верхняя строка */
.ns-bar { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; max-width: 1440px; margin: 0 auto; padding: 22px var(--gutter); }
.ns-wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.75rem; line-height: 1; text-decoration: none; }
.ns-wordmark::before { content: ""; width: 12px; height: 12px; background: var(--accent); }
.ns-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.ns-nav a { text-decoration: none; color: var(--muted); }
.ns-nav a:hover { color: var(--ink); }
.ns-search { margin-left: auto; }
.ns-search input { width: 320px; max-width: 100%; height: 46px; padding: 0 18px; font: 400 var(--step-small) var(--f); color: var(--ink); background: var(--surface); border: 0; border-radius: 0; }
.ns-search input::placeholder { color: var(--muted); }
.ns-search input:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.ns-bar__act { display: flex; align-items: center; }
.ns-bar .ns-user { display: flex; align-items: center; gap: 14px; padding: 0; background: none; }
.ns-user__pm { text-decoration: none; }
.ns-user__menu { position: relative; }
.ns-user__menu summary { list-style: none; cursor: pointer; font-weight: 500; text-decoration: underline; text-underline-offset: .22em; }
.ns-user__menu summary::-webkit-details-marker { display: none; }
.ns-user__drop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; min-width: 240px; margin: 0; padding: 8px; list-style: none; background: var(--raise); }
.ns-user__drop a { display: block; padding: 8px 12px; text-decoration: none; }
.ns-user__drop a:hover { color: var(--accent-ink); background: var(--accent); }

/* ---------- кнопка: единственное большое лаймовое пятно */
.ns-btn, .button, input.button, input[type="submit"], input[type="button"], button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px;
	font: 500 1.0625rem var(--f); color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 0;
	text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease);
}
.ns-btn:hover, .button:hover, input[type="submit"]:hover, button[type="submit"]:hover { color: var(--accent-ink); background: #dcf8bf; }
.ns-btn--quiet, .ns-btn--off { color: var(--ink); background: var(--surface); }
.ns-btn--quiet:hover { color: var(--ink); background: var(--raise); }

/* ---------- путь */
nav.ns-path { margin: 8px 0 28px; font-size: var(--step-small); color: var(--muted); }
nav.ns-path ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
nav.ns-path li:not(:last-child)::after { content: "/"; margin: 0 10px; }
nav.ns-path a { text-decoration: none; }
nav.ns-path a:hover { color: var(--ink); }
.ns-page--index nav.ns-path { display: none; }

/* ---------- первый экран: один освещённый снимок посреди тёмной комнаты */
.ns-hero { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; overflow: hidden; padding: clamp(16px, 2vw, 32px) var(--gutter) clamp(72px, 9vw, 140px); text-align: center; }
.ns-hero__show { position: relative; height: clamp(280px, 42svh, 500px); aspect-ratio: 4 / 5; margin: 0; background: var(--black); }
.ns-hero__show img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.92) contrast(1.06); opacity: 0; transform: scale(1.001); transition: opacity 1.6s ease, transform 8s linear; }
.ns-hero__show img.is-on { opacity: 1; transform: scale(1.07); }
.ns-hero__show figcaption { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); font-size: .9375rem; color: var(--muted); }
.ns-hero__mark { width: 100%; margin-top: clamp(24px, 3vw, 40px); font-family: var(--serif); font-size: clamp(2.5rem, 1rem + 4.6vw, 6.5rem); line-height: 1; letter-spacing: .62em; text-indent: .62em; color: #62806a; white-space: nowrap; overflow: hidden; user-select: none; }
.ns-hero__t { margin-top: clamp(16px, 2vw, 28px); max-width: 24ch; font-size: var(--step-display); }
.ns-hero__lead { margin-top: 24px; max-width: 58ch; font-size: var(--step-lead); line-height: 1.45; }
.ns-hero__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 32px; margin-top: 32px; color: var(--muted); }

/* ---------- найти свой случай */
.ns-cmd { max-width: 1440px; margin: 0 auto; padding: clamp(72px, 8vw, 128px) var(--gutter); background: var(--surface); }
.ns-cmd__t { font-size: var(--step-head); }
.ns-cmd__in { display: block; width: 100%; height: 76px; margin-top: 36px; padding: 0 24px; font: 400 clamp(1.375rem, 1rem + 1.2vw, 2rem) var(--serif); color: var(--ink); background: var(--bg); border: 0; border-radius: 0; }
.ns-cmd__in::placeholder { color: var(--muted); font-style: italic; }
.ns-cmd__in:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.ns-cmd__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 var(--gutter); margin-top: 28px; align-items: start; }
.ns-cmd__list { margin: 0; padding: 0; list-style: none; }
.ns-cmd__list button { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 20px; align-items: baseline; width: 100%; padding: 16px 20px 16px 0; text-align: left; font: 400 clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem)/1.15 var(--serif); color: var(--ink); background: none; border: 0; cursor: pointer; }
.ns-cmd__list button::before { content: ""; width: 14px; height: 14px; background: var(--raise); transform: translateY(-.15em); transition: background .2s var(--ease); }
.ns-cmd__list button small { font: 400 var(--step-small) var(--f); color: var(--muted); }
.ns-cmd__list button:hover::before { background: var(--muted); }
.ns-cmd__list button[aria-pressed="true"]::before { background: var(--accent); }
.ns-cmd__list li[hidden] { display: none; }
.ns-cmd__empty { padding: 16px 0; font-size: var(--step-lead); color: var(--muted); }
.ns-cmd__card { position: sticky; top: 24px; padding: 32px 32px 30px; color: var(--paper-ink); background: var(--accent); }
.ns-cmd__card:empty { display: none; }
.ns-cmd__card h3 { font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem); }
.ns-cmd__card dl { display: grid; gap: 18px; margin: 24px 0 0; }
.ns-cmd__card dt { font-weight: 500; }
.ns-cmd__card dd { margin: 4px 0 0; }
.ns-cmd__card a { display: inline-flex; align-items: center; min-height: 48px; margin-top: 26px; padding: 10px 22px; color: var(--paper); background: var(--paper-ink); text-decoration: none; font-weight: 500; }
.ns-cmd__card a:hover { color: var(--accent); }
.ns-cmd__note { margin-top: 40px; max-width: 72ch; font-size: var(--step-small); color: var(--muted); }

/* ---------- этапы урегулирования: ползунок и бумажное дело */
.ns-stages { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gutter); max-width: 1440px; margin: 0 auto; padding: clamp(80px, 10vw, 160px) var(--gutter); align-items: center; }
.ns-stages__say { grid-column: 1 / span 6; }
.ns-stages__t { font-size: var(--step-head); max-width: 14ch; }
.ns-stages__p { margin-top: 24px; max-width: 52ch; font-size: var(--step-lead); line-height: 1.5; }
.ns-stages__case { grid-column: 8 / -1; grid-row: 1 / span 2; }
.ns-file { padding: 30px 32px 34px; color: var(--paper-ink); background: var(--paper); transform: rotate(-1.2deg); transition: transform .5s var(--ease); }
.ns-stages:hover .ns-file { transform: rotate(0); }
.ns-file__k { font-size: var(--step-small); color: #4c5a4c; }
.ns-file__t { margin-top: 4px; font-family: var(--serif); font-size: 2rem; line-height: 1.1; }
.ns-file__rows { display: grid; gap: 0; margin: 22px 0 0; }
.ns-file__rows div { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 4px 14px; padding: 12px 0; }
.ns-file__rows div + div { box-shadow: inset 0 2px 0 #e7ebe4; }
.ns-file__rows div::before { content: ""; grid-row: 1 / span 2; width: 12px; height: 12px; margin-top: .45em; background: #d6dcd3; }
.ns-file__rows div.is-done::before { background: var(--paper-ink); }
.ns-file__rows div.is-now::before { background: #7fbf4a; }
.ns-file__rows dt { font-weight: 500; }
.ns-file__rows dd { margin: 0; color: #3e4a3e; }
.ns-file__rows div.is-later dt, .ns-file__rows div.is-later dd { color: #5f6a5f; }
.ns-stages__ctl { grid-column: 1 / span 6; }
.ns-stages__ctl input[type="range"] { width: 100%; height: 36px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.ns-stages__names { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; font-size: var(--step-small); color: var(--muted); }
.ns-stages__names li { cursor: pointer; }
.ns-stages__names li:nth-child(2) { text-align: center; transform: translateX(-12%); }
.ns-stages__names li:nth-child(3) { text-align: center; transform: translateX(12%); }
.ns-stages__names li:last-child { text-align: right; }
.ns-stages__names li.is-on { color: var(--ink); }

/* ---------- разделы: классическая таблица одним кеглем */
.ns-lineup { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 9vw, 150px); }
.ns-lineup__t { font-size: var(--step-head); }
.ns-sec { width: 100%; margin-top: 36px; }
.ns-sec__cat th { position: sticky; top: 0; z-index: 2; padding: 40px 0 14px; text-align: left; font: 400 1.625rem/1.2 var(--serif); font-style: italic; color: var(--accent); background: var(--bg); }
.ns-sec__cat a { text-decoration: none; }
.ns-sec__cat a:hover { text-decoration: underline; }
.ns-sec__grp:first-of-type .ns-sec__cat th { padding-top: 8px; }
.ns-sec__row td { padding: 18px 20px 18px 0; vertical-align: baseline; }
.ns-sec__row:nth-child(even) td { background: var(--surface); }
.ns-sec__row td:first-child { padding-left: 16px; }
.ns-sec__row:hover td { background: var(--raise); }
.ns-sec__name { width: 30%; font-size: 1.25rem; font-weight: 500; }
.ns-sec__name a { text-decoration: none; }
.ns-sec__name a:hover { text-decoration: underline; }
.ns-sec__state { display: inline-block; width: 10px; height: 10px; margin-right: 12px; background: var(--raise); transform: translateY(-2px); }
.ns-sec__state.forum_on { background: var(--accent); }
.ns-sec__desc { width: 44%; color: var(--muted); }
.ns-sec__count, .ns-sec__last { white-space: nowrap; text-align: right; }
.ns-sec__last { color: var(--muted); }
.ns-sections--sub { margin-bottom: 36px; }
.ns-sections--sub .ns-sec { margin-top: 0; }

/* ---------- освещённый снимок и последние темы */
.ns-exhibit { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gutter); align-items: center; padding: clamp(80px, 10vw, 160px) var(--gutter); background: var(--black); }
.ns-exhibit__fig { grid-column: 1 / span 6; margin: 0; }
.ns-exhibit__fig { overflow: hidden; }
.ns-exhibit__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) brightness(.95) contrast(1.05); transform: scale(1.08); transition: transform 2.4s var(--ease); }
.ns-exhibit__fig.is-in img { transform: none; }
.ns-exhibit__fig figcaption { margin-top: 12px; font-size: .9375rem; color: var(--muted); }
.ns-exhibit__text { grid-column: 8 / -1; }
.ns-h2 { font-size: clamp(2.25rem, 1.3rem + 2.6vw, 3.75rem); }
.ns-latest { margin: 28px 0 0; padding: 0; list-style: none; }
.ns-latest li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 0 16px; padding: 14px 0; }
.ns-latest li::before { content: ""; grid-row: 1 / span 3; width: 10px; height: 10px; margin-top: .55em; background: var(--accent); }
.ns-latest__k { font-size: var(--step-small); color: var(--muted); }
.ns-latest__t { font-family: var(--serif); font-size: 1.375rem; line-height: 1.25; text-decoration: none; }
.ns-latest__t:hover { text-decoration: underline; }
.ns-latest__m { margin-top: 2px; font-size: var(--step-small); color: var(--muted); }

/* ---------- частые вопросы: всё открыто */
.ns-faq { max-width: 1440px; margin: 0 auto; padding: clamp(80px, 10vw, 160px) var(--gutter); }
.ns-faq__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px var(--gutter); padding: 30px 0; }
.ns-faq__row + .ns-faq__row:not(:nth-child(2)) { box-shadow: inset 0 2px 0 var(--surface); }
.ns-faq__q { grid-column: 1 / span 5; font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + .9vw, 2.125rem); line-height: 1.2; }
.ns-faq__q--head { font-size: var(--step-head); }
.ns-faq__a { grid-column: 7 / -1; max-width: 60ch; }

/* ---------- шапки разделов и тем */
.ns-screen { display: flex; flex-direction: column; gap: 28px; }
.ns-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 32px; padding: clamp(36px, 5vw, 72px) clamp(20px, 3vw, 44px); background: var(--surface); }
.ns-head::before { content: ""; grid-column: 1; width: 12px; height: 12px; background: var(--accent); }
.ns-pagehead { grid-column: 1; font-size: var(--step-head); max-width: 22ch; }
.ns-pagehead--thread { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); max-width: 28ch; }
.ns-head__desc, .ns-head__meta, .ns-head__forum { grid-column: 1; max-width: 70ch; }
.ns-head__desc { color: var(--muted); font-size: var(--step-lead); }
.ns-head__desc:empty { display: none; }
.ns-head__meta { font-size: var(--step-small); color: var(--muted); }
.ns-head__forum { font-weight: 500; }
.ns-head__act { grid-column: 2; grid-row: 1 / span 4; align-self: end; }
.ns-head__act:empty { display: none; }

/* ---------- список тем */
.ns-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.ns-tools:empty { display: none; }
.ns-tools__right { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: var(--step-small); }
.ns-sort { display: flex; flex-wrap: wrap; gap: 6px; }
.ns-sort a { padding: 8px 16px; text-decoration: none; background: var(--surface); }
.ns-sort a:hover { background: var(--raise); }
.ns-mod-row { display: none; }
.ns-mod-row:has(td) { display: table; }
.ns-table { width: 100%; }
.ns-table th { padding: 10px 16px; text-align: left; font-size: var(--step-small); font-weight: 400; color: var(--muted); }
.ns-table td { padding: 18px 16px; vertical-align: top; }
.ns-trow:nth-child(odd) td { background: var(--surface); }
.ns-trow:hover td { background: var(--raise); }
.ns-table .num { width: 110px; text-align: right; white-space: nowrap; }
.ns-table th.num { text-align: right; }
.ns-table .num a { text-decoration: none; }
.ns-trow__state { display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: var(--raise); transform: translateY(-2px); }
.ns-trow__state[class*="new"] { background: var(--accent); }
.ns-trow__title { font-family: var(--serif); font-size: 1.375rem; line-height: 1.25; }
.ns-trow__title a { text-decoration: none; }
.ns-trow__title a:hover { text-decoration: underline; }
.ns-trow__meta { display: block; margin-top: 6px; font-size: var(--step-small); color: var(--muted); }
.ns-trow__last { width: 220px; font-size: var(--step-small); color: var(--muted); }
.ns-trow__last a { color: var(--ink); }
.ns-trow__last span { display: block; }
.forumdisplay_sticky .ns-trow__title::before { content: "Важно. "; font-style: italic; color: var(--accent); }
.ns-trow--ann .ns-trow__title { font-style: italic; }
.pagination, .ns-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pagination .pages { margin-right: 8px; font-size: var(--step-small); color: var(--muted); }
.pagination a, .pagination_current { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 10px; text-decoration: none; background: var(--surface); }
.pagination a:hover { background: var(--raise); }
.pagination_current { color: var(--accent-ink); background: var(--accent); }
.ns-empty { padding: 32px; font-size: var(--step-lead); background: var(--surface); }

/* ---------- сообщения: колонка участника и лист сообщения */
.ns-posts { display: flex; flex-direction: column; gap: 6px; }
.ns-post { background: var(--surface); }
.ns-post__row { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.ns-post .ns-user { display: flex; flex-direction: column; gap: 6px; align-self: stretch; padding: 28px 24px; background: var(--raise); }
.ns-user__name { font-family: var(--serif); font-size: 1.625rem; line-height: 1.1; text-decoration: none; overflow-wrap: anywhere; }
.ns-user__name:hover { text-decoration: underline; }
.ns-user__rank { font-style: italic; font-family: var(--serif); color: var(--accent); }
.ns-user__since { font-size: .9375rem; color: var(--muted); }
.ns-user__photo { order: -1; flex: none; display: block; width: 64px; height: 64px; margin-bottom: 10px; object-fit: cover; border-radius: inherit; }
.ns-ufacts { display: grid; gap: 10px; margin-top: 14px; font-size: .9375rem; }
.ns-ufacts:empty { display: none; }
.ns-ufacts span { display: block; color: var(--muted); }
.ns-thanks { display: inline-flex; align-items: center; gap: 10px; align-self: start; margin-top: 14px; font-size: .9375rem; color: var(--muted); }
.ns-thanks b { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; font-weight: 500; color: var(--ink); background: var(--bg); }
.ns-thanks.is-on b { color: var(--accent-ink); background: var(--accent); }
.ns-post__main { min-width: 0; padding: 26px clamp(20px, 3vw, 40px) 30px; }
.ns-post__bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-bottom: 16px; font-size: var(--step-small); color: var(--muted); }
.ns-post__no { color: var(--ink); text-decoration: none; }
.ns-post__no:hover { text-decoration: underline; }
.ns-starter { padding: 1px 10px; color: var(--accent-ink); background: var(--accent); }
.ns-post__edit:empty, .ns-post__check:empty, .ns-post__status:empty { display: none; }
.ns-post__check { margin-left: auto; }
.ns-post__body { font-size: var(--step-body); line-height: 1.65; max-width: 72ch; overflow-wrap: anywhere; }
.ns-post--first .ns-post__body { font-family: var(--serif); font-size: 1.375rem; line-height: 1.5; }
.ns-post__body a.mycode_url, .signature a.mycode_url { text-decoration-color: var(--accent); }
.ns-post__body a.mycode_url[target="_blank"]::after { content: "\2009↗"; text-decoration: none; display: inline-block; }
blockquote, .mycode_quote { margin: 14px 0; padding: 16px 20px; font-family: var(--f); font-size: var(--step-body); background: var(--bg); }
blockquote cite, .mycode_quote cite { display: block; margin-bottom: 6px; font-style: italic; font-family: var(--serif); color: var(--accent); }
.codeblock { margin: 14px 0; padding: 16px 20px; background: var(--bg); overflow: auto; }
.codeblock code, .codeblock pre { font: 1rem/1.5 var(--f); white-space: pre-wrap; }
.post_body ul, .post_body ol { padding-left: 24px; }
.mycode_s { text-decoration: line-through; }
.signature { margin-top: 18px; font-size: var(--step-small); color: var(--muted); }
.post_meta:not(:has(*:not(:empty))) { display: none; }
.ns-post__controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 0 clamp(20px, 3vw, 40px) 20px 300px; }
.ns-post__controls:not(:has(a)) { display: none; }
.postbit_buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.postbit_buttons a { padding: 8px 14px; font-size: var(--step-small); text-decoration: none; background: var(--bg); }
.postbit_buttons a span { background: none !important; padding: 0 !important; }
.postbit_buttons a:hover { background: var(--raise); }
.ns-adjacent { display: flex; justify-content: space-between; gap: 12px; }
.ns-adjacent a { text-decoration: none; color: var(--muted); }
.ns-adjacent a:hover { color: var(--ink); }

/* ---------- ответ и гость */
.ns-reply, .ns-guest { padding: clamp(22px, 3vw, 40px); background: var(--surface); }
.ns-reply__head h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.ns-reply__head p { margin-top: 6px; font-size: var(--step-small); color: var(--muted); }
.ns-reply textarea { width: 100%; min-height: 160px; margin-top: 14px; }
.ns-reply__opts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: var(--step-small); }
.ns-reply__opts label { display: inline-flex; gap: 8px; align-items: center; }
.ns-reply__captcha:not(:has(td)) { display: none; }
.ns-reply__act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; }
.ns-guest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ns-guest p { font-family: var(--serif); font-size: var(--step-lead); }
.ns-modtools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--step-small); }
.ns-modtools:not(:has(a, select, input)) { display: none; }
.thread_tools { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0; padding: 0; list-style: none; }
.thread_tools li { background: none !important; padding: 0 !important; }
.ns-modtools > div:empty, .ns-browsing:empty { display: none; }
.ns-browsing { font-size: var(--step-small); color: var(--muted); }

/* ---------- профиль: табличка участника и таблица фактов */
.ns-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6px; align-items: stretch; padding-top: 16px; }
.ns-card__plaque { display: flex; flex-direction: column; gap: 10px; padding: clamp(28px, 4vw, 56px); background: var(--raise); }
.ns-card__plaque::before { content: ""; width: 14px; height: 14px; margin-bottom: 12px; background: var(--accent); }
.ns-card__name { font-size: clamp(2.5rem, 1.4rem + 3vw, 4.25rem); overflow-wrap: anywhere; }
.ns-card__plaque .ns-user__rank { font-size: 1.375rem; }
.ns-card__plaque .ns-user__photo { width: 120px; height: 120px; margin-bottom: 14px; }
.ns-card__facts { width: 100%; background: var(--surface); }
.ns-card__facts th { width: 38%; padding: 16px 20px 16px clamp(20px, 3vw, 40px); text-align: left; font-weight: 400; color: var(--muted); vertical-align: top; }
.ns-card__facts td { padding: 16px clamp(20px, 3vw, 40px) 16px 0; font-weight: 500; }
.ns-card__facts tr:nth-child(even) th, .ns-card__facts tr:nth-child(even) td { background: var(--raise); }
.ns-card__links { font-weight: 400; font-size: var(--step-small); margin-left: 10px; }
.ns-card__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ns-card__actions:empty { display: none; }
.ns-card__note { grid-column: 1 / -1; margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.ns-hidden-empty:not(:has(td)) { display: none; }
.ns-profile-extra { margin-top: 28px; }
.ns-profile-extra:empty { display: none; }

/* ---------- вход, ошибки, ожидание */
.ns-gate, .ns-error, .ns-wait { max-width: 580px; margin: 40px 0; padding: clamp(28px, 4vw, 44px); background: var(--surface); }
.ns-gate h1, .ns-error h1, .ns-wait h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.ns-form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.ns-field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.ns-field .textbox { width: 100%; }
.ns-form__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: var(--step-small); }
.ns-checkline { display: inline-flex; align-items: center; gap: 8px; }
.ns-form__submit { width: 100%; }
.ns-error__text { margin-top: 12px; }
.ns-error__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px !important; }

/* ---------- стандартные блоки MyBB */
.tborder { width: 100%; margin-bottom: 18px; background: var(--surface); }
.tborder td, .tborder th { padding: 12px 16px; text-align: left; }
.thead { font-family: var(--serif); font-weight: 400; font-size: var(--step-lead); background: var(--raise); }
.tcat { color: var(--muted); background: var(--bg); }
.trow1, .trow2 { background: transparent; }
.trow_shaded, .unapproved_post { background: #2c3a1d !important; }
.trow_selected, tr.trow_selected td { background: #34481f !important; }
.trow_deleted, .deleted_post_hidden { background: #3a1f1f !important; }
.smalltext { font-size: var(--step-small); }
.largetext { font-family: var(--serif); font-size: var(--step-lead); }
.expcolimage { float: right; }
fieldset { border: 0; padding: 16px 20px; background: var(--surface); }
fieldset legend { padding: 0; font-weight: 500; }
input.textbox, input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"]:not(#ns-q):not(#ns-cmd-in), input[type="url"], input[type="date"], select, textarea {
	max-width: 100%; min-height: 48px; padding: 10px 16px; font: 400 var(--step-body) var(--f); color: var(--ink);
	background: var(--bg); border: 0; border-radius: 0;
}
textarea { min-height: 120px; line-height: 1.5; resize: vertical; }
select[multiple] { min-height: 120px; }
input.textbox:focus, input[type="text"]:focus, input[type="password"]:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); }
.ns-formtable td { padding: 6px 0; }
.ns-formtable .textbox { width: 100%; }
.ns-formtable .button { width: 100%; margin-top: 8px; }
.red_alert, .pm_alert { margin-bottom: 16px; padding: 14px 20px; color: var(--accent-ink); background: var(--accent); }
.red_alert a, .pm_alert a { color: inherit; }
div.error { margin-bottom: 16px; padding: 14px 20px; background: #3a1f1f; }
div.error ul { margin: 6px 0 0; padding-left: 20px; }
.popup_menu { background: var(--raise); padding: 6px; }
.popup_menu .popup_item { display: block; padding: 8px 12px; text-decoration: none; }
.popup_menu .popup_item:hover { color: var(--accent-ink); background: var(--accent); }
.blocker { position: fixed; inset: 0; z-index: 9998; background: rgba(0, 0, 0, .78); padding: 20px; overflow: auto; text-align: center; }
.blocker::before { content: ""; display: inline-block; height: 100%; vertical-align: middle; }
.modal { display: none; vertical-align: middle; position: relative; z-index: 9999; width: 92%; max-width: 460px; padding: 0 0 22px; text-align: left; background: var(--surface); }
.modal form, .modal > div { padding: 0 22px; }
.modal a.close-modal { position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; text-indent: -9999px; overflow: hidden; }
.modal a.close-modal::before { content: "×"; position: absolute; inset: 0; display: grid; place-items: center; text-indent: 0; font-size: 28px; }
.ns-modal__title { margin: 0 -22px 14px; padding: 24px 22px 16px; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); background: var(--raise); }
.jGrowl { z-index: 9999; position: fixed; }
.jGrowl.top-right { top: 16px; right: 16px; }
.jGrowl .jGrowl-notification, .jGrowl .jGrowl-closer { width: 280px; margin-top: 8px; padding: 12px 16px; color: var(--accent-ink); background: var(--accent); }
.jGrowl .jGrowl-close { float: right; cursor: pointer; }

/* ---------- тихий подвал */
.ns-foot { color: var(--muted); background: var(--black); }
.ns-foot__in { max-width: 1440px; margin: 0 auto; padding: 56px var(--gutter) 0; }
.ns-foot__credit { max-width: 78ch; font-size: .9375rem; line-height: 1.55; }
.ns-foot__credit::before { content: ""; display: block; width: 12px; height: 12px; margin-bottom: 20px; background: var(--accent); }
.ns-foot__line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px 32px; align-items: baseline; max-width: 1440px; margin: 0 auto; padding: 40px var(--gutter) 48px; }
.ns-foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.ns-foot__links a { color: var(--ink); text-decoration: none; }
.ns-foot__links a:hover { text-decoration: underline; }
.ns-foot__right { justify-self: end; font-family: var(--serif); color: var(--ink); }

/* ---------- движение */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- адаптив */
@media (max-width: 1080px) {
	.ns-cmd__body { grid-template-columns: minmax(0, 1fr); }
	.ns-cmd__card { position: static; margin-top: 20px; order: -1; }
	.ns-stages__say, .ns-stages__ctl { grid-column: 1 / -1; }
	.ns-stages__case { grid-column: 1 / -1; grid-row: auto; max-width: 560px; }
	.ns-exhibit__fig { grid-column: 1 / -1; }
	.ns-exhibit__text { grid-column: 1 / -1; grid-row: 1; }
	.ns-exhibit__fig { grid-row: 2; }
	.ns-faq__row { display: block; padding: 24px 0; }
	.ns-faq__q { font-size: 1.5rem; }
	.ns-faq__a { margin-top: 12px; }
	.ns-sec__desc { display: none; }
	.ns-sec__name { width: auto; }
	.ns-post__row { grid-template-columns: 220px minmax(0, 1fr); }
	.ns-post__controls { padding-left: 260px; }
}
@media (max-width: 760px) {
	.ns-bar { gap: 10px 18px; }
	.ns-nav { order: 3; width: 100%; }
	.ns-search { order: 4; width: 100%; margin: 0; }
	.ns-search input { width: 100%; }
	.ns-hero__show { height: auto; width: 62vw; }
	.ns-hero__show figcaption { display: none; }
	.ns-hero__mark { font-size: 11vw; letter-spacing: .36em; text-indent: .36em; }
	.ns-bar__act { margin-left: auto; }
	.ns-hero__t { font-size: 8.6vw; margin-top: 56px; }
	.ns-hero__lead { font-size: 1.125rem; margin-top: 18px; }
	.ns-hero__row { gap: 12px 20px; }
	.ns-cmd__in { height: 64px; padding: 0 16px; }
	.ns-cmd__list button { gap: 14px; padding: 12px 0; font-size: 1.5rem; }
	.ns-cmd__list button small { display: none; }
	.ns-cmd__card { padding: 24px 20px; }
	.ns-latest__t { font-size: 1.1875rem; }
	.ns-file { padding: 24px 20px 26px; transform: none; }
	.ns-stages__names { font-size: .875rem; }
	.ns-stages__names li:nth-child(2), .ns-stages__names li:nth-child(3) { transform: none; }
	.ns-sec, .ns-sec tbody, .ns-sec tr { display: block; width: 100%; }
	.ns-sec__cat th { display: block; position: static; padding: 32px 0 10px; }
	.ns-sec__row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 14px; }
	.ns-sec__row td { display: block; padding: 0 !important; background: none !important; }
	.ns-sec__row:nth-child(even) { background: var(--surface); }
	.ns-sec__name { grid-column: 1 / -1; }
	.ns-sec__count, .ns-sec__last { text-align: left; font-size: var(--step-small); }
	.ns-sec__last { text-align: right; }
	.ns-faq__row { display: block; padding: 24px 0; }
	.ns-faq__a { margin-top: 12px; }
	.ns-head { grid-template-columns: minmax(0, 1fr); }
	.ns-head__act { grid-column: 1; grid-row: auto; }
	.ns-post__row { grid-template-columns: minmax(0, 1fr); }
	.ns-post .ns-user { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 18px 20px; }
	.ns-post .ns-user > * { grid-column: 1; }
	.ns-post .ns-user .ns-thanks { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
	.ns-post .ns-user .ns-thanks span { display: none; }
	.ns-post .ns-user:has(> .ns-user__photo) { grid-template-columns: auto minmax(0, 1fr) auto; }
	.ns-post .ns-user:has(> .ns-user__photo) > * { grid-column: 2; }
	.ns-post .ns-user:has(> .ns-user__photo) > .ns-user__photo { grid-column: 1; grid-row: 1 / span 3; width: 56px; height: 56px; margin: 0; }
	.ns-post .ns-user:has(> .ns-user__photo) > .ns-thanks { grid-column: 3; }
	.ns-card__plaque .ns-user__photo { width: 96px; height: 96px; }
	.ns-ufacts { display: none; }
	.ns-post__controls { padding-left: 20px; }
	.ns-card { grid-template-columns: minmax(0, 1fr); }
	.ns-table thead { display: none; }
	.ns-table, .ns-table tbody, .ns-table tr, .ns-table td { display: block; width: 100%; }
	.ns-table tr { padding: 16px; }
	.ns-trow:nth-child(odd) { background: var(--surface); }
	.ns-table td { padding: 0; background: none !important; }
	.ns-table .num { display: inline-block; width: auto; margin: 6px 14px 0 0; text-align: left; font-size: var(--step-small); color: var(--muted); }
	.ns-table .num:nth-of-type(2)::after { content: " ответов"; }
	.ns-table .num:nth-of-type(3)::after { content: " просмотров"; }
	.ns-trow__last { display: none !important; }
	.ns-foot__line { grid-template-columns: minmax(0, 1fr); }
	.ns-foot__links { justify-content: flex-start; }
	.ns-foot__right { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ===== ссылки в сообщениях: свой стиль форума (у каждого форума сетки свой, не повторять) ===== */
:is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url, :is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url:link, :is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url:visited { font-style: normal; text-decoration: none; text-underline-offset: auto; text-shadow: none; background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; color: #c6f19d; font-weight: 400; }
:is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url:hover, :is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url:focus-visible { color: #ffffff; text-decoration: underline solid rgba(198, 241, 157, .6) 1px; text-underline-offset: 3px; background: none; }
:is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url[target="_blank"]::after { content: ""; display: inline-block; width: .34em; height: .34em; margin-left: .45em; background: #c6f19d; transform: rotate(45deg); vertical-align: .16em; font-size: 1em; text-decoration: none; }
/* ===== конец стиля ссылок ===== */
