/* Первая поставка — тема «Лента».
   Контрастный двухцветный режим: крафт-гофрокартон + сигнальный жёлтый и чёрный, как скотч «Осторожно».
   Главная — лонгрид «путь первой поставки» с лентой конвейера сбоку, тема — ярлыки на боку коробки,
   навигация — нижний док. Шрифты: Seymour One (знак, главы, номера) + Fira Sans Condensed (текст), OFL.
   Префикс классов ws-. */

@font-face { font-family: "Seymour One"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/seymour-one-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: "Seymour One"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/seymour-one-latin-400-normal.woff2") format("woff2"); 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: "Fira Sans Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fira-sans-condensed-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: "Fira Sans Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fira-sans-condensed-latin-400-normal.woff2") format("woff2"); 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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans Condensed"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/fira-sans-condensed-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Condensed"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/fira-sans-condensed-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2212; }
@font-face { font-family: "Fira Sans Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/fira-sans-condensed-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/fira-sans-condensed-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2212; }
@font-face { font-family: "Fira Sans Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/fira-sans-condensed-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/fira-sans-condensed-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2212; }

:root {
	--ws-kraft: #c39663;
	--ws-kraft-l: #d7b382;
	--ws-kraft-ll: #e6cda6;
	--ws-kraft-d: #9a6c3d;
	--ws-kraft-dd: #6e4a24;
	--ws-ink: #1d150b;
	--ws-ink2: #3b2c1a;
	--ws-mute: #6a5338;
	--ws-black: #15120e;
	--ws-black2: #221d17;
	--ws-black3: #312a22;
	--ws-yellow: #ffcf00;
	--ws-yellow-d: #e2b600;
	--ws-yellow-l: #fff1a8;
	--ws-paper: #fbf6ea;
	--ws-paper2: #f2e8d3;
	--ws-line: rgba(29, 21, 11, .16);
	--ws-line2: rgba(29, 21, 11, .3);
	--ws-head: "Seymour One", "Arial Black", "Helvetica Neue", sans-serif;
	--ws-text: "Fira Sans Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
	--ws-hazard: repeating-linear-gradient(-45deg, var(--ws-yellow) 0 12px, var(--ws-black) 12px 24px);
	--ws-lift: 0 1px 0 rgba(110, 74, 36, .25), 0 14px 22px -16px rgba(62, 38, 12, .75);
	--ws-dock-h: 66px;
	--p: 0;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
	margin: 0;
	font: 400 17px/1.55 var(--ws-text);
	color: var(--ws-ink);
	background-color: var(--ws-kraft);
	/* крафт: волокна и шум + едва видные гофры под слоем бумаги */
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .35' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .2 0 0 0 0 .08 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E"),
		repeating-linear-gradient(90deg, rgba(110, 74, 36, .07) 0 3px, rgba(255, 240, 210, .05) 3px 6px, transparent 6px 11px);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	padding-bottom: calc(var(--ws-dock-h) + env(safe-area-inset-bottom, 0px));
	overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--ws-ink); text-decoration-color: rgba(29, 21, 11, .35); text-underline-offset: 3px; }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--ws-yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ws-black); }
p { margin: 0 0 .8em; }
h1, h2, h3 { margin: 0; }
.ws-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ws-yellow); color: var(--ws-black); padding: 10px 14px; font-weight: 700; }
.ws-skip:focus { left: 8px; }
.ws-app { min-height: 100vh; display: flex; flex-direction: column; }
.ws-main { width: min(1280px, 100%); margin: 0 auto; padding: 26px 24px 46px; flex: 1; }

