/*
Theme Name: dds_component-chel.ru
Theme URI: https://component-chel.ru/
Author: Зайцев Виктор Семёнович
Description: Тема для информационного справочника о промышленных маслах, смазках и гидравлическом оборудовании. Визуальная идея — заводской технический паспорт и гидравлическая схема на тёмном металле.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bskrp
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-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: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-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: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-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: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-latin-700-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: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-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: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-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: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-condensed-latin-700-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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-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; }

/* ---------- Палитра ---------- */
:root {
    --graphite: #23272B;
    --steel-blue: #1B2A38;
    --old-brass: #8C6B2F;
    --night: #14171A;
    --ivory: #EDE6D2;
    --muted: #8E9AA3;
    --signal: #F2C230;
    --amber: #C97A1E;
    --brass: #9C7C3A;
    --steel: #5E7482;
    --brass-hi: #CDAB62;
    --paper: #E9E1CB;
    --ink: #1D2125;
    --ivory-dim: #CFC8B5;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --f-text: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    --f-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
    --hazard: repeating-linear-gradient(-45deg, var(--signal) 0 9px, #111315 9px 18px);
    --dim-arrow-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 6 10 0v12z' fill='%23F2C230'/%3E%3C/svg%3E");
    --dim-arrow-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M10 6 0 0v12z' fill='%23F2C230'/%3E%3C/svg%3E");
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ivory);
    font-family: var(--f-text);
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--graphite);
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 9px),
        radial-gradient(ellipse at 18% 12%, rgba(255, 255, 255, .04), transparent 42%),
        radial-gradient(ellipse at 82% 58%, rgba(0, 0, 0, .2), transparent 46%);
}
p, li, dd, td, th, blockquote, figcaption, .card-title, .entry-title, .section-title, .brand-name, .brand-desc { overflow-wrap: break-word; hyphens: auto; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 700; line-height: 1.2; margin: 1.6em 0 .6em; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--signal); text-decoration-color: var(--signal); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
table { border-collapse: collapse; width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--signal); color: var(--night); padding: .6rem 1rem; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.shell { width: 92%; margin-left: auto; margin-right: auto; }
@media (min-width: 600px) { .shell { width: min(85%, 1180px); } }

.plant { position: relative; overflow: hidden; }

/* ---------- Трубопровод по краям ---------- */
.pipework { display: none; position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.pipework-run { position: absolute; top: 120px; bottom: 0; width: 9px; border-left: 2px solid rgba(142, 154, 163, .5); border-right: 2px solid rgba(142, 154, 163, .5); }
.pipework-run--left { left: 2.6%; top: 150px; }
.pipework-run--right { right: 2.6%; top: 90px; }
.pipework-run--left::before, .pipework-run--right::before { content: ""; position: absolute; top: -2px; height: 9px; width: 70px; border-top: 2px solid rgba(142, 154, 163, .5); border-bottom: 2px solid rgba(142, 154, 163, .5); }
.pipework-run--left::before { left: -2px; }
.pipework-run--right::before { right: -2px; }
.pipework-fit { position: absolute; width: 34px; height: 48px; fill: var(--graphite); stroke: rgba(207, 200, 181, .75); stroke-width: 2; stroke-linejoin: round; }
.pipework-fit--l1 { left: calc(2.6% - 12px); top: 470px; }
.pipework-fit--l2 { left: calc(2.6% - 12px); top: 1520px; }
.pipework-fit--r1 { right: calc(2.6% - 20px); top: 230px; width: 48px; height: 48px; }
.pipework-fit--r2 { right: calc(2.6% - 12px); top: 1080px; }
@media (min-width: 1180px) { .pipework { display: block; } }

/* ---------- Сигнальная маркировка ---------- */
.hazard-corner { position: absolute; width: 140px; height: 14px; background: var(--hazard); z-index: 1; }
.hazard-corner--tr { top: 0; right: 0; }
.hazard-corner--br { bottom: 0; right: 0; }
.hazard-strip { height: 10px; background: var(--hazard); }

/* ---------- Заголовки секций с размерной линией ---------- */
.section-title {
    display: inline-block;
    position: relative;
    max-width: 100%;
    margin: 0 0 1.8rem;
    padding-bottom: .55em;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.6vw, 2.45rem);
    line-height: 1.1;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ivory);
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12px;
    background:
        var(--dim-arrow-l) left center / 9px 11px no-repeat,
        var(--dim-arrow-r) right center / 9px 11px no-repeat,
        linear-gradient(var(--signal), var(--signal)) center / calc(100% - 6px) 2px no-repeat;
}

