/* Профильный цех — тема «Чертёж».
   Контрастный двухцветный режим: чертёжная синька + сигнальный оранжевый на белом листе в миллиметровке,
   тонкие линии чертежа, штампы и выноски. Шрифты: Roboto Flex (вариативный, ширина 25–151 %: узкие заголовки
   и метки, обычный текст) и Geist Mono (размеры, номера, штампы), оба OFL, лежат в теме. Префикс классов tf-. */

@font-face { font-family: "TF Flex"; font-style: normal; font-display: swap; font-weight: 100 1000; font-stretch: 25% 151%;
	src: url(fonts/roboto-flex-cyrillic-wdth-normal.woff2) format("woff2-variations"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TF Flex"; font-style: normal; font-display: swap; font-weight: 100 1000; font-stretch: 25% 151%;
	src: url(fonts/roboto-flex-latin-wdth-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "TF Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/geist-mono-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TF Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/geist-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "TF Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/geist-mono-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TF Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/geist-mono-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }

:root {
	--tf-blue: #123f8c;
	--tf-blue-d: #0b2a62;
	--tf-blue-dd: #081d45;
	--tf-blue-l: #e7eef9;
	--tf-blue-ll: #f2f6fc;
	--tf-blue-m: #7fa3e0;
	--tf-ink: #0d2350;
	--tf-ink2: #22396a;
	--tf-mute: #51658c;
	--tf-dim: #7d8db0;
	--tf-line: rgba(18, 63, 140, .18);
	--tf-line2: rgba(18, 63, 140, .38);
	--tf-paper: #f7f9fd;
	--tf-or: #f05a14;
	--tf-or-d: #c2410c;
	--tf-or-l: #fde8dd;
	--tf-font: "TF Flex", "Roboto", "Segoe UI", system-ui, sans-serif;
	--tf-mono: "TF Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--tf-wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
	margin: 0; color: var(--tf-ink); font: 400 16px/1.56 var(--tf-font); font-stretch: 100%;
	background-color: var(--tf-paper);
	background-image:
		linear-gradient(rgba(18, 63, 140, .075) 1px, transparent 1px),
		linear-gradient(90deg, rgba(18, 63, 140, .075) 1px, transparent 1px),
		linear-gradient(rgba(18, 63, 140, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(18, 63, 140, .035) 1px, transparent 1px);
	background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
	background-position: -1px -1px;
	text-rendering: optimizeLegibility;
}
a { color: var(--tf-blue); text-decoration: none; }
a:hover { color: var(--tf-or-d); }
img { max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--tf-or); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
.tf-skip { position: absolute; left: -9999px; top: 8px; background: var(--tf-or); color: #fff; padding: 8px 14px; z-index: 100; }
.tf-skip:focus { left: 8px; }
.tf-app { min-height: 100vh; display: flex; flex-direction: column; }
.tf-main { width: 100%; max-width: var(--tf-wrap); margin: 0 auto; padding: 0 24px 56px; flex: 1; }

.tf-kicker { margin: 0 0 6px; font: 400 11.5px/1.2 var(--tf-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tf-or-d); }
.tf-h1 { font: 760 clamp(28px, 3.3vw, 40px)/1.06 var(--tf-font); font-stretch: 42%; letter-spacing: 0; color: var(--tf-ink); }
.tf-h2 { font: 760 23px/1.12 var(--tf-font); font-stretch: 46%; letter-spacing: .005em; color: var(--tf-ink); }
.tf-mono { font-family: var(--tf-mono); font-size: .92em; }
.tf-more { font: 400 12.5px/1.3 var(--tf-mono); letter-spacing: .02em; color: var(--tf-blue); border-bottom: 1px solid var(--tf-line2); padding-bottom: 1px; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.tf-more:hover { color: var(--tf-or-d); border-color: var(--tf-or); }
.tf-empty { list-style: none; padding: 14px 16px; color: var(--tf-mute); font-size: 14.5px; }

/* лист с угловыми засечками (рамка чертежа) */
.tf-card { position: relative; background: #fff; border: 1px solid var(--tf-line2); padding: 18px 18px 16px; margin: 0 0 22px; }
.tf-card::before, .tf-card::after { content: ""; position: absolute; width: 10px; height: 10px; border: 0 solid var(--tf-or); pointer-events: none; }
.tf-card::before { top: -4px; left: -4px; border-top-width: 2px; border-left-width: 2px; }
.tf-card::after { bottom: -4px; right: -4px; border-bottom-width: 2px; border-right-width: 2px; }
.tf-card__head { margin: 0 0 14px; padding: 0 0 10px; border-bottom: 1px solid var(--tf-line); }
.tf-card__sub { margin: 4px 0 0; font: 400 12px/1.35 var(--tf-mono); color: var(--tf-mute); }

/* ------------------------------------------------------------------ шапка: синяя полоса, навигация сверху */
.tf-top { position: relative; z-index: 30; background: var(--tf-blue); color: #fff; border-bottom: 3px solid var(--tf-or);
	background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 20px 20px; }
.tf-top__in { max-width: var(--tf-wrap); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 22px; }
.tf-logo { display: flex; align-items: center; gap: 12px; color: #fff; flex: none; }
.tf-logo:hover { color: #fff; }
.tf-logo__mark { flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .55); }
.tf-logo__txt { display: grid; line-height: 1.05; }
.tf-logo__name { font: 820 24px/1 var(--tf-font); font-stretch: 36%; letter-spacing: .02em; text-transform: uppercase; }
.tf-logo__sub { font: 400 10.5px/1.25 var(--tf-mono); color: #c3d4f2; margin-top: 4px; letter-spacing: .02em; }
.tf-nav { display: flex; align-items: stretch; gap: 2px; flex: 1; min-width: 0; }
.tf-nav__a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 11px; color: #eaf0fb; font: 600 15px/1 var(--tf-font); font-stretch: 80%; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.tf-nav__a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--tf-or); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s; }
.tf-nav__a:hover { color: #fff; }
.tf-nav__a:hover::after, .tf-nav__a.is-on::after { transform: scaleX(1); }
.tf-nav__a.is-on { color: #fff; }
.tf-nav__b svg { transition: transform .2s; }
.tf-nav__b[aria-expanded="true"] svg { transform: rotate(180deg); }
.tf-find { position: relative; display: flex; align-items: center; width: 260px; flex: none; }
.tf-find__l { position: absolute; left: -9999px; }
.tf-find__i { position: absolute; left: 10px; color: var(--tf-blue-m); pointer-events: none; }
.tf-find input.textbox { width: 100%; height: 38px; padding: 8px 64px 8px 34px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(8, 29, 69, .35); color: #fff; border-radius: 0; font-size: 14.5px; }
.tf-find input.textbox::placeholder { color: #a9bde3; }
.tf-find input.textbox:focus { background: #fff; color: var(--tf-ink); border-color: #fff; box-shadow: none; }
.tf-find__b { position: absolute; right: 3px; top: 3px; bottom: 3px; padding: 0 10px; border: 0; background: var(--tf-or); color: #fff; font: 600 13px/1 var(--tf-font); font-stretch: 85%; cursor: pointer; }
.tf-find__b:hover { background: var(--tf-or-d); }
.tf-me { position: relative; flex: none; }
.tf-me__b { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 8px; border: 1px solid rgba(255, 255, 255, .55); background: transparent; color: #fff; cursor: pointer; font: 600 14px/1 var(--tf-font); font-stretch: 85%; }
.tf-me__b:hover { background: rgba(255, 255, 255, .1); }
.tf-me__panel { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; background: #fff; color: var(--tf-ink); border: 1px solid var(--tf-line2); border-top: 3px solid var(--tf-or); padding: 16px; box-shadow: 0 22px 40px -20px rgba(8, 29, 69, .55); }
.tf-me__panel[hidden] { display: none; }

/* панель «Участки» */
.tf-pan { position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--tf-ink); border-bottom: 1px solid var(--tf-line2); box-shadow: 0 30px 50px -30px rgba(8, 29, 69, .6); }
.tf-pan[hidden] { display: none; }
.tf-pan__in { max-width: var(--tf-wrap); margin: 0 auto; padding: 22px 24px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 26px; }
.tf-pan__g { border-top: 2px solid var(--tf-blue); padding-top: 10px; }
.tf-pan__g.is-on { border-top-color: var(--tf-or); }
.tf-pan__h { font: 400 11.5px/1.2 var(--tf-mono); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
.tf-pan__h a { color: var(--tf-mute); }
.tf-pan__g ul { list-style: none; margin: 0; padding: 0; }
.tf-pan__a { display: flex; align-items: center; gap: 10px; padding: 7px 4px; color: var(--tf-ink); font: 500 15px/1.2 var(--tf-font); border-bottom: 1px dashed var(--tf-line); }
.tf-pan__a .tf-ico { color: var(--tf-blue); flex: none; }
.tf-pan__a:hover, .tf-pan__a.is-on { color: var(--tf-or-d); }
.tf-pan__a:hover .tf-ico { color: var(--tf-or); }

.tf-crumbs-row { max-width: var(--tf-wrap); margin: 0 auto; padding: 14px 24px 0; width: 100%; }
.tf-crumbs { font: 400 12.5px/1.4 var(--tf-mono); color: var(--tf-mute); display: flex; flex-wrap: wrap; gap: 2px 8px; }
.tf-crumbs a { color: var(--tf-blue); }
.tf-crumbs .active { color: var(--tf-ink2); }
.tf-crumbs__sep { color: var(--tf-or); }
.tf-page--index .tf-crumbs-row { display: none; }

/* ------------------------------------------------------------------ значки, лица, разряды, репутация */
.tf-ico { display: block; }
.tf-ico .a { stroke: var(--tf-or); }
.tf-face { flex: none; display: inline-grid; place-items: center; overflow: hidden; color: var(--tf-blue); background: #fff; border: 1.5px solid currentColor; border-radius: 50%; font: 700 15px/1 var(--tf-font); font-stretch: 70%; letter-spacing: .02em; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--tf-line2); }
.tf-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-face--img { border-color: var(--tf-blue); }
.tf-face--xs { width: 22px; height: 22px; font-size: 10px; box-shadow: none; border-width: 1px; }
.tf-face--s { width: 30px; height: 30px; font-size: 12px; box-shadow: none; }
.tf-face--m { width: 44px; height: 44px; font-size: 15px; }
.tf-face--l { width: 60px; height: 60px; font-size: 20px; }
.tf-face--xl { width: 140px; height: 140px; font-size: 44px; border-width: 2px; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--tf-line2); }
.tf-tone-1 { color: var(--tf-or-d); }
.tf-tone-2 { color: var(--tf-blue-d); background: var(--tf-blue-l); }
.tf-tone-3 { color: #fff; background: var(--tf-blue); border-color: var(--tf-blue); }
.tf-top .tf-face { box-shadow: none; }
.tf-badge { display: inline-block; vertical-align: middle; flex: none; }
.tf-badge .fr { fill: #fff; stroke: var(--tf-line2); stroke-width: 1; }
.tf-badge .pr { fill: none; stroke: var(--tf-blue); stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.tf-badge--4 .fr, .tf-badge--5 .fr { stroke: var(--tf-blue); }
.tf-badge--5 .pr { stroke: var(--tf-or); }
.tf-badge--6 .fr { fill: var(--tf-blue); stroke: var(--tf-blue); }
.tf-badge--6 .pr { stroke: var(--tf-or); }
.tf-rank { display: inline-flex; align-items: center; gap: 6px; }
.tf-rank__t { font: 400 11.5px/1.2 var(--tf-mono); color: var(--tf-mute); letter-spacing: .02em; }
.tf-nut .h { fill: #fff; stroke: var(--tf-blue); stroke-width: 1.5; }
.tf-nut .c { fill: none; stroke: var(--tf-blue); stroke-width: 1.4; }
.tf-rep { display: inline-flex; align-items: center; gap: 4px; font: 600 12.5px/1 var(--tf-mono); color: var(--tf-blue); }
.tf-rep--up .tf-nut .h { fill: var(--tf-or-l); stroke: var(--tf-or-d); }
.tf-rep--up .tf-nut .c { stroke: var(--tf-or-d); }
.tf-rep--up { color: var(--tf-or-d); }
.tf-rep--down { color: var(--tf-dim); }

.tf-tag { display: inline-block; padding: 2px 7px 3px; margin: 0 4px 4px 0; border: 1px solid var(--tf-line2); color: var(--tf-blue); background: var(--tf-blue-ll); font: 400 11.5px/1.3 var(--tf-mono); letter-spacing: .01em; transition: border-color .2s, color .2s, background .2s; }
.tf-tag:hover { border-color: var(--tf-or); color: var(--tf-or-d); background: #fff; }

.tf-stamp { display: inline-block; padding: 3px 8px 4px; border: 2px solid var(--tf-blue); color: var(--tf-blue); font: 600 11.5px/1 var(--tf-mono); letter-spacing: .1em; text-transform: uppercase; transform: rotate(-3deg); background: #fff; }
.tf-stamp--ok { border-color: var(--tf-or); color: var(--tf-or-d); box-shadow: inset 0 0 0 1.5px #fff, inset 0 0 0 2.5px var(--tf-or); padding: 4px 9px 5px; }
.tf-stamp--wait { border-style: dashed; color: var(--tf-mute); border-color: var(--tf-mute); }
a.tf-stamp--ok:hover { background: var(--tf-or-l); }

/* ------------------------------------------------------------------ главная: схема линии */
.tf-line { position: relative; margin: 22px 0 28px; background: var(--tf-blue); color: #fff; border: 1px solid var(--tf-blue-dd); padding: 22px 24px 14px;
	box-shadow: inset 0 0 0 6px var(--tf-blue), inset 0 0 0 7px rgba(255, 255, 255, .28); }
.tf-line__head { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; padding: 0 6px; }
.tf-line .tf-kicker { color: #ffb48d; }
.tf-line__h { font: 860 clamp(40px, 5.2vw, 72px)/.92 var(--tf-font); font-stretch: 30%; letter-spacing: .01em; text-transform: uppercase; color: #fff; }
.tf-line__lead { margin: 10px 0 0; max-width: 640px; color: #d6e2f7; font-size: 16.5px; line-height: 1.5; }
.tf-line__tip { min-height: 118px; border: 1px solid rgba(255, 255, 255, .45); padding: 12px 14px; background: rgba(8, 29, 69, .35); position: relative; }
.tf-line__tip::before { content: ""; position: absolute; left: -1px; top: -1px; width: 28px; height: 3px; background: var(--tf-or); }
.tf-line__tk { margin: 0 0 4px; font: 400 10.5px/1.2 var(--tf-mono); letter-spacing: .1em; text-transform: uppercase; color: #a9bde3; }
.tf-line__tt { margin: 0; font: 760 21px/1.1 var(--tf-font); font-stretch: 46%; color: #fff; }
.tf-line__td { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: #d6e2f7; }
.tf-line__tf { margin: 6px 0 0; font: 400 12px/1.3 var(--tf-mono); color: #ffb48d; }
.tf-line__tf:empty { display: none; }
.tf-line__scroll { margin: 10px 0 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.tf-ln__svg { display: block; width: 100%; min-width: 760px; height: auto; }
.tf-line__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 6px 6px 0; font: 400 11.5px/1.35 var(--tf-mono); color: #a9bde3; }
.tf-line__pause { font: 400 11.5px/1 var(--tf-mono); color: #fff; background: none; border: 1px solid rgba(255, 255, 255, .45); padding: 6px 10px; cursor: pointer; letter-spacing: .03em; }
.tf-line__pause:hover { border-color: var(--tf-or); color: #ffb48d; }

.tf-ln__grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.tf-ln__floor { stroke: rgba(255, 255, 255, .7); stroke-width: 1.5; }
.tf-ln__hatch { stroke: rgba(255, 255, 255, .3); stroke-width: 1; }
.tf-ln__m { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.tf-ln__t { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1; }
.tf-ln__acc { fill: var(--tf-or); stroke: none; }
.tf-ln__hit { fill: transparent; stroke: none; }
.tf-ln__strip { fill: none; stroke: var(--tf-or); stroke-width: 5; }
.tf-ln__flow { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 5; stroke-dasharray: 1.5 22; animation: tf-flow 1.1s linear infinite; }
.tf-ln__rolls circle { fill: var(--tf-blue); stroke: #fff; stroke-width: 1.3; }
.tf-ln__card { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .3); stroke-width: 1; transition: fill .2s, stroke .2s; }
.tf-ln__sec { fill: none; stroke: var(--tf-or); stroke-width: 2.4; stroke-linecap: square; stroke-linejoin: miter; }
.tf-ln__sec--done { stroke-width: 2.6; }
.tf-ln__no { font: 400 9px/1 var(--tf-mono); fill: #a9bde3; }
.tf-ln__lbl { font: 400 10.5px/1 var(--tf-mono); fill: #c3d4f2; letter-spacing: .04em; }
.tf-ln__lbl--dim { fill: #ffb48d; }
.tf-ln__dim { stroke: #ffb48d; stroke-width: 1; fill: none; }
.tf-ln__arrh { fill: #ffb48d; }
.tf-ln__led { fill: #6ee7a8; animation: tf-blink 2.4s steps(2, end) infinite; }
.tf-ln__led--b { fill: var(--tf-or); animation-delay: 1.2s; }
.tf-ln__bar { stroke: #fff; stroke-width: 5; opacity: 0; animation: tf-bar 4.4s linear infinite; }
.tf-ln__bar--2 { animation-delay: 2.2s; }
.tf-ln__spin { animation: tf-spin 9s linear infinite; }
.tf-ln__roll { animation: tf-spin 2.4s linear infinite; }
.tf-ln__roll--b { animation-direction: reverse; }
.tf-ln__punch { animation: tf-punch 2.2s cubic-bezier(.6, 0, .4, 1) infinite; }
.tf-ln__blade { animation: tf-blade 4.4s cubic-bezier(.7, 0, .3, 1) infinite; }
.tf-ln__n { cursor: pointer; outline: none; }
.tf-ln__n:hover .tf-ln__m, .tf-ln__n:focus-visible .tf-ln__m, .tf-ln__n.is-hot .tf-ln__m { stroke: #ffb48d; }
.tf-ln__n:hover .tf-ln__card, .tf-ln__n:focus-visible .tf-ln__card, .tf-ln__n.is-hot .tf-ln__card { fill: rgba(240, 90, 20, .22); stroke: var(--tf-or); }
.tf-ln__n:hover .tf-ln__lbl, .tf-ln__n.is-hot .tf-ln__lbl, .tf-ln__n:hover .tf-ln__no, .tf-ln__n.is-hot .tf-ln__no { fill: #fff; }
.tf-ln__n:focus-visible .tf-ln__hit { stroke: var(--tf-or); stroke-width: 1.5; stroke-dasharray: 4 3; }
.tf-line.is-paused * { animation-play-state: paused !important; }
@keyframes tf-flow { to { stroke-dashoffset: -23.5; } }
@keyframes tf-spin { to { transform: rotate(360deg); } }
@keyframes tf-blink { 50% { opacity: .25; } }
@keyframes tf-punch { 0%, 55%, 100% { transform: translateY(0); } 70% { transform: translateY(10px); } }
@keyframes tf-blade { 0%, 80%, 100% { transform: translateY(0); } 88% { transform: translateY(26px); } }
@keyframes tf-bar { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(80px); opacity: 0; } }

/* ------------------------------------------------------------------ главная: вопросы и боковая колонка */
.tf-desk > *, .tf-side > * { min-width: 0; }
.tf-desk { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; align-items: start; }
.tf-qs { background: #fff; border: 1px solid var(--tf-line2); margin: 0 0 22px; }
.tf-qs__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 16px 18px 0; }
.tf-tabs { display: flex; gap: 0; border: 1px solid var(--tf-blue); }
.tf-tab { padding: 8px 13px; border: 0; border-right: 1px solid var(--tf-blue); background: #fff; color: var(--tf-blue); font: 600 14px/1 var(--tf-font); font-stretch: 82%; cursor: pointer; transition: background .2s, color .2s; }
.tf-tab:last-child { border-right: 0; }
.tf-tab:hover { background: var(--tf-blue-l); }
.tf-tab.is-on { background: var(--tf-blue); color: #fff; box-shadow: inset 0 -3px 0 var(--tf-or); }
.tf-tagrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0; margin: 12px 18px 0; padding: 0 0 10px; border-bottom: 1px solid var(--tf-line); }
.tf-tagrow > span { font: 400 11.5px/1 var(--tf-mono); color: var(--tf-mute); margin-right: 8px; }
.tf-qlist { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.tf-qlist[hidden] { display: none; }
.tf-qlist.is-in .tf-q { animation: tf-rowin .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--n, 0) * 35ms); }
@keyframes tf-rowin { from { opacity: 0; transform: translateY(6px); } }
.tf-q { position: relative; display: grid; grid-template-columns: 186px minmax(0, 1fr) auto; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--tf-line); transition: background .2s; }
.tf-q:last-child { border-bottom: 0; }
.tf-q:hover { background: var(--tf-blue-ll); }
.tf-q__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; align-self: start; }
.tf-q__s { margin: 0; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 52px; padding: 5px 2px; text-align: center; border: 1px solid transparent; color: var(--tf-mute); }
.tf-q__s b { font: 600 16px/1 var(--tf-mono); color: var(--tf-ink2); }
.tf-q__s span { font: 400 10px/1.15 var(--tf-mono); letter-spacing: .01em; }
.tf-q__s--use b { color: var(--tf-or-d); }
.tf-q__s--ans { border-color: var(--tf-line2); color: var(--tf-blue); }
.tf-q__s--ans b { color: var(--tf-blue); }
.tf-q--solved .tf-q__s--ans { background: var(--tf-or); border-color: var(--tf-or); color: #fff; }
.tf-q--solved .tf-q__s--ans b { color: #fff; }
.tf-q--wait .tf-q__s--ans { border-style: dashed; color: var(--tf-dim); }
a.tf-q__s:hover { border-color: var(--tf-or); }
.tf-q__main { min-width: 0; }
.tf-q__t { font: 680 18px/1.25 var(--tf-font); font-stretch: 86%; margin: 0 0 4px; }
.tf-q__t a { color: var(--tf-ink); }
.tf-q__t a:hover { color: var(--tf-or-d); }
.tf-q__x { margin: 0 0 7px; font-size: 14.5px; line-height: 1.45; color: var(--tf-mute); }
.tf-q__m { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin: 0; }
.tf-q__tags { display: inline-flex; flex-wrap: wrap; }
.tf-q__tags .tf-tag { margin-bottom: 0; }
.tf-q__by { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--tf-ink2); margin-left: auto; }
.tf-q__by a { color: var(--tf-ink2); font-weight: 600; }
.tf-q__when { font: 400 11.5px/1.2 var(--tf-mono); color: var(--tf-dim); }
.tf-q__sec { font: 400 11.5px/1.2 var(--tf-mono); color: var(--tf-mute); border-bottom: 1px dotted var(--tf-line2); }
.tf-q__mod { align-self: center; }
.tf-pin { display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1px solid var(--tf-or); color: var(--tf-or-d); font: 400 10.5px/1.3 var(--tf-mono); vertical-align: 3px; }
.tf-pages { font: 400 12px/1 var(--tf-mono); margin-left: 8px; }
.tf-pages a { margin: 0 2px; }
.tf-sep { list-style: none; padding: 7px 18px; font: 400 11px/1.2 var(--tf-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tf-or-d); background: var(--tf-blue-ll); border-bottom: 1px solid var(--tf-line); }
.tf-qs__foot { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 18px 16px; margin: 0; border-top: 1px solid var(--tf-line); }

/* карта дефектов */
.tf-def__fig { border: 1px solid var(--tf-line); background: var(--tf-blue-ll); }
.tf-def__svg { display: block; width: 100%; height: auto; }
.tf-def__grid { stroke: rgba(18, 63, 140, .08); stroke-width: .6; }
.tf-def__edge, .tf-def__front, .tf-def__hid { fill: none; stroke: var(--tf-blue); stroke-width: 1.4; stroke-linejoin: round; }
.tf-def__front { stroke-width: 2; }
.tf-def__hid { stroke-opacity: .55; }
.tf-def__wave, .tf-def__crack, .tf-def__flare, .tf-def__twist { fill: none; stroke: var(--tf-or); stroke-width: 1.8; stroke-linecap: round; }
.tf-def__scr { fill: none; stroke: var(--tf-or); stroke-width: 1; stroke-dasharray: 10 6; opacity: .8; }
.tf-def__twistarr { fill: var(--tf-or); }
.tf-def__chord { stroke: var(--tf-blue); stroke-width: 1; stroke-dasharray: 5 4; fill: none; }
.tf-def__bar { stroke: var(--tf-blue); stroke-width: 3; fill: none; }
.tf-def__lbl { font: 400 9.5px/1 var(--tf-mono); fill: var(--tf-mute); }
.tf-def__lead { stroke: var(--tf-blue); stroke-width: 1; fill: none; }
.tf-def__hot { cursor: pointer; outline: none; }
.tf-def__hot circle { fill: #fff; stroke: var(--tf-blue); stroke-width: 1.5; transition: fill .2s, stroke .2s; }
.tf-def__hot text { font: 600 12px/1 var(--tf-mono); fill: var(--tf-blue); pointer-events: none; }
.tf-def__hot:hover circle, .tf-def__hot:focus-visible circle { stroke: var(--tf-or); }
.tf-def__hot.is-on circle { fill: var(--tf-or); stroke: var(--tf-or); }
.tf-def__hot.is-on text { fill: #fff; }
.tf-def__hot.is-on .tf-def__lead { stroke: var(--tf-or); stroke-width: 1.5; }
.tf-def.is-live .tf-def__hot.is-on circle { animation: tf-ping 1.6s ease-out 1; }
@keyframes tf-ping { 0% { stroke-width: 8; stroke-opacity: .3; } 100% { stroke-width: 1.5; stroke-opacity: 1; } }
.tf-def__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 12px 0 12px; }
.tf-def__tab { display: flex; align-items: center; gap: 7px; text-align: left; padding: 6px 8px; border: 1px solid var(--tf-line2); background: #fff; color: var(--tf-ink2); font: 500 13.5px/1.15 var(--tf-font); font-stretch: 90%; cursor: pointer; }
.tf-def__tab:hover { border-color: var(--tf-blue); }
.tf-def__tab.is-on { border-color: var(--tf-or); color: var(--tf-or-d); background: var(--tf-or-l); }
.tf-def__no { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.3px solid currentColor; font: 600 11px/1 var(--tf-mono); }
.tf-def__p[hidden] { display: none; }
.tf-def__p.is-new { animation: tf-rowin .35s ease both; }
.tf-def__h { display: flex; align-items: center; gap: 8px; font: 760 20px/1.15 var(--tf-font); font-stretch: 48%; color: var(--tf-ink); margin: 0 0 6px; }
.tf-def__h .tf-def__no { color: #fff; background: var(--tf-or); border-color: var(--tf-or); }
.tf-def__look { margin: 0 0 10px; font-size: 14.5px; color: var(--tf-ink2); line-height: 1.45; }
.tf-def__k { margin: 10px 0 4px; font: 400 10.5px/1.2 var(--tf-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tf-or-d); }
.tf-def__causes, .tf-def__links { margin: 0; padding: 0 0 0 18px; font-size: 14px; line-height: 1.42; color: var(--tf-ink2); }
.tf-def__causes li::marker { content: "— "; color: var(--tf-or); }
.tf-def__links { list-style: none; padding: 0; }
.tf-def__links li { padding: 4px 0; border-bottom: 1px dashed var(--tf-line); }
.tf-def__links a { color: var(--tf-blue); font-weight: 600; }
.tf-def__chk { margin: 0; font-size: 14px; color: var(--tf-ink2); line-height: 1.45; }
.tf-def__more { margin: 12px 0 0; }

/* расчёт заготовки */
.tf-calc__type { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--tf-blue); margin: 0 0 12px; }
.tf-calc__t { flex: 1 1 auto; padding: 7px 8px; border: 0; border-right: 1px solid var(--tf-blue); background: #fff; color: var(--tf-blue); font: 600 13.5px/1 var(--tf-font); font-stretch: 82%; cursor: pointer; }
.tf-calc__t:last-child { border-right: 0; }
.tf-calc__t.is-on { background: var(--tf-blue); color: #fff; }
.tf-calc__body { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; }
.tf-calc__fig { width: 112px; height: 112px; border: 1px solid var(--tf-line); background: var(--tf-blue-ll); }
.tf-calc__fig path { fill: none; stroke: var(--tf-blue); stroke-width: 4; stroke-linecap: square; stroke-linejoin: miter; transition: d .3s; }
.tf-calc__fig .dim { stroke: var(--tf-or); stroke-width: 1; }
.tf-calc__fig text { font: 400 9px/1 var(--tf-mono); fill: var(--tf-or-d); }
.tf-calc__in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.tf-calc__in label { display: grid; gap: 3px; }
.tf-calc__in label[hidden] { display: none; }
.tf-calc__in span { font: 400 11px/1 var(--tf-mono); color: var(--tf-mute); }
.tf-calc__in input, .tf-calc__in select { width: 100%; padding: 6px 8px; font: 400 15px/1.2 var(--tf-mono); }
.tf-calc__out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 14px 0 8px; border: 1px solid var(--tf-or); }
.tf-calc__out span { display: grid; gap: 3px; padding: 8px 10px; font: 400 10.5px/1.2 var(--tf-mono); color: var(--tf-mute); border-right: 1px solid var(--tf-or-l); }
.tf-calc__out span:last-child { border-right: 0; }
.tf-calc__out b { font: 600 21px/1 var(--tf-mono); color: var(--tf-or-d); }
.tf-calc__note { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--tf-mute); }

/* лучшие ответы */
.tf-bsts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tf-bst { padding: 0 0 12px; border-bottom: 1px dashed var(--tf-line2); }
.tf-bst:last-child { border-bottom: 0; padding-bottom: 0; }
.tf-bst__q { margin: 0 0 6px; font: 650 15px/1.3 var(--tf-font); font-stretch: 88%; }
.tf-bst__q a { color: var(--tf-ink); }
.tf-bst__a { margin: 0 0 6px; padding: 0 0 0 10px; border-left: 3px solid var(--tf-or); font-size: 14px; line-height: 1.45; }
.tf-bst__a a { color: var(--tf-ink2); }
.tf-bst__m { display: flex; align-items: center; gap: 6px 10px; margin: 0; font: 400 11.5px/1.2 var(--tf-mono); color: var(--tf-mute); }

/* участки */
.tf-secs { margin: 6px 0 0; }
.tf-secs__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 14px; padding: 0 0 8px; border-bottom: 2px solid var(--tf-blue); }
.tf-secs__head p { margin: 0; font: 400 12px/1.3 var(--tf-mono); color: var(--tf-mute); }
.tf-secs__g { margin: 0 0 22px; }
.tf-secs__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 10px; font: 400 12px/1.2 var(--tf-mono); letter-spacing: .08em; text-transform: uppercase; }
.tf-secs__h a { color: var(--tf-or-d); }
.tf-secs__h span { text-transform: none; letter-spacing: 0; color: var(--tf-dim); }
.tf-secs__l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tf-sec { display: flex; gap: 14px; padding: 14px; background: #fff; border: 1px solid var(--tf-line2); transition: border-color .2s, transform .2s; }
.tf-sec:hover { border-color: var(--tf-blue); transform: translateY(-2px); }
.tf-sec__ico { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--tf-line2); color: var(--tf-blue); background: var(--tf-blue-ll);
	background-image: linear-gradient(rgba(18, 63, 140, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 63, 140, .09) 1px, transparent 1px); background-size: 8px 8px; }
.tf-sec:hover .tf-sec__ico { color: var(--tf-or); }
.tf-sec__b { min-width: 0; }
.tf-sec__t { font: 700 17px/1.2 var(--tf-font); font-stretch: 78%; margin: 0 0 4px; }
.tf-sec__t a { color: var(--tf-ink); }
.tf-sec__d { margin: 0 0 6px; font-size: 13.5px; line-height: 1.42; color: var(--tf-mute); }
.tf-sec__lp { margin: 0; font-size: 13.5px; line-height: 1.35; }
.tf-sec__last { color: var(--tf-blue); font-weight: 600; }
.tf-sec__last::before { content: "свежий разбор: "; font: 400 11px/1 var(--tf-mono); color: var(--tf-dim); font-weight: 400; }
.tf-sec__none, .tf-sec__lt--none { font: 400 11.5px/1 var(--tf-mono); color: var(--tf-dim); }
.tf-sec__lt span { font: 400 11px/1 var(--tf-mono); color: var(--tf-dim); }
.tf-new { display: none; }

/* ------------------------------------------------------------------ раздел */
.tf-fhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 18px 0 14px; padding: 20px 22px; background: #fff; border: 1px solid var(--tf-line2); border-left: 6px solid var(--tf-blue); }
.tf-fhead__ico { display: grid; place-items: center; width: 84px; height: 84px; color: var(--tf-blue); border: 1px solid var(--tf-line2); background: var(--tf-blue-ll);
	background-image: linear-gradient(rgba(18, 63, 140, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 63, 140, .09) 1px, transparent 1px); background-size: 10px 10px; }
.tf-fhead__d { margin: 6px 0 0; color: var(--tf-mute); font-size: 15.5px; max-width: 760px; }
.tf-fhead__act { display: grid; justify-items: end; gap: 10px; }
.tf-fhead__no { font: 600 12px/1 var(--tf-mono); color: var(--tf-blue); border: 1px solid var(--tf-blue); padding: 5px 8px; letter-spacing: .06em; }
.tf-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.tf-filter:empty { display: none; }
.tf-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--tf-line2); background: #fff; color: var(--tf-ink2); font: 500 14px/1 var(--tf-font); font-stretch: 88%; cursor: pointer; }
.tf-chip b { font: 600 12px/1 var(--tf-mono); color: var(--tf-mute); }
.tf-chip:hover { border-color: var(--tf-blue); }
.tf-chip.is-on { background: var(--tf-blue); border-color: var(--tf-blue); color: #fff; }
.tf-chip.is-on b { color: #ffb48d; }
.tf-chip--solved.is-on { background: var(--tf-or); border-color: var(--tf-or); }
.tf-chip--solved.is-on b { color: #fff; }
.tf-sortl { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font: 400 12px/1.2 var(--tf-mono); color: var(--tf-dim); }
.tf-sortl a { color: var(--tf-blue); }
.tf-qs--forum .tf-qs__head { padding-bottom: 12px; border-bottom: 1px solid var(--tf-line); }
.tf-qlist__none { padding: 16px 18px; color: var(--tf-mute); margin: 0; }
.tf-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin: 0 0 20px; }
.tf-bar__r { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.tf-secs--sub { margin-bottom: 20px; }
.tf-modtools:empty { display: none; }

/* ------------------------------------------------------------------ тема: вопрос-лист и ответы */
.tf-qa { margin: 18px 0 0; }
.tf-qhead { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; padding: 22px 22px 20px; background: #fff; border: 1px solid var(--tf-line2); border-top: 6px solid var(--tf-blue); position: relative; }
.tf-qhead__k { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; font: 400 12px/1.2 var(--tf-mono); color: var(--tf-mute); }
.tf-qhead__ico { color: var(--tf-blue); }
.tf-qhead__lbl { padding: 3px 7px; background: var(--tf-or); color: #fff; letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; }
.tf-qhead__k a { color: var(--tf-blue); }
.tf-qhead__h1 { margin: 0 0 12px; }
.tf-qhead__tags { margin: 0; }
.tf-shtamp { width: 100%; border-collapse: collapse; border: 2px solid var(--tf-blue); font-size: 13.5px; background: #fff; }
.tf-shtamp th, .tf-shtamp td { border: 1px solid var(--tf-blue); padding: 6px 8px; text-align: left; vertical-align: middle; }
.tf-shtamp th { width: 1%; white-space: nowrap; font: 400 10.5px/1.2 var(--tf-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tf-mute); background: var(--tf-blue-ll); }
.tf-shtamp td { color: var(--tf-ink); }
.tf-stack { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.tf-posts { display: flex; flex-direction: column; gap: 14px; margin: 14px 0 0; }
.tf-posts > .tf-post--q { order: -3; }
.tf-posts > .tf-ahead { order: -2; }
.tf-posts > .tf-post--best { order: -1; }
.tf-ahead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0 0; border-bottom: 2px solid var(--tf-blue); padding-bottom: 8px; }
.tf-sort { display: flex; align-items: center; gap: 0; font: 400 12px/1 var(--tf-mono); }
.tf-sort span { color: var(--tf-dim); margin-right: 8px; }
.tf-sort__b { padding: 6px 9px; border: 1px solid var(--tf-blue); background: #fff; color: var(--tf-blue); font: 400 12px/1 var(--tf-mono); cursor: pointer; }
.tf-sort__b + .tf-sort__b { border-left: 0; }
.tf-sort__b.is-on { background: var(--tf-blue); color: #fff; }
.tf-post { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 14px; align-items: start; scroll-margin-top: 20px; }
.tf-post--q { grid-template-columns: minmax(0, 1fr); }
.tf-anchor { position: absolute; }
.tf-vote { position: sticky; top: 14px; display: grid; justify-items: center; gap: 3px; padding: 10px 4px 8px; background: #fff; border: 1px solid var(--tf-line2); color: var(--tf-mute); }
.tf-vote b { font: 600 20px/1 var(--tf-mono); color: var(--tf-blue); }
.tf-vote span { font: 400 9.5px/1 var(--tf-mono); letter-spacing: .02em; }
.tf-post--best .tf-vote { border-color: var(--tf-or); background: var(--tf-or-l); }
.tf-post--best .tf-vote b { color: var(--tf-or-d); }
.tf-post--best .tf-nut .h { fill: var(--tf-or); stroke: var(--tf-or-d); }
.tf-post--best .tf-nut .c { stroke: #fff; }
.tf-post__card { position: relative; min-width: 0; background: #fff; border: 1px solid var(--tf-line2); padding: 14px 18px 10px; }
.tf-post--q .tf-post__card { border-color: var(--tf-blue); padding: 18px 22px 12px; box-shadow: 6px 6px 0 var(--tf-blue-l); }
.tf-post--q .tf-post__body { font-size: 17.5px; line-height: 1.6; }
.tf-post--best .tf-post__card { border: 2px solid var(--tf-or); padding: 13px 17px 9px; }
.tf-post--op:not(.tf-post--best) .tf-post__card { border-left: 4px solid var(--tf-blue); }
.tf-flag { display: flex; align-items: center; gap: 10px; margin: -2px 0 10px; font: 400 11.5px/1.2 var(--tf-mono); color: var(--tf-or-d); }
.tf-flag--op { color: var(--tf-blue); }
.tf-flag--op span { padding: 2px 7px; border: 1px solid var(--tf-blue); letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; }
.tf-post__bar { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 0 0 10px; border-bottom: 1px dashed var(--tf-line2); }
.tf-post__id { min-width: 0; flex: 1; display: grid; gap: 3px; }
.tf-post__nick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font: 700 16px/1.15 var(--tf-font); font-stretch: 84%; }
.tf-post__nick a { color: var(--tf-ink); }
.tf-post__rank, .tf-post__line { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.tf-post__line span { font: 400 11.5px/1.25 var(--tf-mono); color: var(--tf-dim); }
.tf-post__city::before { content: "г. "; }
.tf-post__when { flex: none; align-self: start; font: 400 11.5px/1.2 var(--tf-mono); color: var(--tf-mute); }
.tf-post__when:hover { color: var(--tf-or-d); }
.tf-post__re { display: inline-block; margin: 0 0 8px; font: 400 11.5px/1.2 var(--tf-mono); color: var(--tf-blue); border-bottom: 1px dotted var(--tf-line2); }
.tf-post__body { font-size: 16px; line-height: 1.62; overflow-wrap: anywhere; }
.tf-post__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--tf-line); }
.post_meta:empty, .post_meta { font-size: 12.5px; color: var(--tf-dim); }
.tf-post.is-target .tf-post__card { box-shadow: 0 0 0 3px var(--tf-or-l); }
.tf-guest { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0; padding: 14px 18px; background: var(--tf-blue-l); border: 1px dashed var(--tf-blue); }
.tf-guest p { margin: 0; color: var(--tf-ink2); }
.tf-bar--thread { margin-top: 14px; }
.tf-tfoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; margin: 18px 0 8px; padding: 12px 0; border-top: 1px solid var(--tf-line2); }
.tf-tfoot__note { margin: 0; font-size: 13.5px; color: var(--tf-mute); max-width: 680px; }
.tf-nextprev { display: flex; gap: 16px; font: 400 12.5px/1.3 var(--tf-mono); }
.tf-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.tf-tools .thread_tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tf-tools .thread_tools li { background: none !important; padding: 0 !important; }

/* ------------------------------------------------------------------ профиль-паспорт */
.tf-pass { margin: 18px 0 0; }
.tf-pass__head { display: grid; grid-template-columns: auto minmax(0, 1fr) 360px; gap: 26px; align-items: center; padding: 24px; margin: 0 0 22px; background: #fff; border: 1px solid var(--tf-line2); border-top: 6px solid var(--tf-blue); }
.tf-pass__name { margin: 0 0 10px; }
.tf-pass__rank { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; font: 600 15px/1.2 var(--tf-font); font-stretch: 86%; color: var(--tf-ink2); }
.tf-pass__nums { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--tf-blue); width: max-content; max-width: 100%; }
.tf-pass__nums li { display: grid; gap: 3px; padding: 8px 14px; border-right: 1px solid var(--tf-blue); }
.tf-pass__nums li:last-child { border-right: 0; }
.tf-pass__nums b { font: 600 22px/1 var(--tf-mono); color: var(--tf-blue); }
.tf-pass__nums span { font: 400 10.5px/1.1 var(--tf-mono); color: var(--tf-mute); }
.tf-pass__best b { color: var(--tf-or-d); }
.tf-lad__l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border: 1px solid var(--tf-line2); position: relative; }
.tf-lad__i { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; text-align: center; border-right: 1px solid var(--tf-line); color: var(--tf-dim); position: relative; }
.tf-lad__i:last-child { border-right: 0; }
.tf-lad__i b { font: 650 13.5px/1.15 var(--tf-font); font-stretch: 82%; color: var(--tf-ink2); }
.tf-lad__i span { font: 400 10.5px/1 var(--tf-mono); }
.tf-lad__i:not(.is-past):not(.is-now) .tf-badge { opacity: .45; }
.tf-lad__i.is-past { background: var(--tf-blue-ll); }
.tf-lad__i.is-now { background: var(--tf-or-l); box-shadow: inset 0 -3px 0 var(--tf-or); }
.tf-lad__i.is-now b { color: var(--tf-or-d); }
.tf-pass__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.tf-qlist--compact .tf-q { grid-template-columns: 150px minmax(0, 1fr); padding: 10px 0; }
.tf-qlist--compact .tf-q__s { min-height: 44px; }
.tf-pass__links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; }
.tf-pass__extra:empty { display: none; }

/* ------------------------------------------------------------------ ошибки и переходы */
.tf-msg { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; max-width: 820px; margin: 30px auto; padding: 28px; }
.tf-msg__art { width: 150px; height: auto; }
.tf-msg__art path { fill: none; stroke: var(--tf-blue); stroke-width: 3; stroke-linecap: square; }
.tf-msg__art .a { stroke-width: 1; stroke: var(--tf-or); }
.tf-msg__art .o { stroke: var(--tf-or); stroke-width: 3; }
.tf-msg__t { margin: 0 0 10px; }
.tf-msg__body { color: var(--tf-ink2); }
.tf-msg__body ol, .tf-msg__body ul { padding-left: 20px; }
.tf-msg--go { margin-top: 12vh; }

/* ------------------------------------------------------------------ подвал: синяя полоса со штампом листа */
.tf-foot { background: var(--tf-blue-d); color: #d6e2f7; border-top: 3px solid var(--tf-or); margin-top: 20px;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 20px 20px; }
.tf-foot__in { max-width: var(--tf-wrap); margin: 0 auto; padding: 28px 24px 30px; display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr); gap: 24px 36px; align-items: start; }
.tf-foot__brand { display: flex; gap: 14px; align-items: flex-start; }
.tf-foot__brand p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.tf-foot__brand b { color: #fff; }
.tf-foot__mark { flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .55); }
.tf-foot__links { display: grid; gap: 6px; font: 400 13px/1.3 var(--tf-mono); }
.tf-foot__links a { color: #fff; }
.tf-foot__links a:hover { color: #ffb48d; }
.tf-foot__stamp { border-collapse: collapse; border: 2px solid rgba(255, 255, 255, .7); font: 400 11.5px/1.35 var(--tf-mono); width: 100%; }
.tf-foot__stamp td { border: 1px solid rgba(255, 255, 255, .45); padding: 6px 8px; color: #d6e2f7; }
.tf-foot__stamp tr:first-child td:nth-child(odd) { color: #a9bde3; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.tf-foot__stamp tr:first-child td:nth-child(2) { color: #fff; }

/* ------------------------------------------------------------------ вход и меню участника */
.tf-login__p { margin: 0 0 12px; font-size: 14px; color: var(--tf-mute); }
.tf-field { margin: 0 0 12px; display: grid; gap: 5px; }
.tf-field label { font: 400 11px/1 var(--tf-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tf-mute); }
.tf-field--row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.tf-field--row label { letter-spacing: 0; text-transform: none; font: 500 13.5px/1.2 var(--tf-font); color: var(--tf-ink2); }
.tf-field input.textbox { width: 100%; }
.tf-field .button { width: 100%; }
.tf-mine__who { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.tf-mine__who span { display: grid; }
.tf-mine__who a { font: 400 12px/1.3 var(--tf-mono); }
.tf-mine__links { list-style: none; margin: 0; padding: 0; display: grid; }
.tf-mine__links a { display: block; padding: 8px 6px; border-bottom: 1px dashed var(--tf-line); color: var(--tf-ink2); font-size: 15px; }
.tf-mine__links a:hover { color: var(--tf-or-d); }
.tf-pm[data-n="0"] { display: none; }
.tf-pm { background: var(--tf-or); color: #fff; padding: 1px 6px; font: 600 11px/1.3 var(--tf-mono); }

/* ------------------------------------------------------------------ стандартные элементы MyBB в стиле чертежа */
.tborder { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--tf-line2); margin: 0 0 18px; color: var(--tf-ink); }
.tborder td, .tborder th { padding: 10px 14px; border-bottom: 1px solid var(--tf-line); vertical-align: top; text-align: left; }
.thead { background: var(--tf-blue); color: #fff; font: 720 18px/1.25 var(--tf-font); font-stretch: 70%; letter-spacing: .01em; }
.thead a, .thead strong { color: #fff; }
.thead .expcolimage { float: right; }
.tcat { background: var(--tf-blue-l); font: 400 11.5px/1.3 var(--tf-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tf-blue-d); }
.tcat a { color: var(--tf-blue-d); }
.trow1, .trow2 { background: transparent; }
.trow2 { background: var(--tf-blue-ll); }
.trow_shaded { background: var(--tf-or-l); }
.trow_selected td, .trow_selected { background: #fff3e9; }
.tfoot { background: var(--tf-blue-ll); }
.tborder a, .trow1 a, .trow2 a, .tfoot a { color: var(--tf-blue); }
.smalltext { font-size: 13px; line-height: 1.45; color: var(--tf-mute); }
.largetext { font: 720 20px/1.3 var(--tf-font); font-stretch: 72%; }
.float_left { float: left; } .float_right { float: right; } .clear { clear: both; }
input.textbox, textarea, select, input[type="text"], input[type="password"], input[type="email"], input[type="search"], input[type="number"], input[type="url"] {
	font: 400 16px/1.4 var(--tf-font); color: var(--tf-ink); background: #fff; border: 1px solid var(--tf-line2); border-radius: 0; padding: 9px 11px; max-width: 100%; transition: border-color .2s, box-shadow .2s; }
textarea { width: 100%; min-height: 170px; line-height: 1.55; }
input.textbox:focus, textarea:focus, select:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="number"]:focus { outline: none; border-color: var(--tf-blue); box-shadow: 0 0 0 3px var(--tf-blue-l); }
.button, input.button, button.button, a.button, input[type="submit"], input[type="button"], button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 650 15px/1 var(--tf-font); font-stretch: 84%; color: #fff; background: var(--tf-blue); border: 0; border-radius: 0; padding: 11px 18px; cursor: pointer; text-decoration: none; box-shadow: 4px 4px 0 var(--tf-blue-l); transition: background .2s, transform .15s, box-shadow .15s; }
.button:hover, input.button:hover, input[type="submit"]:hover, button[type="submit"]:hover, a.button:hover { background: var(--tf-blue-d); color: #fff; }
.button:active, input[type="submit"]:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--tf-blue-l); }
.new_thread_button, .new_reply_button { background: var(--tf-or); box-shadow: 4px 4px 0 var(--tf-or-l); }
.new_thread_button:hover, .new_reply_button:hover { background: var(--tf-or-d); }
.closed_button { background: var(--tf-blue-l); color: var(--tf-mute); box-shadow: none; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font: 400 13px/1 var(--tf-mono); }
.pagination .pages { color: var(--tf-mute); margin-right: 6px; }
.pagination a, .pagination .pagination_current { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 9px; border: 1px solid var(--tf-line2); color: var(--tf-ink2); background: #fff; }
.pagination a:hover { border-color: var(--tf-or); color: var(--tf-or-d); }
.pagination .pagination_current { background: var(--tf-blue); border-color: var(--tf-blue); color: #fff; }
.postbit_buttons { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.postbit_buttons > a, .postbit_buttons a { display: inline-flex; align-items: center; padding: 3px 0; font: 400 12px/1.2 var(--tf-mono); color: var(--tf-mute); }
.postbit_buttons a:hover { color: var(--tf-or-d); }
.postbit_buttons a span { background: none !important; padding: 0 !important; }
.popup_menu { background: #fff; border: 1px solid var(--tf-line2); padding: 6px; box-shadow: 0 18px 30px -14px rgba(8, 29, 69, .45); z-index: 50; }
.popup_menu .popup_item { display: block; padding: 7px 10px; color: var(--tf-ink2); font-size: 15px; }
.popup_menu .popup_item:hover { background: var(--tf-blue-ll); }
.blocker { background: rgba(8, 29, 69, .55) !important; }
.modal { background: #fff !important; color: var(--tf-ink); border: 1px solid var(--tf-line2); border-top: 3px solid var(--tf-or) !important; border-radius: 0 !important; box-shadow: 0 30px 60px -20px rgba(8, 29, 69, .55) !important; padding: 18px !important; }
.modal .tborder { margin: 0; }
.error, div.error { background: var(--tf-or-l); border: 1px solid var(--tf-or); padding: 12px 16px; color: var(--tf-ink); margin-bottom: 14px; }
.red_alert, .pm_alert { background: var(--tf-blue-l); border: 1px solid var(--tf-line2); padding: 10px 14px; margin-bottom: 14px; }
fieldset { border: 1px solid var(--tf-line2); padding: 12px 14px; margin: 0 0 14px; }
legend { font: 400 11px/1 var(--tf-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tf-mute); padding: 0 6px; }
.usercp_nav_item, .modcp_nav_item { display: block; padding: 6px 4px; color: var(--tf-ink2); }
.sceditor-container { max-width: 100%; }
.ignored_post, .deleted_post_hidden { padding: 12px 16px; border: 1px dashed var(--tf-line2); color: var(--tf-mute); margin-bottom: 12px; }
.scaleimages img { max-width: 100%; height: auto; }
/* BB-коды */
blockquote.mycode_quote { margin: 10px 0 12px; padding: 10px 14px 10px 16px; border-left: 3px solid var(--tf-blue); background: var(--tf-blue-ll); color: var(--tf-ink2); font-size: 15px; }
blockquote.mycode_quote cite { display: block; font: 400 11.5px/1.2 var(--tf-mono); font-style: normal; color: var(--tf-blue); margin-bottom: 4px; }
blockquote.mycode_quote cite > span { color: var(--tf-dim); margin-left: 6px; }
.codeblock { margin: 12px 0; background: var(--tf-blue-dd); border: 1px solid var(--tf-blue-dd); overflow: hidden; }
.codeblock .title { font: 400 10.5px/1 var(--tf-mono); letter-spacing: .12em; text-transform: uppercase; color: #a9bde3; padding: 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.codeblock code { display: block; padding: 12px; overflow-x: auto; font: 13.5px/1.55 var(--tf-mono); color: #e6eefc; }
.mycode_list, ul.mycode_list, ol.mycode_list { padding-left: 1.4em; }
.post_body li::marker { color: var(--tf-or); }
.post_body hr, .mycode_hr { border: 0; height: 1px; margin: 16px 0; background: repeating-linear-gradient(90deg, var(--tf-blue) 0 14px, transparent 14px 18px, var(--tf-blue) 18px 20px, transparent 20px 24px); }
.signature { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--tf-line2); font-size: 14px; color: var(--tf-mute); }
.video_embed iframe, .post_body iframe { max-width: 100%; }
.post_body .mycode_s { text-decoration-color: var(--tf-or); text-decoration-thickness: 1.5px; }
.post_body .mycode_u { text-decoration-color: var(--tf-blue); text-underline-offset: 3px; }
.post_body img.mycode_img { border: 1px solid var(--tf-line2); }

/* ------------------------------------------------------------------ планшет */
@media (max-width: 1120px) {
	.tf-find { width: 200px; }
	.tf-nav__a { padding: 10px 8px; font-size: 14.5px; }
	.tf-desk { grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
	.tf-q { grid-template-columns: 160px minmax(0, 1fr) auto; }
}
@media (max-width: 1180px) {
	.tf-top__in { flex-wrap: wrap; gap: 10px 16px; padding-bottom: 0; }
	.tf-nav { order: 3; flex: 1 0 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 16px; border-top: 1px solid rgba(255, 255, 255, .2); }
	.tf-nav::-webkit-scrollbar { display: none; }
	.tf-find { margin-left: auto; width: 260px; }
}
@media (max-width: 980px) {
	.tf-pan__in { grid-template-columns: 1fr 1fr; gap: 16px 22px; }
	.tf-line__head { grid-template-columns: 1fr; gap: 14px; }
	.tf-line__tip { min-height: 0; }
	.tf-desk { grid-template-columns: minmax(0, 1fr); }
	.tf-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 22px; }
	.tf-side .tf-def { grid-column: 1 / -1; }
	.tf-qhead { grid-template-columns: minmax(0, 1fr); }
	.tf-pass__head { grid-template-columns: auto minmax(0, 1fr); }
	.tf-pass__stamp { grid-column: 1 / -1; }
	.tf-foot__in { grid-template-columns: 1fr 1fr; }
	.tf-foot__stamp { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ телефон */
@media (max-width: 720px) {
	body { font-size: 15.5px; background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px; }
	.tf-main { padding: 0 16px 40px; }
	.tf-top__in { padding: 10px 16px 0; }
	.tf-logo__name { font-size: 20px; }
	.tf-logo__sub { display: none; }
	.tf-logo__mark { width: 38px; height: 38px; }
	.tf-nav { margin: 0 -16px; padding: 0 8px; }
	.tf-find { order: 4; flex: 1 0 100%; width: auto; margin: 0 0 10px; }
	.tf-me { margin-left: auto; }
	.tf-me__b span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.tf-me__panel { width: min(300px, calc(100vw - 32px)); }
	.tf-pan__in { grid-template-columns: 1fr; padding: 14px 16px 18px; max-height: 70vh; overflow-y: auto; }
	.tf-crumbs-row { padding: 12px 16px 0; }
	.tf-line { margin: 16px -16px 22px; padding: 18px 14px 12px; border-left: 0; border-right: 0; box-shadow: none; }
	.tf-line__head { padding: 0; }
	.tf-line__lead { font-size: 15px; }
	.tf-line__bar span { display: none; }
	.tf-qs { margin-left: -16px; margin-right: -16px; border-left: 0; border-right: 0; }
	.tf-qs__head { padding: 14px 16px 0; }
	.tf-tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
	.tf-tab { flex: 1 0 auto; padding: 9px 10px; }
	.tf-tagrow { margin: 10px 16px 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.tf-tagrow .tf-tag { flex: none; }
	.tf-q { grid-template-columns: 1fr; gap: 8px; padding: 13px 16px; }
	.tf-q__main { order: -1; }
	.tf-q__stats { display: flex; gap: 6px; }
	.tf-q__s { min-height: 0; display: inline-flex; gap: 5px; align-items: baseline; padding: 3px 7px; }
	.tf-q__s b { font-size: 13px; }
	.tf-q__s--view { display: none; }
	.tf-q__by { margin-left: 0; }
	.tf-q__x { display: none; }
	.tf-side { display: block; }
	.tf-card { padding: 16px 14px 14px; }
	.tf-def__tabs { grid-template-columns: 1fr; }
	.tf-calc__body { grid-template-columns: 1fr; }
	.tf-calc__fig { width: 100%; height: 120px; }
	.tf-calc__out b { font-size: 18px; }
	.tf-secs__l { grid-template-columns: 1fr; }
	.tf-fhead { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 14px; }
	.tf-fhead__ico { width: 56px; height: 56px; }
	.tf-fhead__ico .tf-ico { width: 40px; height: 40px; }
	.tf-fhead__act { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; align-items: center; }
	.tf-qhead { padding: 16px; margin: 0 -16px; border-left: 0; border-right: 0; }
	.tf-shtamp { font-size: 13px; }
	.tf-shtamp th, .tf-shtamp td { padding: 5px 6px; }
	.tf-post { grid-template-columns: 1fr; gap: 0; }
	.tf-vote { position: static; grid-auto-flow: column; justify-content: start; align-items: center; gap: 6px; padding: 5px 10px; border-bottom: 0; width: max-content; }
	.tf-vote b { font-size: 15px; }
	.tf-post__card, .tf-post--q .tf-post__card { padding: 12px 14px 8px; }
	.tf-post--q .tf-post__card { box-shadow: 4px 4px 0 var(--tf-blue-l); }
	.tf-post--q .tf-post__body { font-size: 16.5px; }
	.tf-post__bar { flex-wrap: wrap; }
	.tf-post__when { order: 3; flex-basis: 100%; }
	.tf-pass__head { grid-template-columns: 1fr; justify-items: start; padding: 18px 16px; }
	.tf-face--xl { width: 104px; height: 104px; font-size: 34px; }
	.tf-lad__l { grid-template-columns: repeat(3, 1fr); }
	.tf-lad__i:nth-child(3) { border-right: 0; }
	.tf-lad__i:nth-child(-n+3) { border-bottom: 1px solid var(--tf-line); }
	.tf-pass__grid { grid-template-columns: 1fr; }
	.tf-qlist--compact .tf-q { grid-template-columns: 1fr; }
	.tf-msg { grid-template-columns: 1fr; padding: 20px 16px; }
	.tf-msg__art { width: 110px; }
	.tf-foot__in { grid-template-columns: 1fr; padding: 22px 16px 26px; }
	.tborder td, .tborder th { padding: 8px 10px; }
}
@media (max-width: 400px) {
	.tf-logo__name { font-size: 18px; }
	.tf-me__b span { display: none; }
	.tf-calc__in { grid-template-columns: 1fr 1fr; }
	.tf-calc__out { grid-template-columns: 1fr; }
	.tf-calc__out span { border-right: 0; border-bottom: 1px solid var(--tf-or-l); grid-auto-flow: column; justify-content: space-between; align-items: baseline; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ ссылки в сообщениях: свой стиль форума («сечение профнастила»)
   Под словом тонкая линия 1,5px в форме трапециевидного гофра: полка, скос, гребень, скос, как сечение профлиста С8
   в масштабе (SVG data-URI, шаг 14px, высота 5px), без подчёркивания; текст — синька 600. При наведении гофр
   «прокатывают глубже»: он выше (6px) и становится синим, текст оранжевый. Без значка внешней ссылки. */
:is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url {
	color: #123f8c;
	font-weight: 600;
	text-decoration: none;
	padding-bottom: 5px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='5' viewBox='0 0 14 5'%3E%3Cpath d='M0 4.2h2.6l2-3.4h4.8l2 3.4H14' fill='none' stroke='%23f05a14' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") repeat-x 0 100% / 14px 5px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	transition: color .2s;
}
: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: #c2410c;
	padding-bottom: 6px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='6' viewBox='0 0 14 6'%3E%3Cpath d='M0 5.2h2.6l2-4.4h4.8l2 4.4H14' fill='none' stroke='%23123f8c' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 14px 6px;
}
:is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url::after { content: none; }
