/*
Theme Name: dds_detroit-redwings.ru
Theme URI: https://detroit-redwings.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: vlgatl
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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: "Plex Mono"; src: url("fonts/ibm-plex-mono-cyrillic-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; 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: "Plex Mono"; src: url("fonts/ibm-plex-mono-cyrillic-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; 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: "Atlas Sans"; src: url("fonts/pt-sans-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Atlas Sans"; src: url("fonts/pt-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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: "Atlas Sans"; src: url("fonts/pt-sans-cyrillic-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Atlas Sans"; src: url("fonts/pt-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; 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: "Atlas Sans"; src: url("fonts/pt-sans-cyrillic-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Atlas Sans"; src: url("fonts/pt-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; 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 {
    --film: #0B1B2B;
    --film-line: #1E3A55;
    --film-deep: #081624;
    --paper: #EDE8DE;
    --paper-card: #F4F0E7;
    --paper-back: #E2DCCF;
    --paper-side: #E4DED1;
    --graphite: #1F2A33;
    --milk: #E8EEF2;
    --mist: #7E93A3;
    --mist-light: #A9BAC7;
    --mint: #4FD1B5;
    --mint-dark: #1F8C76;
    --rust: #D96C3F;
    --rust-dark: #B5532B;
    --f-head: "Plex Mono", "IBM Plex Mono", "Consolas", "Courier New", monospace;
    --f-text: "Atlas Sans", "PT Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Скрытые элементы (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }
[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;
    font-family: var(--f-text);
    font-size: 17px;
    line-height: 1.6;
    color: var(--graphite);
    background-color: var(--film);
}
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 .6em;
    overflow-wrap: break-word;
    hyphens: auto;
}
p, li, dd, dt, td, th, figcaption, blockquote { overflow-wrap: break-word; hyphens: auto; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust-dark); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
button { font: inherit; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-link {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--mint);
    color: var(--film);
    font-family: var(--f-head);
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Фоны ---------- */
.plate-dark,
.masthead {
    color: var(--milk);
    background-color: var(--film);
    background-image:
        linear-gradient(rgba(30, 58, 85, .55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 85, .55) 1px, transparent 1px),
        radial-gradient(ellipse at 70% 0%, rgba(79, 209, 181, .07), transparent 60%);
    background-size: 44px 44px, 44px 44px, 100% 100%;
    background-position: center top;
}
.plate-paper,
.paper-zone {
    color: var(--graphite);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(31, 42, 51, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 42, 51, .09) 1px, transparent 1px),
        linear-gradient(rgba(31, 42, 51, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 42, 51, .04) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: .62rem 1.3rem;
    border: 1px solid var(--graphite);
    font-family: var(--f-head);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.3;
    border-radius: 0;
    transition: background-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn-line { color: var(--graphite); background: transparent; }
.btn-line:hover { background: var(--mint); color: var(--film); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--graphite); }
.btn-fill { background: var(--mint); color: var(--film); border-color: var(--film); }
.btn-fill:hover { background: var(--film); color: var(--mint); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--mint); }

/* ---------- Шапка ---------- */
.masthead { border-bottom: 1px solid rgba(30, 58, 85, .7); }
.masthead-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem 2rem;
    padding: 2rem 0 1.8rem;
}
.brand {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    min-width: 0;
    flex: 1 1 420px;
    max-width: 640px;
    color: var(--milk);
    text-decoration: none;
}
.brand:hover { color: var(--milk); }
.brand-mark { flex: 0 0 auto; color: var(--milk); line-height: 0; }
.brand-svg { display: block; }
.brand-logo { display: block; max-width: 72px; max-height: 96px; width: auto; height: auto; }
.brand-text { min-width: 0; display: flex; flex-direction: column; gap: .45rem; }
.brand-name {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: clamp(1.15rem, 2.1vw, 1.6rem);
    line-height: 1.25;
    letter-spacing: .02em;
}
.brand-desc { font-size: .86rem; line-height: 1.45; color: var(--mist-light); }

