/*
Theme Name: dds_automylife.ru
Theme URI: https://automylife.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: sixgear
*/

/* ---------- Шрифты ---------- */
@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: 600; font-display: swap; src: url("fonts/oswald-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-latin-600-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: 400; font-display: swap; src: url("fonts/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-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: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-latin-600-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: #1E2124;
    --asphalt: #2A2E32;
    --paper: #E8E4D8;
    --paper-hi: #F0EDE4;
    --aside: #25292D;
    --ink-on-dark: #EDEAE0;
    --ink-on-light: #1E2124;
    --muted: #8C9196;
    --muted-on-light: #5C6166;
    --orange: #FF6B1A;
    --orange-deep: #E0560A;
    --blue: #4A7FA5;
    --line-light: #3C4146;
    --line-dark: #4A5056;
    --head: "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif;
    --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --grid-dark:
        repeating-linear-gradient(0deg, rgba(74, 127, 165, .11) 0 1px, transparent 1px 50px),
        repeating-linear-gradient(90deg, rgba(74, 127, 165, .11) 0 1px, transparent 1px 50px),
        repeating-linear-gradient(0deg, rgba(74, 127, 165, .045) 0 1px, transparent 1px 10px),
        repeating-linear-gradient(90deg, rgba(74, 127, 165, .045) 0 1px, transparent 1px 10px);
    --grid-light:
        repeating-linear-gradient(0deg, rgba(60, 65, 70, .16) 0 1px, transparent 1px 50px),
        repeating-linear-gradient(90deg, rgba(60, 65, 70, .16) 0 1px, transparent 1px 50px),
        repeating-linear-gradient(0deg, rgba(60, 65, 70, .07) 0 1px, transparent 1px 10px),
        repeating-linear-gradient(90deg, rgba(60, 65, 70, .07) 0 1px, transparent 1px 10px);
}

/* ---------- Скрытие через 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(--graphite);
    background-image: var(--grid-dark);
    color: var(--ink-on-dark);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); font-weight: 500; line-height: 1.15; margin: 0 0 .6em; letter-spacing: .02em; }
p, li, td, th, dd, dt, h1, h2, h3, h4, blockquote, figcaption, .card__title, .widget { overflow-wrap: break-word; hyphens: auto; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease; }
a:hover, a:focus-visible { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
button, input, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; border: 1px solid var(--line-light); }
th, td { border: 1px solid var(--line-light); padding: .55em .8em; text-align: left; vertical-align: top; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--orange); color: #111; padding: .6em 1em; font-weight: 600; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Контейнер ---------- */
.shell { width: min(92%, 1240px); margin-inline: auto; }
@media (min-width: 600px) { .shell { width: min(85%, 1240px); } }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .7em 1.4em;
    font-family: var(--mono); font-size: .86rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    text-decoration: none; border: 2px solid transparent; border-radius: 0; cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
    max-width: 100%; text-align: center;
}
.btn--fill { background: var(--orange); color: #111; border-color: var(--orange); }
.btn--fill:hover, .btn--fill:focus-visible { background: var(--orange-deep); border-color: var(--orange-deep); color: #111; transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink-on-light); }
.btn--line { background: transparent; color: var(--ink-on-light); border-color: var(--orange); }
.btn--line:hover, .btn--line:focus-visible { background: var(--orange); color: #111; transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink-on-light); }
.btn--frame { background: transparent; color: var(--ink-on-light); border: 1.5px solid var(--ink-on-light); padding: .5em .9em; font-size: .78rem; }
.btn--frame:hover, .btn--frame:focus-visible { background: var(--ink-on-light); color: var(--orange); }

/* ---------- Засечки по углам (чертёж) ---------- */
.notched { position: relative; }
.notched::after {
    content: ""; position: absolute; inset: -7px; pointer-events: none;
    --c: var(--line-dark);
    background:
        linear-gradient(var(--c), var(--c)) top left / 14px 2px no-repeat,
        linear-gradient(var(--c), var(--c)) top left / 2px 14px no-repeat,
        linear-gradient(var(--c), var(--c)) top right / 14px 2px no-repeat,
        linear-gradient(var(--c), var(--c)) top right / 2px 14px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom left / 14px 2px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom left / 2px 14px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom right / 14px 2px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom right / 2px 14px no-repeat;
}

/* ---------- Шапка ---------- */
.masthead { background: var(--graphite); position: relative; }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0 1rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink-on-dark); min-width: 0; flex: 1 1 auto; }
.topnav { flex: 0 0 auto; }
.brand:hover { color: var(--ink-on-dark); }
.brand__logo { flex: 0 0 auto; }
.brand__mark { width: 56px; height: 56px; transition: transform .6s ease; }
.brand:hover .brand__mark { transform: rotate(45deg); }
.brand-logo { max-height: 56px; width: auto; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--head); font-weight: 500; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.15; max-width: 30ch; text-transform: uppercase; letter-spacing: .05em; }
.brand__desc { font-size: .7rem; color: var(--muted); line-height: 1.45; margin-top: .35rem; max-width: 58ch; }

