/* «Помещение перед ремонтом» — тема «Синька».
   Рабочий чертёж в две краски: глубокий берлинский синий и белые/голубые линии, красные правки.
   Каркас: главная — лист с планом, выносками и экспликацией; тема — задание на осмотр и выноски к оси листа;
   навигация — вкладки листов внизу; режим — контрастный двухцветный. Префикс классов: rk-. */

@font-face { font-family: "Gidole"; src: url("fonts/gidole-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Gidole"; src: url("fonts/gidole-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Moderustic"; src: url("fonts/moderustic-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Moderustic"; src: url("fonts/moderustic-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Moderustic"; src: url("fonts/moderustic-cyrillic-500-normal.woff2") format("woff2"); font-weight: 500 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Moderustic"; src: url("fonts/moderustic-latin-500-normal.woff2") format("woff2"); font-weight: 500 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Moderustic"; src: url("fonts/moderustic-cyrillic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Moderustic"; src: url("fonts/moderustic-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Iosevka Charon Mono"; src: url("fonts/iosevka-charon-mono-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Iosevka Charon Mono"; src: url("fonts/iosevka-charon-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Iosevka Charon Mono"; src: url("fonts/iosevka-charon-mono-cyrillic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Iosevka Charon Mono"; src: url("fonts/iosevka-charon-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Iosevka Charon Mono"; src: url("fonts/iosevka-charon-mono-cyrillic-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Iosevka Charon Mono"; src: url("fonts/iosevka-charon-mono-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--rk-bg: #08213f;
	--rk-sheet: #0c2d58;
	--rk-panel: #10376a;
	--rk-deep: #061a33;
	--rk-ln: rgba(236, 243, 252, .9);
	--rk-ln-2: rgba(196, 218, 246, .42);
	--rk-ln-3: rgba(170, 200, 240, .2);
	--rk-g1: rgba(150, 190, 240, .055);
	--rk-g2: rgba(150, 190, 240, .12);
	--rk-tx: #eef4fc;
	--rk-tx-2: #b7cff0;
	--rk-tx-3: #88a9d6;
	--rk-sky: #93d2ff;
	--rk-red: #ff5a4c;
	--rk-red-tx: #ff8f84;
	--rk-red-bg: rgba(255, 90, 76, .13);
	--rk-f-d: "Gidole", "Arial Narrow", sans-serif;
	--rk-f-b: "Moderustic", "Segoe UI", sans-serif;
	--rk-f-m: "Iosevka Charon Mono", "Consolas", monospace;
	--rk-tabs-h: 46px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
	margin: 0; min-width: 320px; color: var(--rk-tx); font: 400 16px/1.6 var(--rk-f-b);
	background-color: var(--rk-bg);
	background-image:
		linear-gradient(var(--rk-g2) 1px, transparent 1px), linear-gradient(90deg, var(--rk-g2) 1px, transparent 1px),
		linear-gradient(var(--rk-g1) 1px, transparent 1px), linear-gradient(90deg, var(--rk-g1) 1px, transparent 1px);
	background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
	background-position: -1px -1px;
	padding-bottom: calc(var(--rk-tabs-h) + 8px);
}
body.rk-nogrid, body.rk-nogrid .rk-sheet__frame { background-image: none; }
a { color: var(--rk-tx); text-decoration-color: var(--rk-ln-2); text-underline-offset: 3px; }
a:hover { color: var(--rk-red-tx); }
img { max-width: 100%; }
::selection { background: var(--rk-red); color: #fff; }
:focus-visible { outline: 2px solid var(--rk-red); outline-offset: 2px; }
.rk-skip { position: absolute; left: -999px; top: 6px; z-index: 99; background: var(--rk-tx); color: var(--rk-sheet); padding: 6px 12px; }
.rk-skip:focus { left: 12px; }
.rk-na { color: var(--rk-tx-3); font-style: italic; }
.rk-empty { color: var(--rk-tx-3); font-style: italic; padding: 14px 4px; list-style: none; }

/* ---------- типографика */
.rk-h1 { font: 400 clamp(30px, 4.2vw, 50px)/1.06 var(--rk-f-d); letter-spacing: .005em; margin: 0; text-wrap: balance; }
.rk-h2 { font: 400 21px/1.2 var(--rk-f-d); margin: 0 0 12px; letter-spacing: .01em; }
.rk-h2 span { display: inline-block; margin-left: 8px; font: 400 11px/1 var(--rk-f-m); color: var(--rk-tx-3); text-transform: uppercase; letter-spacing: .09em; vertical-align: 3px; }
.rk-kicker { margin: 0 0 8px; font: 400 12px/1.4 var(--rk-f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--rk-tx-3); }
.rk-kicker a { color: var(--rk-tx-2); }
.rk-lead { margin: 12px 0 0; max-width: 64ch; color: var(--rk-tx-2); font-size: 17px; line-height: 1.55; }
.rk-more { font: 400 12px/1.3 var(--rk-f-m); color: var(--rk-tx-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rk-ln-3); text-underline-offset: 4px; letter-spacing: .02em; }
.rk-more:hover { color: var(--rk-red-tx); text-decoration-color: currentColor; }

/* ---------- позиции (кружки выносок) */
.rk-pos { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1.3px solid var(--rk-ln); border-radius: 50%; font: 700 12px/1 var(--rk-f-m); color: var(--rk-tx); background: var(--rk-sheet); transition: background .2s, border-color .2s, color .2s; }
.rk-pos--s { width: 21px; height: 21px; font-size: 10.5px; border-width: 1px; }
.rk-pos--l { width: 38px; height: 38px; font-size: 15px; }
.rk-pos--xl { width: 66px; height: 66px; font-size: 26px; border-width: 1.6px; }
.rk-pos--sheet { border-radius: 0; font-family: var(--rk-f-d); font-weight: 400; }

/* ---------- верхняя полоса */
.rk-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; min-height: 58px; padding: 7px max(16px, calc((100% - 1440px) / 2 + 16px)); background: rgba(6, 26, 51, .92); border-bottom: 1px solid var(--rk-ln-3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rk-logo { display: flex; align-items: center; gap: 11px; color: var(--rk-tx); text-decoration: none; min-width: 0; }
.rk-logo__mark { flex: none; display: block; }
.rk-logo__t { display: flex; flex-direction: column; min-width: 0; }
.rk-logo__n { font: 400 19px/1.1 var(--rk-f-d); letter-spacing: .01em; white-space: nowrap; }
.rk-logo__s { font: 400 11px/1.3 var(--rk-f-m); color: var(--rk-tx-3); letter-spacing: .06em; white-space: nowrap; }
.rk-logo:hover .rk-logo__n { color: var(--rk-tx); text-decoration: underline; text-decoration-color: var(--rk-red); text-underline-offset: 5px; }
.rk-top__sheet { margin: 0; padding: 3px 9px; font: 400 11.5px/1.3 var(--rk-f-m); color: var(--rk-tx-2); border: 1px solid var(--rk-ln-3); white-space: nowrap; }
.rk-top__sheet:empty { display: none; }
.rk-find { display: flex; align-items: center; margin-left: auto; width: min(380px, 34vw); border-bottom: 1px solid var(--rk-ln-2); }
.rk-find__l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rk-find input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--rk-tx); font: 400 14px/1 var(--rk-f-b); padding: 8px 4px; }
.rk-find input::placeholder { color: var(--rk-tx-3); }
.rk-find input:focus { outline: none; }
.rk-find:focus-within { border-color: var(--rk-red); }
.rk-find__b { background: none; border: 0; color: var(--rk-tx-2); font: 400 12px/1 var(--rk-f-m); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; padding: 8px 2px 8px 10px; }
.rk-find__b:hover { color: var(--rk-red-tx); }
.rk-me { position: relative; }
.rk-me__b { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: transparent; border: 1px solid var(--rk-ln-2); color: var(--rk-tx); font: 400 13px/1 var(--rk-f-d); letter-spacing: .03em; cursor: pointer; }
.rk-me__b:hover, .rk-me__b[aria-expanded="true"] { border-color: var(--rk-tx); }
.rk-me__panel { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; padding: 16px; background: var(--rk-deep); border: 1px solid var(--rk-ln-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); z-index: 70; }
.rk-me__panel[hidden] { display: none; }
.rk-login__p { margin: 0 0 10px; font: 400 12px/1.4 var(--rk-f-m); color: var(--rk-tx-3); }
.rk-field { margin: 0 0 10px; }
.rk-field label { display: block; font: 400 11px/1.3 var(--rk-f-m); color: var(--rk-tx-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.rk-field--row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.rk-field--row label { display: flex; gap: 6px; align-items: center; text-transform: none; letter-spacing: 0; font-size: 12px; margin: 0; }
.rk-field--row a { font-size: 12px; color: var(--rk-tx-2); }
.rk-mine__who { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; }
.rk-mine__who span { display: flex; flex-direction: column; }
.rk-mine__who a { font-size: 12px; color: var(--rk-tx-2); }
.rk-mine__links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rk-ln-3); }
.rk-mine__links li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--rk-ln-3); text-decoration: none; font-size: 14px; }
.rk-pm[data-n="0"] { display: none; }
.rk-pm { background: var(--rk-red); color: #fff; font: 700 11px/1 var(--rk-f-m); padding: 2px 5px; }

/* ---------- путь */
.rk-crumbs-row { max-width: 1440px; margin: 0 auto; padding: 12px 16px 0 52px; }
.rk-crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font: 400 12px/1.4 var(--rk-f-m); color: var(--rk-tx-3); }
.rk-crumbs a { color: var(--rk-tx-2); text-decoration: none; }
.rk-crumbs a:hover { color: var(--rk-red-tx); }
.rk-crumbs .active { color: var(--rk-tx-3); }
.rk-crumbs__sep { color: var(--rk-ln-3); }

/* ---------- лист: рамка, поле подшивки, графа обозначения */
.rk-sheet { display: block; max-width: 1440px; margin: 14px auto 0; padding: 0 16px 0 52px; }
.rk-sheet__frame {
	position: relative; padding: 26px 28px 0; border: 2px solid var(--rk-ln); background-color: var(--rk-sheet);
	background-image:
		linear-gradient(var(--rk-g2) 1px, transparent 1px), linear-gradient(90deg, var(--rk-g2) 1px, transparent 1px),
		linear-gradient(var(--rk-g1) 1px, transparent 1px), linear-gradient(90deg, var(--rk-g1) 1px, transparent 1px);
	background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .28);
}
.rk-sheet__frame::before { content: ""; position: absolute; inset: -9px -9px -9px -37px; border: 1px solid var(--rk-ln-3); pointer-events: none; }
.rk-sheet__frame::after { content: ""; position: absolute; left: -37px; top: 40%; width: 28px; height: 140px; background: repeating-linear-gradient(to bottom, transparent 0 22px, var(--rk-ln-3) 22px 23px); pointer-events: none; }
.rk-sheet__code { position: absolute; top: -2px; left: -2px; padding: 4px 14px; border: 2px solid var(--rk-ln); font: 400 11px/1 var(--rk-f-m); letter-spacing: .14em; color: var(--rk-tx-2); transform: rotate(180deg); background: var(--rk-sheet); }

/* ---------- шапки страниц */
.rk-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; align-items: end; padding: 14px 0 24px; margin-bottom: 26px; border-bottom: 1px solid var(--rk-ln-2); position: relative; }
.rk-head::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 120px; border-bottom: 1px solid var(--rk-ln-2); }
.rk-head--home { grid-template-columns: minmax(0, 1fr) auto; padding-top: 18px; }
.rk-head__txt { min-width: 0; }
.rk-head__pos { align-self: center; }
.rk-head__act { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.rk-head__n { margin: 0; font: 400 12px/1.3 var(--rk-f-m); color: var(--rk-tx-3); text-transform: uppercase; letter-spacing: .08em; }
.rk-head__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 12px 0 0; font: 400 12.5px/1.5 var(--rk-f-m); color: var(--rk-tx-3); }
.rk-head__meta a { color: var(--rk-tx-2); }
.rk-head__legend { margin: 0; display: grid; gap: 7px; padding: 12px 14px; border: 1px solid var(--rk-ln-3); font: 400 12px/1.3 var(--rk-f-m); color: var(--rk-tx-2); }
.rk-head__legend div { display: flex; gap: 10px; align-items: center; }
.rk-head__legend dt, .rk-head__legend dd { margin: 0; }
.rk-lg { display: inline-grid; place-items: center; width: 30px; height: 14px; }
.rk-lg--wall { border: 1.4px solid var(--rk-ln); background: repeating-linear-gradient(45deg, transparent 0 3px, var(--rk-ln-2) 3px 4px); }
.rk-lg--pos { width: 20px; height: 20px; border: 1.2px solid var(--rk-ln); border-radius: 50%; font: 700 10px/1 var(--rk-f-m); margin: 0 5px; }
.rk-lg--red { height: 0; border-top: 2px solid var(--rk-red); }

/* ---------- главная: виды листа */
.rk-home { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(330px, 1fr); grid-template-areas: "plan expl" "calc expl" "tt tt"; border: 1px solid var(--rk-ln-2); }
.rk-view--plan { grid-area: plan; border-right: 1px solid var(--rk-ln-2); border-bottom: 1px solid var(--rk-ln-2); }
.rk-view--calc { grid-area: calc; border-right: 1px solid var(--rk-ln-2); }
.rk-view--expl { grid-area: expl; }
.rk-view--tt { grid-area: tt; border-top: 1px solid var(--rk-ln-2); }
.rk-tt { columns: 3 280px; column-gap: 34px; }
.rk-tt__g { break-inside: avoid; }
.rk-tt__g:last-child { border-bottom: 0; }
.rk-view { position: relative; padding: 20px 22px 18px; min-width: 0; }
.rk-view__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 18px; margin-bottom: 8px; }
.rk-view__head .rk-h2 { margin: 0; }
.rk-view__note { margin: 12px 0 0; font: 400 12px/1.5 var(--rk-f-m); color: var(--rk-tx-3); max-width: 80ch; }

/* слои плана — как диспетчер слоёв в чертёжной программе */
.rk-layers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rk-layers__t { margin: 0 4px 0 0; font: 400 11px/1 var(--rk-f-m); text-transform: uppercase; letter-spacing: .1em; color: var(--rk-tx-3); }
.rk-layer { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: transparent; border: 1px solid var(--rk-ln-3); color: var(--rk-tx-3); font: 400 12px/1 var(--rk-f-m); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.rk-layer:hover { color: var(--rk-tx); border-color: var(--rk-ln-2); }
.rk-layer[aria-pressed="true"] { color: var(--rk-tx); border-color: var(--rk-ln); background: rgba(236, 243, 252, .06); }
.rk-layer__sw { width: 18px; height: 10px; flex: none; opacity: .45; }
.rk-layer[aria-pressed="true"] .rk-layer__sw { opacity: 1; }
.rk-layer--pos .rk-layer__sw { width: 11px; height: 11px; border: 1.2px solid var(--rk-ln); border-radius: 50%; }
.rk-layer--el .rk-layer__sw { height: 0; border-top: 1.6px dashed var(--rk-tx); }
.rk-layer--vent .rk-layer__sw { height: 6px; border-top: 1.4px solid var(--rk-sky); border-bottom: 1.4px solid var(--rk-sky); }
.rk-layer--lim .rk-layer__sw { border: 1.2px solid var(--rk-red); background: repeating-linear-gradient(-45deg, transparent 0 2px, var(--rk-red) 2px 3px); }

.rk-plan-wrap { position: relative; margin: 4px -6px 0; }
.rk-plan { display: block; width: 100%; height: auto; overflow: visible; }
.rk-plan text { font-family: var(--rk-f-m); }
.rk-hatch { stroke: rgba(236, 243, 252, .5); stroke-width: 1; }
.rk-hatch-r { stroke: var(--rk-red); stroke-width: 1.2; }
.rk-wall { stroke: var(--rk-ln); stroke-width: 1.5; }
.rk-cut { fill: var(--rk-sheet); }
.rk-part { fill: none; stroke: var(--rk-ln); stroke-width: 3.4; }
.rk-win { fill: none; stroke: var(--rk-ln); stroke-width: 1; }
.rk-door { fill: none; stroke: var(--rk-ln); stroke-width: 1.6; }
.rk-swing { fill: none; stroke: var(--rk-ln-2); stroke-width: 1; stroke-dasharray: 3 3; }
.rk-gap { display: none; }
.rk-furn rect, .rk-furn circle, .rk-furn path { fill: none; stroke: var(--rk-tx-2); stroke-width: 1.1; }
.rk-furn .rk-vru { stroke: var(--rk-ln); stroke-width: 1.4; }
.rk-furn .rk-vru-f { fill: var(--rk-ln); stroke: none; }
.rk-furn .rk-vk { stroke: var(--rk-ln); stroke-width: 1.2; }
.rk-furn .rk-riser { stroke: var(--rk-ln); stroke-width: 1.6; fill: var(--rk-sheet); }
.rk-furn .rk-mirror { stroke-width: 2.4; }
.rk-furn .rk-crack { stroke: var(--rk-red); stroke-width: 1.4; }
.rk-furn .rk-stain { stroke: var(--rk-red); stroke-dasharray: 2 2; }
.rk-furn .rk-demo { stroke: var(--rk-ln-2); stroke-width: 3.4; stroke-dasharray: 8 5; }
.rk-furn .rk-sign { stroke: none; }
.rk-room { font: 400 15px/1 var(--rk-f-d) !important; fill: var(--rk-tx); text-anchor: middle; letter-spacing: .02em; }
.rk-room--s { font-size: 12px !important; }
.rk-room__a { font-size: 11px; fill: var(--rk-tx-3); text-anchor: middle; }
.rk-room__street { font-size: 10px; fill: var(--rk-tx-3); text-anchor: middle; letter-spacing: .2em; text-transform: uppercase; }
.rk-dims path { fill: none; stroke: var(--rk-tx-3); stroke-width: 1; }
.rk-dims text { font-size: 11px; fill: var(--rk-tx-2); text-anchor: middle; }
.rk-axes path { fill: none; stroke: var(--rk-ln-3); stroke-width: 1; stroke-dasharray: 22 4 2 4; }
.rk-axes circle { fill: var(--rk-sheet); stroke: var(--rk-tx-3); stroke-width: 1; }
.rk-axes text { font-size: 10px; fill: var(--rk-tx-2); text-anchor: middle; }
.rk-note { font-size: 9.5px; fill: var(--rk-tx-2); letter-spacing: .02em; }
.rk-note--r { fill: var(--rk-red-tx); }
.rk-ly { opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.rk-plan-wrap[data-on~="el"] .rk-ly--el,
.rk-plan-wrap[data-on~="vent"] .rk-ly--vent,
.rk-plan-wrap[data-on~="lim"] .rk-ly--lim,
.rk-plan-wrap[data-on~="pos"] .rk-ly--pos { opacity: 1; pointer-events: auto; }
.rk-cab { fill: none; stroke: var(--rk-tx); stroke-width: 1.1; stroke-dasharray: 6 3; }
.rk-sock { fill: none; stroke: var(--rk-tx); stroke-width: 1.4; }
.rk-lamp circle, .rk-lamp path { fill: none; stroke: var(--rk-tx); stroke-width: 1; }
.rk-duct { fill: none; stroke: var(--rk-sky); stroke-width: 6; stroke-linejoin: round; opacity: .9; }
.rk-duct-s { fill: none; stroke: var(--rk-sky); stroke-width: 1.4; stroke-dasharray: 4 3; }
.rk-flow { fill: var(--rk-sheet); stroke: var(--rk-sky); stroke-width: 1; }
.rk-ac { fill: none; stroke: var(--rk-sky); stroke-width: 1.2; }
.rk-ly--vent .rk-note { fill: var(--rk-sky); }
.rk-lim { stroke: var(--rk-red); stroke-width: 1; }
.rk-lim-b { fill: none; stroke: var(--rk-red); stroke-width: 1.2; stroke-dasharray: 5 3; }
.rk-lim-x { fill: none; stroke: var(--rk-red); stroke-width: 2; }
.rk-call { cursor: pointer; }
.rk-call__c { fill: var(--rk-sheet); stroke: var(--rk-ln); stroke-width: 1.3; transition: fill .2s, stroke .2s; }
.rk-call__n { font: 700 12px/1 var(--rk-f-m) !important; fill: var(--rk-tx); text-anchor: middle; pointer-events: none; }
.rk-call__ln { fill: none; stroke: var(--rk-ln-2); stroke-width: 1; transition: stroke .2s; }
.rk-call__dot { fill: var(--rk-ln); transition: fill .2s; }
.rk-call:hover .rk-call__c, .rk-call:focus .rk-call__c, .rk-call.is-hot .rk-call__c { fill: var(--rk-red); stroke: var(--rk-red); }
.rk-call:hover .rk-call__ln, .rk-call:focus .rk-call__ln, .rk-call.is-hot .rk-call__ln { stroke: var(--rk-red); stroke-width: 1.4; }
.rk-call:hover .rk-call__dot, .rk-call.is-hot .rk-call__dot { fill: var(--rk-red); }
.rk-call:focus { outline: none; }

/* экспликация */
.rk-ex { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.rk-ex thead th:first-child { width: 40px; }
.rk-ex thead th:last-child { width: 46px; }
.rk-ex th, .rk-ex td { text-align: left; vertical-align: top; }
.rk-ex thead th { font: 400 10.5px/1.2 var(--rk-f-m); color: var(--rk-tx-3); text-transform: uppercase; letter-spacing: .08em; padding: 0 6px 7px; border-bottom: 2px solid var(--rk-ln); }
.rk-ex thead th:last-child, .rk-ex__n { text-align: right; }
.rk-ex__sheet th { padding: 12px 6px 5px; border-bottom: 1px solid var(--rk-ln-2); font: 400 13px/1.2 var(--rk-f-d); letter-spacing: .04em; }
.rk-ex__sheet a { color: var(--rk-tx-2); text-decoration: none; }
.rk-ex__sheet a:hover { color: var(--rk-red-tx); }
.rk-ex__row td { padding: 5px 6px; border-bottom: 1px solid var(--rk-ln-3); transition: background .2s; }
.rk-ex__pos { width: 38px; }
.rk-ex__name > a { font-weight: 500; text-decoration: none; line-height: 1.3; }
.rk-ex__mark { display: block; font: 400 10.5px/1.4 var(--rk-f-m); color: var(--rk-tx-3); margin-top: 1px; }
.rk-ex__last { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--rk-tx-2); text-decoration: none; margin-top: 2px; }
.rk-ex__last:hover { color: var(--rk-red-tx); }
.rk-ex__n { font: 700 14px/1.6 var(--rk-f-m); width: 44px; }
.rk-ex__row.is-hot td { background: var(--rk-red-bg); }
.rk-ex__row.is-hot .rk-pos { background: var(--rk-red); border-color: var(--rk-red); color: #fff; }

/* калькулятор мощности */
.rk-calc { display: grid; grid-template-columns: minmax(0, 1fr) 262px; gap: 22px; align-items: start; }
.rk-eqs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rk-ln-2); }
.rk-eq { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--rk-ln-3); color: var(--rk-tx-3); transition: color .2s; }
.rk-eq.is-on { color: var(--rk-tx); }
.rk-eq__ico svg { display: block; }
.rk-eq__n { font-size: 14px; line-height: 1.3; }
.rk-eq__n i { display: block; font: 400 11px/1.3 var(--rk-f-m); color: var(--rk-tx-3); font-style: normal; }
.rk-eq__q { display: inline-flex; align-items: center; border: 1px solid var(--rk-ln-2); }
.rk-eq__q button { width: 28px; height: 28px; background: transparent; border: 0; color: var(--rk-tx-2); font: 400 16px/1 var(--rk-f-m); cursor: pointer; }
.rk-eq__q button:hover { color: var(--rk-tx); background: rgba(236, 243, 252, .07); }
.rk-eq__q output { min-width: 24px; text-align: center; font: 700 13px/28px var(--rk-f-m); border-left: 1px solid var(--rk-ln-3); border-right: 1px solid var(--rk-ln-3); }
.rk-eq.is-on .rk-eq__q { border-color: var(--rk-ln); }
.rk-meter { display: flex; flex-direction: column; gap: 9px; }
.rk-gauge { display: block; width: 100%; height: auto; overflow: visible; }
.rk-gauge__arc { fill: none; stroke: var(--rk-ln-2); stroke-width: 1.2; }
.rk-gauge__red { fill: none; stroke: var(--rk-red); stroke-width: 6; opacity: .85; }
.rk-gauge__ticks path { stroke: var(--rk-ln-2); stroke-width: 1; }
.rk-gauge__ticks path.mj { stroke: var(--rk-ln); stroke-width: 1.4; }
.rk-gauge__ticks text { font: 400 9.5px/1 var(--rk-f-m); fill: var(--rk-tx-2); text-anchor: middle; }
.rk-gauge__alloc { fill: var(--rk-red); }
.rk-gauge__needle { transform-origin: 120px 104px; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.rk-gauge__needle path { stroke: var(--rk-tx); stroke-width: 2; stroke-linecap: square; }
.rk-gauge__needle circle { fill: var(--rk-sheet); stroke: var(--rk-tx); stroke-width: 1.4; }
.rk-gauge__u { font: 400 10px/1 var(--rk-f-m); fill: var(--rk-tx-3); text-anchor: middle; letter-spacing: .1em; }
.rk-meter[data-state="over"] .rk-gauge__needle path { stroke: var(--rk-red); }
.rk-meter[data-state="over"] .rk-gauge__needle circle { stroke: var(--rk-red); }
.rk-meter__sum { margin: -6px 0 0; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.rk-meter__sum b { font: 400 40px/1 var(--rk-f-d); }
.rk-meter__sum span { font: 400 11px/1 var(--rk-f-m); color: var(--rk-tx-3); text-transform: uppercase; letter-spacing: .08em; }
.rk-meter__l { display: flex; justify-content: space-between; gap: 8px; font: 400 11.5px/1.3 var(--rk-f-m); color: var(--rk-tx-3); }
.rk-meter__l b { color: var(--rk-tx); font-weight: 700; white-space: nowrap; }
.rk-range { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; background: transparent; margin: 0; cursor: pointer; }
.rk-range::-webkit-slider-runnable-track { height: 1px; background: var(--rk-ln); }
.rk-range::-moz-range-track { height: 1px; background: var(--rk-ln); }
.rk-range::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -6px; background: var(--rk-sheet); border: 1.6px solid var(--rk-red); transform: rotate(45deg); }
.rk-range::-moz-range-thumb { width: 11px; height: 11px; background: var(--rk-sheet); border: 1.6px solid var(--rk-red); border-radius: 0; transform: rotate(45deg); }
.rk-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rk-ln-2); }
.rk-seg__b { padding: 7px 6px; background: transparent; border: 0; color: var(--rk-tx-3); font: 400 11px/1.25 var(--rk-f-m); cursor: pointer; }
.rk-seg__b + .rk-seg__b { border-left: 1px solid var(--rk-ln-2); }
.rk-seg__b.is-on { background: var(--rk-tx); color: var(--rk-sheet); }
.rk-meter__hint { margin: 2px 0 0; padding: 8px 10px; border-left: 2px solid var(--rk-ln); font-size: 13.5px; line-height: 1.45; background: rgba(236, 243, 252, .04); }
.rk-meter[data-state="over"] .rk-meter__hint { border-color: var(--rk-red); background: var(--rk-red-bg); }
.rk-meter__hint b { font-weight: 700; }
.rk-meter[data-state="over"] .rk-meter__hint b { color: var(--rk-red-tx); }
.rk-meter__amp { margin: 0; font: 400 11.5px/1.5 var(--rk-f-m); color: var(--rk-tx-3); }

/* технические требования */
.rk-tt__sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 12px; font: 400 12px/1.3 var(--rk-f-m); color: var(--rk-tx-3); }
.rk-tt__sum b { color: var(--rk-tx); font-size: 14px; }
.rk-tt__g { border-top: 1px solid var(--rk-ln-3); }
.rk-tt__g:last-child { border-bottom: 1px solid var(--rk-ln-3); }
.rk-tt__g summary { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 18px; gap: 6px; align-items: center; padding: 10px 0; cursor: pointer; list-style: none; }
.rk-tt__g summary::-webkit-details-marker { display: none; }
.rk-tt__g summary::after { content: ""; width: 9px; height: 9px; border-right: 1.3px solid var(--rk-tx-2); border-bottom: 1.3px solid var(--rk-tx-2); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; justify-self: center; }
.rk-tt__g[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.rk-tt__no { font: 700 13px/1 var(--rk-f-m); color: var(--rk-tx-3); }
.rk-tt__gt { font: 400 16px/1.2 var(--rk-f-d); letter-spacing: .02em; }
.rk-tt__cnt { font: 400 11.5px/1 var(--rk-f-m); color: var(--rk-tx-3); }
.rk-tt__cnt.is-full { color: var(--rk-red-tx); }
.rk-tt__list { list-style: none; margin: 0 0 8px 26px; padding: 0 0 0 12px; border-left: 1px solid var(--rk-ln-3); counter-reset: tt; }
.rk-tt__list li { counter-increment: tt; }
.rk-tt__g .rk-more { display: inline-block; margin: 0 0 12px 38px; }
.rk-chk { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14px; line-height: 1.45; color: var(--rk-tx-2); }
.rk-chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rk-chk__box { width: 18px; height: 18px; margin-top: 1px; border: 1px solid var(--rk-ln-2); display: grid; place-items: center; transition: border-color .2s; }
.rk-chk__box .rk-tick { opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.rk-chk input:checked + .rk-chk__box { border-color: var(--rk-red); }
.rk-chk input:checked + .rk-chk__box .rk-tick { opacity: 1; transform: none; }
.rk-chk input:checked ~ .rk-chk__t { color: var(--rk-tx); }
.rk-chk input:focus-visible + .rk-chk__box { outline: 2px solid var(--rk-red); outline-offset: 2px; }
.rk-tick { display: inline-block; vertical-align: -2px; flex: none; }
.rk-tick path { fill: none; stroke: var(--rk-red); stroke-width: 2; stroke-linecap: square; }

/* ---------- основная надпись и ведомость изменений */
.rk-stampzone { display: flex; justify-content: flex-end; margin: 34px -28px 0; }
.rk-stampzone--home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); margin-left: -28px; border-top: 2px solid var(--rk-ln); }
.rk-st { display: grid; grid-template-columns: minmax(250px, 1.25fr) minmax(200px, 1.3fr) 212px; grid-template-rows: auto 1fr; width: min(100%, 800px); border-top: 2px solid var(--rk-ln); border-left: 2px solid var(--rk-ln); font-size: 12px; background: var(--rk-sheet); }
.rk-stampzone--home .rk-st { width: 100%; border-top: 0; grid-template-columns: minmax(200px, 1.15fr) minmax(170px, 1.2fr) 168px; }
.rk-st__sign { grid-row: 1 / 3; border-collapse: collapse; width: 100%; border-right: 2px solid var(--rk-ln); }
.rk-st__sign th, .rk-st__sign td { border-bottom: 1px solid var(--rk-ln-3); padding: 0 7px; height: 30px; text-align: left; }
.rk-st__sign tr:last-child th, .rk-st__sign tr:last-child td { border-bottom: 0; }
.rk-st__sign td + td, .rk-st__sign th + td { border-left: 1px solid var(--rk-ln-3); }
.rk-st__sign th { font: 400 10.5px/1 var(--rk-f-m); color: var(--rk-tx-3); white-space: nowrap; width: 1%; }
.rk-st__who { font-size: 12.5px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-st__who a { text-decoration: none; }
.rk-st__sig { width: 54px; }
.rk-st__sig i { display: block; width: 42px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 16'%3E%3Cpath d='M2 11c3-7 5-8 6-4s-1 7 2 4 4-9 6-5-2 8 2 5 3-6 6-3 3 4 6 1 4-3 8-2' fill='none' stroke='%2393d2ff' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; opacity: .8; }
.rk-st__sign tr:nth-child(2n) .rk-st__sig i { transform: scaleX(-1) rotate(4deg); }
.rk-st__sign tr:nth-child(3n) .rk-st__sig i { transform: scaleY(.8) rotate(-6deg); }
.rk-st__d { font: 400 10.5px/1 var(--rk-f-m); color: var(--rk-tx-3); width: 1%; white-space: nowrap; }
.rk-st__name { grid-row: 1 / 3; grid-column: 2; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 16px; border-right: 2px solid var(--rk-ln); min-width: 0; }
.rk-st__code { margin: 0; font: 400 11px/1 var(--rk-f-m); letter-spacing: .12em; color: var(--rk-tx-3); }
.rk-st__title { margin: 0; font: 400 21px/1.15 var(--rk-f-d); overflow-wrap: anywhere; }
.rk-st__sub { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--rk-tx-2); }
.rk-st__meta { grid-column: 3; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-bottom: 2px solid var(--rk-ln); }
.rk-st__meta div { display: flex; flex-direction: column; }
.rk-st__meta div + div { border-left: 1px solid var(--rk-ln-3); }
.rk-st__meta dt { font: 400 9.5px/1 var(--rk-f-m); color: var(--rk-tx-3); text-align: center; padding: 6px 2px 5px; border-bottom: 1px solid var(--rk-ln-3); }
.rk-st__meta dd { margin: 0; font: 700 13px/1 var(--rk-f-m); text-align: center; padding: 8px 2px; }
.rk-st__org { grid-column: 3; margin: 0; display: grid; place-items: center; padding: 10px; font: 400 15px/1.25 var(--rk-f-d); text-align: center; letter-spacing: .03em; }
.rk-rev { padding: 16px 22px 14px 28px; border-right: 2px solid var(--rk-ln); min-width: 0; }
.rk-rev__h { font: 400 17px/1.2 var(--rk-f-d); margin: 0 0 10px; letter-spacing: .02em; }
.rk-rev__h span { margin-left: 8px; font: 400 11px/1 var(--rk-f-m); color: var(--rk-tx-3); text-transform: uppercase; letter-spacing: .09em; }
.rk-rev__more { margin: 10px 0 0; }
.rk-revt { width: 100%; border-collapse: collapse; table-layout: fixed; }
.rk-revt th { font: 400 10px/1.2 var(--rk-f-m); color: var(--rk-tx-3); text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 0 8px 6px; border-bottom: 2px solid var(--rk-ln); }
.rk-revt td { padding: 7px 8px; border-bottom: 1px solid var(--rk-ln-3); vertical-align: top; font-size: 13px; }
.rk-revt th:nth-child(1) { width: 46px; }
.rk-revt th:nth-child(2) { width: 104px; }
.rk-revt th:nth-child(4) { width: 48px; }
.rk-revt th:nth-child(5) { width: 150px; }
.rk-revt th:nth-child(6) { width: 76px; }
.rk-revt--card th:nth-child(1) { width: 104px; }
.rk-revt--card th:nth-child(2) { width: auto; }
.rk-revt--card th:nth-child(3) { width: 48px; }
.rk-revt--card th:nth-child(4) { width: 76px; }
.rk-rev__i, .rk-rev__n, .rk-rev__d { font: 400 12px/1.5 var(--rk-f-m); color: var(--rk-tx-2); }
.rk-rev__n { text-align: right; font-weight: 700; color: var(--rk-tx); }
.rk-rev__l { font: 400 11.5px/1.6 var(--rk-f-m); color: var(--rk-tx-3); white-space: nowrap; }
.rk-rev__l .rk-pos { margin-right: 6px; vertical-align: -5px; }
.rk-rev__t a { font-weight: 500; text-decoration: none; line-height: 1.35; display: block; overflow-wrap: anywhere; }
.rk-rev__t span { display: block; font-size: 11.5px; color: var(--rk-tx-3); margin-top: 1px; }
.rk-rev__s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-rev__s a { color: var(--rk-tx-2); text-decoration: none; font-size: 12.5px; }

/* ---------- раздел: спецификация тем, лист-категория */
.rk-head__act .button { white-space: nowrap; }
.rk-pls { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--rk-ln-2); }
.rk-pls:empty { display: none; }
.rk-pl { display: grid; grid-template-columns: 52px minmax(0, 1fr) 90px; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rk-ln-3); align-items: start; }
.rk-pl__t { margin: 0; font: 400 21px/1.2 var(--rk-f-d); }
.rk-pl__t a { text-decoration: none; }
.rk-pl__m { margin: 3px 0 0; font: 400 11px/1.4 var(--rk-f-m); color: var(--rk-tx-3); }
.rk-pl__d { margin: 6px 0 0; color: var(--rk-tx-2); font-size: 14.5px; max-width: 80ch; }
.rk-pl__lp { margin: 6px 0 0; font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.rk-pl__lp .rk-ex__last { display: inline; white-space: normal; }
.rk-ex__when { font: 400 11.5px/1.6 var(--rk-f-m); color: var(--rk-tx-3); }
.rk-pl__n { margin: 0; text-align: right; font: 400 11px/1.3 var(--rk-f-m); color: var(--rk-tx-3); text-transform: uppercase; letter-spacing: .06em; }
.rk-pl__n b { display: block; font: 400 30px/1 var(--rk-f-d); color: var(--rk-tx); letter-spacing: 0; }
.rk-spec { margin-top: 4px; }
.rk-spec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 8px; }
.rk-spec__head .rk-h2 { margin: 0; }
.rk-sort { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font: 400 12px/1.4 var(--rk-f-m); color: var(--rk-tx-3); }
.rk-sort a { color: var(--rk-tx-2); text-decoration: none; border-bottom: 1px dotted var(--rk-ln-3); }
.rk-sort a:hover { color: var(--rk-red-tx); }
.rk-spect { width: 100%; border-collapse: collapse; }
.rk-spect thead th { font: 400 10.5px/1.2 var(--rk-f-m); color: var(--rk-tx-3); text-transform: uppercase; letter-spacing: .08em; text-align: left; padding: 0 10px 7px; border-bottom: 2px solid var(--rk-ln); }
.rk-spect thead th:nth-child(3) { text-align: center; }
.rk-sep th { text-align: left; padding: 14px 10px 6px; font: 400 11px/1.2 var(--rk-f-m); color: var(--rk-tx-3); text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--rk-ln-2); }
.rk-srow td { padding: 12px 10px; border-bottom: 1px solid var(--rk-ln-3); vertical-align: top; }
.rk-srow:hover td { background: rgba(236, 243, 252, .035); }
.rk-srow__no { width: 50px; }
.rk-srow__t { font-weight: 500; font-size: 16.5px; line-height: 1.35; text-decoration: none; }
.rk-srow__t:visited { color: var(--rk-tx-2); }
.rk-srow__by { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 12.5px; color: var(--rk-tx-3); }
.rk-srow__by a { color: var(--rk-tx-2); text-decoration: none; }
.rk-srow__n { width: 86px; text-align: center; }
.rk-srow__n a { font: 700 16px/1.4 var(--rk-f-m); text-decoration: none; }
.rk-srow__last { width: 26%; font-size: 12.5px; color: var(--rk-tx-3); }
.rk-srow__d { width: 84px; font: 400 12px/1.6 var(--rk-f-m); color: var(--rk-tx-2); white-space: nowrap; }
.rk-srow__mod { width: 30px; }
.forumdisplay_sticky .rk-pos { border-color: var(--rk-red); color: var(--rk-red-tx); }
.rk-pages { font: 400 11.5px/1 var(--rk-f-m); color: var(--rk-tx-3); margin-left: 8px; }
.rk-pages a { margin: 0 2px; color: var(--rk-tx-2); }
.rk-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 0; }
.rk-bar__r { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.rk-modtools:empty { display: none; }
.rk-sub { margin: 18px 0; }
.rk-sub__t { font: 400 18px/1.2 var(--rk-f-d); }
.rk-sub__list { list-style: none; padding: 0; margin: 0; }
.rk-sub__i { padding: 10px 0; border-bottom: 1px solid var(--rk-ln-3); }
.rk-sub__i p { margin: 4px 0 0; color: var(--rk-tx-2); font-size: 14px; }

/* ---------- тема: задание на осмотр, выноски к оси листа, примечание */
.rk-posts { position: relative; padding: 4px 0 0; }
.rk-posts::before { content: ""; position: absolute; left: 37px; top: 40px; bottom: 0; width: 1px; background: repeating-linear-gradient(to bottom, var(--rk-ln-2) 0 22px, transparent 22px 26px, var(--rk-ln-2) 26px 28px, transparent 28px 32px); }
.rk-post { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); margin: 0 0 22px; }
.rk-anchor { position: absolute; top: -80px; }
.rk-post__axis { position: relative; }
.rk-post__axis::after { content: ""; position: absolute; left: 53px; right: 0; top: 35px; border-top: 1px solid var(--rk-ln-2); transition: border-color .2s; }
.rk-post__num { position: absolute; left: 22px; top: 20px; width: 31px; height: 31px; display: grid; place-items: center; border: 1.3px solid var(--rk-ln); border-radius: 50%; background: var(--rk-sheet); font: 700 13px/1 var(--rk-f-m); z-index: 1; transition: background .2s, border-color .2s; }
.rk-post__box { position: relative; min-width: 0; padding: 18px 22px 10px; border: 1px solid var(--rk-ln-3); background: rgba(12, 45, 88, .82); transition: border-color .2s; }
.rk-post__box::before { content: ""; position: absolute; left: -3.5px; top: 32px; width: 6px; height: 6px; border-radius: 50%; background: var(--rk-ln); }
.rk-post:hover .rk-post__box { border-color: var(--rk-ln-2); }
.rk-post:hover .rk-post__axis::after { border-color: var(--rk-ln); }
.rk-post.is-target .rk-post__num, .rk-post:target .rk-post__num { background: var(--rk-red); border-color: var(--rk-red); }
.rk-post.is-target .rk-post__box { border-color: var(--rk-red); }
.rk-post__label { position: absolute; top: -9px; left: 14px; margin: 0; padding: 0 7px; background: var(--rk-sheet); font: 400 10.5px/18px var(--rk-f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--rk-tx-3); }
.rk-post--op .rk-post__num { background: var(--rk-tx); color: var(--rk-sheet); }
.rk-post--op .rk-post__label { color: var(--rk-tx-2); }
/* задание на осмотр — лист в двойной рамке со штампом граф */
.rk-post--task { margin-bottom: 30px; }
.rk-post--task .rk-post__num { border-radius: 0; background: var(--rk-tx); color: var(--rk-sheet); }
.rk-post--task .rk-post__box { padding: 0 0 8px; border: 2px solid var(--rk-ln); outline: 1px solid var(--rk-ln-3); outline-offset: 4px; background: var(--rk-sheet); }
.rk-post--task .rk-post__box::before { display: none; }
.rk-post--task .rk-post__axis::after { right: -6px; border-top-width: 2px; border-color: var(--rk-ln); }
.rk-post--task .rk-post__label { position: static; display: inline-block; margin: 0; padding: 5px 12px; background: var(--rk-tx); color: var(--rk-sheet); font-weight: 700; letter-spacing: .12em; }
.rk-post--task .rk-post__head, .rk-post--task .rk-post__body, .rk-post--task .rk-post__foot, .rk-post--task .post_meta { padding-left: 22px; padding-right: 22px; }
.rk-post--task .rk-post__body { font-size: 17px; }
.rk-task { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 0 14px; border-top: 2px solid var(--rk-ln); border-bottom: 2px solid var(--rk-ln); }
.rk-task > div { padding: 8px 12px 9px; min-width: 0; }
.rk-task > div + div { border-left: 1px solid var(--rk-ln-2); }
.rk-task dt { font: 400 10px/1.2 var(--rk-f-m); color: var(--rk-tx-3); text-transform: uppercase; letter-spacing: .08em; }
.rk-task dd { margin: 4px 0 0; font: 400 16px/1.25 var(--rk-f-d); overflow-wrap: anywhere; }
.rk-task dd .rk-na { font: italic 400 12.5px/1.3 var(--rk-f-b); }
.rk-task__pos dd { font-family: var(--rk-f-m); font-weight: 700; font-size: 15px; }
/* примечание автора — итог в красной рамке */
.rk-post--note .rk-post__num { background: var(--rk-red); border-color: var(--rk-red); color: #fff; }
.rk-post--note .rk-post__axis::after { border-color: var(--rk-red); }
.rk-post--note .rk-post__box { border: 2px solid var(--rk-red); background: linear-gradient(rgba(255, 90, 76, .07), rgba(255, 90, 76, .07)), var(--rk-sheet); }
.rk-post--note .rk-post__box::before { background: var(--rk-red); left: -4px; }
.rk-post--note .rk-post__label { background: var(--rk-red); color: #fff; font-weight: 700; padding: 0 9px; }
.rk-post__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.rk-post__id { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; min-width: 0; }
.rk-post__nick { font-weight: 600; font-size: 15px; }
.rk-post__nick a { text-decoration: none; }
.rk-post__line { display: inline-flex; flex-wrap: wrap; gap: 0 10px; font-size: 12.5px; color: var(--rk-tx-3); }
.rk-post__line span + span::before { content: "·"; margin-right: 10px; color: var(--rk-ln-3); }
.rk-post__when { margin-left: auto; font: 400 11.5px/1.3 var(--rk-f-m); color: var(--rk-tx-3); text-decoration: none; white-space: nowrap; }
.rk-post__when:hover { color: var(--rk-red-tx); }
.rk-post__re { display: inline-block; margin: -4px 0 8px; font: 400 11.5px/1.3 var(--rk-f-m); color: var(--rk-tx-3); text-decoration: none; padding-left: 16px; position: relative; }
.rk-post__re::before { content: ""; position: absolute; left: 0; top: 50%; width: 11px; border-top: 1px solid var(--rk-ln-2); }
.rk-post__re:hover { color: var(--rk-red-tx); }
.rk-rank { display: inline-flex; align-items: center; gap: 5px; font: 400 11px/1 var(--rk-f-m); color: var(--rk-tx-3); }
.rk-badge { display: block; flex: none; }
.rk-badge .fr { fill: none; stroke: var(--rk-ln); stroke-width: 1.2; }
.rk-badge .st { fill: none; stroke: var(--rk-ln-2); stroke-width: 1; }
.rk-badge .ln { fill: none; stroke: var(--rk-tx-2); stroke-width: 1.1; }
.rk-badge .ok { fill: none; stroke: var(--rk-red); stroke-width: 1.6; }
.rk-badge .seal { fill: none; stroke: var(--rk-red); stroke-width: 1.2; }
.rk-rep { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 2px 5px; border: 1px solid var(--rk-ln-3); font: 400 11px/1.2 var(--rk-f-m); color: var(--rk-tx-3); }
.rk-rep b { color: var(--rk-tx); }
.rk-rep--zero .rk-tick path { stroke: var(--rk-tx-3); }
.rk-post__body { font-size: 16px; line-height: 1.64; overflow-wrap: break-word; }
.rk-post__body ul, .rk-post__body ol { padding-left: 22px; }
.rk-post__body li { margin: 3px 0; }
.rk-post__body li::marker { color: var(--rk-tx-3); }
.post_meta { font: 400 11px/1.4 var(--rk-f-m); color: var(--rk-tx-3); }
.post_meta:empty { display: none; }
.rk-post__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--rk-ln-3); }
.rk-post__foot:not(:has(a)) { display: none; }
.postbit_buttons { display: flex; flex-wrap: wrap; gap: 4px; }
.postbit_buttons > a { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid transparent; font: 400 11px/1.3 var(--rk-f-m); color: var(--rk-tx-3); text-decoration: none; letter-spacing: .03em; }
.postbit_buttons > a:hover { border-color: var(--rk-ln-2); color: var(--rk-tx); }
.postbit_buttons > a span { background: none !important; padding: 0 !important; }
.signature { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--rk-ln-3); font-size: 13px; color: var(--rk-tx-3); }
blockquote.mycode_quote { margin: 10px 0 12px; padding: 9px 14px 10px; border: 0; border-left: 2px solid var(--rk-ln-2); background: rgba(236, 243, 252, .04); color: var(--rk-tx-2); }
blockquote.mycode_quote cite { display: block; margin-bottom: 4px; font: 400 11px/1.3 var(--rk-f-m); color: var(--rk-tx-3); font-style: normal; text-transform: uppercase; letter-spacing: .06em; }
blockquote.mycode_quote cite > span { float: none !important; margin-left: 6px; text-transform: none; }
.codeblock { margin: 10px 0; padding: 0; border: 1px solid var(--rk-ln-3); background: var(--rk-deep); }
.codeblock .title { padding: 5px 10px; font: 400 10.5px/1.3 var(--rk-f-m); color: var(--rk-tx-3); text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--rk-ln-3); }
.codeblock code, .codeblock pre { display: block; padding: 10px 12px; font: 400 13px/1.55 var(--rk-f-m); color: var(--rk-tx); overflow-x: auto; white-space: pre-wrap; }
.mycode_hr { border: 0; border-top: 1px solid var(--rk-ln-2); margin: 14px 0; }
.mycode_s { color: var(--rk-tx-3); }
.mycode_img { max-width: 100%; height: auto; border: 1px solid var(--rk-ln-3); }
.video_embed iframe, .rk-post__body iframe { max-width: 100%; }
.rk-tfoot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rk-ln-3); }
.rk-tfoot__note { margin: 0; font: 400 12px/1.5 var(--rk-f-m); color: var(--rk-tx-3); max-width: 70ch; }
.rk-nextprev { display: flex; gap: 18px; font: 400 12px/1.3 var(--rk-f-m); }
.rk-nextprev a { color: var(--rk-tx-2); }
.rk-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 14px; }
.rk-tools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; font: 400 12px/1.3 var(--rk-f-m); }
.rk-tools ul a { color: var(--rk-tx-3); }
.rk-tools__mod:empty { display: none; }
.rk-guest { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 18px; border: 1px dashed var(--rk-ln-2); }
.rk-guest p { margin: 0; color: var(--rk-tx-2); font-size: 14.5px; }