.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .55rem .9rem;
    background: transparent;
    color: var(--milk);
    border: 1px solid var(--mint);
    border-radius: 0;
    cursor: pointer;
    font-family: var(--f-head);
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 18px; height: 2px;
    background: var(--mint);
    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; }

.topnav-list {
    list-style: none;
    margin: .35rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.7rem;
}
.topnav-list a {
    display: inline-block;
    padding: .2rem 0;
    font-family: var(--f-head);
    font-size: .82rem;
    letter-spacing: .04em;
    color: var(--milk);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.topnav-list a:hover,
.topnav-list .current-menu-item > a,
.topnav-list .current_page_item > a { color: var(--mint); border-bottom-color: var(--mint); }

/* ---------- Заголовки секций в духе атласа ---------- */
.fig-tag {
    margin: 0 0 .35rem;
    font-family: var(--f-head);
    font-size: .74rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--rust);
}
.sec-title {
    display: flex;
    align-items: flex-end;
    gap: 1.1rem;
    margin: 0 0 1.8rem;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    font-weight: 500;
    letter-spacing: .04em;
}
.sec-title span { min-width: 0; }
.sec-title::after {
    content: "";
    flex: 1 1 60px;
    min-width: 40px;
    height: 1px;
    margin-bottom: .42em;
    background: currentColor;
    opacity: .85;
}
.plate { padding: 3.6rem 0; }

/* ---------- Блок 1: анатомия отклонения ---------- */
.axis-sec { padding-top: 2.6rem; padding-bottom: 3rem; overflow: hidden; }
.axis-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}
.axis-text { min-width: 0; }
.axis-lead { color: #C9D5DE; max-width: 34rem; }
.axis-spec {
    margin: 1.6rem 0 0;
    border: 1px solid var(--film-line);
    background: rgba(8, 22, 36, .72);
}
.axis-spec-row {
    display: grid;
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    gap: 1rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--film-line);
}
.axis-spec-row:last-child { border-bottom: 0; }
.axis-spec dt {
    font-family: var(--f-head);
    font-size: .8rem;
    letter-spacing: .03em;
    color: var(--mint);
}
.axis-spec dd { margin: 0; font-size: .9rem; color: var(--mist-light); }
.axis-figure { margin: 0; min-width: 0; }
.axis-canvas {
    position: relative;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    container-type: inline-size;
}
.axis-canvas img {
    display: block;
    width: 100%;
    height: auto;
}
.axis-mark, .axis-label {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: var(--f-head);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}
.axis-mark { font-size: 6cqw; }
.axis-mark.mark-sm { font-size: 5cqw; padding: .12em .3em; background: rgba(67, 96, 120, .82); }
.axis-label { font-size: 4.4cqw; letter-spacing: .02em; }
.mark-mint { color: var(--mint); }
.mark-rust { color: var(--rust); }
.axis-figure figcaption {
    margin-top: .6rem;
    font-size: .8rem;
    color: var(--mist);
    text-align: center;
}