.ws-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 700 12.5px/1 var(--ws-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ws-black); background: var(--ws-yellow); padding: 6px 9px 5px; }
.ws-h1 { font: 400 clamp(26px, 3.4vw, 40px)/1.12 var(--ws-head); letter-spacing: -.01em; color: var(--ws-ink); }
.ws-h2 { font: 400 clamp(23px, 2.6vw, 32px)/1.15 var(--ws-head); letter-spacing: -.01em; }
.ws-h3 { font: 400 18px/1.2 var(--ws-head); letter-spacing: 0; }
.ws-more { display: inline-flex; align-items: center; gap: 6px; font: 700 14px/1.2 var(--ws-text); color: var(--ws-ink); text-decoration: none; border-bottom: 2px solid var(--ws-ink); padding: 2px 0; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.ws-more:hover { background: var(--ws-yellow); color: var(--ws-black); }
.ws-empty { list-style: none; color: var(--ws-mute); font-style: italic; padding: 10px 0; }

/* ------------------------------------------------------------------ верхняя полоса и скотч «Осторожно» */
.ws-top { background: var(--ws-black); color: var(--ws-paper); position: relative; z-index: 5; }
.ws-top__in { width: min(1280px, 100%); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 24px; min-height: 62px; }
.ws-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ws-paper); text-decoration: none; flex: none; }
.ws-logo:hover { color: var(--ws-yellow); }
.ws-logo__mark { flex: none; display: block; }
.ws-logo__txt { display: grid; gap: 3px; }
.ws-logo__name { font: 400 17px/1 var(--ws-head); letter-spacing: .01em; }
.ws-logo__sub { font: 500 12.5px/1.1 var(--ws-text); color: var(--ws-kraft-l); letter-spacing: .03em; }
.ws-top__crumbs { min-width: 0; flex: 1; display: flex; justify-content: flex-end; }
.ws-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font: 500 14px/1.3 var(--ws-text); color: var(--ws-kraft-l); justify-content: flex-end; }
.ws-crumbs a { color: var(--ws-paper); text-decoration: none; border-bottom: 1px solid rgba(251, 246, 234, .25); }
.ws-crumbs a:hover { color: var(--ws-yellow); border-color: var(--ws-yellow); }
.ws-crumbs .active { color: var(--ws-kraft-l); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-crumbs__sep { color: var(--ws-yellow); opacity: .8; }
.ws-tape { position: relative; height: 30px; overflow: hidden; background: var(--ws-yellow); border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-image: var(--ws-hazard) 4; }
.ws-tape span { position: absolute; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 400 12px/1 var(--ws-head); letter-spacing: .12em; text-transform: uppercase; color: var(--ws-black); animation: ws-tape 60s linear infinite; }
@keyframes ws-tape { from { transform: translate(0, -50%); } to { transform: translate(-50%, -50%); } }

/* ------------------------------------------------------------------ общие: лица, звания, пломбы, штемпели */
.ws-face { display: inline-grid; place-items: center; flex: none; overflow: hidden; color: var(--ws-paper); font: 400 15px/1 var(--ws-head); vertical-align: middle; position: relative; }
.ws-face--xs { width: 24px; height: 24px; font-size: 9.5px; }
.ws-face--s { width: 34px; height: 34px; font-size: 12px; }
.ws-face--m { width: 48px; height: 48px; font-size: 16px; }
.ws-face--l { width: 64px; height: 64px; font-size: 21px; }
.ws-face--xl { width: 150px; height: 150px; font-size: 48px; }
.ws-face--img { background: var(--ws-paper); padding: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.ws-face--xs.ws-face--img { padding: 1.5px; }
.ws-face--img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(.12) saturate(.95); }
.ws-face--mono { background: var(--ws-black2); }
.ws-face--mono.ws-tone-0 { background: var(--ws-black); color: var(--ws-yellow); }
.ws-face--mono.ws-tone-1 { background: var(--ws-kraft-dd); color: var(--ws-paper); }
.ws-face--mono.ws-tone-2 { background: var(--ws-yellow); color: var(--ws-black); }
.ws-face--mono.ws-tone-3 { background: var(--ws-paper); color: var(--ws-kraft-dd); box-shadow: inset 0 0 0 2px var(--ws-kraft-dd); }
.ws-face--mono.ws-tone-4 { background: var(--ws-kraft-d); color: var(--ws-black); }

.ws-ico { flex: none; display: block; }
.ws-rank { display: inline-flex; align-items: center; gap: 6px; font: 500 13.5px/1.2 var(--ws-text); color: var(--ws-ink2); }
.ws-badge { flex: none; display: block; }
.ws-badge .k { fill: var(--ws-kraft); stroke: var(--ws-kraft-dd); stroke-width: 1.2; stroke-linejoin: round; }
.ws-badge .d { fill: var(--ws-kraft-l); stroke: var(--ws-kraft-dd); stroke-width: 1.2; stroke-linejoin: round; }
.ws-badge .l { fill: none; stroke: var(--ws-kraft-dd); stroke-width: 1.2; stroke-linejoin: round; }
.ws-badge .y { fill: var(--ws-yellow); stroke: var(--ws-black); stroke-width: .8; stroke-linejoin: round; }
.ws-badge .p { fill: var(--ws-paper); stroke: var(--ws-black); stroke-width: .7; }
.ws-rep { display: inline-flex; align-items: center; gap: 3px; font: 700 13px/1 var(--ws-text); color: var(--ws-ink); background: var(--ws-paper2); padding: 3px 7px 3px 4px; border-radius: 20px; }
.ws-rep--up { background: var(--ws-yellow-l); }
.ws-seal .w { fill: none; stroke: #8a8a8a; stroke-width: 1.4; stroke-linecap: round; }
.ws-seal .b { fill: var(--ws-yellow); stroke: var(--ws-black); stroke-width: 1.3; }
.ws-seal .m { stroke: var(--ws-black); stroke-width: 1.4; stroke-linecap: round; }
.ws-rep--down .ws-seal .b { fill: var(--ws-kraft-l); }

/* штемпель даты: прямоугольный оттиск с неровным краской краем */
.ws-stamp { display: inline-block; font: 400 12px/1 var(--ws-head); letter-spacing: .04em; color: var(--ws-kraft-dd); border: 2px solid currentColor; padding: 6px 7px 5px; transform: rotate(-4deg); white-space: nowrap;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='40'%3E%3Cfilter id='s'%3E%3CfeTurbulence baseFrequency='.55' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.75'/%3E%3C/filter%3E%3Crect width='90' height='40' filter='url(%23s)'/%3E%3C/svg%3E") 0 0 / 90px 40px;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='40'%3E%3Cfilter id='s'%3E%3CfeTurbulence baseFrequency='.55' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.75'/%3E%3C/filter%3E%3Crect width='90' height='40' filter='url(%23s)'/%3E%3C/svg%3E") 0 0 / 90px 40px; }

/* ------------------------------------------------------------------ главная: лента + история */
.ws-road { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; }

/* лента конвейера: по ней при прокрутке едет коробка и собирается по главам */
.ws-belt { position: sticky; top: 14px; height: calc(100vh - var(--ws-dock-h) - 40px); min-height: 500px; max-height: 900px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; --p: 0; }
.ws-belt__rail { position: relative; background: var(--ws-black); border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 3px var(--ws-black3), 0 18px 26px -18px rgba(0, 0, 0, .8); }
.ws-belt__strip { position: absolute; inset: 0 18px; background:
	repeating-linear-gradient(180deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 22px),
	linear-gradient(90deg, #1b1712, #2a241d 50%, #1b1712);
	background-position: 0 calc(var(--p) * 1400px), 0 0; }
.ws-belt__rollers { position: absolute; inset: 0; background:
	radial-gradient(circle at 9px 50%, var(--ws-black3) 0 5px, #4a4036 5.5px 6.5px, transparent 7px) 0 0 / 18px 26px repeat-y,
	radial-gradient(circle at 9px 50%, var(--ws-black3) 0 5px, #4a4036 5.5px 6.5px, transparent 7px) 100% 0 / 18px 26px repeat-y;
	background-position: 0 calc(var(--p) * -300px), 100% calc(var(--p) * -300px); }
.ws-belt__ride { position: absolute; left: 10px; right: 10px; top: calc((100% - 196px) * var(--p) + 6px); transition: top .12s linear; will-change: top; }
.ws-belt__cap { margin: 2px 0 0; display: flex; align-items: baseline; gap: 6px; justify-content: center; color: var(--ws-yellow); font: 400 11px/1.1 var(--ws-head); text-transform: uppercase; letter-spacing: .04em; text-align: center; }
.ws-belt__cap b { font-weight: 400; font-size: 17px; }
.ws-belt__stops { list-style: none; margin: 0; padding: 4px 0; display: flex; flex-direction: column; justify-content: space-between; }
.ws-stop { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ws-ink); font: 700 12.5px/1.1 var(--ws-text); white-space: nowrap; padding: 4px 6px 4px 0; position: relative; }
.ws-stop::before { content: ""; width: 10px; height: 2px; background: var(--ws-black); margin-left: -10px; }
.ws-stop b { font: 400 13px/1 var(--ws-head); background: var(--ws-paper); color: var(--ws-black); padding: 4px 5px 3px; }
.ws-stop.is-on b, .ws-stop:hover b { background: var(--ws-yellow); box-shadow: 0 0 0 2px var(--ws-black); }
.ws-stop.is-past b { background: var(--ws-black); color: var(--ws-yellow); }

/* коробка: слои по стадиям */
.ws-box { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .45)); }
.ws-l { opacity: 0; transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1); transform-box: fill-box; transform-origin: 50% 100%; }
.ws-belt[data-stage="1"] .ws-l--1,
.ws-belt[data-stage="2"] :is(.ws-l--1, .ws-l--2),
.ws-belt[data-stage="3"] :is(.ws-l--2, .ws-l--3),
.ws-belt[data-stage="4"] :is(.ws-l--2, .ws-l--3, .ws-l--4),
.ws-belt[data-stage="5"] :is(.ws-l--2, .ws-l--3, .ws-l--4, .ws-l--5),
.ws-belt[data-stage="6"] :is(.ws-l--2, .ws-l--3, .ws-l--6),
.ws-belt[data-stage="7"] :is(.ws-l--2, .ws-l--3, .ws-l--6, .ws-l--7),
.ws-belt[data-stage="0"] :is(.ws-l--2, .ws-l--3, .ws-l--6, .ws-l--7) { opacity: 1; }
.ws-belt:not([data-stage="1"]):not([data-stage="2"]) .ws-l--1 { transform: translateY(14px) scale(.9); }
.ws-belt[data-stage="1"] .ws-l--2 { transform: translateY(10px); }
.ws-belt[data-stage="2"] .ws-l--3 { transform: translateY(-16px); }
.ws-belt[data-stage="3"] .ws-l--4 { transform: scaleX(.6); }
.ws-box .kb { fill: var(--ws-kraft-d); }
.ws-box .kf { fill: var(--ws-kraft); stroke: var(--ws-kraft-dd); stroke-width: 2; stroke-linejoin: round; }
.ws-box .kt { fill: var(--ws-kraft-l); stroke: var(--ws-kraft-dd); stroke-width: 2; stroke-linejoin: round; }
.ws-box .ks { stroke: var(--ws-kraft-dd); stroke-width: 2; }
.ws-box .tp { fill: var(--ws-yellow); }
.ws-box .tps { stroke: var(--ws-black); stroke-width: 4; stroke-dasharray: 6 18; }
.ws-box .lb rect { fill: var(--ws-paper); stroke: var(--ws-black); stroke-width: 1.5; }
.ws-box .lb path { stroke: var(--ws-black); stroke-width: 1.6; }
.ws-box .mg { fill: var(--ws-yellow); stroke: var(--ws-black); stroke-width: 2.4; }
.ws-box .mgh, .ws-box .mgs { fill: none; stroke: var(--ws-yellow); stroke-width: 4; stroke-linecap: round; }
.ws-box .mgs { stroke: var(--ws-paper); stroke-width: 2.4; opacity: .8; }
.ws-box .mgb { stroke: var(--ws-black); stroke-width: 2.4; }
.ws-box .bw { fill: rgba(220, 238, 246, .4); stroke: rgba(255, 255, 255, .8); stroke-width: 1.5; }
.ws-box .bd circle { fill: rgba(255, 255, 255, .45); stroke: rgba(255, 255, 255, .9); stroke-width: 1; }
.ws-box .ws-wrap path { fill: rgba(235, 245, 250, .38); stroke: rgba(255, 255, 255, .7); stroke-width: 1; }
.ws-box .pl { fill: #b98b55; stroke: var(--ws-kraft-dd); stroke-width: 1.5; }
.ws-box .pl2 { fill: var(--ws-kraft-dd); }
.ws-box .ws-frame path { fill: none; stroke: var(--ws-yellow); stroke-width: 5; stroke-linecap: square; }
.ws-box .ws-frame .fl { fill: var(--ws-paper); animation: ws-flash 2.4s ease-out infinite; }
@keyframes ws-flash { 0%, 70% { opacity: 0; } 76% { opacity: 1; } 100% { opacity: 0; } }
.ws-box .ws-st rect { fill: none; stroke: var(--ws-yellow); stroke-width: 3.5; }
.ws-box .ws-st text { fill: var(--ws-yellow); font: 400 15px/1 var(--ws-head); letter-spacing: .06em; }
.ws-box .rcp { fill: var(--ws-paper); stroke: var(--ws-black); stroke-width: 1.5; }
.ws-box .rcl { stroke: var(--ws-kraft-dd); stroke-width: 2.2; stroke-linecap: round; }
.ws-box .rcm { stroke: var(--ws-yellow-d); stroke-width: 5; stroke-linecap: round; }
.ws-belt[data-stage="2"] .ws-flap--l { transform: rotate(-6deg); }
.ws-belt[data-stage="2"] .ws-flap--r { transform: rotate(6deg); }
.ws-flap { transition: transform .5s; transform-box: fill-box; transform-origin: 50% 100%; }

/* история */
.ws-story { min-width: 0; display: grid; gap: 44px; }
.ws-hero { position: relative; padding: 6px 0 4px; }
.ws-hero__h { font: 400 clamp(44px, 7.2vw, 96px)/.95 var(--ws-head); letter-spacing: -.03em; color: var(--ws-black); margin: 4px 0 30px; }
.ws-hero__h span { display: inline-block; background: var(--ws-yellow); padding: .06em .14em .02em; margin-left: -.1em; box-shadow: .12em .12em 0 var(--ws-black); transform: rotate(-1.2deg); }
.ws-hero__lead { max-width: 62ch; font-size: 19.5px; line-height: 1.5; color: var(--ws-ink2); margin-bottom: 20px; }
.ws-hero__index { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ws-hero__index a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--ws-black); color: var(--ws-paper); font: 500 15px/1 var(--ws-text); padding: 9px 12px 9px 9px; transition: transform .2s, background .2s; }
.ws-hero__index b { font: 400 12px/1 var(--ws-head); background: var(--ws-yellow); color: var(--ws-black); padding: 4px 5px 3px; }
.ws-hero__index a:hover { transform: translateY(-2px); background: var(--ws-black3); color: var(--ws-yellow); }
.ws-hero__fh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ws-tags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.ws-tag { position: relative; background: var(--ws-paper); padding: 16px 16px 12px; box-shadow: var(--ws-lift); transform: rotate(var(--r, 0deg)); transition: transform .25s; }
.ws-tag::before { content: ""; position: absolute; top: -9px; left: 50%; width: 64px; height: 20px; margin-left: -32px; background: rgba(255, 252, 240, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); transform: rotate(-3deg); }
.ws-tag:hover { transform: rotate(0deg) translateY(-3px); }
.ws-tag__k { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font: 600 12.5px/1.2 var(--ws-text); color: var(--ws-mute); }
.ws-tag__k b { font: 400 10px/1 var(--ws-head); background: var(--ws-black); color: var(--ws-yellow); padding: 3px 4px 2px; }
.ws-tag__k a { color: var(--ws-mute); text-decoration: none; }
.ws-tag__t { font: 700 17px/1.28 var(--ws-text); margin: 0 0 10px; }
.ws-tag__t a { text-decoration: none; color: var(--ws-ink); }
.ws-tag__t a:hover { background: var(--ws-yellow); }
.ws-tag__m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 13px; color: var(--ws-mute); border-top: 1px dashed var(--ws-line2); padding-top: 8px; }
.ws-tag__n { margin-left: auto; font-weight: 700; color: var(--ws-ink); }

/* глава */
.ws-ch { scroll-margin-top: 16px; }
.ws-ch__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: end; background: var(--ws-black); color: var(--ws-paper); padding: 22px 26px 22px 22px; position: relative; }
.ws-ch__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: var(--ws-hazard); }
.ws-ch__no { margin: 0; display: grid; justify-items: start; line-height: 1; }
.ws-ch__no span, .ws-ch__no i { font: 500 12px/1 var(--ws-text); letter-spacing: .16em; text-transform: uppercase; color: var(--ws-kraft-l); font-style: normal; }
.ws-ch__no b { font: 400 clamp(56px, 7vw, 92px)/.9 var(--ws-head); color: transparent; -webkit-text-stroke: 2px var(--ws-yellow); margin: 4px 0; }
.ws-ch__head--end .ws-ch__no b { font-size: 28px; color: var(--ws-yellow); -webkit-text-stroke: 0; }
.ws-ch__t { font: 400 clamp(26px, 3.2vw, 40px)/1.08 var(--ws-head); letter-spacing: -.015em; margin-bottom: 10px; }
.ws-ch__t a { color: var(--ws-paper); text-decoration: none; }
.ws-ch__t a:hover { color: var(--ws-yellow); }
.ws-ch__lead { margin: 0; max-width: 66ch; color: #e7dccb; font-size: 17px; }
.ws-ch__body { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; padding-top: 26px; align-items: start; }
.ws-ch__tip { grid-column: 2; grid-row: 1; background: var(--ws-yellow); color: var(--ws-black); padding: 16px 16px 6px; position: relative; font-size: 15.5px; line-height: 1.45; box-shadow: var(--ws-lift); transform: rotate(1.2deg); }
.ws-ch__tip::before { content: ""; position: absolute; top: -10px; right: 18px; width: 54px; height: 22px; background: rgba(255, 255, 255, .5); transform: rotate(6deg); }
.ws-ch__tipk { font: 400 11px/1.2 var(--ws-head); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px !important; }
.ws-ch--end .ws-ch__body { grid-template-columns: minmax(0, 1fr); }
.ws-secs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; grid-column: 1; grid-row: 1; }
.ws-sec { position: relative; background: var(--ws-paper); padding: 18px 18px 14px 18px; box-shadow: var(--ws-lift); display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 14px; align-content: start; border-top: 6px solid var(--ws-black); }
.ws-sec__ico { grid-row: span 2; width: 46px; height: 46px; display: grid; place-items: center; background: var(--ws-yellow); color: var(--ws-black); }
.ws-sec__t { font: 700 20px/1.2 var(--ws-text); }
.ws-sec__t a { text-decoration: none; color: var(--ws-ink); }
.ws-sec__t a:hover { background: var(--ws-yellow); }
.ws-sec__d { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ws-mute); }
.ws-sec__fresh, .ws-sec__none, .ws-sec__lp { grid-column: 1 / -1; }
.ws-sec__fresh { list-style: none; margin: 10px 0 0; padding: 0; }
.ws-sec__fresh li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--ws-line2); font-size: 15px; line-height: 1.35; }
.ws-sec__fresh a { color: var(--ws-ink); text-decoration: none; font-weight: 500; }
.ws-sec__fresh a:hover { text-decoration: underline; text-decoration-color: var(--ws-yellow-d); text-decoration-thickness: 3px; }
.ws-sec__fresh span { font-size: 12.5px; color: var(--ws-mute); white-space: nowrap; }
.ws-sec__none { margin: 10px 0 0; font-size: 14px; color: var(--ws-mute); font-style: italic; border-top: 1px dashed var(--ws-line2); padding-top: 8px; }
.ws-sec__lp { margin: 8px 0 0; font-size: 14px; color: var(--ws-mute); border-top: 1px dashed var(--ws-line2); padding-top: 8px; }
.ws-sec__lt a { color: var(--ws-ink); font-weight: 600; }
.ws-new { display: none; }