/* ---------- профиль: карточка участника */
.rk-head--profile { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.rk-card__photo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rk-card__ph { position: relative; padding: 8px; background: linear-gradient(var(--rk-ln), var(--rk-ln)) 0 0 / 14px 1.4px, linear-gradient(var(--rk-ln), var(--rk-ln)) 0 0 / 1.4px 14px, linear-gradient(var(--rk-ln), var(--rk-ln)) 100% 0 / 14px 1.4px, linear-gradient(var(--rk-ln), var(--rk-ln)) 100% 0 / 1.4px 14px, linear-gradient(var(--rk-ln), var(--rk-ln)) 0 100% / 14px 1.4px, linear-gradient(var(--rk-ln), var(--rk-ln)) 0 100% / 1.4px 14px, linear-gradient(var(--rk-ln), var(--rk-ln)) 100% 100% / 14px 1.4px, linear-gradient(var(--rk-ln), var(--rk-ln)) 100% 100% / 1.4px 14px; background-repeat: no-repeat; }
.rk-card__phl { font: 400 10.5px/1 var(--rk-f-m); color: var(--rk-tx-3); letter-spacing: .1em; text-transform: uppercase; }
.rk-card__name { overflow-wrap: anywhere; }
.rk-card__rank { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0 0; font: 400 13px/1.3 var(--rk-f-m); color: var(--rk-tx-2); }
.rk-card__nums { list-style: none; margin: 0; padding: 0; display: flex; border: 1px solid var(--rk-ln-2); }
.rk-card__nums li { padding: 10px 18px; text-align: center; }
.rk-card__nums li + li { border-left: 1px solid var(--rk-ln-2); }
.rk-card__nums b { display: block; font: 400 34px/1 var(--rk-f-d); }
.rk-card__nums span { font: 400 10.5px/1.3 var(--rk-f-m); color: var(--rk-tx-3); text-transform: uppercase; letter-spacing: .06em; }
.rk-card__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--rk-ln-2); }
.rk-card__grid + .rk-card__grid { border-top: 0; }
.rk-card__grid > .rk-view:first-child { border-right: 1px solid var(--rk-ln-2); }
.rk-task--card { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom-width: 1px; }
.rk-task--card > div { border-bottom: 1px solid var(--rk-ln-3); }
.rk-task--card > div:nth-child(odd) { border-left: 0; }
.rk-task--card dd { font-size: 15.5px; }
.rk-card__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; font-size: 13px; }
.rk-card__links a { color: var(--rk-tx-2); }
.rk-lad { width: 100%; border-collapse: collapse; font-size: 14px; }
.rk-lad th { font: 400 10px/1.2 var(--rk-f-m); color: var(--rk-tx-3); text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 0 8px 6px; border-bottom: 2px solid var(--rk-ln); }
.rk-lad td { padding: 7px 8px; border-bottom: 1px solid var(--rk-ln-3); color: var(--rk-tx-3); }
.rk-lad td:nth-child(1), .rk-lad td:nth-child(3) { font: 400 12px/1.5 var(--rk-f-m); }
.rk-lad td:nth-child(2) { display: flex; align-items: center; gap: 10px; }
.rk-lad tr.is-past td { color: var(--rk-tx-2); }
.rk-lad tr.is-now td { color: var(--rk-tx); background: var(--rk-red-bg); }
.rk-lad tr.is-now td:nth-child(2) span { font-weight: 600; }
.rk-pcs { list-style: none; margin: 0; padding: 0; }
.rk-pc { padding: 10px 0 10px 14px; border-left: 1px solid var(--rk-ln-2); position: relative; }
.rk-pc + .rk-pc { border-top: 1px solid var(--rk-ln-3); }
.rk-pc::before { content: ""; position: absolute; left: -4px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--rk-ln); }
.rk-pc__t { font-weight: 500; text-decoration: none; }
.rk-pc__x { margin: 4px 0 0; font-size: 13.5px; color: var(--rk-tx-2); line-height: 1.5; }
.rk-pc__d { margin: 4px 0 0; font: 400 11px/1.3 var(--rk-f-m); color: var(--rk-tx-3); }
.rk-card__extra:empty { display: none; }
.rk-card__extra { margin-top: 18px; }

