/*
Theme Name: dds_vdpromo.ru
Theme URI: https://vdpromo.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: przd
*/

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

/* ---------- Переменные ---------- */
:root {
    --bg: #101820;
    --grid: #22303a;
    --panel: #16232c;
    --deep: #0b1218;
    --card: #1d2c36;
    --aside: #0f1a21;
    --text: #f2f7fa;
    --muted: #8fa6b2;
    --cyan: #7fd4ff;
    --lime: #d8f34a;
    --line: #2c3f4a;
    --font-head: "Oswald", "Roboto Condensed", "Arial Narrow", "Segoe UI", sans-serif;
    --font-body: "Roboto Condensed", "Arial Narrow", "Segoe UI", Roboto, Arial, sans-serif;
    --mm: linear-gradient(rgba(34, 48, 58, .55) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 48, 58, .55) 1px, transparent 1px), linear-gradient(rgba(34, 48, 58, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 48, 58, .22) 1px, transparent 1px);
    --mm-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background-color: var(--bg);
    background-image: var(--mm);
    background-size: var(--mm-size);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; color: var(--text); }
h1, h2, h3, h4, p, li, td, th, dd, dt, figcaption, blockquote { overflow-wrap: break-word; hyphens: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--cyan); color: var(--deep); padding: .5rem 1rem; z-index: 100; }
.skip:focus { top: 1rem; }

.shell { width: min(85%, 1200px); margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .6rem 1.3rem;
    border: 1px solid var(--cyan); border-radius: 0;
    background: transparent; color: var(--cyan);
    font-family: var(--font-body); font-weight: 500; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
    text-decoration: none; cursor: pointer; line-height: 1.2;
    transition: background-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--cyan); color: var(--deep); transform: translate(2px, -2px); }
.btn-fill { background: var(--cyan); color: var(--deep); }
.btn-fill:hover { background: transparent; color: var(--cyan); }
.btn-mini { padding: .32rem .75rem; font-size: .7rem; }
.link-arrow { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* ---------- Шапка ---------- */
.masthead {
    background-color: var(--deep);
    background-image: var(--mm);
    background-size: var(--mm-size);
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 0;
    position: relative;
}
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { flex: 1 1 auto; display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--text); min-width: 0; }
.brand:hover { color: var(--text); }
.brand-mark { flex: 0 0 auto; width: 52px; height: 52px; display: block; }
.brand-svg, .brand-logo { width: 52px; height: 52px; display: block; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-body); font-weight: 500; font-size: 1.28rem; line-height: 1.2; }
.brand-desc { font-size: .8rem; color: var(--muted); margin-top: .25rem; line-height: 1.35; max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.site-nav { flex: 0 0 auto; }
.site-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: .3rem 1.6rem; }
.site-nav li { white-space: nowrap; }
.site-nav a { color: var(--text); text-decoration: none; font-size: .98rem; display: block; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--cyan); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a { color: var(--cyan); border-bottom-color: var(--cyan); }
.nav-toggle { display: none; }

/* ---------- Заголовки секций ---------- */
.sec-head, .page-head { position: relative; display: flex; align-items: flex-end; margin-bottom: 1.6rem; }
.sec-no {
    position: absolute; right: calc(100% + 14px); bottom: .45em;
    width: 640px; text-align: right;
    font-family: var(--font-body); font-size: .74rem; color: var(--muted);
    border-bottom: 1px solid rgba(143, 166, 178, .7); padding: 0 .3rem 3px 0; line-height: 1;
    pointer-events: none;
}
.sec-title, .page-title { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; font-size: clamp(1.6rem, 2.7vw, 2.2rem); margin: 0; }
.sec-title-xl { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }

/* ---------- Зоны главной ---------- */
.zone { padding: 1.4rem 0; }
.plate {
    background-color: var(--panel);
    background-image: var(--mm);
    background-size: var(--mm-size);
    border: 1px solid var(--line);
    padding: 1.6rem 2.4rem 2rem;
    position: relative;
}
.zone-route { padding-top: 1.8rem; }