/* чек-лист перед отгрузкой */
.ws-check { background: var(--ws-black); color: var(--ws-paper); padding: 26px 26px 20px; position: relative; scroll-margin-top: 16px; }
.ws-check::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--ws-hazard); }
.ws-check__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin: 8px 0 18px; }
.ws-check .ws-h2 { color: var(--ws-yellow); margin-bottom: 6px; }
.ws-check__sub { color: var(--ws-kraft-l); margin: 0; font-size: 15px; }
.ws-check__box { display: flex; align-items: center; gap: 12px; }
.ws-check__svg { width: 104px; height: auto; flex: none; }
.ws-check__svg .k { fill: var(--ws-kraft); stroke: var(--ws-kraft-dd); stroke-width: 2; stroke-linejoin: round; }
.ws-check__svg .kl { fill: none; stroke: var(--ws-kraft-dd); stroke-width: 2; stroke-linejoin: round; }
.ws-check__svg .tp { fill: none; stroke: var(--ws-yellow); stroke-width: 12; stroke-dasharray: 44; stroke-dashoffset: calc(44 - 44 * var(--done, 0)); transition: stroke-dashoffset .5s; }
.ws-check__svg .tp2 { fill: none; stroke: var(--ws-yellow); stroke-width: 12; stroke-dasharray: 54; stroke-dashoffset: calc(54 - 54 * var(--done, 0)); transition: stroke-dashoffset .5s .1s; }
.ws-check__box p { margin: 0; font-size: 15px; color: var(--ws-kraft-l); white-space: nowrap; }
.ws-check__box b { font: 400 34px/1 var(--ws-head); color: var(--ws-yellow); margin-right: 4px; }
.ws-check__lbl { display: block; font-weight: 700; color: var(--ws-paper); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin-top: 3px; }
.ws-check.is-done .ws-check__lbl { color: var(--ws-yellow); }
.ws-chks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; counter-reset: c; }
.ws-chk { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 12px; background: var(--ws-black2); cursor: pointer; transition: background .2s; font-size: 15.5px; line-height: 1.4; color: #e9dfcf; }
.ws-chk:hover { background: var(--ws-black3); }
.ws-chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ws-chk__box { width: 26px; height: 26px; border: 2px solid var(--ws-kraft-l); display: grid; place-items: center; position: relative; }
.ws-chk__box::after { content: ""; width: 12px; height: 7px; border-left: 3px solid var(--ws-black); border-bottom: 3px solid var(--ws-black); transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.ws-chk input:checked + .ws-chk__box { background: var(--ws-yellow); border-color: var(--ws-yellow); }
.ws-chk input:checked + .ws-chk__box::after { transform: rotate(-45deg) scale(1); }
.ws-chk input:checked ~ .ws-chk__t { color: var(--ws-kraft-l); }
.ws-chk input:focus-visible + .ws-chk__box { outline: 3px solid var(--ws-yellow); outline-offset: 2px; }
.ws-chk__t b { color: var(--ws-paper); font-weight: 700; }
.ws-check__foot { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 16px 0 0; }
.ws-check .ws-more { color: var(--ws-yellow); border-color: var(--ws-yellow); }
.ws-check .ws-more:hover { background: var(--ws-yellow); color: var(--ws-black); }

/* калькулятор план против факта */
.ws-calc { background: var(--ws-paper); padding: 26px 26px 20px; box-shadow: var(--ws-lift); position: relative; scroll-margin-top: 16px;
	background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(110, 74, 36, .09) 31px 32px); }
.ws-calc::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(-45deg, transparent 6px, var(--ws-paper) 6px) 0 0 / 12px 10px repeat-x, linear-gradient(45deg, transparent 6px, var(--ws-paper) 6px) 0 0 / 12px 10px repeat-x; }
.ws-calc__head { margin-bottom: 16px; }
.ws-calc__sub { max-width: 70ch; color: var(--ws-mute); font-size: 15.5px; margin: 8px 0 0; }
.ws-calc__grid { display: grid; gap: 0; border-top: 3px solid var(--ws-black); }
.ws-calc__row { display: grid; grid-template-columns: minmax(0, 1fr) 118px 118px 104px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--ws-line); }
.ws-calc__row--h { font: 700 12px/1.2 var(--ws-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ws-mute); padding: 9px 0; }
.ws-calc__row--h span:nth-child(n+2) { text-align: right; }
.ws-calc__row label { font-weight: 500; font-size: 16px; }
.ws-calc__row--price label { font-weight: 700; }
.ws-calc .ws-calc__row input { width: 100%; font: 500 17px/1.2 var(--ws-text); text-align: right; font-variant-numeric: tabular-nums; color: var(--ws-ink); background: rgba(255, 255, 255, .7); border: 0; border-bottom: 2px solid var(--ws-ink); border-radius: 0; padding: 7px 8px 5px; -moz-appearance: textfield; }
.ws-calc__row input::-webkit-outer-spin-button, .ws-calc__row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ws-calc .ws-calc__row input[data-s="f"] { background: var(--ws-yellow-l); }
.ws-calc .ws-calc__row input:focus { outline: none; background: #fff; border-bottom-color: var(--ws-yellow-d); box-shadow: 0 3px 0 var(--ws-yellow); }
.ws-calc__row output { text-align: right; font: 700 15px/1 var(--ws-text); font-variant-numeric: tabular-nums; padding: 5px 0; }
.ws-calc__row output.is-worse { color: var(--ws-black); }
.ws-calc__row output.is-worse span { background: var(--ws-yellow); padding: 4px 6px 3px; box-shadow: inset 0 -2px 0 var(--ws-black); }
.ws-calc__row output.is-better { color: var(--ws-kraft-dd); }
.ws-calc__row output.is-same { color: var(--ws-mute); font-weight: 400; }
.ws-calc__out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.ws-calc__res { background: var(--ws-black); color: var(--ws-paper); padding: 16px 18px 18px; position: relative; }
.ws-calc__res[data-s="f"] { box-shadow: inset 0 6px 0 var(--ws-yellow); }
.ws-calc__lbl { margin: 0 0 4px; font: 500 12.5px/1.2 var(--ws-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ws-kraft-l); }
.ws-calc__big { margin: 0; font: 400 clamp(30px, 3.6vw, 44px)/1.05 var(--ws-head); color: var(--ws-yellow); font-variant-numeric: tabular-nums; }
.ws-calc__res.is-loss .ws-calc__big { color: var(--ws-paper); background: var(--ws-hazard); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 1px var(--ws-yellow); color: transparent; }
.ws-calc__pct { margin: 2px 0 12px; font-size: 15px; color: #e7dccb; }
.ws-calc__bar { display: flex; height: 22px; background: var(--ws-black3); overflow: hidden; }
.ws-calc__bar i { display: block; height: 100%; flex: none; transition: width .35s; }
.ws-calc__leak { grid-column: 1 / -1; margin: 0; font-size: 16.5px; background: var(--ws-yellow-l); padding: 12px 14px; border-left: 6px solid var(--ws-black); }
.ws-calc__leak b { background: var(--ws-yellow); padding: 0 4px; }
.ws-calc__legend { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ws-mute); }
.ws-calc__legend li { display: inline-flex; align-items: center; gap: 5px; }
.ws-calc__legend li::before { content: ""; width: 12px; height: 12px; background: var(--c); }
[data-c="cost"] { --c: #6e4a24; } [data-c="pack"] { --c: #9a6c3d; } [data-c="road"] { --c: #c39663; } [data-c="log"] { --c: #e6cda6; }
[data-c="fee"] { --c: #4a4036; } [data-c="keep"] { --c: #7a6d5d; } [data-c="ads"] { --c: #a8998a; } [data-c="ret"] { --c: #cfc3b1; }
[data-c="tax"] { --c: #efe6d4; } [data-c="m"] { --c: #ffcf00; }
.ws-calc__bar i[data-c] { background: var(--c); }
.ws-calc__bar i[data-c="m"] { background: var(--ws-yellow); }
.ws-calc__bar i[data-c="loss"] { background: var(--ws-hazard); }
.ws-calc__foot { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 16px 0 0; }

/* ------------------------------------------------------------------ раздел */
.ws-fhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: end; background: var(--ws-black); color: var(--ws-paper); padding: 24px 26px; position: relative; margin-bottom: 30px; }
.ws-fhead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: var(--ws-hazard); }
.ws-fhead__no { margin: 0; display: grid; line-height: 1; }
.ws-fhead__no span { font: 500 12px/1 var(--ws-text); letter-spacing: .16em; text-transform: uppercase; color: var(--ws-kraft-l); }
.ws-fhead__no b { font: 400 76px/.9 var(--ws-head); color: transparent; -webkit-text-stroke: 2px var(--ws-yellow); }
.ws-fhead__ico { display: inline-grid; color: var(--ws-black); }
.ws-fhead__ico .ws-ico { width: 18px; height: 18px; }
.ws-fhead .ws-h1 { color: var(--ws-paper); margin-bottom: 8px; }
.ws-fhead__d { margin: 0; color: #e7dccb; max-width: 70ch; }
.ws-fhead__tip { margin: 12px 0 0; font-size: 15px; color: var(--ws-black); background: var(--ws-yellow); padding: 9px 12px; max-width: 76ch; }
.ws-fhead__tip b { text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.ws-fhead__act { align-self: start; }
.ws-subs { margin-bottom: 26px; }
.ws-group { margin-bottom: 20px; }
.ws-group__t { font: 400 20px/1.2 var(--ws-head); margin-bottom: 12px; }
.ws-tlist { background: var(--ws-paper); box-shadow: var(--ws-lift); padding: 18px 22px 10px; }
.ws-tlist__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; padding-bottom: 12px; border-bottom: 3px solid var(--ws-black); }
.ws-sort { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ws-mute); }
.ws-sort a { color: var(--ws-ink); font-weight: 600; text-decoration: none; border-bottom: 1px dashed var(--ws-line2); }
.ws-sort a:hover { background: var(--ws-yellow); }
.ws-tlist__list { list-style: none; margin: 0; padding: 0; }
.ws-trow { display: grid; grid-template-columns: 84px minmax(0, 1fr) 92px; gap: 16px; align-items: center; padding: 14px 6px; border-bottom: 1px dashed var(--ws-line2); position: relative; transition: background .2s; }
.ws-trow:hover { background: rgba(255, 207, 0, .12); }
.ws-trow .ws-stamp { justify-self: start; }
.ws-trow__h { margin: 0 0 6px; font: 700 18px/1.3 var(--ws-text); }
.ws-trow__t { color: var(--ws-ink); text-decoration: none; }
.ws-trow__t:hover { background: var(--ws-yellow); }
.ws-trow__k { margin: 0 0 3px; font-size: 12.5px; color: var(--ws-mute); display: flex; gap: 6px; align-items: center; }
.ws-trow__k b { font: 400 10px/1 var(--ws-head); background: var(--ws-black); color: var(--ws-yellow); padding: 3px 4px 2px; }
.ws-trow__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 14px; color: var(--ws-mute); }
.ws-trow__by a { color: var(--ws-ink2); font-weight: 700; text-decoration: none; }
.ws-trow__n { display: grid; justify-items: center; text-decoration: none; background: var(--ws-black); color: var(--ws-yellow); padding: 8px 6px 7px; line-height: 1; }
.ws-trow__n b { font: 400 22px/1 var(--ws-head); }
.ws-trow__n span { font-size: 12px; color: var(--ws-kraft-l); margin-top: 4px; }
.ws-trow[data-state="new"] .ws-trow__n { background: var(--ws-paper2); color: var(--ws-ink); box-shadow: inset 0 0 0 2px var(--ws-black); }
.ws-trow[data-state="new"] .ws-trow__n span { color: var(--ws-mute); }
.ws-trow__mod { position: absolute; right: 4px; top: 4px; }
.ws-trow--mini { grid-template-columns: 100px minmax(0, 1fr) 70px; padding: 10px 0; }
.ws-trow--mini .ws-trow__h a { color: var(--ws-ink); text-decoration: none; }
.ws-trow--mini .ws-trow__h a:hover { background: var(--ws-yellow); }
.ws-trow--mini .ws-trow__h { font-size: 16px; margin: 0; }
.ws-trow--mini .ws-trow__n b { font-size: 17px; }
.ws-sep { list-style: none; font: 700 12px/1 var(--ws-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ws-mute); padding: 14px 6px 6px; }
.ws-trow.forumdisplay_sticky .ws-trow__t::before, .ws-trow.sticky .ws-trow__t::before { content: "закреплено"; font: 400 10px/1 var(--ws-head); letter-spacing: .06em; text-transform: uppercase; color: var(--ws-black); background: var(--ws-yellow); padding: 4px 6px 3px; margin-right: 8px; vertical-align: 3px; }
.ws-pages { font-size: 13px; color: var(--ws-mute); margin-left: 6px; font-weight: 500; }
.ws-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; }
.ws-bar__r { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

/* ------------------------------------------------------------------ тема: ярлыки на боку коробки */
.ws-side { position: relative; padding: 0 0 30px; }
.ws-thead { position: relative; background: var(--ws-kraft-l); padding: 26px 30px 54px; margin-bottom: 34px; box-shadow: inset 0 0 0 2px rgba(110, 74, 36, .3), var(--ws-lift);
	background-image: linear-gradient(90deg, transparent calc(50% - 1px), rgba(110, 74, 36, .35) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), repeating-linear-gradient(90deg, rgba(110, 74, 36, .06) 0 3px, transparent 3px 10px); }
.ws-thead__k { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; font: 600 14px/1.2 var(--ws-text); }
.ws-thead__no { font: 400 11px/1 var(--ws-head); text-transform: uppercase; letter-spacing: .06em; background: var(--ws-black); color: var(--ws-yellow); padding: 6px 8px 5px; }
.ws-thead__no b { font-weight: 400; }
.ws-thead__ico { display: inline-grid; }
.ws-thead__k a { color: var(--ws-ink); text-decoration: none; border-bottom: 2px solid var(--ws-black); }
.ws-thead__k a:hover { background: var(--ws-yellow); }
.ws-thead__h1 { font-size: clamp(25px, 3.4vw, 42px); color: var(--ws-black); max-width: 28ch; margin-bottom: 18px; position: relative; z-index: 1; }
.ws-thead__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; position: relative; z-index: 1; }
.ws-thead__by { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15.5px; }
.ws-thead__dl { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.ws-thead__dl div { display: grid; gap: 3px; }
.ws-thead__dl dt { font: 700 11px/1 var(--ws-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ws-kraft-dd); }
.ws-thead__dl dd { margin: 0; font-weight: 700; font-size: 16px; }
.ws-stack { display: flex; }
.ws-stack .ws-face { margin-right: -7px; box-shadow: 0 0 0 2px var(--ws-kraft-l); }
.ws-thead__tape { position: absolute; left: -12px; right: -12px; bottom: 12px; height: 28px; background: var(--ws-yellow); transform: rotate(-.8deg); overflow: hidden; box-shadow: 0 2px 3px rgba(0, 0, 0, .25); }
.ws-thead__tape::before, .ws-thead__tape::after { content: ""; position: absolute; left: 0; right: 0; height: 4px; background: var(--ws-hazard); }
.ws-thead__tape::before { top: 0; } .ws-thead__tape::after { bottom: 0; }
.ws-thead__tape span { position: absolute; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 400 11px/1 var(--ws-head); text-transform: uppercase; letter-spacing: .14em; color: var(--ws-black); }

.ws-notes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 26px 22px; align-items: start; }
.ws-notes > * { grid-column: 1 / -1; }
.ws-notes > .ws-note:nth-of-type(odd) { grid-column: 1 / span 8; }
.ws-notes > .ws-note:nth-of-type(even) { grid-column: 5 / span 8; }
.ws-notes > .ws-note--short:nth-of-type(odd) { grid-column: 2 / span 6; }
.ws-notes > .ws-note--short:nth-of-type(even) { grid-column: 6 / span 6; }
.ws-notes > .ws-note--wide, .ws-notes > .ws-note--first { grid-column: 1 / -1 !important; }
.ws-anchor { position: relative; top: -80px; display: block; }
.ws-note { position: relative; min-width: 0; }
.ws-note__paper { position: relative; background: var(--ws-paper); padding: 20px 22px 12px; box-shadow: var(--ws-lift); transform: rotate(var(--tilt, 0deg)); transition: transform .3s, box-shadow .3s; }
.ws-note__paper:hover { transform: rotate(0deg); }
.ws-note__tape { position: absolute; top: -11px; left: 50%; width: 92px; height: 22px; margin-left: -46px; background: rgba(255, 252, 240, .6); box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); transform: rotate(-2.5deg); }
.ws-note--op .ws-note__tape { background: var(--ws-yellow); opacity: .92; box-shadow: none; }
.ws-note--first .ws-note__paper { background: var(--ws-yellow); padding: 26px 30px 16px; }
.ws-note--first .ws-note__tape { width: 190px; margin-left: -95px; background: rgba(21, 18, 14, .88); }
.ws-note--first .ws-note__tape::after { content: "ярлык отправителя"; position: absolute; inset: 0; display: grid; place-items: center; font: 400 9.5px/1 var(--ws-head); letter-spacing: .04em; text-transform: uppercase; color: var(--ws-yellow); white-space: nowrap; }
.ws-note__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px solid var(--ws-ink); }
.ws-note__id { min-width: 0; }
.ws-note__nick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 3px; font: 700 17px/1.2 var(--ws-text); }
.ws-note__nick a { color: var(--ws-ink); text-decoration: none; }
.ws-note__nick a:hover { background: var(--ws-black); color: var(--ws-yellow); }
.ws-note__rank { margin: 0 0 3px; }
.ws-note__line { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0; font-size: 13px; color: var(--ws-mute); }
.ws-note__goods::before { content: "· "; }
.ws-note__no { margin: 0; display: grid; justify-items: end; gap: 4px; text-align: right; }
.ws-note__no b { font: 400 17px/1 var(--ws-head); color: var(--ws-kraft-dd); }
.ws-note__no b::before { content: "ярлык "; font: 700 11px/1 var(--ws-text); letter-spacing: .12em; text-transform: uppercase; vertical-align: 3px; }
.ws-note--first .ws-note__no b { color: var(--ws-black); }
.ws-note__flag { font: 700 10.5px/1 var(--ws-text); letter-spacing: .12em; text-transform: uppercase; background: var(--ws-black); color: var(--ws-yellow); padding: 4px 6px 3px; }
.ws-note__flag--op { background: var(--ws-yellow); color: var(--ws-black); }
.ws-note__when { font-size: 12.5px; color: var(--ws-mute); text-decoration: none; white-space: nowrap; }
.ws-note__when:hover { color: var(--ws-ink); text-decoration: underline; }
.ws-note--first .ws-note__when, .ws-note--first .ws-note__line, .ws-note--first .ws-rank { color: var(--ws-ink2); }
.ws-note--first .ws-note__head { border-bottom-color: var(--ws-black); }
.ws-note__re { display: inline-block; margin: -4px 0 8px; font: 600 13px/1.2 var(--ws-text); color: var(--ws-kraft-dd); text-decoration: none; border-left: 3px solid var(--ws-yellow); padding-left: 7px; }
.ws-note__re:hover { color: var(--ws-ink); }
.ws-note__body { font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; color: var(--ws-ink); }
.ws-note--first .ws-note__body { font-size: 18.5px; }
.ws-note__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--ws-line2); }
.ws-note__foot:not(:has(a)) { display: none; }
.ws-note.is-target .ws-note__paper, .ws-note:target .ws-note__paper { box-shadow: 0 0 0 4px var(--ws-yellow), 0 0 0 7px var(--ws-black), var(--ws-lift); }
.post_meta:empty, .post_meta:not(:has(*:not(:empty))) { display: none; }
.ws-guest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--ws-black); color: var(--ws-paper); padding: 16px 20px; margin: 10px 0 20px; }
.ws-guest p { margin: 0; }
.ws-tfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 22px 0 12px; font-size: 14.5px; color: var(--ws-ink2); }
.ws-tfoot__note { margin: 0; max-width: 70ch; }
.ws-nextprev { display: flex; gap: 16px; }
.ws-nextprev a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--ws-ink); color: var(--ws-ink); }
.ws-nextprev a:hover { background: var(--ws-yellow); }
.ws-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.thread_tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.thread_tools li { background: none !important; padding: 0 !important; }
.thread_tools a { color: var(--ws-ink2); }
#quick_reply_form { margin-top: 24px; }