/* ---------- лица участников: фото в тоне синьки, инициалы моноширинным */
.rk-face { display: inline-grid; place-items: center; flex: none; overflow: hidden; border: 1px solid var(--rk-ln-2); background: var(--rk-deep); color: var(--rk-tx-2); font-family: var(--rk-f-m); font-weight: 700; vertical-align: middle; }
.rk-face--xs { width: 22px; height: 22px; font-size: 9px; }
.rk-face--s { width: 30px; height: 30px; font-size: 10.5px; }
.rk-face--m { width: 42px; height: 42px; font-size: 14px; }
.rk-face--l { width: 56px; height: 56px; font-size: 18px; }
.rk-face--xl { width: 136px; height: 136px; font-size: 40px; border-color: var(--rk-ln); }
.rk-face img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) sepia(.45) hue-rotate(178deg) saturate(2.1) brightness(.92) contrast(1.06); transition: filter .3s; }
.rk-post:hover .rk-face img, .rk-card__ph:hover .rk-face img { filter: grayscale(.2) brightness(.98); }

/* ---------- сообщения об ошибке и переходе */
.rk-msg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: start; max-width: 860px; margin: 30px 0 10px; padding: 26px; border: 2px solid var(--rk-ln); }
.rk-msg__mark { display: grid; place-items: center; width: 78px; height: 78px; margin: 0; border: 1.6px solid var(--rk-red); border-radius: 50%; font: 400 40px/1 var(--rk-f-d); color: var(--rk-red-tx); }
.rk-msg__mark svg path { fill: none; stroke: var(--rk-red); stroke-width: 2; }
.rk-msg__t { font-size: clamp(26px, 3vw, 36px); }
.rk-msg__body { margin-top: 12px; color: var(--rk-tx-2); }
.rk-msg__body ol, .rk-msg__body ul { padding-left: 20px; }
.rk-msg__foot { margin: 14px 0 0; }
.rk-page--redirect .rk-msg { margin: 12vh auto; background: var(--rk-sheet); }