/* Блок 1 — маршрут */
.route { --g: 3.2rem; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--g); }
.route-step { position: relative; min-width: 0; display: flex; flex-direction: column; }
.route-label { display: flex; align-items: center; gap: .9rem; font-size: 1.08rem; margin-bottom: .8rem; white-space: nowrap; }
.route-step:not(:last-child) .route-label { margin-right: calc(-1 * var(--g) + .6rem); }
.route-step:not(:last-child) .route-label::after,
.route-step:not(:last-child) .route-shot::after { content: ""; flex: 1; min-width: 1.5rem; }
.route-shot { position: relative; margin: 0; }
.route-shot img { display: block; width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border: 1px solid rgba(127, 212, 255, .55); box-shadow: 0 0 0 3px rgba(11, 18, 24, .7); transition: transform .2s, border-color .2s; }
.route-step:hover .route-shot img { transform: translate(-3px, -3px); border-color: var(--cyan); }
.route-step:not(:last-child) .route-shot::after {
    position: absolute; left: calc(100% + .9rem); top: calc(50% - 5px); width: calc(var(--g) - 1.8rem); min-width: 0;
}
.route-step:not(:last-child) .route-label::after, .route-step:not(:last-child) .route-shot::after {
    background:
        linear-gradient(rgba(143, 166, 178, .9), rgba(143, 166, 178, .9)) left center / calc(100% - 2px) 1px no-repeat,
        linear-gradient(35deg, transparent 45%, rgba(143, 166, 178, .9) 46%, rgba(143, 166, 178, .9) 54%, transparent 55%) right top / 8px 50% no-repeat,
        linear-gradient(-35deg, transparent 45%, rgba(143, 166, 178, .9) 46%, rgba(143, 166, 178, .9) 54%, transparent 55%) right bottom / 8px 50% no-repeat;
    height: 11px;
}
.route-bypass {
    --g: 3.2rem;
    position: relative;
    margin-left: calc((100% - 3 * var(--g)) / 8);
    width: calc((100% - 3 * var(--g)) / 2 + 2 * var(--g));
    height: 22px;
    border: 1px solid rgba(143, 166, 178, .75); border-top: 0;
    display: flex; justify-content: center;
}
.route-bypass::after {
    content: ""; position: absolute; right: -5px; top: -2px; width: 9px; height: 9px;
    border-left: 1px solid rgba(143, 166, 178, .9); border-top: 1px solid rgba(143, 166, 178, .9);
    transform: rotate(45deg);
}
.route-bypass span { position: absolute; bottom: -.62rem; background: var(--panel); padding: 0 .6rem; font-size: .74rem; color: var(--muted); line-height: 1.2; }
.route-facts { list-style: none; padding: 0; margin: 2.1rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 3.2rem; font-size: 1.22rem; }
.route-facts b { font-weight: 500; color: var(--text); }
.route-facts li { color: var(--muted); padding-left: 1rem; border-left: 3px solid var(--lime); line-height: 1.3; }