.topnav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: .3rem 1.5rem; white-space: nowrap; }
.topnav__list a {
    font-family: var(--head); font-size: 1rem; text-transform: uppercase; letter-spacing: .07em;
    text-decoration: none; color: var(--ink-on-dark); padding: .3em 0; position: relative; display: inline-block;
}
.topnav__list a::before {
    content: ""; position: absolute; left: -.85em; top: 50%; width: .42em; height: .42em; background: var(--orange);
    transform: translateY(-50%) scale(0); transition: transform .15s ease;
}
.topnav__list a:hover, .topnav__list a:focus-visible { color: var(--orange); }
.topnav__list a:hover::before, .topnav__list a:focus-visible::before { transform: translateY(-50%) scale(1); }
.topnav__list .current-menu-item > a, .topnav__list .current_page_item > a { color: var(--orange); }

.navtoggle {
    display: none; align-items: center; gap: .6rem; background: transparent; border: 1.5px solid var(--line-dark);
    color: var(--ink-on-dark); padding: .5rem .8rem; cursor: pointer; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
}
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after { display: block; width: 18px; height: 2px; background: var(--orange); position: relative; }
.navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; }
.navtoggle__bars::before { top: -6px; }
.navtoggle__bars::after { top: 6px; }

.tacho {
    height: 26px;
    background:
        linear-gradient(var(--blue), var(--blue)) left bottom / 100% 1px no-repeat,
        repeating-linear-gradient(90deg, #5A6168 0 1px, transparent 1px 12px) left bottom / 100% 9px no-repeat,
        repeating-linear-gradient(90deg, #6E767E 0 1.5px, transparent 1.5px 60px) left bottom / 100% 20px no-repeat;
    background-color: var(--graphite);
}

@media (max-width: 960px) {
    .masthead__row { flex-wrap: wrap; }
    .navtoggle { display: inline-flex; }
    .topnav { flex-basis: 100%; display: none; }
    .topnav.is-open { display: block; }
    .topnav__list { flex-direction: column; gap: 0; border-top: 1px solid var(--line-dark); padding-top: .5rem; }
    .topnav__list a { padding: .55em 0 .55em 1.1em; display: block; }
    .topnav__list a::before { left: 0; }
}
@media (max-width: 600px) {
    .brand__mark { width: 44px; height: 44px; }
    .brand__desc { display: none; }
}

/* ---------- Секции главной ---------- */
.fs { padding: 4rem 0; position: relative; }
.fs--asphalt { background-color: var(--asphalt); background-image: var(--grid-dark); color: var(--ink-on-dark); }
.fs--paper { background-color: var(--paper); background-image: var(--grid-light); color: var(--ink-on-light); }
.fs--paper + .fs--paper { border-top: 1px solid rgba(60, 65, 70, .35); }
.fs--paper a:not(.btn):hover { color: var(--orange-deep); }

.sec-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.sec-head__title { margin: 0; font-size: clamp(1.9rem, 4vw, 2.9rem); text-transform: uppercase; letter-spacing: .05em; line-height: 1.05; min-width: 0; }
.sec-head--split .sec-head__more { margin-left: auto; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.sec-head--split .sec-head__more::after { content: " →"; color: var(--orange-deep); }
.stamp {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    min-width: 3rem; height: 2.6rem; padding: 0 .55rem;
    background: var(--orange); color: #111; font-family: var(--head); font-weight: 600; font-size: 1.45rem; letter-spacing: .04em;
    outline: 1.5px solid #111; outline-offset: -5px;
}
.stamp--small { min-width: 2.1rem; height: 2.1rem; font-size: 1.1rem; }

/* Блок 1: разбор по цифрам */
.figures__grid { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.blueprint { margin: 0; border: 1.5px solid var(--blue); background: #1B2632; }
.blueprint::after { --c: var(--blue); }
.blueprint__canvas { position: relative; container-type: inline-size; }
.blueprint__canvas img { width: 100%; height: auto; aspect-ratio: 1293 / 531; object-fit: cover; }
.callout {
    position: absolute; font-family: var(--mono); font-weight: 400; color: #F4F2EA; white-space: nowrap;
    font-size: 2.7cqi; line-height: 1; letter-spacing: .01em; text-shadow: 0 0 6px #0F1820;
}
.callout--power { left: 4.9%; top: 14.6%; }
.callout--torque { right: 3.4%; top: 5.6%; }
.callout--clearance { left: 41%; top: 80.4%; }
.callout--volume { right: 3.4%; top: 90.6%; }
.blueprint__legend { display: none; }
.figures__side { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.6rem; align-items: center; }
.gauge {
    position: relative; width: 34px; height: 260px;
    background:
        linear-gradient(var(--orange), var(--orange)) left top / 2px 100% no-repeat,
        repeating-linear-gradient(180deg, var(--orange) 0 2px, transparent 2px 13px) left top / 12px 100% no-repeat,
        repeating-linear-gradient(180deg, var(--orange) 0 2px, transparent 2px 52px) left top / 22px 100% no-repeat;
}
.gauge__mark { position: absolute; right: -4px; top: 56%; width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-right: 14px solid var(--orange); }
.figures__text { border-left: 1px solid var(--line-dark); padding: .4rem 0 .4rem 1.4rem; position: relative; }
.figures__text::before, .figures__text::after { content: ""; position: absolute; left: -1px; width: 14px; height: 1px; background: var(--line-dark); }
.figures__text::before { top: 0; }
.figures__text::after { bottom: 0; }
.figures__question { font-family: var(--head); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; }
.figures__note { color: #C9C6BC; font-size: .86rem; margin: 0; }

/* Блок 2: комплектации */
.trims__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; align-items: end; margin-bottom: 2.2rem; }
.trims__top .sec-head { margin-bottom: 0; }
.trims__intro { text-align: right; }
.trims__intro p { margin: 0; font-size: .9rem; color: var(--muted-on-light); }
.trims__kicker { font-family: var(--head); font-size: 1.25rem !important; color: var(--ink-on-light) !important; letter-spacing: .04em; margin-bottom: .3rem !important; }
.trims__table { background: var(--paper-hi); border: 1.5px solid var(--ink-on-light); padding: 1.2rem 1.4rem; overflow-x: auto; }
.trims__table::after { --c: var(--ink-on-light); }
.spec { border: 1.5px solid var(--ink-on-light); min-width: 560px; font-size: .88rem; }
.spec th, .spec td { border: 1px solid var(--line-light); padding: .6em .9em; }
.spec thead th { font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; text-align: center; background: var(--paper); font-size: .95rem; }
.spec thead th:first-child { text-align: left; }
.spec tbody th { font-weight: 600; background: var(--paper); width: 24%; }
.spec td { text-align: center; }
.diff { display: inline-block; width: .7em; height: .7em; background: var(--orange); margin-right: .55em; vertical-align: .02em; }

/* Карточки записей */
.cards { display: grid; gap: 2rem 1.8rem; }
.cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.no-aside .cards--feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    display: flex; flex-direction: column; position: relative; min-width: 0;
    background: var(--paper-hi); color: var(--ink-on-light);
    border: 1.5px solid var(--ink-on-light);
    padding: 1rem 1.1rem 1.1rem 1.75rem;
    transition: transform .15s ease, box-shadow .15s ease;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; background: var(--orange); }
.card::after {
    content: ""; position: absolute; inset: 5px 5px 5px 14px; pointer-events: none;
    --c: var(--ink-on-light);
    background:
        linear-gradient(var(--c), var(--c)) top right / 10px 2px no-repeat,
        linear-gradient(var(--c), var(--c)) top right / 2px 10px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom right / 10px 2px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom right / 2px 10px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom left / 10px 2px no-repeat,
        linear-gradient(var(--c), var(--c)) bottom left / 2px 10px no-repeat;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink-on-light); }
.card.sticky { border-color: var(--orange-deep); }
.card__thumb { display: block; overflow: hidden; border: 1px solid var(--line-light); }
.card__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 7 / 3; object-fit: cover; filter: saturate(.85) contrast(1.03); transition: transform .3s ease; }
.card:hover .card__thumb img { transform: scale(1.04); }
.card-body { flex: 1; display: flex; flex-direction: column; padding-top: 1rem; min-width: 0; }
.card__title { font-size: 1.32rem; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 .55rem; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--orange-deep); }
.card-excerpt { font-size: .84rem; color: #34383C; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-top: .9rem; }
.card__date { font-size: .84rem; font-weight: 600; letter-spacing: .04em; color: var(--muted-on-light); }

.empty { font-size: .95rem; padding: 1.4rem 1.6rem; border: 1.5px dashed var(--line-light); }
.empty--dark { border-color: var(--line-dark); color: var(--ink-on-dark); }

/* Блок 4: журнал владельца */
.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.log__row {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 2.6fr) minmax(0, .9fr); gap: 1.6rem; align-items: center;
    padding: 1.3rem 0; border-bottom: 1px solid var(--line-dark);
    background: linear-gradient(transparent calc(100% - 1px), rgba(74, 127, 165, .25) 0) 0 0 / 100% 2.2rem;
}
.log__when { margin: 0; display: flex; gap: .5em; flex-wrap: wrap; font-size: 1rem; font-weight: 600; letter-spacing: .03em; padding-right: 1.2rem; border-right: 1px solid var(--line-dark); min-height: 100%; align-items: center; }
.log__when span + span::before { content: "/ "; color: var(--orange); }
.log__body p { margin: 0; color: #C9C6BC; font-size: .86rem; }
.log__title { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .35rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.seal {
    display: inline-block; font-family: var(--head); font-size: .95rem; letter-spacing: .1em; color: var(--orange);
    border: 2px solid var(--orange); padding: .12em .55em; transform: rotate(-5deg); outline: 1px solid var(--orange); outline-offset: 2px;
}
.log__scale {
    justify-self: end; width: 100%; max-width: 170px; height: 22px; position: relative;
    background:
        repeating-linear-gradient(90deg, var(--orange) 0 1.5px, transparent 1.5px 9px) left bottom / 100% 9px no-repeat,
        repeating-linear-gradient(90deg, var(--orange) 0 1.5px, transparent 1.5px 45px) left bottom / 100% 18px no-repeat;
    opacity: .85;
}
.log__scale i { position: absolute; left: 72%; top: -8px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--orange); }

/* Блок 5: прежде чем выбрать */
.before { overflow: hidden; }
.before::before {
    content: ""; position: absolute; top: -10%; bottom: -10%; left: calc(50% - 70px); width: 92px; pointer-events: none;
    background: linear-gradient(90deg, var(--orange) 0 22%, transparent 22% 40%, var(--orange) 40% 100%);
    transform: skewX(-14deg);
}
.before .shell { position: relative; z-index: 1; }
.before__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 2rem 26%; align-items: center; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: .3rem 0 .55rem 2.2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .5rem; width: 1.15rem; height: 1.15rem; border: 2px solid var(--ink-on-light); background: var(--paper-hi); }
.checklist b { display: block; font-family: var(--head); font-weight: 500; font-size: 1.2rem; letter-spacing: .03em; }
.checklist span { display: block; font-size: .8rem; color: var(--muted-on-light); }
.before__cta { background: rgba(240, 237, 228, .9); border: 1.5px solid var(--ink-on-light); padding: 1.8rem 1.8rem 2rem; }
.before__cta p { font-family: var(--head); font-size: 1.3rem; line-height: 1.35; letter-spacing: .02em; }

/* ---------- Внутренние страницы ---------- */
.inner { padding: 1.8rem 0 4rem; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 1.8rem; letter-spacing: .02em; }
.crumbs a { color: var(--ink-on-dark); }
.crumbs a:hover { color: var(--orange); }
.crumbs__sep { color: var(--orange); margin: 0 .2em; }
.crumbs span:last-child { color: var(--muted); }

.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); gap: 6%; align-items: start; }
.layout-single { display: block; }
.content-area { min-width: 0; }
.layout-single .sheet, .layout-single .comments, .layout-single .post-navigation { max-width: 920px; }