/* ---------- Блок 2: степени тяжести ---------- */
.grade-table {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--graphite);
    background: var(--paper-card);
}
.grade-row {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr) 92px;
    gap: .2rem .8rem;
    align-items: center;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid var(--graphite);
    cursor: pointer;
    transition: background-color .15s;
}
.grade-row:last-child { border-bottom: 0; }
.grade-row:hover { background: #E6F3EE; }
.grade-row.is-marked { background: var(--mint); }
.grade-num {
    font-family: var(--f-head);
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 500;
    color: var(--rust);
    line-height: 1;
}
.grade-row.is-marked .grade-num { color: var(--rust-dark); }
.grade-info { min-width: 0; }
.grade-name { margin: 0 0 .2rem; font-size: 1.12rem; letter-spacing: .03em; }
.grade-note { margin: 0; font-size: .9rem; line-height: 1.45; }
.grade-xray {
    display: block;
    width: 92px;
    height: 52px;
    object-fit: cover;
    border: 2px solid var(--graphite);
    background: #0B1620;
}
.grade-foot { margin: .9rem 0 0; font-size: .85rem; color: #55626C; }

/* ---------- Карточки записей ---------- */
.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem 1.8rem;
}
.latest-grid .card:nth-child(n+4) { display: none; }
.card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0 7px 7px 0;
    transition: transform .18s;
}
.card::before,
.card::after {
    content: "";
    position: absolute;
    border: 1px solid var(--graphite);
}
.card::before {
    top: 7px; left: 7px; right: -7px; bottom: -7px;
    z-index: -2;
    background: var(--paper-back);
    border-color: rgba(31, 42, 51, .45);
}
.card::after {
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background: var(--paper-card);
}
.card:hover { transform: translate(-2px, -2px); }
.card-stamp {
    position: absolute;
    top: -12px;
    right: 1rem;
    z-index: 1;
    padding: .2rem .55rem;
    background: var(--paper-card);
    border: 1px solid var(--graphite);
    font-family: var(--f-head);
    font-size: .78rem;
    letter-spacing: .04em;
    transform: rotate(4deg);
    box-shadow: 2px 2px 0 rgba(31, 42, 51, .25);
}
.card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 1rem;
    align-items: start;
    padding: 1.8rem 1.25rem 0;
}
.card-title { margin: 0; font-size: 1.12rem; letter-spacing: .02em; line-height: 1.28; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--rust-dark); text-decoration: underline; }
.card-thumb {
    display: block;
    padding: 3px;
    background: var(--paper-card);
    border: 2px solid var(--graphite);
    line-height: 0;
}
.card-thumb img {
    display: block;
    width: 76px;
    height: 76px;
    object-fit: cover;
    background: #0B1620;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: .8rem 1.25rem 1.35rem;
}
.card-rubric {
    margin: 0 0 .35rem;
    font-family: var(--f-head);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mint-dark);
}
.card-excerpt { font-size: .93rem; line-height: 1.5; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.latest-more { margin: 2.6rem 0 0; text-align: center; }
.empty-note { font-family: var(--f-head); font-size: .95rem; color: #55626C; }

/* ---------- Блок 3: разбор операции ---------- */
.surgery-sec { padding-top: 2.4rem; }
.surgery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}
.surgery-steps {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.6rem;
}
.surgery-steps::before {
    content: "";
    position: absolute;
    left: 0; top: .4rem; bottom: 10px;
    width: 2px;
    background: var(--mint);
}
.surgery-steps::after {
    content: "";
    position: absolute;
    left: -5px; bottom: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid var(--mint);
}
.surgery-step {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: .8rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--graphite);
}
.surgery-step:first-child { border-top: 1px solid var(--graphite); }
.surgery-num {
    font-family: var(--f-head);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
    color: var(--rust);
}
.surgery-step h3 { margin: 0 0 .3rem; font-size: 1.02rem; letter-spacing: .02em; }
.surgery-step p { margin: 0; font-size: .9rem; line-height: 1.5; }
.surgery-figure { margin: 0; min-width: 0; }
.surgery-canvas {
    position: relative;
    container-type: inline-size;
    border-top: 1px solid rgba(31, 42, 51, .4);
    border-bottom: 1px solid var(--mint);
    padding-bottom: .4rem;
}
.surgery-canvas img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.pin {
    position: absolute;
    transform: translate(-50%, -50%);
    margin-top: -.2cqw;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.5cqw;
    line-height: 1;
}
.pin-m { color: var(--mint-dark); }
.pin-r { color: var(--rust-dark); }
.surgery-figure figcaption {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.4rem;
    margin: .9rem 0 .6rem;
    font-family: var(--f-head);
    font-size: .76rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.legend-key { display: inline-flex; align-items: center; gap: .45rem; }
.legend-key i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid; }
.key-rust { border-color: var(--rust); }
.key-mint { border-color: var(--mint-dark); }
.surgery-legend {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: lg;
    columns: 1;
    column-gap: 1.6rem;
    font-size: .84rem;
    line-height: 1.4;
}
.surgery-legend li {
    counter-increment: lg;
    break-inside: avoid;
    padding: .18rem 0;
    border-bottom: 1px dashed rgba(31, 42, 51, .25);
}
.surgery-legend li::before {
    content: counter(lg, decimal-leading-zero);
    display: inline-block;
    min-width: 2rem;
    font-family: var(--f-head);
    font-size: .76rem;
    color: var(--rust);
}