/* Блок 2 — разбор детали */
.plate-part { overflow: visible; }
.part-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; }
.part-drawing { position: relative; margin: 0 0 0 -7%; min-width: 0; }
.part-drawing img { display: block; width: 100%; height: auto; }
.part-dims { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.part-dims .dim path, .part-dims .lead path { fill: none; stroke: var(--lime); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.part-dims .dim .dim-head { fill: var(--lime); stroke: none; }
.part-dims .lead path { stroke-width: 1.2; opacity: .9; }
.part-dims .dim-num { fill: var(--lime); font-family: var(--font-body); font-size: 24px; text-anchor: middle; }
.part-dims .pin circle { fill: var(--panel); stroke: var(--lime); stroke-width: 2; }
.part-tag { position: absolute; color: var(--lime); font-size: .8rem; line-height: 1.2; white-space: nowrap; }
.part-notes { list-style: none; margin: 0; padding: 0; counter-reset: note; display: grid; gap: .9rem; }
.part-notes li { counter-increment: note; position: relative; padding: .55rem .9rem .7rem 1.1rem; border-left: 5px solid var(--cyan); border-bottom: 1px solid rgba(127, 212, 255, .7); background: linear-gradient(90deg, rgba(127, 212, 255, .07), transparent 70%); transition: background-color .2s, transform .2s; }
.part-notes li:hover { transform: translateX(4px); background-color: rgba(127, 212, 255, .06); }
.part-notes h3 { font-family: var(--font-body); font-weight: 400; font-size: 1.12rem; margin: 0 0 .2rem; }
.part-notes h3::before { content: counter(note) " · "; color: var(--lime); }
.part-notes p { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--muted); }

/* Последние записи */
.zone-posts { background: var(--deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2.4rem 0 2.8rem; margin-top: 1.4rem; }
.cards { display: grid; gap: 2.2rem 1.6rem; }
.cards-front { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: .6rem; }
.cards-front .card:nth-child(n+4) { display: none; }
.cards-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); padding-top: .8rem; }
.posts-more { margin: 1.8rem 0 0; font-size: .92rem; }
.empty-note { color: var(--muted); }

.card {
    display: flex; flex-direction: column;
    position: relative; min-width: 0;
    background: rgba(29, 44, 54, .92);
    border: 1px solid var(--line);
    border-top-color: rgba(242, 247, 250, .5);
    border-left-color: rgba(242, 247, 250, .5);
    padding: 1.1rem 1.2rem 1rem;
    transition: transform .18s, border-color .18s;
}
.card:hover { transform: translate(3px, -3px); border-left-color: var(--cyan); border-top-color: var(--cyan); }
.card-head { display: flex; gap: .9rem; align-items: flex-start; }
.card-thumb { flex: 0 0 104px; display: block; margin: -1.9rem 0 0 -1.9rem; border: 1px solid rgba(127, 212, 255, .7); background: var(--deep); }
.card-thumb img { display: block; width: 100%; height: 84px; object-fit: cover; }
.card-title { font-family: var(--font-body); font-weight: 500; font-size: 1.12rem; line-height: 1.25; margin: 0; min-width: 0; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--cyan); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; margin-top: .7rem; }
.card-excerpt { font-size: .88rem; line-height: 1.5; color: #c4d3db; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot { margin-top: auto; padding-top: .6rem; display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.card-foot time { font-size: .8rem; color: var(--muted); }

/* Блок 3 — применение */
.zone-uses {
    position: relative;
    background-color: #0b2233;
    background-image: linear-gradient(180deg, rgba(11, 18, 24, .25), rgba(11, 18, 24, .1) 40%, rgba(11, 18, 24, .35)), var(--glow);
    background-size: cover; background-position: center;
    padding: 2.4rem 0 2.8rem;
    margin-top: 1.4rem;
    border-bottom: 1px solid var(--line);
}
.uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.use {
    min-width: 0; display: flex; flex-direction: column;
    border: 1px solid rgba(242, 247, 250, .72);
    background: rgba(16, 35, 50, .32);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    padding: 3.2rem 1rem 1rem;
    transition: background-color .2s, border-color .2s;
}
.use:hover { border-color: var(--cyan); background: rgba(16, 35, 50, .55); }
.use img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.use h3 { font-family: var(--font-body); font-weight: 400; font-size: 1.08rem; margin: .7rem 0 .2rem; }
.use p { margin: 0; font-size: .82rem; line-height: 1.4; color: #cfe3ec; }

/* Блок 4 — шпаргалка */
.zone-cheat { background-color: var(--panel); background-image: var(--mm); background-size: var(--mm-size); padding: 2.4rem 0 2.6rem; }
.cheat-grid { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 2rem 3rem; align-items: start; }
.gauge { position: relative; display: flex; gap: .6rem; min-width: 0; }
.gauge-caption { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--lime); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; align-self: center; }
.gauge-scale { list-style: none; margin: 0; padding: 0 0 0 0; border-left: 1px solid var(--lime); flex: 1; min-width: 0; }
.gauge-scale li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); align-items: center; gap: .5rem; padding: .12rem 0; position: relative; line-height: 1.2; }
.gauge-scale li::before { content: ""; position: absolute; left: 0; top: 50%; width: calc(6px + var(--t) * 1.05px); height: 2px; background: var(--lime); }
.gauge-scale b { font-weight: 500; color: var(--lime); font-size: .82rem; padding-left: 30px; white-space: nowrap; }
.gauge-scale i { font-style: normal; font-size: .78rem; color: var(--muted); }
.memo-col { min-width: 0; }
.memos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.memo { position: relative; border: 1px solid rgba(242, 247, 250, .55); padding: 1.4rem 1.3rem 1.3rem; text-align: center; background: rgba(11, 18, 24, .35); min-width: 0; transition: transform .18s; }
.memo::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(242, 247, 250, .16); pointer-events: none; }
.memo:hover { transform: translateY(-3px); border-color: var(--cyan); }
.memo-key { border-color: var(--lime); }
.memo-key::before { border-color: rgba(216, 243, 74, .3); }
.memo h3 { font-family: var(--font-body); font-weight: 400; font-size: 1.18rem; margin: 0 0 .6rem; line-height: 1.25; }
.memo p { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.cheat-foot { margin: 1.4rem 0 0; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* ---------- Внутренние страницы ---------- */
.inner { padding: 1.6rem 0 3rem; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 1.6rem; }
.crumbs a { color: var(--cyan); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin: 0 .35rem; color: var(--line); }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67%) minmax(0, 27%); justify-content: space-between; align-items: start; }
.layout-single { display: block; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 1.6rem; }
.archive-desc { color: var(--muted); margin-bottom: 1.4rem; }