.page-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem 1rem; align-items: center; margin-bottom: 2rem; }
.page-head__title { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); text-transform: uppercase; letter-spacing: .05em; }
.page-head__lead { grid-column: 1 / -1; color: #C9C6BC; font-size: .9rem; margin: .6rem 0 0; max-width: 70ch; }
.search-inline { margin-bottom: 2rem; max-width: 560px; }

.sheet { background: var(--paper-hi); background-image: var(--grid-light); color: var(--ink-on-light); border: 1.5px solid var(--ink-on-light); padding: 2.4rem 2.6rem; margin-bottom: 2.4rem; }
.sheet::after { --c: var(--line-dark); }
.sheet__head { border-bottom: 2px solid var(--ink-on-light); padding-bottom: 1.1rem; margin-bottom: 1.6rem; }
.sheet__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .7rem; }
.sheet__meta { margin: 0; display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted-on-light); }
.sheet__meta time { background: var(--ink-on-light); color: var(--paper); padding: .05em .55em; font-weight: 600; }
.sheet__cats a { margin-right: .7em; }
.sheet__cats a::before { content: ""; display: inline-block; width: .5em; height: .5em; background: var(--orange); margin-right: .4em; }
.sheet__cover { margin: 0 0 1.6rem; border: 1px solid var(--line-light); }
.sheet__cover img { width: 100%; height: auto; }
.sheet__tags { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8rem; }
.sheet__tags a { border: 1px solid var(--line-light); padding: .2em .6em; text-decoration: none; }
.sheet__tags a:hover { border-color: var(--orange-deep); color: var(--orange-deep); }