/* ---------- Блок 4: вопросы ортопеду ---------- */
.ask-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem 2.2rem;
    border-top: 1px solid var(--film-line);
    padding-top: 1.6rem;
}
.ask-item { min-width: 0; }
.ask-num {
    margin: 0 0 .3rem;
    font-family: var(--f-head);
    font-size: .85rem;
    letter-spacing: .08em;
    color: var(--rust);
}
.ask-q {
    margin: 0 0 1rem;
    font-size: clamp(1.45rem, 2.6vw, 1.95rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--milk);
}
.ask-a { font-size: .9rem; line-height: 1.5; color: #BCCAD5; }
.ask-field {
    margin: 0;
    padding: .55rem 0 .35rem;
    border-top: 1px dashed rgba(126, 147, 163, .55);
    border-bottom: 1px dashed rgba(126, 147, 163, .55);
    font-size: .85rem;
    color: var(--milk);
}
.ask-field span {
    display: block;
    font-family: var(--f-head);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mint);
}

/* ---------- Внутренние страницы ---------- */
.paper-zone { padding: 1.6rem 0 4rem; }
.crumbs {
    margin: 0 0 1.6rem;
    font-family: var(--f-head);
    font-size: .8rem;
    color: #55626C;
}
.crumbs a { color: var(--graphite); }
.crumbs a:hover { color: var(--rust-dark); }
.crumbs-sep { margin: 0 .25rem; color: var(--rust); }
.layout-single { display: block; }
.layout-with-sidebar { display: block; }
.content-area { min-width: 0; }
.page-head .sec-title { margin-bottom: 2rem; }
.archive-desc { margin: -1rem 0 2rem; color: #55626C; }
.list-grid { margin-bottom: 2.4rem; }

.sheet {
    background: var(--paper-card);
    border: 1px solid var(--graphite);
    padding: 1.6rem 1.3rem;
    box-shadow: 7px 7px 0 -1px var(--paper-back), 7px 7px 0 0 rgba(31, 42, 51, .45);
}
.entry-head { margin-bottom: 1.4rem; border-bottom: 1px solid var(--graphite); padding-bottom: 1rem; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    margin: 0 0 .6rem;
    font-family: var(--f-head);
    font-size: .78rem;
    color: #55626C;
}
.entry-rubric { color: var(--mint-dark); text-transform: uppercase; letter-spacing: .12em; }
.entry-title { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: .02em; }
.entry-cover { margin: 0 0 1.6rem; border: 2px solid var(--graphite); padding: 4px; background: #fff; }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 1.04rem; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 1.5rem; margin-top: 2rem; padding-bottom: .3rem; border-bottom: 1px solid rgba(31, 42, 51, .35); }
.entry-content h3 { font-size: 1.22rem; margin-top: 1.6rem; }
.entry-content h4 { font-size: 1.05rem; margin-top: 1.3rem; }
.entry-content a { color: var(--graphite); text-decoration-color: var(--mint-dark); }
.entry-content a:hover { color: var(--rust-dark); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--rust); }
.entry-content ol li::marker { color: var(--rust); font-family: var(--f-head); }
.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.1rem 1.4rem;
    background: #E8E2D5;
    border-left: 4px solid var(--mint);
    font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { display: block; height: auto; border: 1px solid var(--graphite); }
.entry-content figure { margin: 1.6rem 0; }
.entry-content figcaption { font-size: .82rem; color: #55626C; margin-top: .4rem; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .92rem; border: 1px solid var(--graphite); }
.entry-content th, .entry-content td { border: 1px solid var(--graphite); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--film); color: var(--milk); font-family: var(--f-head); font-weight: 500; font-size: .84rem; }
.entry-content tr:nth-child(even) td { background: #EEE9DF; }
.entry-content pre { overflow-x: auto; padding: 1rem; background: var(--film); color: var(--milk); font-size: .88rem; }
.entry-content code { font-family: var(--f-head); font-size: .9em; }
.entry-tags { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a {
    padding: .2rem .6rem;
    border: 1px solid var(--graphite);
    font-family: var(--f-head);
    font-size: .78rem;
    text-decoration: none;
}
.entry-tags a:hover { background: var(--mint); color: var(--film); }
.entry-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin: 2.2rem 0 0;
}
.entry-nav a {
    display: block;
    padding: .9rem 1.1rem;
    border: 1px solid var(--graphite);
    background: var(--paper-card);
    text-decoration: none;
    font-family: var(--f-head);
    font-size: .92rem;
}
.entry-nav a span { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); margin-bottom: .2rem; }
.entry-nav a:hover { background: var(--mint); color: var(--film); }
.entry-nav-next { text-align: right; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    margin-top: 2.6rem;
    padding: 1.4rem 1.3rem;
    background: var(--paper-side);
    border: 1px solid var(--graphite);
    color: var(--graphite);
}
.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    display: flex;
    align-items: flex-end;
    gap: .7rem;
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--graphite);
}
.sidebar .widget-title::after { content: ""; flex: 1; height: 1px; margin-bottom: .35em; background: var(--graphite); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .5rem 0; border-bottom: 1px dashed rgba(31, 42, 51, .3); font-size: .93rem; line-height: 1.4; }
.sidebar a { color: var(--graphite); text-decoration: none; }
.sidebar a:hover { color: var(--rust-dark); text-decoration: underline; }
.sidebar .post-date { display: block; font-size: .78rem; color: #55626C; }
.sidebar p { color: var(--graphite); font-size: .93rem; }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin: 1rem 0 0;
}
.pager .page-numbers,
.pager > a,
.pager > span {
    display: inline-block;
    min-width: 2.6rem;
    padding: .5rem .8rem;
    border: 1px solid var(--graphite);
    background: var(--paper-card);
    font-family: var(--f-head);
    font-size: .85rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    color: var(--graphite);
}
.pager a.page-numbers:hover { background: var(--mint); color: var(--film); }
.pager .page-numbers.current { background: var(--film); color: var(--mint); border-color: var(--film); }
.pager .page-numbers.dots { border-color: transparent; background: transparent; min-width: 0; }