/* ------------------------------------------------------------------ профиль: накладная продавца */
.ws-waybill { display: grid; gap: 22px; }
.ws-waybill__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; align-items: center; background: var(--ws-paper); padding: 24px 26px; box-shadow: var(--ws-lift); border-top: 10px solid var(--ws-black); position: relative; }
.ws-waybill__head::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 4px; background: var(--ws-hazard); }
.ws-waybill__photo .ws-face { transform: rotate(-2deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.ws-waybill__photo .ws-face--mono { font-size: 50px; }
.ws-waybill__name { font-size: clamp(28px, 4vw, 46px); margin: 2px 0 10px; overflow-wrap: anywhere; }
.ws-waybill__name a, .ws-waybill__name span { color: inherit; }
.ws-waybill__rank { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-weight: 700; font-size: 17px; }
.ws-waybill__nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 0; border: 2px solid var(--ws-black); }
.ws-waybill__nums li { display: grid; padding: 12px 14px; text-align: center; }
.ws-waybill__nums li + li { border-left: 2px solid var(--ws-black); }
.ws-waybill__nums b { font: 400 30px/1 var(--ws-head); }
.ws-waybill__nums span { font-size: 13px; color: var(--ws-mute); margin-top: 4px; }
.ws-waybill__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.ws-card { background: var(--ws-paper); padding: 20px 22px; box-shadow: var(--ws-lift); }
.ws-card > .ws-h3 { padding-bottom: 10px; margin-bottom: 12px; border-bottom: 3px solid var(--ws-black); }
.ws-fields__dl { margin: 0; display: grid; border-top: 1px solid var(--ws-line2); }
.ws-fields__dl div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ws-line2); }
.ws-fields__dl dt { font: 700 12px/1.6 var(--ws-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ws-mute); }
.ws-fields__dl dd { margin: 0; font-weight: 500; }
.ws-fields__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; font-size: 14.5px; }
.ws-route__sub { font-size: 14px; color: var(--ws-mute); }
.ws-route__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; height: 190px; }
.ws-route__list li { display: grid; grid-template-rows: auto 1fr auto auto; height: 100%; text-align: center; font-size: 12px; color: var(--ws-mute); }
.ws-route__list li i { order: -1; font-style: normal; font-weight: 700; color: var(--ws-ink); }
.ws-route__list li::before { content: ""; order: 0; align-self: end; height: max(4px, var(--h)); background: var(--ws-paper2); border: 2px solid var(--ws-black); border-bottom: 0; }
.ws-route__list li.is-on::before { background: var(--ws-yellow); }
.ws-route__list b { order: 1; font: 400 12px/1.4 var(--ws-head); color: var(--ws-black); border-top: 3px solid var(--ws-black); padding-top: 4px; }
.ws-route__list span { order: 2; line-height: 1.1; overflow-wrap: anywhere; }
.ws-ladder__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: l; }
.ws-ladder__list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border: 1px dashed var(--ws-line2); color: var(--ws-mute); }
.ws-ladder__list li b { color: var(--ws-ink); font-weight: 700; }
.ws-ladder__list li span { font-size: 13.5px; }
.ws-ladder__list li.is-past { opacity: .75; }
.ws-ladder__list li.is-now { background: var(--ws-yellow); border: 2px solid var(--ws-black); color: var(--ws-black); }
.ws-waybill__extra:empty { display: none; }