.entry { font-size: .95rem; }
.entry h2 { font-size: 1.7rem; text-transform: uppercase; letter-spacing: .04em; margin-top: 2rem; padding-left: .8rem; border-left: 6px solid var(--orange); }
.entry h3 { font-size: 1.35rem; margin-top: 1.6rem; }
.entry h4 { font-size: 1.12rem; margin-top: 1.3rem; }
.entry ul, .entry ol { padding-left: 1.6rem; margin: 0 0 1.2em; }
.entry ul { list-style: none; padding-left: 1.4rem; }
.entry ul li { position: relative; }
.entry ul li::before { content: ""; position: absolute; left: -1.2rem; top: .62em; width: .45em; height: .45em; background: var(--orange); }
.entry ol li::marker { font-weight: 600; color: var(--orange-deep); }
.entry li { margin-bottom: .35em; }
.entry a { color: #1D4F75; }
.entry a:hover { color: var(--orange-deep); }
.entry blockquote { margin: 1.6em 0; padding: 1.1rem 1.4rem; background: var(--asphalt); color: var(--ink-on-dark); border-left: 6px solid var(--orange); font-size: 1rem; }
.entry blockquote p:last-child { margin-bottom: 0; }
.entry table { margin: 1.4em 0; border: 1.5px solid var(--ink-on-light); font-size: .88rem; background: var(--paper-hi); }
.entry th { background: var(--paper); font-family: var(--head); font-weight: 500; letter-spacing: .04em; }
.entry th, .entry td { border: 1px solid var(--line-light); }
.entry img { margin: 1.2em 0; border: 1px solid var(--line-light); }
.entry figure { margin: 1.4em 0; }
.entry figcaption, .wp-caption-text { font-size: .78rem; color: var(--muted-on-light); margin-top: .4rem; }
.entry pre, .entry code { background: var(--graphite); color: var(--ink-on-dark); font-family: var(--mono); }
.entry code { padding: .1em .35em; font-size: .88em; }
.entry pre { padding: 1rem 1.2rem; overflow-x: auto; }
.entry pre code { padding: 0; background: none; }
.entry hr { border: 0; height: 12px; margin: 2rem 0; background: repeating-linear-gradient(90deg, var(--line-light) 0 1px, transparent 1px 10px) left bottom / 100% 6px no-repeat, linear-gradient(var(--line-light), var(--line-light)) left bottom / 100% 1px no-repeat; }
.entry__pages { margin-top: 1.5rem; font-weight: 600; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }

.post-navigation { margin-bottom: 2.4rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.post-navigation a { display: block; height: 100%; padding: 1rem 1.2rem; border: 1px solid var(--line-dark); text-decoration: none; background: var(--asphalt); }
.post-navigation a:hover { border-color: var(--orange); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.postnav__label { display: block; font-size: .74rem; color: var(--orange); text-transform: uppercase; letter-spacing: .08em; }
.postnav__title { display: block; font-family: var(--head); font-size: 1.1rem; margin-top: .3rem; }

/* ---------- Пагинация (type => plain) ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.6rem; align-items: center; }
.pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem;
    border: 1.5px solid var(--line-dark); color: var(--ink-on-dark); text-decoration: none; font-weight: 600; font-size: .88rem; background: var(--asphalt);
}
.pager a.page-numbers:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.pager .page-numbers.current { background: var(--orange); border-color: var(--orange); color: #111; }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .3rem; }

/* ---------- Сайдбар ---------- */
.sidebar { background: var(--aside); border: 1px solid var(--line-dark); border-top: 4px solid var(--orange); padding: 1.6rem 1.5rem; color: var(--ink-on-dark); min-width: 0; }
.sidebar .widget { margin-bottom: 2rem; color: #D7D4CA; font-size: .86rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title { color: var(--ink-on-dark); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: .6rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line-dark); }
.sidebar .widget-title::before { content: ""; width: .7rem; height: .7rem; background: var(--orange); flex: 0 0 auto; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed var(--line-dark); }
.sidebar a { color: var(--ink-on-dark); text-decoration: none; }
.sidebar a:hover { color: var(--orange); }
.sidebar .post-date, .sidebar .rss-date { display: block; color: var(--muted); font-size: .76rem; }
.sidebar .seek { margin: 0; }

/* ---------- Поиск ---------- */
.seek { display: flex; gap: 0; width: 100%; }
.seek__field { flex: 1; min-width: 0; padding: .7em .9em; border: 1.5px solid var(--line-dark); border-right: 0; background: var(--graphite); color: var(--ink-on-dark); border-radius: 0; }
.seek__field::placeholder { color: var(--muted); }
.seek__field:focus { outline: none; border-color: var(--orange); }
.seek__go { flex: 0 0 auto; }

/* ---------- 404 ---------- */
.lost { background: var(--asphalt); border: 1.5px solid var(--line-dark); padding: 3rem 2.6rem; max-width: 760px; }
.lost__code { font-family: var(--head); font-size: clamp(4rem, 12vw, 7.5rem); line-height: 1; color: var(--orange); margin: 0 0 .5rem; letter-spacing: .04em; }
.lost__title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); text-transform: uppercase; letter-spacing: .05em; }
.lost__text { color: #C9C6BC; max-width: 60ch; }
.lost__search { margin: 1.6rem 0; max-width: 520px; }

/* ---------- Комментарии ---------- */
.comments { background: var(--asphalt); border: 1px solid var(--line-dark); padding: 2rem 2.2rem; color: var(--ink-on-dark); }
.comments__title, .comment-reply-title { font-size: 1.4rem; text-transform: uppercase; letter-spacing: .05em; }
.comment-reply-title small { margin-left: .8rem; font-family: var(--mono); font-size: .75rem; text-transform: none; }
.comments__list, .comments__list .children { list-style: none; margin: 0; padding: 0; }
.comments__list .children { padding-left: 1.6rem; border-left: 2px solid var(--line-dark); margin-left: .6rem; }
.note__body { padding: 1rem 0; border-bottom: 1px dashed var(--line-dark); }
.note__head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .5rem; }
.note__head img { border: 1px solid var(--line-dark); }
.note__author { font-family: var(--head); font-size: 1.05rem; letter-spacing: .03em; }
.note__date { font-size: .76rem; color: var(--muted); }
.note__wait { color: var(--orange); font-size: .82rem; }
.note__text { font-size: .9rem; }
.note__reply a { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); }
.comments__closed { color: var(--muted); }
.comment-respond { margin-top: 1.6rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .8rem; margin-bottom: .3rem; color: #C9C6BC; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: .7em .9em; background: var(--graphite); color: var(--ink-on-dark); border: 1.5px solid var(--line-dark); border-radius: 0;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--orange); }
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; }
.comment-notes, .logged-in-as, .must-log-in { font-size: .8rem; color: var(--muted); }
.comment-notes .req, .comment-form .req { color: var(--orange); }
.form-submit .submit { background: var(--orange); color: #111; border: 2px solid var(--orange); padding: .75em 1.6em; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; border-radius: 0; }
.form-submit .submit:hover { background: var(--orange-deep); border-color: var(--orange-deep); }

/* ---------- Подвал ---------- */
.basement { background: var(--graphite); border-top: 1px solid var(--line-dark); position: relative; padding: 3.2rem 0 1.6rem; color: #D7D4CA; }
.basement::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(90deg, #5A6168 0 1px, transparent 1px 12px); opacity: .7; }
.basement__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.basement__col { min-width: 0; }
.basement .widget { font-size: .84rem; color: #D7D4CA; }
.basement .widget-title { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-on-dark); }
.basement .widget a { color: var(--ink-on-dark); }
.basement .widget a:hover { color: var(--orange); }
.basement ul { list-style: none; margin: 0; padding: 0; }
.basement li { padding: .15rem 0; }
.basement li a { text-decoration: none; position: relative; display: inline-block; transition: transform .15s ease, color .15s ease; }
.basement li a::before { content: ""; position: absolute; left: -.9em; top: 50%; width: .45em; height: .45em; background: var(--orange); transform: translateY(-50%) scale(0); transition: transform .15s ease; }
.basement li a:hover { transform: translateX(.9em); }
.basement li a:hover::before { transform: translateY(-50%) scale(1); }
.basement .post-date { display: block; color: var(--muted); font-size: .76rem; }
.basement__copy { margin: 2.6rem 0 0; padding-top: 1.3rem; border-top: 1px solid var(--blue); text-align: center; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 980px; margin-inline: auto;
    display: flex; align-items: center; gap: 1.2rem 1.6rem; flex-wrap: wrap;
    background: var(--asphalt); color: var(--ink-on-dark); border: 1px solid var(--line-dark); border-top: 4px solid var(--orange);
    padding: 1.1rem 1.4rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.cookie-banner__text { margin: 0; flex: 1 1 320px; font-size: .84rem; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .fs { padding: 3.2rem 0; }
    .figures__grid { grid-template-columns: minmax(0, 1fr); }
    .figures__side { grid-template-columns: minmax(0, 1fr); }
    .gauge { width: 100%; height: 34px; background:
        linear-gradient(var(--orange), var(--orange)) left top / 100% 2px no-repeat,
        repeating-linear-gradient(90deg, var(--orange) 0 2px, transparent 2px 13px) left top / 100% 12px no-repeat,
        repeating-linear-gradient(90deg, var(--orange) 0 2px, transparent 2px 52px) left top / 100% 22px no-repeat; }
    .gauge__mark { right: auto; left: 56%; top: auto; bottom: -4px; border: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 14px solid var(--orange); }
    .trims__top { grid-template-columns: minmax(0, 1fr); }
    .trims__intro { text-align: left; }
    .cards--three, .no-aside .cards--feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .log__row { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); }
    .log__scale { display: none; }
    .before::before { left: auto; right: 18px; width: 46px; top: -10%; bottom: auto; height: 120%; opacity: .9; }
    .before__grid { padding-right: 48px; }
    .before__grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; }
    .basement__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    body { font-size: 14px; }
    .fs { padding: 2.6rem 0 3rem; }
    .sec-head { gap: .7rem; margin-bottom: 1.6rem; }
    .stamp { min-width: 2.5rem; height: 2.2rem; font-size: 1.2rem; }
    .callout { display: none; }
    .blueprint__legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .8rem; padding: .8rem 1rem 1rem; font-size: .78rem; border-top: 1px solid var(--blue); }
    .blueprint__legend b { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
    .trims__table { padding: .8rem; }
    .cards--three, .cards--feed, .no-aside .cards--feed { grid-template-columns: minmax(0, 1fr); }
    .card { padding: .9rem .9rem 1rem 1.5rem; }
    .log__row { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
    .log__when { border-right: 0; padding-right: 0; font-size: .9rem; }
    .before__cta { padding: 1.4rem 1.3rem 1.6rem; }
    .before__cta p { font-size: 1.15rem; }
    .sheet { padding: 1.6rem 1.3rem; }
    .comments { padding: 1.5rem 1.2rem; }
    .lost { padding: 2rem 1.3rem; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
    .post-navigation .nav-next { grid-column: auto; }
    .basement__cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .cookie-banner { left: .6rem; right: .6rem; bottom: .6rem; padding: 1rem 1.1rem; }
    .cookie-banner .btn { width: 100%; }
    .seek { flex-wrap: wrap; }
    .seek__field { border-right: 1.5px solid var(--line-dark); flex-basis: 100%; }
    .seek__go { width: 100%; }
    .page-head__lead { font-size: .84rem; }
}