/* ---------- Поиск ---------- */
.seek { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.seek-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .65rem .8rem;
    border: 1px solid var(--graphite);
    border-radius: 0;
    background: #fff;
    color: var(--graphite);
    font-family: var(--f-text);
    font-size: 1rem;
}
.seek-btn {
    padding: .65rem 1.3rem;
    border: 1px solid var(--film);
    border-radius: 0;
    background: var(--mint);
    color: var(--film);
    font-family: var(--f-head);
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
}
.seek-btn:hover { background: var(--film); color: var(--mint); }
.empty-box { padding: 1.4rem 1.3rem; border: 1px dashed var(--graphite); background: var(--paper-card); }

/* ---------- 404 ---------- */
.lost { max-width: 760px; margin: 0 auto; text-align: left; }
.lost-code {
    margin: 0;
    font-family: var(--f-head);
    font-size: clamp(4rem, 14vw, 7.5rem);
    line-height: 1;
    color: var(--rust);
    letter-spacing: .06em;
}

/* ---------- Комментарии ---------- */
.talk { margin-top: 2.4rem; }
.talk-title, .comment-reply-title { font-size: 1.3rem; letter-spacing: .03em; }
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { padding-left: 1.4rem; border-left: 2px solid var(--mint); }
.note-body { padding: 1rem 0; border-bottom: 1px dashed rgba(31, 42, 51, .3); }
.note-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-family: var(--f-head); font-size: .82rem; margin-bottom: .4rem; }
.note-author { font-weight: 600; }
.note-meta time { color: #55626C; }
.note-wait { font-size: .85rem; color: var(--rust-dark); }
.note-reply a { font-family: var(--f-head); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mint-dark); }
.comment-respond { margin-top: 1.6rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-family: var(--f-head); font-size: .8rem; }
.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(--graphite);
    border-radius: 0;
    background: #fff;
    color: var(--graphite);
    font-family: var(--f-text);
    font-size: 1rem;
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-family: var(--f-text); font-size: .85rem; }
.comment-form .submit {
    padding: .7rem 1.4rem;
    border: 1px solid var(--film);
    border-radius: 0;
    background: var(--mint);
    color: var(--film);
    font-family: var(--f-head);
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--film); color: var(--mint); }
.form-note { font-size: .85rem; color: #55626C; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; font-family: var(--f-head); font-size: .82rem; }

/* ---------- Подвал ---------- */
.colophon {
    background-color: var(--film);
    background-image:
        linear-gradient(rgba(30, 58, 85, .3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 85, .3) 1px, transparent 1px);
    background-size: 44px 44px;
    color: var(--milk);
    border-top: 1px solid var(--film-line);
    padding: 3rem 0 1.4rem;
}
.colophon-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1.4rem; color: var(--milk); }
.colophon .widget-title {
    margin-bottom: .8rem;
    font-size: 1.05rem;
    letter-spacing: .04em;
    color: var(--milk);
}
.colophon p, .colophon .textwidget { font-size: .9rem; line-height: 1.55; color: #C3D0DA; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: .45rem; }
.colophon a { color: var(--milk); text-decoration-color: var(--mint); font-size: .9rem; }
.colophon a:hover { color: var(--mint); }
.colophon-copy {
    margin: 1.6rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--film-line);
    font-size: .82rem;
    color: var(--mist-light) !important;
    text-align: center;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem 1.4rem;
    max-width: 760px;
    margin-inline: auto;
    padding: 1rem 1.3rem;
    background: var(--film);
    border: 1px solid var(--mint);
    box-shadow: 6px 6px 0 rgba(79, 209, 181, .25);
    color: var(--milk);
}
.cookie-text { flex: 1 1 280px; min-width: 0; margin: 0; font-size: .88rem; line-height: 1.45; }
.cookie-accept {
    padding: .55rem 1.3rem;
    border: 1px solid var(--mint);
    border-radius: 0;
    background: var(--mint);
    color: var(--film);
    font-family: var(--f-head);
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
}
.cookie-accept:hover { background: transparent; color: var(--mint); }