.entry {
    background-color: var(--panel);
    border: 1px solid var(--line);
    border-top-color: rgba(242, 247, 250, .4);
    border-left-color: rgba(242, 247, 250, .4);
    padding: 2rem 2.3rem 2.2rem;
}
.entry-head { margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.entry-head .page-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .6rem; font-size: .86rem; color: var(--muted); }
.entry-meta a { color: var(--cyan); }
.entry-cover { margin: 0 0 1.6rem; }
.entry-cover img { display: block; width: 100%; height: auto; border: 1px solid rgba(127, 212, 255, .5); }
.entry-content { font-size: 1.04rem; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { font-size: 1.6rem; text-transform: uppercase; margin-top: 1.8em; padding-left: .8rem; border-left: 3px solid var(--cyan); }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.5em; }
.entry-content h4 { font-size: 1.1rem; margin-top: 1.3em; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.1em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--lime); }
.entry-content ol li::marker { color: var(--lime); font-weight: 500; }
.entry-content blockquote { margin: 1.4em 0; padding: 1rem 1.4rem; border-left: 4px solid var(--cyan); background: rgba(127, 212, 255, .06); font-size: 1.1rem; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-size: .84rem; color: var(--muted); margin-top: .4rem; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: .94rem; border: 1px solid var(--line); }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .55rem .8rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--deep); font-weight: 500; color: var(--cyan); }
.entry-content tr:nth-child(even) td { background: rgba(11, 18, 24, .35); }
.entry-content code { background: var(--deep); padding: .1em .35em; font-size: .92em; }
.entry-content pre { background: var(--deep); border: 1px solid var(--line); padding: 1rem 1.2rem; overflow-x: auto; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-tags { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a { display: inline-block; border: 1px solid var(--line); padding: .2rem .6rem; font-size: .8rem; text-decoration: none; color: var(--muted); }
.entry-tags a:hover { border-color: var(--cyan); color: var(--cyan); }
.entry-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.entry-nav a { display: block; padding: .9rem 1.1rem; border: 1px solid var(--line); background: var(--deep); color: var(--text); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.entry-nav a span { display: block; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.entry-nav a:hover { border-color: var(--cyan); }
.entry-nav-next { grid-column: 2; text-align: right; }

/* Сайдбар */
.sidebar { min-width: 0; background: var(--aside); border: 1px solid var(--line); padding: 1.4rem 1.4rem 1.2rem; color: #c4d3db; }
.sidebar .widget { margin-bottom: 1.6rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title { font-family: var(--font-head); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text); margin: 0 0 .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.sidebar .widget-title::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--lime); margin-right: .55rem; vertical-align: middle; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .45rem 0; border-bottom: 1px dashed var(--line); line-height: 1.35; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--text); text-decoration: none; }
.sidebar a:hover { color: var(--cyan); }
.sidebar .post-date { display: block; font-size: .78rem; color: var(--muted); }
.sidebar p { color: #c4d3db; }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.2rem; align-items: center; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .7rem; border: 1px solid var(--line); color: var(--text); background: var(--deep); text-decoration: none; font-size: .9rem; }
.pager a.page-numbers:hover { border-color: var(--cyan); color: var(--cyan); }
.pager .page-numbers.current { background: var(--cyan); border-color: var(--cyan); color: var(--deep); font-weight: 500; }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; color: var(--muted); }

/* Поиск */
.search-form { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.search-field { flex: 1 1 200px; min-width: 0; padding: .6rem .8rem; background: var(--deep); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: .95rem; border-radius: 0; }
.search-field::placeholder { color: var(--muted); }

/* 404 */
.not-found { background: var(--panel); border: 1px solid var(--line); padding: 2.4rem 2.4rem 2rem; position: relative; overflow: hidden; }
.nf-code { position: absolute; right: 1.5rem; top: -1rem; font-family: var(--font-head); font-size: 9rem; color: rgba(127, 212, 255, .08); line-height: 1; pointer-events: none; }
.not-found .page-title { margin-bottom: 1rem; }
.not-found p { color: #c4d3db; max-width: 60ch; }

/* Комментарии */
.notes { margin-top: 2rem; background: var(--panel); border: 1px solid var(--line); padding: 1.8rem 2rem; }
.notes-title, .comment-reply-title { font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; margin: 0 0 1rem; }
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { padding-left: 1.6rem; border-left: 1px solid var(--line); margin-top: .8rem; }
.note-item { margin-bottom: 1rem; }
.note-body { background: var(--deep); border: 1px solid var(--line); padding: 1rem 1.2rem; }
.note-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .84rem; color: var(--muted); margin-bottom: .4rem; }
.note-author { color: var(--cyan); font-weight: 500; }
.note-wait { color: var(--lime); font-size: .86rem; }
.note-text p:last-child { margin-bottom: 0; }
.note-reply a { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.comment-form p { margin-bottom: .9rem; }
.comment-form label { display: block; font-size: .86rem; color: var(--muted); margin-bottom: .25rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .6rem .8rem; background: var(--deep); border: 1px solid var(--line); color: var(--text); font: inherit; 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-form .submit { padding: .65rem 1.4rem; border: 1px solid var(--cyan); background: var(--cyan); color: var(--deep); text-transform: uppercase; letter-spacing: .08em; font: 500 .82rem var(--font-body); cursor: pointer; border-radius: 0; }
.comment-form .submit:hover { background: transparent; color: var(--cyan); }

/* ---------- Подвал ---------- */
.colophon { background-color: var(--deep); background-image: var(--mm); background-size: var(--mm-size); border-top: 1px solid var(--line); margin-top: 0; color: var(--muted); }
.colophon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; padding: 2.4rem 0 2rem; }
.colophon-col { min-width: 0; }
.colophon .widget-title { font-family: var(--font-body); font-weight: 400; font-size: 1.2rem; color: var(--text); margin: 0 0 .6rem; }
.colophon .widget, .colophon p, .colophon .textwidget { color: #b3c6d0; font-size: .9rem; line-height: 1.5; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin: 0 0 .2rem; line-height: 1.35; }
.colophon a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.colophon a:hover { color: var(--cyan); text-decoration: underline; }
.colophon-base { border-top: 1px solid var(--line); padding: 1rem 0; font-size: .82rem; color: #b3c6d0; text-align: center; }

/* ---------- Cookie ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
    max-width: 760px; margin-inline: auto;
    display: flex; align-items: center; gap: 1rem 1.4rem;
    background: var(--deep); border: 1px solid var(--cyan);
    padding: 1rem 1.3rem;
    box-shadow: 6px 6px 0 rgba(127, 212, 255, .15);
}
.cookie-text { margin: 0; font-size: .88rem; color: #c4d3db; flex: 1; min-width: 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .shell { width: min(92%, 1200px); }
    .masthead-row { flex-wrap: wrap; }
    .nav-toggle {
        display: inline-flex; align-items: center; gap: .55rem;
        background: transparent; border: 1px solid var(--line); color: var(--text);
        padding: .5rem .8rem; font: 500 .82rem var(--font-body); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; border-radius: 0;
    }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--cyan); position: relative; }
    .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bars::before { top: -6px; }
    .nav-toggle-bars::after { top: 6px; }
    .site-nav { display: none; width: 100%; flex-basis: 100%; }
    .site-nav .nav-list { flex-wrap: wrap; }
    .site-nav.is-open { display: block; }
    .site-nav .nav-list { flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: .4rem; }
    .site-nav a { padding: .6rem 0; border-bottom: 1px solid var(--line); }
    .site-nav .current-menu-item > a, .site-nav .current_page_item > a { border-bottom-color: var(--cyan); }

    .plate { padding: 1.5rem 1.6rem 1.8rem; }
    .route { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2rem; }
    .route-step .route-label { margin-right: 0 !important; white-space: normal; }
    .route-step .route-label::after, .route-step .route-shot::after { display: none; }
    .route-bypass { display: none; }
    .part-grid { grid-template-columns: minmax(0, 1fr); }
    .part-drawing { margin: 0; }
    .cards-front { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .use { padding-top: 1rem; }
    .cheat-grid { grid-template-columns: minmax(0, 1fr); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

@media (max-width: 700px) {
    .part-tag { display: none; }
    .memos { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .brand-name { font-size: 1.05rem; }
    .brand-mark, .brand-svg, .brand-logo { width: 42px; height: 42px; }
    .sec-head, .page-head { flex-direction: column; align-items: flex-start; }
    .sec-no { position: static; width: auto; text-align: left; border: 0; padding: 0; margin-bottom: .3rem; color: var(--lime); }
    .plate { padding: 1.3rem 1.1rem 1.5rem; }
    .route { grid-template-columns: minmax(0, 1fr); }
    .route-facts { gap: .8rem; font-size: 1.05rem; }
    .cards-front { grid-template-columns: minmax(0, 1fr); }
    .card { padding: 1rem 1rem .9rem; }
    .card-thumb { flex: 0 0 88px; margin: -1.4rem 0 0 -.9rem; }
    .card-thumb img { height: 72px; }
    .cards { gap: 2.2rem; }
    .uses { grid-template-columns: minmax(0, 1fr); }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .entry { padding: 1.4rem 1.2rem 1.6rem; }
    .notes { padding: 1.3rem 1.1rem; }
    .not-found { padding: 1.8rem 1.3rem; }
    .sidebar { padding: 1.2rem 1.1rem; }
    .entry-nav { grid-template-columns: minmax(0, 1fr); }
    .entry-nav-next { grid-column: auto; text-align: left; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.1rem; left: .6rem; right: .6rem; bottom: .6rem; }
}