/* ------------------------------------------------------------------ ошибки и переходы */
.ws-msg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: start; background: var(--ws-paper); padding: 30px; box-shadow: var(--ws-lift); max-width: 900px; margin: 20px auto; border-top: 10px solid var(--ws-black); }
.ws-msg__mark { margin: 0; width: 96px; height: 96px; display: grid; place-items: center; font: 400 48px/1 var(--ws-head); background: var(--ws-yellow); color: var(--ws-black); transform: rotate(-4deg); box-shadow: 0 0 0 4px var(--ws-black); }
.ws-msg__t { margin-bottom: 12px; }
.ws-msg__body { font-size: 17px; }
.ws-msg__body ol, .ws-msg__body ul { padding-left: 1.2em; }
.ws-msg--go { margin-top: 12vh; }

/* ------------------------------------------------------------------ подвал */
.ws-foot { background: var(--ws-black); color: #d9cdbb; margin-top: 30px; position: relative; }
.ws-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; background: var(--ws-hazard); }
.ws-foot__in { width: min(1280px, 100%); margin: 0 auto; padding: 28px 24px 30px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px 40px; }
.ws-foot__brand { margin: 0; font-size: 15.5px; }
.ws-foot__brand b { font: 400 15px/1 var(--ws-head); color: var(--ws-yellow); }
.ws-foot__links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: start; }
.ws-foot__links a { color: var(--ws-paper); text-decoration: none; border-bottom: 1px solid rgba(251, 246, 234, .3); font-weight: 500; }
.ws-foot__links a:hover { color: var(--ws-yellow); border-color: var(--ws-yellow); }
.ws-foot__note { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: #a89a85; max-width: 110ch; }

/* ------------------------------------------------------------------ нижний док */
.ws-dock { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(780px, 100%); z-index: 60; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--ws-black); box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .55); border-radius: 14px 14px 0 0; }
.ws-dock__belt { position: relative; height: 9px; border-radius: 14px 14px 0 0; overflow: hidden; background:
	radial-gradient(circle at 50% 50%, #4a4036 0 2.5px, transparent 3px) 0 50% / 14px 9px repeat-x, var(--ws-black3);
	background-position: calc(var(--p) * -400px) 50%, 0 0; }
.ws-dock__parcel { position: absolute; top: 0; left: calc((100% - 22px) * var(--p)); width: 22px; height: 9px; background: var(--ws-kraft); box-shadow: inset 0 0 0 1px var(--ws-kraft-dd); }
.ws-dock__parcel::after { content: ""; position: absolute; left: 8px; top: 0; width: 6px; height: 100%; background: var(--ws-yellow); }
.ws-dock__in { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); height: calc(var(--ws-dock-h) - 9px); }
.ws-dock__b { display: grid; justify-items: center; align-content: center; gap: 4px; background: none; border: 0; color: var(--ws-kraft-l); font: 500 12.5px/1 var(--ws-text); text-decoration: none; cursor: pointer; padding: 4px 2px; position: relative; min-width: 0; }
.ws-dock__b svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ws-dock__b span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-dock__b:hover, .ws-dock__b[aria-expanded="true"] { color: var(--ws-yellow); }
.ws-dock__b.is-on { color: var(--ws-yellow); }
.ws-dock__b.is-on::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; background: var(--ws-yellow); }
.ws-dock__b .ws-face { width: 24px; height: 24px; }
.ws-dock__b:focus-visible { outline-offset: -3px; box-shadow: none; }