/* ---------- Адаптив ---------- */
@media (max-width: 959px) {
    .nav-toggle { display: inline-flex; }
    .topnav { display: none; flex-basis: 100%; }
    .topnav.is-open { display: block; }
    .topnav-list { flex-direction: column; gap: 0; margin: 0; border-top: 1px solid var(--film-line); }
    .topnav-list li { border-bottom: 1px solid var(--film-line); }
    .topnav-list a { display: block; padding: .7rem 0; border-bottom: 0; }
}

@media (max-width: 599px) {
    body { font-size: 16px; }
    .plate { padding: 2.6rem 0; }
    .brand-svg { width: 34px; height: 51px; }
    .brand-desc { font-size: .8rem; }
    .axis-spec-row { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
    .sheet { padding: 1.3rem 1rem; }
    .card-head { padding: 1.7rem 1rem 0; grid-template-columns: minmax(0, 1fr) 72px; }
    .card-thumb img { width: 62px; height: 62px; }
    .card-body { padding: .7rem 1rem 1.2rem; }
    .pin { font-size: 2.1cqw; }
    .cookie-banner { padding: .9rem 1rem; }
    .sidebar { padding: 1.2rem 1rem; }
}

@media (min-width: 600px) {
    .grade-row { grid-template-columns: 5rem minmax(0, 1fr) 150px; gap: 1.2rem; padding: .8rem 1.2rem; }
    .grade-xray { width: 150px; height: 82px; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .surgery-legend { columns: 2; }
    .ask-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .colophon-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .entry-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .entry-nav-next:only-child { grid-column: 2; }
    .sheet { padding: 2rem 2.2rem; }
}

@media (min-width: 960px) {
    .shell { width: min(85%, 1180px); }
    .axis-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; }
    .axis-canvas { margin-right: -2rem; }
    .latest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
    .layout-single .list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .layout-with-sidebar {
        display: grid;
        grid-template-columns: 67% 27%;
        justify-content: space-between;
        align-items: start;
    }
    .sidebar { margin-top: 0; }
    .surgery-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem; }
    .surgery-legend { columns: 3; }
    .ask-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .colophon-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}