/* ---------- Кнопки ---------- */
.btn-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .6rem 1.6rem .6rem 1.05rem;
    border: 0;
    background: var(--signal);
    color: var(--night);
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .9rem;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    transition: background-color .12s, transform .12s;
}
.btn-plate:hover { background: var(--amber); color: var(--night); transform: translateX(3px); }
.btn-plate:focus-visible { background: var(--ivory); color: var(--night); text-decoration: underline; outline: none; }
.btn-plate--sm { padding: .42rem 1.15rem .42rem .75rem; font-size: .78rem; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); }

/* ---------- Шапка ---------- */
.masthead { position: relative; z-index: 2; padding: 1.4rem 0 1.6rem; }
.masthead::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 96px; background: var(--hazard); }
.masthead-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.2rem 2rem; }
.brand { display: flex; align-items: flex-start; gap: 1rem; min-width: 0; flex: 1 1 420px; }
.brand-mark { flex: 0 0 auto; display: block; width: 56px; height: 56px; }
.brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-name {
    display: inline-block;
    position: relative;
    margin: 0;
    padding-bottom: .45em;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(1.4rem, 3.2vw, 2.25rem);
    line-height: 1.12;
    letter-spacing: .01em;
}
.brand-name::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12px;
    background:
        var(--dim-arrow-r) right center / 9px 11px no-repeat,
        linear-gradient(var(--signal), var(--signal)) left center / calc(100% - 6px) 2px no-repeat;
}
.brand-name a { color: var(--ivory); text-decoration: none; }
.brand-name a:hover { color: var(--signal); }
.brand-desc { margin: .7rem 0 0; max-width: 60ch; font-size: .9rem; line-height: 1.45; color: var(--ivory-dim); }

.topnav { flex: 1 1 100%; }
.topnav-toggle { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .9rem; border: 1px solid var(--steel); background: var(--night); color: var(--ivory); font-family: var(--f-head); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.topnav-toggle-bars, .topnav-toggle-bars::before, .topnav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--signal); position: relative; }
.topnav-toggle-bars::before, .topnav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.topnav-toggle-bars::before { top: -6px; }
.topnav-toggle-bars::after { top: 6px; }
.topnav-list { display: none; list-style: none; margin: .8rem 0 0; padding: .4rem 0; border-top: 1px solid var(--steel); border-bottom: 1px solid var(--steel); }
.topnav.is-open .topnav-list { display: block; }
.topnav-list li { margin: 0; }
.topnav-list a { display: block; padding: .5rem .2rem; color: var(--ivory); font-size: 1rem; text-decoration: none; }
.topnav-list a:hover { color: var(--signal); }
.topnav-list .current-menu-item > a, .topnav-list .current_page_item > a { color: var(--signal); }

@media (min-width: 960px) {
    .masthead { padding: 1.8rem 0 2rem; }
    .masthead-inner { flex-wrap: nowrap; }
    .brand-mark { width: 64px; height: 64px; }
    .topnav { flex: 0 0 auto; padding-top: .2rem; }
    .topnav-toggle { display: none; }
    .topnav-list { display: block; margin: 0; padding: 0; border: 0; }
    .topnav-list a { position: relative; padding: .1rem 0 .1rem .9rem; font-size: .95rem; line-height: 1.55; }
    .topnav-list a::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2px; background: var(--steel); }
    .topnav-list a:hover::before, .topnav-list .current-menu-item > a::before { background: var(--signal); }
}

/* ---------- Полосы главной ---------- */
.band { position: relative; padding: clamp(2.6rem, 5vw, 3.8rem) 0; }
.band--blueprint {
    background-color: var(--steel-blue);
    background-image:
        linear-gradient(rgba(94, 116, 130, .24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 116, 130, .24) 1px, transparent 1px),
        linear-gradient(rgba(94, 116, 130, .1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 116, 130, .1) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.band--brass {
    background-color: var(--old-brass);
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 5px),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 11px),
        radial-gradient(ellipse at 30% 40%, rgba(255, 236, 190, .12), transparent 55%);
}