/* шторки над доком */
.ws-sheet { position: fixed; inset: 0; z-index: 55; background: rgba(21, 18, 14, .55); display: flex; align-items: flex-end; justify-content: center; padding: 0 8px calc(var(--ws-dock-h) + env(safe-area-inset-bottom, 0px)); }
.ws-sheet[hidden] { display: none; }
.ws-sheet__box { width: min(1080px, 100%); max-height: calc(100vh - var(--ws-dock-h) - 40px); overflow: auto; background: var(--ws-paper); padding: 0 22px 22px; box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, .6); animation: ws-up .28s cubic-bezier(.2, .8, .2, 1); border-top: 8px solid var(--ws-yellow); }
.ws-sheet__box--s { width: min(520px, 100%); }
@keyframes ws-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.ws-sheet__top { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ws-paper); padding: 14px 0 10px; border-bottom: 2px solid var(--ws-black); margin-bottom: 14px; z-index: 1; }
.ws-sheet__title { margin: 0; font: 400 18px/1.2 var(--ws-head); }
.ws-sheet__x { width: 38px; height: 38px; border: 2px solid var(--ws-black); background: var(--ws-paper); font: 400 24px/1 var(--ws-text); cursor: pointer; color: var(--ws-black); }
.ws-sheet__x:hover { background: var(--ws-yellow); }
.ws-sheet__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px 20px; }
.ws-sheet__h { font: 700 15px/1.2 var(--ws-text); margin-bottom: 6px; }
.ws-sheet__h a { display: flex; align-items: center; gap: 8px; color: var(--ws-ink); text-decoration: none; }
.ws-sheet__h b { font: 400 12px/1 var(--ws-head); background: var(--ws-black); color: var(--ws-yellow); padding: 4px 5px 3px; }
.ws-sheet__ch ul { list-style: none; margin: 0; padding: 0 0 0 4px; }
.ws-sheet__a { display: flex; align-items: center; gap: 8px; padding: 6px 6px; color: var(--ws-ink2); text-decoration: none; font-size: 15px; line-height: 1.25; }
.ws-sheet__a:hover { background: var(--ws-yellow-l); color: var(--ws-black); }
.ws-sheet__a.is-on { background: var(--ws-yellow); color: var(--ws-black); font-weight: 700; }
.ws-find { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ws-find__l { grid-column: 1 / -1; font: 700 12px/1 var(--ws-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ws-mute); }
.ws-find__hint { font-size: 14px; color: var(--ws-mute); margin: 10px 0 0; }
.ws-login__p { font-size: 15px; color: var(--ws-mute); }
.ws-field { margin: 0 0 12px; display: grid; gap: 5px; }
.ws-field label { font: 700 12px/1 var(--ws-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ws-mute); }
.ws-field--row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ws-field--row label { text-transform: none; letter-spacing: 0; font: 500 15px/1.2 var(--ws-text); color: var(--ws-ink); display: inline-flex; align-items: center; gap: 6px; }
.ws-field .button { width: 100%; }
.ws-mine__who { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.ws-mine__who span { display: grid; }
.ws-mine__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ws-mine__links a { display: block; padding: 8px 6px; color: var(--ws-ink); text-decoration: none; border-bottom: 1px dashed var(--ws-line2); }
.ws-mine__links a:hover { background: var(--ws-yellow-l); }
.ws-pm[data-n="0"] { display: none; }
body.ws-locked { overflow: hidden; }

/* ------------------------------------------------------------------ стандартные элементы MyBB в стиле ленты */
.tborder { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--ws-paper); margin: 0 0 20px; color: var(--ws-ink); box-shadow: var(--ws-lift); border-top: 6px solid var(--ws-black); }
.tborder td, .tborder th { padding: 10px 14px; border-bottom: 1px solid var(--ws-line); vertical-align: top; text-align: left; }
.thead { background: var(--ws-black); color: var(--ws-paper); font: 400 16px/1.3 var(--ws-head); }
.thead a, .thead strong { color: var(--ws-yellow); }
.thead .expcolimage { float: right; }
.tcat { background: var(--ws-yellow); font: 700 12px/1.3 var(--ws-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ws-black); }
.tcat a { color: var(--ws-black); }
.trow1, .trow2 { background: transparent; }
.trow2 { background: rgba(195, 150, 99, .08); }
.trow_shaded { background: rgba(255, 207, 0, .18); }
.trow_selected td, .trow_selected { background: var(--ws-yellow-l); }
.tfoot { background: var(--ws-paper2); }
.tborder a, .trow1 a, .trow2 a, .tfoot a { color: var(--ws-ink); font-weight: 600; }
.smalltext { font-size: 13.5px; line-height: 1.45; color: var(--ws-mute); }
.largetext { font: 400 18px/1.3 var(--ws-head); }
.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(--ws-text); color: var(--ws-ink); background: #fff; border: 2px solid var(--ws-ink); border-radius: 0; padding: 9px 12px; max-width: 100%; transition: 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 { outline: none; box-shadow: 4px 4px 0 var(--ws-yellow); }
.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: 400 13.5px/1 var(--ws-head); letter-spacing: .03em; color: var(--ws-black); background: var(--ws-yellow); border: 2px solid var(--ws-black); border-radius: 0; padding: 12px 18px 11px; cursor: pointer; text-decoration: none; transition: background .2s, transform .15s; }
.button:hover, input.button:hover, input[type="submit"]:hover, button[type="submit"]:hover, a.button:hover { background: var(--ws-black); color: var(--ws-yellow); }
.button:active, input[type="submit"]:active { transform: translateY(2px); }
.new_thread_button, .new_reply_button { box-shadow: 0 0 0 3px var(--ws-yellow); }
.closed_button { background: var(--ws-paper2); color: var(--ws-mute); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font: 600 14px/1 var(--ws-text); }
.pagination .pages { color: var(--ws-mute); margin-right: 6px; }
.pagination a, .pagination .pagination_current { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 9px; border: 2px solid var(--ws-black); color: var(--ws-ink); background: var(--ws-paper); text-decoration: none; }
.pagination a:hover { background: var(--ws-yellow); }
.pagination .pagination_current { background: var(--ws-black); color: var(--ws-yellow); font: 400 14px/1 var(--ws-head); }
.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: 600 13px/1.2 var(--ws-text); color: var(--ws-mute); text-decoration: none; }
.postbit_buttons a:hover { color: var(--ws-ink); text-decoration: underline; }
.postbit_buttons a span { background: none !important; padding: 0 !important; }
.popup_menu { background: var(--ws-paper); border: 2px solid var(--ws-black); padding: 6px; box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .5); z-index: 50; }
.popup_menu .popup_item { display: block; padding: 7px 10px; color: var(--ws-ink2); font-size: 15px; }
.popup_menu .popup_item:hover { background: var(--ws-yellow); }
.blocker { background: rgba(21, 18, 14, .6) !important; }
.modal { background: var(--ws-paper) !important; color: var(--ws-ink); border-top: 8px solid var(--ws-yellow); border-radius: 0 !important; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6) !important; padding: 18px !important; }
.modal .tborder { margin: 0; box-shadow: none; }
.error, div.error { background: var(--ws-yellow-l); border-left: 6px solid var(--ws-black); padding: 12px 16px; color: var(--ws-ink); margin-bottom: 14px; }
.red_alert, .pm_alert { background: var(--ws-yellow); color: var(--ws-black); padding: 10px 14px; margin-bottom: 14px; }
fieldset { border: 2px solid var(--ws-line2); padding: 12px 14px; margin: 0 0 14px; }
legend { font: 700 12px/1 var(--ws-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ws-mute); padding: 0 6px; }
.usercp_nav_item, .modcp_nav_item { display: block; padding: 6px 4px; color: var(--ws-ink2); }
.sceditor-container { max-width: 100%; }
.ignored_post, .deleted_post_hidden { padding: 12px 16px; border: 2px dashed var(--ws-line2); color: var(--ws-mute); margin-bottom: 12px; grid-column: 1 / -1; }
.scaleimages img { max-width: 100%; height: auto; }

