/*
Theme Name: dds_ladarus.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: ladarus
*/

/* ===== Палитра и токены ===== */
:root {
    --ld-head: #0E1013;
    --ld-metal: #14171A;
    --ld-steel: #18212B;
    --ld-paper: #E8E6DF;
    --ld-paper-deep: #DCD9CF;
    --ld-text: #F2F0EA;
    --ld-mute: #8C949C;
    --ld-ink: #1B1F24;
    --ld-ink-mute: #4F5862;
    --ld-orange: #FF6A1A;
    --ld-orange-dark: #E0540A;
    --ld-cyan: #4FD1E8;
    --ld-line: #3A424A;
    --ld-grid: #2A3036;
    --ld-blue: #3B5B8C;
    --ld-font-head: "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
    --ld-font-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --ld-grid-bg:
        linear-gradient(var(--ld-grid) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, var(--ld-grid) 1px, transparent 1px) 0 0 / 24px 24px;
    --ld-paper-grid:
        linear-gradient(rgba(59, 91, 140, .13) 1px, transparent 1px) 0 0 / 20px 20px,
        linear-gradient(90deg, rgba(59, 91, 140, .13) 1px, transparent 1px) 0 0 / 20px 20px;
}

/* ===== Скрытие по атрибуту hidden (до основных стилей) ===== */
.ld-cookie[hidden],
.cookie-banner[hidden] { display: none !important; }

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--ld-metal);
    background-image:
        linear-gradient(rgba(42, 48, 54, .55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 48, 54, .55) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--ld-text);
    font-family: var(--ld-font-body);
    font-size: 1rem;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ld-font-head);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 .6em;
    letter-spacing: -.005em;
    overflow-wrap: break-word;
    hyphens: auto;
}

p { margin: 0 0 1em; overflow-wrap: break-word; hyphens: auto; }

a { color: var(--ld-cyan); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ld-text); text-decoration-color: var(--ld-orange); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--ld-orange);
    outline-offset: 3px;
}