/* ---------- подвал и вкладки листов */
.rk-foot { max-width: 1440px; margin: 0 auto; padding: 22px 16px 18px 52px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 30px; font-size: 12.5px; line-height: 1.55; color: var(--rk-tx-3); }
.rk-foot__note { margin: 0; max-width: 90ch; }
.rk-foot__note b { color: var(--rk-tx-2); font-weight: 500; }
.rk-foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: flex-start; justify-content: flex-end; font: 400 12px/1.4 var(--rk-f-m); }
.rk-foot__links a { color: var(--rk-tx-2); text-decoration: none; }
.rk-foot__links a:hover { color: var(--rk-red-tx); }
.rk-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: stretch; height: var(--rk-tabs-h); padding-bottom: env(safe-area-inset-bottom); background: var(--rk-deep); border-top: 1px solid var(--rk-ln-2); box-shadow: 0 -10px 30px rgba(0, 0, 0, .3); }
.rk-tabs__list { display: flex; flex: 1; min-width: 0; gap: 3px; margin: 0; padding: 0 0 0 max(12px, calc((100% - 1440px) / 2 + 12px)); list-style: none; overflow-x: auto; scrollbar-width: none; }
.rk-tabs__list::-webkit-scrollbar { display: none; }
.rk-tab { position: relative; flex: none; }
.rk-tab__a { display: flex; align-items: center; gap: 7px; height: calc(100% - 4px); padding: 0 15px; border: 1px solid var(--rk-ln-3); border-top: 0; border-radius: 0 0 7px 7px; background: #071f3d; color: var(--rk-tx-3); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.rk-tab__no { font: 400 10.5px/1 var(--rk-f-m); letter-spacing: .05em; }
.rk-tab__n { font: 400 14px/1 var(--rk-f-d); letter-spacing: .02em; color: var(--rk-tx-2); }
.rk-tab__a:hover { color: var(--rk-tx-2); background: var(--rk-panel); }
.rk-tab__a:hover .rk-tab__n { color: var(--rk-tx); }
.rk-tab.is-on .rk-tab__a { background: var(--rk-sheet); color: var(--rk-tx-2); border-color: var(--rk-ln-2); box-shadow: inset 0 2px 0 var(--rk-red); }
.rk-tab.is-on .rk-tab__n { color: var(--rk-tx); }
.rk-tab--model .rk-tab__no { text-transform: uppercase; }
.rk-tab__menu { display: none; position: absolute; left: 0; bottom: calc(100% + 1px); min-width: 320px; margin: 0; padding: 6px; list-style: none; background: var(--rk-deep); border: 1px solid var(--rk-ln-2); box-shadow: 0 -16px 36px rgba(0, 0, 0, .4); }
.rk-tab__menu a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; font-size: 14px; text-decoration: none; color: var(--rk-tx-2); }
.rk-tab__menu a:hover, .rk-tab__menu a.is-on { background: var(--rk-panel); color: var(--rk-tx); }
.rk-tab__menu .rk-pos { width: 22px; height: 22px; font-size: 10.5px; }
.rk-status { display: flex; align-items: center; gap: 14px; padding: 0 max(16px, calc((100% - 1440px) / 2 + 16px)) 0 16px; border-left: 1px solid var(--rk-ln-3); font: 400 11px/1 var(--rk-f-m); color: var(--rk-tx-3); white-space: nowrap; }
.rk-status__b { padding: 4px 8px; background: transparent; border: 1px solid var(--rk-ln-3); color: var(--rk-tx-3); font: inherit; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.rk-status__b[aria-pressed="true"] { color: var(--rk-tx); border-color: var(--rk-ln-2); }
.rk-status__c { min-width: 128px; font-variant-numeric: tabular-nums; }
@media (min-width: 1000px) and (hover: hover) {
	.rk-tabs__list { overflow: visible; }
	.rk-tab:hover .rk-tab__menu, .rk-tab:focus-within .rk-tab__menu { display: block; }
}

/* ---------- стандартные страницы MyBB: таблицы, формы, кнопки */
.tborder { width: 100%; border-collapse: collapse; border: 1px solid var(--rk-ln-2); margin: 0 0 18px; background: rgba(12, 45, 88, .6); }
.thead { padding: 10px 12px; text-align: left; font: 400 17px/1.25 var(--rk-f-d); border-bottom: 2px solid var(--rk-ln); letter-spacing: .02em; }
.thead a { text-decoration: none; }
.tcat { padding: 7px 12px; font: 400 10.5px/1.3 var(--rk-f-m); color: var(--rk-tx-3); text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--rk-ln-2); text-align: left; }
.tcat a { color: var(--rk-tx-2); }
.trow1, .trow2, .trow_shaded { padding: 10px 12px; border-bottom: 1px solid var(--rk-ln-3); vertical-align: top; font-size: 14.5px; }
.trow2 { background: rgba(236, 243, 252, .025); }
.trow_shaded { background: var(--rk-red-bg); }
.tfoot { padding: 10px 12px; border-top: 1px solid var(--rk-ln-2); }
.smalltext { font-size: 12.5px; color: var(--rk-tx-3); }
.largetext { font: 400 19px/1.3 var(--rk-f-d); }
input.textbox, textarea, select, input[type="text"], input[type="password"], input[type="email"], input[type="number"] {
	background: var(--rk-deep); border: 1px solid var(--rk-ln-2); color: var(--rk-tx); font: 400 15px/1.4 var(--rk-f-b); padding: 8px 10px; border-radius: 0; max-width: 100%;
}
.rk-me__panel input.textbox { width: 100%; }
input.textbox:focus, textarea:focus, select:focus { outline: none; border-color: var(--rk-red); }
textarea { width: 100%; min-height: 180px; }
select { padding-right: 26px; }
.button, button.button, input.button, input[type="submit"], input[type="button"], a.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 16px; background: var(--rk-tx); color: var(--rk-sheet) !important; border: 1px solid var(--rk-tx);
	font: 400 14px/1 var(--rk-f-d); letter-spacing: .04em; text-decoration: none; cursor: pointer; border-radius: 0; transition: background .2s, border-color .2s, color .2s;
}
.button:hover, input[type="submit"]:hover, a.button:hover { background: var(--rk-red); border-color: var(--rk-red); color: #fff !important; }
.button span { background: none !important; padding: 0 !important; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font: 400 12.5px/1 var(--rk-f-m); }
.pagination .pages { color: var(--rk-tx-3); margin-right: 6px; }
.pagination a, .pagination .pagination_current { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border: 1px solid var(--rk-ln-3); text-decoration: none; color: var(--rk-tx-2); }
.pagination a:hover { border-color: var(--rk-ln); color: var(--rk-tx); }
.pagination .pagination_current { border-color: var(--rk-red); color: var(--rk-tx); }
.error, .red_alert, .pm_alert { padding: 12px 16px; margin: 0 0 16px; border: 1px solid var(--rk-red); background: var(--rk-red-bg); color: var(--rk-tx); }
.error ul { margin: 6px 0 0; padding-left: 20px; }
.modal { display: none; background: var(--rk-deep); border: 1px solid var(--rk-ln-2); color: var(--rk-tx); padding: 0; width: min(440px, 92vw); text-align: left; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.modal a.close-modal { position: absolute; top: 8px; right: 10px; width: 24px; height: 24px; text-indent: -999px; overflow: hidden; }
.modal a.close-modal::before, .modal a.close-modal::after { content: ""; position: absolute; left: 4px; top: 11px; width: 16px; border-top: 1.4px solid var(--rk-tx-2); transform: rotate(45deg); }
.modal a.close-modal::after { transform: rotate(-45deg); }
.blocker { background: rgba(4, 14, 30, .72) !important; }
.sceditor-container { border: 1px solid var(--rk-ln-2) !important; background: var(--rk-deep) !important; }
.sceditor-toolbar { background: var(--rk-panel) !important; border-bottom: 1px solid var(--rk-ln-3) !important; }
.sceditor-container iframe, .sceditor-container textarea { background: var(--rk-deep) !important; color: var(--rk-tx) !important; }
#quick_reply_form .tborder { margin-top: 26px; }
.expcolimage { display: none; }
.float_left { float: left; }
.float_right { float: right; }
.clear { clear: both; }
.hidden { display: none; }

/* ---------- ссылки в сообщениях: свой стиль форума («полка выноски»)
   Приём «полка выноски»: слово стоит на тонкой красной полке, от её левого края к точке на детали
   уходит короткая наклонная линия-выноска с точкой на конце, как у номера позиции на чертеже. Без значков. */
:is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url {
	color: var(--rk-tx); font-weight: 600; text-decoration: none;
	padding: 0 1px 7px 9px;
	background-image:
		linear-gradient(var(--rk-red), var(--rk-red)),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 9'%3E%3Cpath d='M9.6 .6L2.4 6.6' fill='none' stroke='%23ff5a4c' stroke-width='1.1'/%3E%3Ccircle cx='2.1' cy='6.9' r='1.6' fill='%23ff5a4c'/%3E%3C/svg%3E");
	background-size: calc(100% - 9px) 1px, 10px 9px;
	background-position: 9px calc(100% - 7.5px), 0 100%;
	background-repeat: no-repeat;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
	transition: color .2s, background-size .2s;
}
:is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url:hover {
	color: var(--rk-red-tx);
	background-size: calc(100% - 9px) 2px, 10px 9px;
	background-position: 9px calc(100% - 8px), 0 100%;
}
:is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url::after { content: none; }

/* ---------- адаптив */
@media (max-width: 1180px) {
	.rk-home { grid-template-columns: minmax(0, 1fr); grid-template-areas: "plan" "expl" "calc" "tt"; }
	.rk-home > .rk-view { border-right: 0; border-bottom: 1px solid var(--rk-ln-2); border-top: 0; }
	.rk-home > .rk-view:last-child { border-bottom: 0; }
	.rk-stampzone--home { grid-template-columns: minmax(0, 1fr); }
	.rk-rev { border-right: 0; border-bottom: 2px solid var(--rk-ln); }
	.rk-stampzone--home .rk-st { width: min(100%, 760px); justify-self: end; border-left: 2px solid var(--rk-ln); }
	.rk-task { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rk-task > div:nth-child(n+4) { border-top: 1px solid var(--rk-ln-2); }
	.rk-task > div:nth-child(4) { border-left: 0; }
}
@media (max-width: 860px) {
	.rk-top { gap: 10px; flex-wrap: wrap; }
	.rk-top__sheet { display: none; }
	.rk-find { order: 3; width: 100%; margin: 0; }
	.rk-me { margin-left: auto; }
	.rk-sheet { padding: 0 10px 0 22px; }
	.rk-crumbs-row { padding-left: 22px; padding-right: 10px; }
	.rk-sheet__frame { padding: 22px 16px 0; }
	.rk-sheet__frame::before { inset: -6px -6px -6px -16px; }
	.rk-sheet__frame::after { display: none; }
	.rk-stampzone { margin-left: -16px; margin-right: -16px; }
	.rk-head, .rk-head--profile { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.rk-head__act { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
	.rk-head__pos { display: none; }
	.rk-head--profile .rk-card__photo { align-items: flex-start; }
	.rk-calc { grid-template-columns: minmax(0, 1fr); }
	.rk-tt__g:last-child { border-bottom: 1px solid var(--rk-ln-3); }
	.rk-meter { max-width: 340px; width: 100%; margin: 0 auto; }
	.rk-card__grid { grid-template-columns: minmax(0, 1fr); }
	.rk-card__grid > .rk-view:first-child { border-right: 0; border-bottom: 1px solid var(--rk-ln-2); }
	.rk-st, .rk-stampzone--home .rk-st { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; width: 100%; border-left: 0; }
	.rk-st__name { grid-row: 1; grid-column: 1 / 3; border-right: 0; border-bottom: 2px solid var(--rk-ln); }
	.rk-st__sign { grid-row: 2 / 4; grid-column: 1; }
	.rk-st__meta { grid-row: 2; grid-column: 2; }
	.rk-st__org { grid-row: 3; grid-column: 2; }
	.rk-rev { padding: 14px 16px; }
	.rk-revt thead { display: none; }
	.rk-revt, .rk-revt tbody { display: block; }
	.rk-revt tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--rk-ln-3); }
	.rk-revt td { border: 0; padding: 0; }
	.rk-revt .rk-rev__i { display: none; }
	.rk-revt .rk-rev__l { grid-column: 1; grid-row: 1; }
	.rk-revt .rk-rev__t { grid-column: 1 / 4; grid-row: 2; }
	.rk-revt .rk-rev__n { grid-column: 3; grid-row: 1; }
	.rk-revt .rk-rev__n::after { content: " отв."; font-weight: 400; color: var(--rk-tx-3); }
	.rk-revt .rk-rev__s { grid-column: 1 / 3; grid-row: 3; }
	.rk-revt .rk-rev__d { grid-column: 3; grid-row: 3; text-align: right; }
	.rk-revt--card .rk-rev__d { grid-row: 1; grid-column: 2; text-align: right; }
	.rk-spect thead { display: none; }
	.rk-spect, .rk-spect tbody { display: block; }
	.rk-srow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--rk-ln-3); }
	.rk-srow td { border: 0; padding: 0; width: auto; }
	.rk-srow__no { grid-row: 1 / 3; }
	.rk-srow__main { grid-column: 2 / 4; }
	.rk-srow__n { grid-column: 3; grid-row: 2; text-align: right; }
	.rk-srow__n a::after { content: " выносок"; font: 400 11px/1 var(--rk-f-m); color: var(--rk-tx-3); }
	.rk-srow__last { grid-column: 2; grid-row: 2; }
	.rk-srow__d { display: none; }
	.rk-sep { display: block; }
	.rk-sep th { display: block; }
	.rk-pl { grid-template-columns: 40px minmax(0, 1fr); }
	.rk-pl__n { grid-column: 2; text-align: left; }
	.rk-pl__n b { display: inline; font-size: 18px; margin-right: 6px; }
	.rk-posts::before { left: 15px; }
	.rk-post { grid-template-columns: 38px minmax(0, 1fr); }
	.rk-post__num { left: 2px; width: 27px; height: 27px; font-size: 11.5px; top: 22px; }
	.rk-post__axis::after { left: 29px; }
	.rk-post__box { padding: 18px 14px 8px; }
	.rk-post--task .rk-post__head, .rk-post--task .rk-post__body, .rk-post--task .rk-post__foot, .rk-post--task .post_meta { padding-left: 14px; padding-right: 14px; }
	.rk-task > div { padding: 7px 9px; }
	.rk-task dd { font-size: 14.5px; }
	.rk-foot { grid-template-columns: minmax(0, 1fr); padding-left: 22px; }
	.rk-foot__links { justify-content: flex-start; }
	.rk-status { display: none; }
	.rk-tab__a { padding: 0 12px; }
	.rk-msg { grid-template-columns: minmax(0, 1fr); padding: 18px; }
}
@media (max-width: 520px) {
	body { font-size: 15.5px; }
	.rk-logo__s { display: none; }
	.rk-logo__n { font-size: 17px; white-space: normal; }
	.rk-me__b span { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.rk-view { padding: 16px 12px 14px; }
	.rk-plan-wrap { margin: 4px -8px 0; }
	.rk-layer { padding: 6px 8px; font-size: 11px; }
	.rk-task { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rk-task > div:nth-child(n+3) { border-top: 1px solid var(--rk-ln-2); }
	.rk-task > div:nth-child(odd) { border-left: 0; }
	.rk-task > div:nth-child(4) { border-left: 1px solid var(--rk-ln-2); }
	.rk-task--card { grid-template-columns: minmax(0, 1fr); }
	.rk-task--card > div { border-left: 0 !important; }
	.rk-ex__last { white-space: normal; }
	.rk-card__nums li { padding: 8px 12px; }
	.rk-st__title { font-size: 18px; }
	.rk-st__who { max-width: 110px; }
	.rk-st__sig { width: 34px; }
	.rk-st__sig i { width: 30px; }
	.rk-tab__no { display: none; }
	.rk-tab--model .rk-tab__no { display: inline; }
	.rk-tab--model .rk-tab__n { display: none; }
	.rk-post__when { margin-left: 0; width: 100%; }
	.rk-head--home .rk-head__legend { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
	.rk-top, .rk-tabs, .rk-foot, .rk-calc, .rk-tt { display: none; }
	body { padding: 0; }
}