/* ---------- Блок 1: расшифровка маркировки ---------- */
.decode-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-items: center; }
.decode-scale { display: none; }
.decode-cyl { width: 120px; justify-self: end; }
.decode-cyl svg, .decode-scale svg { display: block; width: 100%; height: auto; }
.decode .ln { fill: none; stroke: var(--ivory-dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.decode .ln-sig { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.decode .fill-amber { fill: var(--amber); }

.decode-code { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; column-gap: .4rem; }
.decode-char {
    grid-row: 1;
    position: relative;
    text-align: center;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(2.8rem, 12vw, 6.2rem);
    line-height: 1;
    color: var(--ivory);
    letter-spacing: .02em;
}
.decode-char--c1 { grid-column: 1; }
.decode-char--c2 { grid-column: 2; }
.decode-char--c3 { grid-column: 3; }
.decode-char--c4 { grid-column: 4; }
.decode-char:not(.decode-char--c4)::after { content: "–"; position: absolute; right: 0; top: 0; transform: translateX(50%); color: var(--muted); font-weight: 500; }
.decode-char--accent { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: .07em; text-underline-offset: .12em; }
.decode-note { grid-column: 1 / -1; position: relative; margin-top: .7rem; padding-left: 2.4rem; font-size: .92rem; line-height: 1.4; color: var(--ivory-dim); }
.decode-note b { position: absolute; left: 0; top: 0; min-width: 1.9rem; padding: 0 .3rem; background: var(--signal); color: var(--night); font-family: var(--f-head); text-align: center; }
.decode-note--c1 { order: 1; margin-top: 1.4rem; }
.decode-note--c2 { order: 2; }
.decode-note--c3 { order: 3; }
.decode-note--c4 { order: 4; }
.decode-lead { margin: 2rem 0 0; max-width: 78ch; padding: 1rem 1.2rem; border-left: 3px solid var(--brass); background: rgba(20, 23, 26, .45); font-size: .95rem; color: var(--ivory-dim); }

@media (min-width: 760px) {
    .decode-stage { grid-template-columns: 64px minmax(0, 1fr) 130px; gap: 2rem; }
    .decode-scale { display: flex; align-items: center; gap: .4rem; }
    .decode-scale-label { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
    .decode-scale svg { width: 36px; }
    .decode-cyl { width: 130px; }
    .decode-code { grid-template-rows: auto auto auto; column-gap: 1rem; }
    .decode-char { grid-row: 2; }
    .decode-note { order: 0; margin: 0; padding: .45rem .6rem; text-align: center; font-size: .86rem; }
    .decode-note b { position: static; display: inline-block; min-width: 0; margin-right: .2rem; padding: 0 .35rem; }
    .decode-note--top { grid-row: 1; align-self: end; margin-bottom: 1.4rem; border-bottom: 1px solid var(--brass); }
    .decode-note--bottom { grid-row: 3; align-self: start; margin-top: 1.4rem; border-top: 1px solid var(--brass); }
    .decode-note--top::after, .decode-note--bottom::before { content: ""; position: absolute; left: 50%; width: 1px; height: 1.4rem; background: var(--brass-hi); }
    .decode-note--top::after { top: 100%; }
    .decode-note--bottom::before { bottom: 100%; }
    .decode-note--c1 { grid-column: 1; margin-top: 1.4rem; }
    .decode-note--c2 { grid-column: 2; }
    .decode-note--c3 { grid-column: 3; }
    .decode-note--c4 { grid-column: 4; }
}

/* ---------- Блок 2: таблица-спецификация ---------- */
.spec-wrap { overflow-x: auto; border: 1px solid var(--brass); background: rgba(14, 22, 30, .55); }
.spec-table { min-width: 520px; font-size: .95rem; }
.spec-table th, .spec-table td { padding: .7rem .9rem; border: 1px solid rgba(94, 116, 130, .7); text-align: left; vertical-align: middle; }
.spec-table thead th { font-family: var(--f-head); font-weight: 500; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-hi); background: rgba(156, 124, 58, .14); }
.spec-table tbody th { font-weight: 400; color: var(--ivory); width: 30%; }
.spec-table tbody td { color: var(--ivory); }
.spec-table tbody tr:nth-child(even) { background: rgba(27, 42, 56, .6); }
.spec-ico-col, .spec-ico { width: 56px; text-align: center !important; }
.spec-ico svg { display: block; width: 24px; height: 24px; margin: 0 auto; fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.spec-foot { margin: 1rem 0 0; font-family: var(--f-mono); font-size: .76rem; color: #A9B4BB; }

/* ---------- Карточки-паспорта ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.6rem; }
@media (min-width: 600px) { .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; } }

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: .75rem .8rem .9rem;
    background: var(--paper);
    color: var(--ink);
    border: 2px solid var(--brass);
    box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(156, 124, 58, .6), 6px 6px 0 rgba(0, 0, 0, .45);
    transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(156, 124, 58, .6), 9px 9px 0 rgba(0, 0, 0, .5); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; position: relative; z-index: 2; min-height: 1.9rem; }
.card-stamp {
    display: inline-block;
    max-width: 58%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: .1rem 0 -1.1rem .1rem;
    padding: .15rem .5rem;
    font-family: var(--f-mono);
    font-size: .66rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #3E5260;
    background: rgba(233, 225, 203, .92);
    border: 2px solid #5E7482;
    box-shadow: 0 0 0 2px rgba(233, 225, 203, .92), 0 0 0 3px rgba(94, 116, 130, .6);
    transform: rotate(-7deg);
}
.card-no { flex: 0 0 auto; min-width: 5.6rem; padding: .1rem .5rem; border: 1px solid #8E9AA3; font-family: var(--f-mono); font-size: .74rem; color: #3A454D; text-align: left; }
.card-thumb-wrap { overflow: hidden; border: 1px solid rgba(29, 33, 37, .25); margin-top: .55rem; }
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 3; object-fit: cover; transition: transform .3s; }
.card:hover .card-thumb-wrap img { transform: scale(1.04); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: .8rem .2rem 0; }
.card-title { margin: 0 0 .5rem; font-family: var(--f-text); font-weight: 700; font-size: 1.18rem; line-height: 1.22; color: var(--ink); }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: #6B4E17; text-decoration: underline; text-decoration-color: var(--brass); }
.card-excerpt { flex: 1; font-size: .93rem; line-height: 1.45; color: #2F363C; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-excerpt a { color: #5B4314; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .7rem; }
.card-date { font-family: var(--f-mono); font-size: .78rem; color: #55616A; }
.empty-note { color: #BFC6CB; }

/* ---------- Блок 3: манометры ---------- */
.gauges .section-title { color: var(--ivory); }
.gauges-lead { max-width: 62ch; margin: -.6rem 0 2rem; font-size: 1rem; color: #F6EFDD; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.gauge-line { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; position: relative; }
.gauge { display: flex; align-items: center; gap: 1rem; margin: 0; min-width: 0; position: relative; z-index: 1; }
.gauge-dial { flex: 0 0 auto; width: 118px; height: auto; display: block; }
.gauge-rim { fill: #6E5222; stroke: var(--ivory); stroke-width: 2.5; }
.gauge-face { fill: #7E5F28; stroke: rgba(237, 230, 210, .55); stroke-width: 1; }
.gauge-ticks line { stroke: var(--ivory); stroke-width: 1.6; stroke-linecap: round; }
.gauge-zone-low { fill: none; stroke: #A9C0CC; stroke-width: 4; }
.gauge-zone-high { fill: none; stroke: var(--signal); stroke-width: 4; }
.gauge-needle { fill: var(--signal); stroke: var(--night); stroke-width: 1.2; stroke-linejoin: round; }
.gauge-hub { fill: var(--night); stroke: var(--ivory); stroke-width: 2; }
.gauge-stem { fill: #6E5222; stroke: var(--ivory); stroke-width: 2; }
.gauge figcaption { display: flex; flex-direction: column; min-width: 0; color: var(--ivory); text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.gauge-name { font-family: var(--f-head); font-weight: 500; font-size: 1.15rem; letter-spacing: .04em; }
.gauge-value { font-family: var(--f-head); font-weight: 700; font-size: 2rem; line-height: 1.1; }
.gauge-hint { font-size: .9rem; color: #FBF5E6; }
.gauge-valve { display: none; }
@media (min-width: 960px) {
    .gauge-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
    .gauge-line::before { content: ""; position: absolute; left: 3%; right: 3%; top: 148px; height: 10px; border-top: 2px solid var(--ivory); border-bottom: 2px solid var(--ivory); opacity: .8; }
    .gauge { flex-direction: row; align-items: flex-start; }
    .gauge-dial { width: 138px; }
    .gauge figcaption { padding-top: 1.6rem; max-width: 12rem; }
    .gauge-valve { display: block; flex: 0 0 auto; width: 40px; height: 30px; margin-top: 139px; position: relative; z-index: 1; fill: var(--old-brass); stroke: var(--ivory); stroke-width: 2; stroke-linejoin: round; }
}

/* ---------- Блок 4: вкладки «Типы масел» ---------- */
.oil-panel[hidden] { display: none !important; }
.oil-tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
.oil-tabs-list { display: flex; flex-direction: column; gap: .35rem; }
.oil-tab {
    display: block;
    width: 100%;
    padding: .62rem 2.4rem .62rem 1rem;
    border: 0;
    background: transparent;
    color: var(--ivory);
    font-family: var(--f-text);
    font-size: 1.12rem;
    text-align: left;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
    transition: background-color .12s, color .12s;
}
.oil-tab:hover { background: rgba(242, 194, 48, .14); }
.oil-tab.is-active { background: var(--signal); color: var(--night); font-weight: 700; }
.oil-tab:focus-visible { outline: none; background: var(--ivory); color: var(--night); }
.oil-tabs-frame { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; padding: 1.5rem 1.4rem; border: 1px solid var(--muted); background: rgba(20, 23, 26, .5); min-width: 0; }
.oil-panel { min-width: 0; }
.oil-panel p { margin: 0 0 .8rem; }
.oil-panel p:first-child { font-size: 1.18rem; line-height: 1.45; color: var(--ivory); }
.oil-panel-sub { font-size: .95rem; color: #C3CACF; }
.oil-tabs-art { display: block; width: 130px; height: auto; justify-self: end; }
@media (min-width: 760px) {
    .oil-tabs { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 2rem; align-items: start; }
    .oil-tabs-frame { grid-template-columns: minmax(0, 1fr) 160px; padding: 1.8rem 2rem; min-height: 230px; }
    .oil-panel { grid-column: 1; grid-row: 1; }
    .oil-tabs-art { grid-column: 2; grid-row: 1; width: 100%; align-self: end; }
}

/* ---------- Внутренние страницы ---------- */
.inner-page { padding: 1rem 0 3.6rem; position: relative; z-index: 1; }
.breadcrumbs { margin: 0 0 1.6rem; padding: .55rem .9rem; border: 1px solid rgba(94, 116, 130, .6); background: rgba(20, 23, 26, .45); font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.breadcrumbs a { color: var(--ivory); }
.breadcrumbs .sep { color: var(--signal); margin: 0 .25rem; }
.layout-single { display: block; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); justify-content: space-between; gap: 6%; }
}
.content-area { min-width: 0; }
.page-head { margin-bottom: 1.4rem; }
.page-head .section-title { margin-bottom: .8rem; }
.page-head-note { color: var(--ivory-dim); max-width: 70ch; }

.sheet { position: relative; padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.2rem, 3vw, 2.6rem); border: 1px solid var(--steel); background: rgba(20, 23, 26, .55); }
.sheet::after { content: ""; position: absolute; right: -1px; top: -1px; width: 72px; height: 8px; background: var(--hazard); }
.empty-sheet .seek { margin-top: 1rem; }

.entry-head { margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(156, 124, 58, .6); }
.entry-stamp { display: inline-block; margin-bottom: .8rem; padding: .12rem .55rem; border: 2px solid var(--steel); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #A9B4BB; transform: rotate(-3deg); }
.entry-title { margin: 0; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; color: var(--ivory); }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .8rem 0 0; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.entry-no { padding: 0 .45rem; border: 1px solid var(--steel); }
.entry-cover { margin: 0 0 1.6rem; border: 2px solid var(--brass); }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 1.05rem; line-height: 1.7; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { position: relative; padding-left: 1.1rem; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .04em; }
.entry-content h2::before { content: ""; position: absolute; left: 0; top: .32em; width: .55rem; height: .55rem; background: var(--signal); }
.entry-content h3 { font-size: 1.3rem; color: var(--brass-hi); }
.entry-content h4 { font-size: 1.1rem; }
.entry-content ul { list-style: none; padding-left: 1.3rem; }
.entry-content ul li { position: relative; margin-bottom: .35rem; }
.entry-content ul li::before { content: ""; position: absolute; left: -1.1rem; top: .62em; width: 7px; height: 7px; background: var(--signal); }
.entry-content ol { padding-left: 1.6rem; }
.entry-content ol li::marker { font-family: var(--f-mono); color: var(--signal); }
.entry-content blockquote { margin: 1.6rem 0; padding: 1rem 1.4rem; border-left: 6px solid var(--signal); background: rgba(27, 42, 56, .75); font-size: 1.1rem; color: var(--ivory); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table, .entry-content th, .entry-content td { border: 1px solid var(--steel); }
.entry-content table { margin: 1.4rem 0; font-size: .95rem; }
.entry-content th, .entry-content td { padding: .55rem .75rem; text-align: left; }
.entry-content th { background: rgba(27, 42, 56, .9); color: var(--brass-hi); font-family: var(--f-head); font-weight: 500; letter-spacing: .05em; }
.entry-content code, .entry-content pre { font-family: var(--f-mono); font-size: .9em; background: var(--night); border: 1px solid #2E353B; }
.entry-content code { padding: .05rem .35rem; }
.entry-content pre { padding: 1rem; overflow-x: auto; }
.entry-content img { display: block; max-width: 100%; height: auto; }
.entry-content figure { margin: 1.6rem 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.entry-content hr { border: 0; height: 8px; background: var(--hazard); margin: 2rem 0; }
.entry-content .alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.entry-content .alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-tags { margin: 1.6rem 0 0; font-family: var(--f-mono); font-size: .82rem; color: var(--muted); }
.page-links { margin-top: 1.4rem; font-family: var(--f-mono); }

.entry-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.8rem; }
@media (min-width: 600px) { .entry-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.entry-nav-link { display: block; padding: 1rem 1.2rem; border: 1px solid var(--brass); background: rgba(20, 23, 26, .5); color: var(--ivory); text-decoration: none; }
.entry-nav-link span { display: block; margin-bottom: .2rem; font-family: var(--f-mono); font-size: .74rem; color: var(--signal); text-transform: uppercase; letter-spacing: .08em; }
.entry-nav-link:hover { border-color: var(--signal); transform: translateX(3px); }
.entry-nav-link--next { text-align: right; }
.entry-nav-link--next:hover { transform: translateX(-3px); }

/* ---------- Сайдбар ---------- */
.sidebar {
    align-self: start;
    min-width: 0;
    padding: 1.4rem 1.3rem;
    border: 1px solid var(--brass);
    color: var(--ivory);
    background-color: var(--steel-blue);
    background-image: linear-gradient(rgba(94, 116, 130, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(94, 116, 130, .16) 1px, transparent 1px);
    background-size: 24px 24px;
}
.sidebar .widget + .widget { margin-top: 1.8rem; }
.sidebar .widget-title { margin: 0 0 .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--brass); font-family: var(--f-head); font-weight: 500; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed rgba(142, 154, 163, .45); color: var(--ivory); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ivory); text-decoration: none; }
.sidebar a:hover { color: var(--signal); }
.sidebar .post-date, .sidebar .rss-date { display: block; font-family: var(--f-mono); font-size: .75rem; color: #A9B4BB; }
.sidebar p, .sidebar .textwidget { color: var(--ivory); }
.sidebar .seek { flex-wrap: wrap; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 2.4rem; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem; border: 1px solid var(--steel); background: rgba(20, 23, 26, .55); color: var(--ivory); font-family: var(--f-mono); font-size: .88rem; text-decoration: none; }
.pager a.page-numbers:hover { border-color: var(--signal); color: var(--signal); }
.pager .page-numbers.current { background: var(--signal); border-color: var(--signal); color: var(--night); font-weight: 700; }
.pager .page-numbers.dots { border: 0; background: none; min-width: 1.4rem; padding: 0; }

/* ---------- Поиск ---------- */
.seek { display: flex; gap: .5rem; margin: 1rem 0; }
.seek-field { flex: 1; min-width: 0; padding: .65rem .9rem; border: 1px solid var(--steel); background: var(--night); color: var(--ivory); font-family: var(--f-text); font-size: 1rem; border-radius: 0; }
.seek-field::placeholder { color: #8E9AA3; }
.seek-btn { flex: 0 0 auto; }

/* ---------- 404 ---------- */
.lost { text-align: left; }
.lost-code { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(5rem, 18vw, 10rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--signal); letter-spacing: .06em; }
.lost p { max-width: 62ch; }

/* ---------- Комментарии ---------- */
.remarks { margin-top: 2rem; }
.remarks-title, .comment-reply-title { margin: 0 0 1.2rem; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .06em; }
.remarks-list, .remarks-list .children { list-style: none; margin: 0; padding: 0; }
.remarks-list .children { padding-left: clamp(1rem, 4vw, 2.4rem); border-left: 2px solid rgba(156, 124, 58, .5); }
.note-body { padding: 1rem 0; border-bottom: 1px dashed rgba(142, 154, 163, .45); }
.note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin-bottom: .5rem; }
.note-meta img { display: block; border: 1px solid var(--brass); }
.note-author { font-weight: 700; }
.note-meta time { font-family: var(--f-mono); font-size: .76rem; color: var(--muted); }
.note-pending { font-size: .88rem; color: var(--signal); }
.note-reply a { font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.comment-respond { margin-top: 1.6rem; }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-size: .9rem; color: var(--ivory-dim); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .65rem .85rem; border: 1px solid var(--steel); background: var(--night); color: var(--ivory); font-family: var(--f-text); font-size: 1rem; border-radius: 0; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; }
.comment-notes, .logged-in-as, .must-log-in { font-size: .88rem; color: var(--muted); }
.comment-form .req { color: var(--signal); }
.comment-form .submit {
    padding: .65rem 1.7rem .65rem 1.1rem;
    border: 0;
    background: var(--signal);
    color: var(--night);
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .92rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.comment-form .submit:hover { background: var(--amber); }
.remarks-closed { color: var(--muted); }

/* ---------- Подвал ---------- */
.basement { position: relative; z-index: 4; background: var(--night); color: var(--ivory-dim); }
.basement-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: 2.6rem 0 1.8rem; }
@media (min-width: 600px) { .basement-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; } }
.basement .widget-title { margin: 0 0 .8rem; font-family: var(--f-head); font-weight: 700; font-size: 1.12rem; letter-spacing: .02em; color: var(--ivory); }
.basement p, .basement .textwidget { color: var(--ivory-dim); font-size: .95rem; }
.basement ul { list-style: none; margin: 0; padding: 0; }
.basement li { margin: 0 0 .35rem; color: var(--ivory-dim); }
.basement a { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--brass); }
.basement a:hover { color: var(--signal); text-decoration-color: var(--signal); }
.basement .post-date { display: block; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.basement-copy { padding: 1rem 0 1.4rem; border-top: 1px solid #2A3036; text-align: center; }
.basement-copy p { margin: 0; font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem 1.4rem;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.3rem 1.4rem 1rem;
    border: 1px solid var(--brass);
    background: var(--night);
    color: var(--ivory);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.cookie-banner::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--hazard); }
.cookie-banner-text { flex: 1 1 320px; margin: 0; font-size: .92rem; color: var(--ivory-dim); }

@media (max-width: 599px) {
    .band { padding: 2.4rem 0; }
    .hazard-corner { width: 90px; height: 10px; }
    .spec-foot { font-size: .72rem; }
    .spec-table { min-width: 0; }
    .spec-table thead { display: none; }
    .spec-table tr { display: grid; grid-template-columns: 44px minmax(0, 1fr); border-bottom: 1px solid rgba(94, 116, 130, .7); }
    .spec-table tbody th, .spec-table tbody td { border: 0; width: auto; padding: .45rem .6rem; }
    .spec-table .spec-ico { grid-row: 1 / span 2; width: 44px; align-self: center; }
    .spec-table tbody th { font-weight: 700; padding-bottom: 0; }
    .spec-table tbody td:last-child { grid-column: 2; padding-top: .15rem; color: var(--ivory-dim); }
    .cookie-banner { padding: 1.2rem 1.1rem .9rem; }
    .cookie-banner .btn-plate { width: 100%; }
}

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