img { max-width: 100%; height: auto; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.ld-skip {
    position: absolute;
    left: 1rem; top: -60px;
    z-index: 100;
    background: var(--ld-orange);
    color: #000;
    padding: .6rem 1rem;
    font-weight: 600;
    text-decoration: none;
}
.ld-skip:focus { top: 1rem; color: #000; }

/* Единый контейнер ширины */
.ld-shell { width: min(92%, 1180px); margin-inline: auto; }
.ld-shell--front { width: min(85%, 1080px); }

/* ===== Кнопки: приборная панель с угловыми засечками ===== */
.ld-btn {
    --ld-tick: var(--ld-cyan);
    position: relative;
    display: inline-block;
    padding: .62em 1.3em;
    border: 1px solid var(--ld-cyan);
    border-radius: 0;
    background: transparent;
    color: var(--ld-cyan);
    font-family: var(--ld-font-head);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .02em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s, transform .1s;
}
.ld-btn::after {
    content: "";
    position: absolute;
    inset: -5px;
    pointer-events: none;
    background:
        linear-gradient(var(--ld-tick), var(--ld-tick)) left top / 7px 1px no-repeat,
        linear-gradient(var(--ld-tick), var(--ld-tick)) left top / 1px 7px no-repeat,
        linear-gradient(var(--ld-tick), var(--ld-tick)) right top / 7px 1px no-repeat,
        linear-gradient(var(--ld-tick), var(--ld-tick)) right top / 1px 7px no-repeat,
        linear-gradient(var(--ld-tick), var(--ld-tick)) left bottom / 7px 1px no-repeat,
        linear-gradient(var(--ld-tick), var(--ld-tick)) left bottom / 1px 7px no-repeat,
        linear-gradient(var(--ld-tick), var(--ld-tick)) right bottom / 7px 1px no-repeat,
        linear-gradient(var(--ld-tick), var(--ld-tick)) right bottom / 1px 7px no-repeat;
    opacity: .7;
}
.ld-btn:hover { background: var(--ld-cyan); color: #06181c; }
.ld-btn:active { transform: translateY(1px); }
.ld-btn--fill {
    --ld-tick: var(--ld-orange);
    background: var(--ld-orange);
    border-color: var(--ld-orange);
    color: #000;
}
.ld-btn--fill:hover { background: var(--ld-text); border-color: var(--ld-text); color: #000; }
.ld-btn--ink { --ld-tick: var(--ld-blue); color: #0f5f6e; border-color: #2aa7bd; }
.ld-btn--ink:hover { background: #2aa7bd; color: #fff; }
.ld-btn--sm { font-size: .82rem; padding: .48em 1em; }

/* ===== Маркировка узла: заголовок секции ===== */
.ld-mark {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .2rem .75rem;
    margin-bottom: 1.6rem;
}
.ld-mark__title {
    margin: 0;
    font-size: clamp(2rem, 4.6vw, 3.3rem);
    font-weight: 700;
    color: var(--ld-text);
    min-width: 0;
}
.ld-mark__no {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--ld-font-head);
    font-size: 1.05rem;
    color: var(--ld-mute);
}
.ld-mark__no::after {
    content: "";
    width: 72px;
    height: 1px;
    background: currentColor;
}
.ld-mark--ink .ld-mark__title { color: var(--ld-ink); }
.ld-mark--ink .ld-mark__no { color: var(--ld-ink); }

/* ===== Шапка ===== */
.ld-head {
    background: var(--ld-head);
    border-bottom: 1px solid #1d2227;
    position: relative;
    z-index: 20;
}
.ld-head__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 0;
}
.ld-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    max-width: 62%;
    color: var(--ld-text);
    text-decoration: none;
}
.ld-brand:hover { color: var(--ld-text); }
.ld-brand__mark, .ld-brand__logo {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    display: block;
    object-fit: contain;
}
.ld-brand__text { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.ld-brand__name {
    font-family: var(--ld-font-head);
    font-weight: 700;
    font-size: 1.12rem;
    line-height: 1.2;
    color: var(--ld-text);
    overflow-wrap: break-word;
    hyphens: auto;
}
.ld-brand__desc {
    font-size: .8rem;
    line-height: 1.4;
    color: var(--ld-mute);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ld-nav__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.6rem;
    margin: 0;
    padding: 0;
}
.ld-nav__list a {
    display: block;
    padding: .3rem 0;
    color: var(--ld-text);
    font-family: var(--ld-font-head);
    font-size: 1.08rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.ld-nav__list a:hover { color: var(--ld-cyan); }
.ld-nav__list .current-menu-item > a,
.ld-nav__list .current_page_item > a,
.ld-nav__list a[aria-current="page"] {
    color: var(--ld-cyan);
    border-bottom-color: var(--ld-cyan);
}
.ld-burger {
    display: none;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--ld-line);
    background: transparent;
    color: var(--ld-text);
    cursor: pointer;
}
.ld-burger__bars, .ld-burger__bars::before, .ld-burger__bars::after {
    display: block;
    width: 22px;
    height: 2px;
    margin-inline: auto;
    background: currentColor;
    position: relative;
    transition: transform .2s;
}
.ld-burger__bars::before, .ld-burger__bars::after { content: ""; position: absolute; left: 0; }
.ld-burger__bars::before { top: -7px; }
.ld-burger__bars::after { top: 7px; }
.ld-burger[aria-expanded="true"] .ld-burger__bars { background: transparent; }
.ld-burger[aria-expanded="true"] .ld-burger__bars::before { transform: translateY(7px) rotate(45deg); }
.ld-burger[aria-expanded="true"] .ld-burger__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ===== Главная: общие секции ===== */
.ld-sec { padding: 3.4rem 0; position: relative; }

/* --- Блок 1: разрез автомобиля --- */
.ld-cutaway {
    background-color: var(--ld-metal);
    background-image:
        linear-gradient(var(--ld-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--ld-grid) 1px, transparent 1px);
    background-size: 24px 24px;
    padding-bottom: 4.2rem;
}
.ld-cutaway__stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
}
.ld-cutaway__fig {
    position: relative;
    margin: 0 0 2.6rem;
    min-width: 0;
}
.ld-cutaway__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1770 / 576;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 8%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 8%);
    mask-composite: intersect;
}
.ld-cutaway__nodes { list-style: none; margin: 0; padding: 0; }
.ld-node {
    position: absolute;
    font-family: var(--ld-font-head);
    font-size: clamp(.9rem, 1.4vw, 1.15rem);
    font-weight: 500;
    color: var(--ld-text);
    padding: 0 .1rem .15rem;
    border-bottom: 1px solid var(--ld-text);
    white-space: nowrap;
    background: rgba(20, 23, 26, .92);
}
.ld-node--engine { left: 2.4%; top: 8%; padding-right: 1.4rem; }
.ld-node--low { top: 100%; margin-top: .55rem; padding-left: .5rem; }
.ld-node--low::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 1px;
    height: calc(100% + .55rem + 2px);
    background: var(--ld-text);
}
.ld-node--gear { left: 27.1%; }
.ld-node--susp { left: 55%; }
.ld-node--elec { left: 80.6%; }
.ld-node--cyan { border-bottom-color: var(--ld-cyan); }
.ld-node--orange { border-bottom-color: var(--ld-orange); }
.ld-cutaway__side {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0;
    font-size: .95rem;
    letter-spacing: .04em;
    color: var(--ld-text);
    border-right: 1px solid var(--ld-line);
    padding-right: .6rem;
}