/* BB-коды */
blockquote.mycode_quote { margin: 10px 0 12px; padding: 10px 14px 10px 16px; background: rgba(195, 150, 99, .14); border: 1.5px dashed var(--ws-kraft-d); color: var(--ws-ink2); font-size: 16px; position: relative; }
.ws-note--first blockquote.mycode_quote { background: rgba(255, 255, 255, .45); border-color: var(--ws-black); }
blockquote.mycode_quote cite { display: inline-block; font: 700 12.5px/1.2 var(--ws-text); font-style: normal; color: var(--ws-black); background: var(--ws-yellow); padding: 3px 7px; margin: 0 0 6px -4px; }
blockquote.mycode_quote cite > span { color: var(--ws-ink2); margin-left: 6px; font-weight: 500; font-size: 11.5px; }
.codeblock { margin: 12px 0; background: var(--ws-black); color: var(--ws-paper); }
.codeblock .title { font: 700 11px/1 var(--ws-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ws-yellow); padding: 8px 12px; border-bottom: 1px solid var(--ws-black3); }
.codeblock code { display: block; padding: 12px; overflow-x: auto; font: 14px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ws-paper); }
.mycode_list, ul.mycode_list, ol.mycode_list { padding-left: 1.3em; }
.post_body ul.mycode_list { list-style: none; padding-left: 0; }
.post_body ul.mycode_list > li { position: relative; padding-left: 22px; margin: 3px 0; }
.post_body ul.mycode_list > li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; background: var(--ws-yellow); box-shadow: 0 0 0 2px var(--ws-black); }
.ws-note--first .post_body ul.mycode_list > li::before { background: var(--ws-black); box-shadow: none; }
.post_body ol.mycode_list li::marker { font-weight: 700; }
.post_body hr, .mycode_hr { border: 0; height: 6px; margin: 16px 0; background: var(--ws-hazard); opacity: .85; }
.signature { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--ws-line2); font-size: 14px; color: var(--ws-mute); }
.video_embed iframe, .post_body iframe { max-width: 100%; }
.post_body .mycode_s { text-decoration-color: var(--ws-black); text-decoration-thickness: 2px; }
.post_body .mycode_u { text-decoration-color: var(--ws-yellow-d); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post_body img.mycode_img { box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.post_body .mycode_align { text-align: inherit; }

/* ------------------------------------------------------------------ планшет */
@media (max-width: 1100px) {
	.ws-road { grid-template-columns: 196px minmax(0, 1fr); gap: 24px; }
	.ws-belt { grid-template-columns: 124px minmax(0, 1fr); }
	.ws-belt__ride { top: calc((100% - 166px) * var(--p) + 6px); }
	.ws-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ws-ch__body { grid-template-columns: minmax(0, 1fr); }
	.ws-ch__tip { grid-column: 1; grid-row: auto; transform: none; max-width: 640px; }
	.ws-secs { grid-row: auto; }
	.ws-chks { grid-template-columns: minmax(0, 1fr); }
	.ws-waybill__grid { grid-template-columns: minmax(0, 1fr); }
}

/* узкие экраны: лента становится горизонтальной полосой сверху, коробка едет слева направо */
@media (max-width: 860px) {
	html { scroll-padding-top: 74px; }
	.ws-main { padding: 18px 16px 34px; }
	.ws-top__in { padding: 8px 16px; min-height: 54px; gap: 12px; flex-wrap: wrap; }
	.ws-logo__mark { width: 34px; height: 34px; }
	.ws-logo__name { font-size: 15px; }
	.ws-top__crumbs { flex-basis: 100%; justify-content: flex-start; }
	.ws-crumbs { justify-content: flex-start; font-size: 13px; }
	.ws-page--index .ws-top__crumbs { display: none; }
	.ws-tape { height: 24px; }
	.ws-road { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.ws-belt { position: sticky; top: 0; z-index: 20; height: 62px; min-height: 0; grid-template-columns: minmax(0, 1fr); margin: -18px -16px 14px; }
	.ws-belt__rail { border-radius: 0; box-shadow: 0 8px 14px -10px rgba(0, 0, 0, .8); }
	.ws-belt__strip { inset: 10px 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 22px), linear-gradient(180deg, #1b1712, #2a241d 50%, #1b1712); background-position: calc(var(--p) * -1400px) 0, 0 0; }
	.ws-belt__rollers { background:
		radial-gradient(circle at 50% 5px, var(--ws-black3) 0 3.5px, #4a4036 4px 5px, transparent 5.5px) 0 0 / 22px 10px repeat-x,
		radial-gradient(circle at 50% 5px, var(--ws-black3) 0 3.5px, #4a4036 4px 5px, transparent 5.5px) 0 100% / 22px 10px repeat-x;
		background-position: calc(var(--p) * -300px) 0, calc(var(--p) * -300px) 100%; }
	.ws-belt__ride { top: 1px; left: calc((100% - 180px) * var(--p) + 6px); right: auto; width: 170px; display: flex; align-items: center; gap: 6px; transition: left .12s linear; }
	.ws-belt__ride .ws-box { width: 62px; flex: none; }
	.ws-belt__cap { margin: 0; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; }
	.ws-belt__stops { display: none; }
	.ws-story { gap: 34px; }
	.ws-hero__lead { font-size: 17.5px; }
	.ws-tags { grid-template-columns: minmax(0, 1fr); }
	.ws-ch__head { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 18px 18px; margin: 0 -16px; }
	.ws-ch__no { display: flex; align-items: baseline; gap: 10px; }
	.ws-ch__no b { font-size: 50px; }
	.ws-ch__lead { font-size: 16px; }
	.ws-secs { grid-template-columns: minmax(0, 1fr); }
	.ws-check, .ws-calc { margin: 0 -16px; padding: 22px 16px 18px; }
	.ws-check__head { grid-template-columns: minmax(0, 1fr); }
	.ws-calc__row { grid-template-columns: minmax(0, 1fr) 84px 84px; row-gap: 4px; }
	.ws-calc__row--h span:nth-child(4) { display: none; }
	.ws-calc__row output { grid-column: 2 / -1; text-align: right; font-size: 13.5px; padding: 0 0 2px; }
	.ws-calc__row output:empty { display: none; }
	.ws-calc__row input { font-size: 16px; padding: 6px 6px 4px; }
	.ws-calc__row label { font-size: 15px; }
	.ws-calc__out { grid-template-columns: minmax(0, 1fr); }
	.ws-fhead { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px; margin: 0 -16px 26px; }
	.ws-fhead__no { display: flex; align-items: baseline; gap: 10px; }
	.ws-fhead__no b { font-size: 46px; }
	.ws-tlist { margin: 0 -16px; padding: 14px 16px 6px; }
	.ws-trow { grid-template-columns: minmax(0, 1fr) 64px; gap: 6px 12px; padding: 12px 0; }
	.ws-trow .ws-stamp { grid-column: 1; grid-row: 1; font-size: 10.5px; padding: 4px 5px 3px; }
	.ws-trow__main { grid-column: 1; }
	.ws-trow__n { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
	.ws-trow__h { font-size: 16.5px; }
	.ws-thead { padding: 20px 18px 50px; margin: 0 -16px 30px; }
	.ws-notes { gap: 24px 0; }
	.ws-notes > .ws-note:nth-of-type(n) { grid-column: 1 / -1; }
	.ws-note__paper { padding: 18px 16px 10px; }
	.ws-note--first .ws-note__paper { padding: 22px 18px 12px; }
	.ws-note__head { grid-template-columns: auto minmax(0, 1fr); }
	.ws-note__no { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; justify-content: flex-start; gap: 8px; }
	.ws-note__body { font-size: 16.5px; }
	.ws-note--first .ws-note__body { font-size: 17px; }
	.ws-waybill__head { grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; padding: 18px; }
	.ws-waybill__photo .ws-face--xl { width: 90px; height: 90px; font-size: 30px; }
	.ws-waybill__nums { grid-column: 1 / -1; }
	.ws-fields__dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.ws-route__list { height: 160px; gap: 3px; }
	.ws-route__list span { font-size: 10.5px; }
	.ws-foot__in { grid-template-columns: minmax(0, 1fr); padding: 22px 16px 24px; }
	.ws-msg { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
	.ws-msg__mark { width: 70px; height: 70px; font-size: 34px; }
	.tborder td, .tborder th { padding: 8px 10px; }
	.tborder { display: block; overflow-x: auto; }
	.ws-dock { border-radius: 0; }
	.ws-dock__belt { border-radius: 0; }
	.ws-sheet { padding-left: 0; padding-right: 0; }
	.ws-sheet__box { padding: 0 16px 18px; }
}

@media (max-width: 420px) {
	.ws-logo__sub { display: none; }
	.ws-hero__h { font-size: 40px; }
	.ws-dock__b { font-size: 11px; }
	.ws-calc__row { grid-template-columns: minmax(0, 1fr) 74px 74px; gap: 6px; }
	.ws-thead__dl { gap: 8px 16px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------------ ссылки в сообщениях: свой стиль форума («пупырка»)
   Приём «пупырка»: под словом полоска пупырчатой плёнки высотой 7px — два ряда прозрачных пузырьков вразбежку
   с тёмным крафтовым ободком и белым бликом (SVG data-URI, шаг 8px, repeat-x, box-decoration-break: clone),
   без подчёркивания и без значка внешней ссылки; текст почти чёрный 600. При наведении пузырьки «наливаются»
   сигнальным жёлтым, текст чёрный. */
:is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url {
	color: #1d150b;
	font-weight: 600;
	text-decoration: none;
	padding-bottom: 7px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='7' viewBox='0 0 8 7'%3E%3Cg fill='%23ffffff' fill-opacity='.55' stroke='%237a5530' stroke-opacity='.7' stroke-width='.6'%3E%3Ccircle cx='2' cy='1.8' r='1.4'/%3E%3Ccircle cx='6' cy='1.8' r='1.4'/%3E%3Ccircle cx='0' cy='5.1' r='1.4'/%3E%3Ccircle cx='4' cy='5.1' r='1.4'/%3E%3Ccircle cx='8' cy='5.1' r='1.4'/%3E%3C/g%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='1.6' cy='1.3' r='.4'/%3E%3Ccircle cx='5.6' cy='1.3' r='.4'/%3E%3Ccircle cx='3.6' cy='4.6' r='.4'/%3E%3Ccircle cx='7.6' cy='4.6' r='.4'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 100% / 8px 7px;
	-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: #000;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='7' viewBox='0 0 8 7'%3E%3Cg fill='%23ffcf00' stroke='%2315120e' stroke-opacity='.8' stroke-width='.6'%3E%3Ccircle cx='2' cy='1.8' r='1.4'/%3E%3Ccircle cx='6' cy='1.8' r='1.4'/%3E%3Ccircle cx='0' cy='5.1' r='1.4'/%3E%3Ccircle cx='4' cy='5.1' r='1.4'/%3E%3Ccircle cx='8' cy='5.1' r='1.4'/%3E%3C/g%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='1.6' cy='1.3' r='.4'/%3E%3Ccircle cx='5.6' cy='1.3' r='.4'/%3E%3Ccircle cx='3.6' cy='4.6' r='.4'/%3E%3Ccircle cx='7.6' cy='4.6' r='.4'/%3E%3C/g%3E%3C/svg%3E");
}
:is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url::after { content: none; }