/* --- Блок 2: профессии в цеху --- */
.ld-trades {
    background: var(--ld-steel);
    padding-bottom: 0;
}
.ld-trades__rail {
    position: relative;
    z-index: 5;
    margin-bottom: -72px;
}
.ld-trades__rail::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    height: 14px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Crect x='2' y='3' width='16' height='8' rx='4' fill='none' stroke='%23a7aeb5' stroke-width='2'/%3E%3Cpath d='M15 7h11' stroke='%236b737b' stroke-width='3'/%3E%3C/svg%3E") repeat-x left center / 28px 14px;
    z-index: 0;
}
.ld-trades__rail::after {
    content: "";
    position: absolute;
    left: -4px;
    right: -4px;
    top: 6px;
    height: 18px;
    border-left: 3px solid #a7aeb5;
    border-right: 3px solid #a7aeb5;
    border-radius: 10px;
    pointer-events: none;
}
.ld-trades__tags {
    list-style: none;
    margin: 0;
    padding: 14px 2.2rem 6px;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 1;
}
.ld-tag {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: 158px;
    min-height: 236px;
    padding: 2.1rem .75rem 3.6rem;
    background: url("images/plate-steel.jpg") center / 100% 100% no-repeat;
    color: var(--ld-ink);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
}
.ld-tag::before, .ld-tag::after {
    content: "";
    position: absolute;
    top: -12px;
    width: 9px;
    height: 22px;
    border: 2px solid #b9c0c6;
    border-radius: 6px;
}
.ld-tag::before { left: 7px; }
.ld-tag::after { right: 9px; }
.ld-tag__ico {
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 auto .7rem;
    color: #1d2329;
}
.ld-tag__name {
    margin: 0 0 .3rem;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.12;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.ld-tag__note { margin: 0; font-size: .82rem; line-height: 1.3; color: #2b323a; }

/* --- Двор: грязный металл под листом записей и маршрутом --- */
.ld-yard {
    position: relative;
    z-index: 1;
    background: var(--ld-metal) url("images/grunge-metal.jpg") repeat 0 0 / 432px auto;
}
.ld-sheet {
    position: relative;
    background: var(--ld-paper);
    background-image: var(--ld-paper-grid);
    color: var(--ld-ink);
    padding: 6.2rem 2.4rem 2.6rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.ld-sheet__inner { width: min(100%, 1000px); }
.ld-sheet__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 1rem;
}
.ld-sheet__more { color: var(--ld-blue); font-weight: 600; }
.ld-sheet__more:hover { color: var(--ld-orange-dark); }
.ld-empty { color: var(--ld-ink-mute); margin: 0; }

/* ===== Карточки-детали ===== */
.ld-cards {
    counter-reset: ld-part;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.9rem;
}
.ld-card {
    counter-increment: ld-part;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--ld-paper);
    background-image: var(--ld-paper-grid);
    border: 1px solid var(--ld-blue);
    color: var(--ld-ink);
    padding: .7rem .9rem 1rem;
    overflow: hidden;
    transition: transform .15s;
}
.ld-card-wrap { position: relative; display: flex; min-width: 0; }
.ld-card-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(7px, 7px);
    border: 1px dashed rgba(59, 91, 140, .55);
    pointer-events: none;
}
.ld-card-wrap > .ld-card { flex: 1; }
.ld-card::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 16px;
    height: 16px;
    background: linear-gradient(225deg, var(--ld-paper-deep) 50%, var(--ld-blue) 50%, var(--ld-blue) calc(50% + 1px), transparent calc(50% + 1px));
}
.ld-card::after {
    content: "";
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 9px;
    height: 9px;
    border-right: 1px solid var(--ld-blue);
    border-bottom: 1px solid var(--ld-blue);
}
.ld-card-wrap:hover .ld-card { transform: translate(3px, 3px); }
.ld-card__no {
    display: block;
    font-family: var(--ld-font-head);
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: .45rem;
    color: var(--ld-ink);
}
.ld-card__no::after { content: "Д-" counter(ld-part, decimal-leading-zero); }
.ld-card__thumb {
    display: block;
    border: 1px solid var(--ld-blue);
    padding: 3px;
    background: #f4f2ec;
}
.ld-card__thumb img, .ld-card__ph {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.ld-card__ph {
    background: var(--ld-steel);
    background-image:
        linear-gradient(rgba(79, 209, 232, .18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 209, 232, .18) 1px, transparent 1px);
    background-size: 16px 16px;
    position: relative;
}
.ld-card__ph svg {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 42%;
    height: 60%;
    color: var(--ld-cyan);
}
.ld-card__body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding-top: .85rem; }
.ld-card__title { margin: 0 0 .4rem; font-size: 1.22rem; font-weight: 700; line-height: 1.18; }
.ld-card__title a { color: var(--ld-ink); text-decoration: none; }
.ld-card__title a:hover { color: var(--ld-blue); text-decoration: underline; text-decoration-color: var(--ld-orange); }
.ld-card__excerpt { font-size: .9rem; line-height: 1.45; color: #333b44; margin-bottom: .9rem; }
.ld-card__excerpt p { margin: 0 0 .5em; background: none; }
.ld-card__foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    flex-wrap: wrap;
}
.ld-card__date { font-size: .85rem; color: var(--ld-ink-mute); }
.ld-card .ld-btn { --ld-tick: var(--ld-blue); color: #0d6272; border-color: #2aa7bd; }
.ld-card .ld-btn:hover { background: #2aa7bd; color: #fff; }
.ld-cards--front .ld-card-wrap:first-child .ld-btn { --ld-tick: var(--ld-orange); background: var(--ld-orange); border-color: var(--ld-orange); color: #000; }
.ld-cards--front .ld-card-wrap:first-child .ld-btn:hover { background: var(--ld-ink); border-color: var(--ld-ink); color: #fff; }

/* --- Блок 3: маршрут обучения --- */
.ld-route { padding: 3.8rem 0 4.2rem; }
.ld-route__track {
    list-style: none;
    margin: 0 0 2.6rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ld-route__stop {
    position: relative;
    min-width: 0;
    padding-bottom: 2.4rem;
    font-family: var(--ld-font-head);
    font-size: clamp(1.15rem, 2.2vw, 1.75rem);
    font-weight: 500;
    color: var(--ld-text);
}
.ld-route__stop::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    border: 2px solid var(--ld-text);
    border-radius: 50%;
    background: var(--ld-metal);
    z-index: 1;
}
.ld-route__stop::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 0;
    bottom: 7px;
    height: 2px;
    background: var(--ld-text);
}
.ld-route__stop:nth-child(even)::after {
    background: repeating-linear-gradient(90deg, var(--ld-text) 0 12px, transparent 12px 20px);
}
.ld-route__stop:last-child::after {
    right: 0;
    background: linear-gradient(90deg, var(--ld-text), var(--ld-orange));
}
.ld-route__stop:last-child { padding-right: 0; }
.ld-route__end {
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 14px;
    height: 14px;
    border-top: 2px solid var(--ld-orange);
    border-right: 2px solid var(--ld-orange);
    transform: rotate(45deg);
}
.ld-route__stop:hover::before { background: var(--ld-orange); border-color: var(--ld-orange); }
.ld-route__sum {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}
.ld-route__big {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin: 0;
    font-family: var(--ld-font-head);
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
    font-weight: 500;
    line-height: 1.1;
}
.ld-route__num {
    font-size: clamp(4.5rem, 9vw, 6.6rem);
    font-weight: 800;
    line-height: .85;
    color: var(--ld-text);
}
.ld-route__note { margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.4; color: var(--ld-text); max-width: 32ch; }

/* --- Блок 4: технологии под капотом --- */
.ld-tech {
    background: var(--ld-steel);
    border-top: 1px solid var(--ld-line);
    padding-bottom: 4rem;
}
.ld-tech__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .98fr);
    gap: 3.4rem;
    align-items: center;
}
.ld-tech__photo {
    margin: 0;
    border: 1px solid var(--ld-line);
    padding: 0;
    min-width: 0;
}
.ld-tech__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 489 / 256;
    object-fit: cover;
}
.ld-terms { margin: 0; border-top: 1px solid var(--ld-line); min-width: 0; }
.ld-terms__row {
    padding: .95rem 0;
    border-bottom: 1px solid var(--ld-line);
    font-size: clamp(1.05rem, 1.7vw, 1.32rem);
    line-height: 1.3;
}
.ld-terms__row dt, .ld-terms__row dd { display: inline; margin: 0; }
.ld-terms__row dt { font-family: var(--ld-font-head); font-weight: 700; color: var(--ld-text); }
.ld-terms__row dd { color: #d9d7d0; }
.ld-terms__row dd::before { content: " — "; color: var(--ld-orange); }
.ld-terms__row:hover dt { color: var(--ld-cyan); }

/* ===== Внутренние страницы ===== */
.ld-inner { padding: 1.6rem 0 4rem; }
.ld-crumbs {
    font-size: .88rem;
    color: var(--ld-mute);
    margin-bottom: 1.6rem;
    padding: .55rem .9rem;
    border: 1px solid var(--ld-line);
    background: rgba(14, 16, 19, .7);
    overflow-wrap: break-word;
}
.ld-crumbs a { color: var(--ld-cyan); }
.ld-crumbs span { color: var(--ld-text); }
.ld-crumbs .ld-crumbs__sep { color: var(--ld-orange); padding: 0 .25rem; }

.ld-layout--aside {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.ld-layout--single { display: block; }
.ld-layout--single > .ld-content { width: 85%; margin-left: auto; margin-right: auto; }
.ld-content { min-width: 0; }

.ld-page-head { margin-bottom: 1.8rem; }
.ld-page-head .ld-mark { margin-bottom: .6rem; }
.ld-page-head__lead { color: var(--ld-mute); margin: 0; }

.ld-list .ld-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ld-layout--single .ld-list .ld-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Лист записи / страницы */
.ld-doc {
    position: relative;
    background: var(--ld-paper);
    background-image: var(--ld-paper-grid);
    color: var(--ld-ink);
    padding: 2.6rem 2.6rem 2.8rem;
    border: 1px solid var(--ld-blue);
    box-shadow: 9px 9px 0 -1px var(--ld-metal), 9px 9px 0 0 rgba(79, 209, 232, .45);
}
.ld-doc::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 26px;
    height: 26px;
    background: linear-gradient(225deg, var(--ld-metal) 50%, var(--ld-blue) 50%, var(--ld-blue) calc(50% + 1px), var(--ld-paper-deep) calc(50% + 1px));
}
.ld-doc__title { font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--ld-ink); margin-bottom: .5rem; }
.ld-doc__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.2rem;
    font-size: .88rem;
    color: var(--ld-ink-mute);
    padding-bottom: 1rem;
    margin-bottom: 1.6rem;
    border-bottom: 1px solid rgba(59, 91, 140, .35);
}
.ld-doc__meta a { color: var(--ld-blue); }
.ld-doc__cover { margin: 0 0 1.8rem; border: 1px solid var(--ld-blue); padding: 4px; background: #f4f2ec; }
.ld-doc__cover img { display: block; width: 100%; height: auto; }

.ld-prose { font-size: 1.04rem; line-height: 1.72; overflow-wrap: break-word; }
.ld-prose > *:last-child { margin-bottom: 0; }
.ld-prose h2 { font-size: 1.75rem; margin-top: 1.8em; }
.ld-prose h3 { font-size: 1.4rem; margin-top: 1.6em; }
.ld-prose h4 { font-size: 1.2rem; margin-top: 1.4em; }
.ld-prose h2::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--ld-orange);
    margin-right: .55rem;
    vertical-align: .12em;
}
.ld-prose a { color: #0d6272; text-decoration-color: #2aa7bd; }
.ld-prose a:hover { color: var(--ld-orange-dark); }
.ld-prose ul, .ld-prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.ld-prose li { margin-bottom: .4em; }
.ld-prose ul { list-style: none; padding-left: 1.3em; }
.ld-prose ul li { position: relative; }
.ld-prose ul li::before {
    content: "";
    position: absolute;
    left: -1.1em;
    top: .62em;
    width: 7px;
    height: 7px;
    background: var(--ld-orange);
}
.ld-prose ol li::marker { color: var(--ld-blue); font-weight: 700; font-family: var(--ld-font-head); }
.ld-prose blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.5rem;
    background: var(--ld-steel);
    color: var(--ld-text);
    border-left: 5px solid var(--ld-orange);
    font-size: 1.12rem;
}
.ld-prose blockquote p:last-child { margin-bottom: 0; }
.ld-prose blockquote a { color: var(--ld-cyan); }
.ld-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.ld-prose th, .ld-prose td { border: 1px solid var(--ld-blue); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.ld-prose th { background: var(--ld-paper-deep); font-family: var(--ld-font-head); }
.ld-prose code { background: #d8d5ca; padding: .1em .35em; font-size: .92em; }
.ld-prose pre { background: var(--ld-head); color: var(--ld-text); padding: 1rem 1.2rem; overflow-x: auto; }
.ld-prose pre code { background: none; padding: 0; }
.ld-prose img { display: block; height: auto; }
.ld-prose figure { margin: 1.6em 0; max-width: 100%; }
.ld-prose figcaption, .ld-prose .wp-caption-text { font-size: .86rem; color: var(--ld-ink-mute); margin-top: .4rem; }
.ld-prose hr { border: 0; height: 1px; background: rgba(59, 91, 140, .45); margin: 2em 0; }
.ld-prose .alignleft { float: left; margin: 0 1.2rem 1rem 0; }
.ld-prose .alignright { float: right; margin: 0 0 1rem 1.2rem; }
.ld-prose .aligncenter { margin-left: auto; margin-right: auto; }

.ld-tags { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.ld-tags a {
    display: inline-block;
    padding: .2rem .6rem;
    border: 1px solid var(--ld-blue);
    color: var(--ld-blue);
    font-size: .85rem;
    text-decoration: none;
}
.ld-tags a:hover { background: var(--ld-blue); color: #fff; }

.ld-postnav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.ld-postnav a {
    display: block;
    padding: .9rem 1.1rem;
    border: 1px solid var(--ld-line);
    background: var(--ld-steel);
    color: var(--ld-text);
    text-decoration: none;
    font-family: var(--ld-font-head);
    font-size: 1.05rem;
}
.ld-postnav a:hover { border-color: var(--ld-cyan); color: var(--ld-cyan); }
.ld-postnav span { display: block; font-family: var(--ld-font-body); font-size: .8rem; color: var(--ld-mute); }
.ld-postnav__next { text-align: right; }

/* ===== Пагинация (type => plain) ===== */
.ld-pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.6rem;
}
.ld-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(--ld-line);
    background: var(--ld-steel);
    color: var(--ld-text);
    font-family: var(--ld-font-head);
    font-weight: 700;
    text-decoration: none;
}
.ld-pager a.page-numbers:hover { border-color: var(--ld-cyan); color: var(--ld-cyan); }
.ld-pager .page-numbers.current { background: var(--ld-orange); border-color: var(--ld-orange); color: #000; }
.ld-pager .page-numbers.dots { border: 0; background: none; min-width: 1.5rem; padding: 0; color: var(--ld-mute); }

/* ===== Сайдбар ===== */
.ld-sidebar {
    min-width: 0;
    background: var(--ld-steel);
    border: 1px solid var(--ld-line);
    border-top: 3px solid var(--ld-cyan);
    padding: 1.6rem 1.5rem;
    color: var(--ld-text);
}
.ld-sidebar .ld-widget { margin-bottom: 2rem; }
.ld-sidebar .ld-widget:last-child { margin-bottom: 0; }
.ld-sidebar .ld-widget__title {
    font-size: 1.25rem;
    color: var(--ld-text);
    padding-bottom: .55rem;
    margin-bottom: .9rem;
    border-bottom: 1px solid var(--ld-line);
}
.ld-sidebar .ld-widget__title::before { content: "◇ "; color: var(--ld-orange); }
.ld-sidebar ul { list-style: none; margin: 0; padding: 0; }
.ld-sidebar li { padding: .5rem 0; border-bottom: 1px dashed var(--ld-line); color: var(--ld-mute); }
.ld-sidebar li:last-child { border-bottom: 0; }
.ld-sidebar a { color: var(--ld-text); text-decoration: none; }
.ld-sidebar a:hover { color: var(--ld-cyan); text-decoration: underline; }
.ld-sidebar .post-date, .ld-sidebar .rss-date { display: block; font-size: .8rem; color: var(--ld-mute); }
.ld-sidebar p, .ld-sidebar .textwidget { color: #c9cdd1; }

/* ===== Поиск ===== */
.ld-search { display: flex; gap: .5rem; max-width: 520px; }
.ld-search__field {
    flex: 1;
    min-width: 0;
    padding: .62rem .8rem;
    border: 1px solid var(--ld-line);
    background: var(--ld-head);
    color: var(--ld-text);
    font: inherit;
    border-radius: 0;
}
.ld-search__field::placeholder { color: var(--ld-mute); }
.ld-search__btn { flex: 0 0 auto; }
.ld-sidebar .ld-search { flex-direction: column; }
.ld-doc .ld-search__field { background: #f6f4ee; color: var(--ld-ink); border-color: var(--ld-blue); }

/* ===== 404 ===== */
.ld-404 { text-align: left; }
.ld-404__code {
    font-family: var(--ld-font-head);
    font-size: clamp(5rem, 16vw, 10rem);
    font-weight: 800;
    line-height: .9;
    margin: 0 0 .4rem;
    color: transparent;
    -webkit-text-stroke: 2px var(--ld-orange);
}
.ld-404 .ld-search { margin: 1.4rem 0 1.8rem; }

/* ===== Комментарии ===== */
.ld-comments { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(59, 91, 140, .45); }
.ld-comments__title { font-size: 1.6rem; color: var(--ld-ink); }
.ld-comments ol, .ld-comments ul { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.ld-comments .children { margin: 1rem 0 0 1.6rem; padding-left: 1rem; border-left: 1px dashed var(--ld-blue); }
.ld-comment { margin-bottom: 1rem; }
.ld-comment__body { background: #f3f1ea; border: 1px solid rgba(59, 91, 140, .4); padding: 1rem 1.2rem; }
.ld-comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-bottom: .6rem; }
.ld-comment__ava { display: block; border-radius: 0; }
.ld-comment__author { font-family: var(--ld-font-head); font-weight: 700; }
.ld-comment__date { font-size: .82rem; color: var(--ld-ink-mute); }
.ld-comment__wait { font-size: .88rem; color: var(--ld-orange-dark); }
.ld-comment__text p:last-child { margin-bottom: 0; }
.ld-comment__reply { margin-top: .6rem; }
.ld-comment__reply a { color: #0d6272; font-weight: 600; font-size: .9rem; }
.ld-comments-nav { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.ld-comments-nav a { color: #0d6272; }
.comment-respond { margin-top: 1.4rem; }
.comment-reply-title { font-size: 1.45rem; color: var(--ld-ink); }
.comment-reply-title small { font-family: var(--ld-font-body); font-size: .85rem; margin-left: .6rem; }
.comment-reply-title small a { color: var(--ld-orange-dark); }
.ld-form-note { font-size: .88rem; color: var(--ld-ink-mute); }
.ld-form-note a { color: #0d6272; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid var(--ld-blue);
    background: #f8f6f0;
    color: var(--ld-ink);
    font: inherit;
    border-radius: 0;
}
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.ld-req { color: var(--ld-orange-dark); }

/* ===== Подвал ===== */
.ld-foot {
    background: var(--ld-head);
    color: #c9cdd1;
    border-top: 1px solid #22282e;
    padding: 3.2rem 0 1.6rem;
}
.ld-foot__cols {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr);
    gap: 2.4rem;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid var(--ld-line);
}
.ld-foot__col { min-width: 0; }
.ld-foot .ld-widget { margin-bottom: 1.4rem; }
.ld-foot .ld-widget:last-child { margin-bottom: 0; }
.ld-foot .ld-widget__title { font-size: 1.5rem; color: var(--ld-text); margin-bottom: .6rem; }
.ld-foot p, .ld-foot .textwidget { color: #c9cdd1; font-size: .95rem; line-height: 1.5; }
.ld-foot ul { list-style: none; margin: 0; padding: 0; }
.ld-foot li { margin-bottom: .3rem; color: #c9cdd1; }
.ld-foot a { color: var(--ld-text); text-decoration-color: var(--ld-cyan); }
.ld-foot a:hover { color: var(--ld-cyan); }
.ld-foot .post-date { display: block; font-size: .8rem; color: var(--ld-mute); }
.ld-foot__copy { margin: 1.3rem 0 0; font-size: .88rem; color: var(--ld-mute); }

/* ===== Cookie-баннер ===== */
.ld-cookie {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1.4rem;
    background: var(--ld-head);
    border: 1px solid var(--ld-line);
    border-top: 3px solid var(--ld-orange);
    color: var(--ld-text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.ld-cookie p { margin: 0; font-size: .9rem; line-height: 1.45; min-width: 0; }
.ld-cookie .ld-btn { flex: 0 0 auto; }

/* ===== Адаптив ===== */
@media (max-width: 960px) {
    .ld-head__row { flex-wrap: wrap; }
    .ld-brand { max-width: calc(100% - 64px); }
    .ld-burger { display: block; }
    .ld-nav { display: none; width: 100%; }
    .ld-nav.is-open { display: block; }
    .ld-nav__list { flex-direction: column; gap: 0; border-top: 1px solid var(--ld-line); padding-top: .5rem; }
    .ld-nav__list a { padding: .65rem 0; border-bottom: 1px solid #1d2227; }
    .ld-nav__list .current-menu-item > a { border-bottom-color: var(--ld-cyan); }

    .ld-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ld-layout--aside { display: block; }
    .ld-layout--aside .ld-sidebar { margin-top: 2.6rem; }
    .ld-layout--single > .ld-content { width: 100%; }
    .ld-layout--single .ld-list .ld-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .ld-trades__tags { justify-content: flex-start; overflow-x: auto; padding: 14px 1rem 10px; scrollbar-width: thin; }
    .ld-tag { flex: 0 0 156px; max-width: none; padding-left: .6rem; padding-right: .6rem; }
    .ld-tag__name { font-size: .94rem; }
    .ld-trades__rail::before, .ld-trades__rail::after { display: none; }
    .ld-trades__tags { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Crect x='2' y='3' width='16' height='8' rx='4' fill='none' stroke='%23a7aeb5' stroke-width='2'/%3E%3Cpath d='M15 7h11' stroke='%236b737b' stroke-width='3'/%3E%3C/svg%3E") repeat-x 0 8px / 28px 14px; background-attachment: local; }

    .ld-tech__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .ld-foot__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .ld-cutaway__stage { grid-template-columns: minmax(0, 1fr); }
    .ld-cutaway__fig { margin-bottom: 1rem; }
    .ld-cutaway__side { writing-mode: horizontal-tb; transform: none; border-right: 0; border-left: 3px solid var(--ld-orange); padding: 0 0 0 .7rem; }
    .ld-cutaway__nodes { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-top: 1rem; }
    .ld-node, .ld-node--engine, .ld-node--low { position: static; margin: 0; padding: 0 0 .1rem; background: none; }
    .ld-node--low::before { display: none; }
    .ld-node::before { content: "●"; display: inline-block; margin-right: .35rem; position: static; width: auto; height: auto; background: none; }
    .ld-node--cyan::before { color: var(--ld-cyan); }
    .ld-node--orange::before { color: var(--ld-orange); }

    .ld-route__track { grid-template-columns: minmax(0, 1fr); }
    .ld-route__stop { padding: 0 0 1.6rem 2.2rem; }
    .ld-route__stop::before { top: .35em; bottom: auto; }
    .ld-route__stop::after,
    .ld-route__stop:nth-child(even)::after,
    .ld-route__stop:last-child::after {
        left: 7px;
        right: auto;
        top: calc(.35em + 16px);
        bottom: 0;
        width: 2px;
        height: auto;
    }
    .ld-route__stop:nth-child(even)::after { background: repeating-linear-gradient(180deg, var(--ld-text) 0 8px, transparent 8px 14px); }
    .ld-route__stop:last-child::after { display: none; }
    .ld-route__end { display: none; }
    .ld-route__sum { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
}

@media (max-width: 600px) {
    .ld-shell--front { width: min(92%, 1080px); }
    .ld-sec { padding: 2.6rem 0; }
    .ld-sheet { padding: 5.6rem 1.2rem 2rem; }
    .ld-cards,
    .ld-list .ld-cards,
    .ld-layout--single .ld-list .ld-cards { grid-template-columns: minmax(0, 1fr); }
    .ld-doc { padding: 1.6rem 1.25rem 1.8rem; box-shadow: 6px 6px 0 -1px var(--ld-metal), 6px 6px 0 0 rgba(79, 209, 232, .45); }
    .ld-postnav { grid-template-columns: minmax(0, 1fr); }
    .ld-postnav__next { text-align: left; }
    .ld-foot__cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .ld-cookie { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem; }
    .ld-search { flex-direction: column; }
    .ld-brand__mark, .ld-brand__logo { width: 48px; height: 48px; }
    .ld-brand__name { font-size: 1rem; }
    .ld-sidebar { padding: 1.3rem 1.1rem; }
    .ld-prose .alignleft, .ld-prose .alignright { float: none; margin: 0 0 1rem; }
}

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