/*
Theme Name: dds_plrviralvideos.com
Theme URI: https://plrviralvideos.com/
Author: Овчинников Илья Романович
Description: Тема информационного сайта о готовом видеоконтенте для маркетинга: ролики с цитатами, адаптация материалов и лицензии PLR. Оформление в стиле монтажного стола видеоредактора.
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: plrvid
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-condensed-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-condensed-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-condensed-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-condensed-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-condensed-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-condensed-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-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: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
    --bg: #121417;
    --line: #2A2E33;
    --steel: #1B2430;
    --foot: #0B0C0E;
    --side: #171B20;
    --lime: #D6F24B;
    --blue: #5FB4E8;
    --red: #E8503A;
    --text: #EDEFF2;
    --muted: #8A929B;
    --ink: #0B0C0E;
    --f-head: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --f-body: "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 .6em;
    letter-spacing: -.005em;
}
p, li, td, th, dd, dt, h1, h2, h3, h4, h5, h6, blockquote, figcaption, .card-title, .widget {
    overflow-wrap: break-word;
    hyphens: auto;
}
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--lime); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 2px;
}
::selection { background: var(--lime); color: var(--ink); }

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

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .62em 1.15em;
    font-family: var(--f-head); font-weight: 700; font-size: .92rem;
    text-transform: uppercase; letter-spacing: .04em; line-height: 1.2;
    text-decoration: none; text-align: center;
    border: 1px solid var(--lime); border-radius: 0;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, background-color .12s, color .12s;
}
.btn-fill { background: var(--lime); color: var(--ink); }
.btn-fill:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--blue); }
.btn-ghost { background: transparent; color: var(--lime); }
.btn-ghost:hover { background: var(--lime); color: var(--ink); }
.btn-sm { font-size: .8rem; padding: .5em .9em; }

/* ---------- Шапка ---------- */
.masthead { background: var(--bg); }
.masthead-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 1.1rem 0 .9rem; position: relative;
}
.brand-mark { display: inline-flex; flex: 0 0 auto; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; }

.topnav-toggle {
    display: inline-flex; align-items: center; gap: .55rem;
    background: transparent; color: var(--text);
    border: 1px solid var(--line); padding: .5rem .8rem;
    font-family: var(--f-head); font-size: .95rem; text-transform: uppercase; letter-spacing: .05em;
    cursor: pointer; border-radius: 0;
}
.topnav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.topnav-toggle-bars, .topnav-toggle-bars::before, .topnav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.topnav-toggle-bars::before, .topnav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.topnav-toggle-bars::before { top: -6px; }
.topnav-toggle-bars::after { top: 6px; }

.topnav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 30; background: var(--foot); border: 1px solid var(--line); }
.topnav.is-open { display: block; }
.topnav-list { list-style: none; margin: 0; padding: 0; }
.topnav-list li { border-bottom: 1px solid var(--line); }
.topnav-list li:last-child { border-bottom: 0; }
.topnav-list a {
    display: block; padding: .8rem 1rem;
    color: var(--text); text-decoration: none;
    font-family: var(--f-head); font-size: 1.02rem;
}
.topnav-list a:hover, .topnav-list .current-menu-item > a { color: var(--lime); }

.brand-block { padding: .4rem 0 1.4rem; }
.brand-name {
    hyphens: manual;
    margin: 0 0 .55rem;
    font-family: var(--f-head); font-weight: 700;
    text-transform: uppercase; letter-spacing: .005em;
    font-size: 1.2rem; line-height: 1.1;
}
.brand-name a { color: var(--text); text-decoration: none; }
.brand-name a:hover { color: var(--lime); }
.brand-block.is-home .brand-name {
    font-size: clamp(1.65rem, 1.05rem + 2.6vw, 2.95rem);
    line-height: 1.04;
    padding-left: 1.15em;
    position: relative;
}
.brand-block.is-home .brand-name::before {
    content: ""; position: absolute; left: 0; top: .16em;
    width: .66em; height: .72em; background: var(--lime);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.brand-desc { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; max-width: 46rem; }
.brand-block.is-home .brand-desc { color: #C9CED4; padding-left: calc(1.15 * clamp(1.65rem, 1.05rem + 2.6vw, 2.95rem)); font-size: .95rem; }

.tl-strip {
    height: 16px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background-color: #0F1114;
    background-image:
        repeating-linear-gradient(90deg, transparent 0 157px, var(--lime) 157px 159px),
        repeating-linear-gradient(90deg, #3A4048 0 1px, transparent 1px 7px);
    background-size: 100% 100%, 100% 9px;
    background-position: 0 0, 0 100%;
    background-repeat: repeat-x;
}

/* ---------- Заголовки секций ---------- */
.sec-title, .page-title {
    position: relative;
    hyphens: manual;
    font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.15rem);
    margin: 0 0 1.6rem;
}
.sec-title::before, .page-title::before {
    content: ""; position: absolute;
    right: calc(100% + 12px); top: 50%;
    width: 2400px; height: 4px; margin-top: -2px;
    background: var(--lime);
}
.sec-num { color: var(--blue); margin-right: .3em; font-weight: 700; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1.6rem; }
.sec-head .sec-title { margin: 0; }

/* ---------- Главная: секции ---------- */
.fp-sec { padding: 2.6rem 0 2.8rem; border-bottom: 1px solid var(--line); overflow: hidden; }
.fp-sec.is-steel { background: var(--steel); }
.fp-inner { min-width: 0; }

/* Блок 1 — анатомия ролика */
.anat { position: relative; }
.anat-frame { position: relative; margin: 0 0 1.4rem; border: 1px solid var(--line); background: var(--ink); aspect-ratio: 16 / 9; overflow: hidden; }
.anat-frame img { width: 100%; height: 100%; object-fit: cover; }
.anat-quote {
    position: absolute; left: 10%; right: 14%; top: 27%;
    padding: .5em .9em;
    background: rgba(11, 12, 14, .62);
    text-align: center;
}
.anat-quote p {
    margin: 0; color: #fff;
    font-family: var(--f-head); font-weight: 700;
    font-size: clamp(.95rem, .55rem + 1.6vw, 1.7rem); line-height: 1.15;
    hyphens: manual; text-wrap: balance;
}
.anat-sub {
    position: absolute; left: 6%; bottom: 7%;
    max-width: 44%;
    padding: .2em .6em;
    background: rgba(11, 12, 14, .78);
    color: var(--lime);
    font-family: var(--f-head); font-size: clamp(.7rem, .5rem + .7vw, 1rem); line-height: 1.3;
}
.anat-cta {
    position: absolute; right: 5%; bottom: 7%;
    padding: .2em .6em;
    background: var(--lime); color: var(--ink);
    font-family: var(--f-head); font-weight: 700; text-transform: uppercase;
    font-size: clamp(.62rem, .45rem + .6vw, .9rem); letter-spacing: .03em;
}
.anat-dot {
    position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px;
    border-radius: 50%;
    background: var(--lime); color: var(--ink);
    font: 700 .7rem/20px var(--f-head); text-align: center;
    box-shadow: 0 0 0 3px rgba(214, 242, 75, .25);
}
.anat-dot.d1 { left: 12%; top: 14%; }
.anat-dot.d2 { left: 90%; top: 34%; }
.anat-dot.d3 { left: 54%; top: 88%; }
.anat-dot.d4 { left: 84%; top: 81%; }
.anat-lines, .anat-scale { display: none; }
.anat-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.anat-notes li { position: relative; padding-left: 2.1rem; min-width: 0; }
.anat-notes strong { display: block; hyphens: manual; font-family: var(--f-head); font-size: 1.05rem; line-height: 1.25; }
.anat-notes li > span:last-child { display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.anat-num {
    position: absolute; left: 0; top: .05em;
    width: 22px; height: 22px; border: 1px solid var(--lime); color: var(--lime);
    font: 700 .75rem/20px var(--f-head); text-align: center;
}

/* Блок 2 — лицензия */
.lic { display: grid; gap: 1.6rem; }
.lic-list { display: grid; gap: .35rem; align-content: start; min-width: 0; }
.lic-item {
    display: flex; align-items: center; gap: .75rem;
    width: 100%; padding: .55rem .7rem;
    background: transparent; color: var(--text);
    border: 1px solid transparent; border-radius: 0;
    font-family: var(--f-body); font-size: .98rem; text-align: left; line-height: 1.35;
    cursor: pointer; transition: border-color .12s, background-color .12s;
}
.lic-item:hover { border-color: var(--line); }
.lic-item[aria-selected="true"] { border-color: var(--lime); background: rgba(11, 12, 14, .35); }
.lic-box {
    position: relative; flex: 0 0 16px; width: 16px; height: 16px;
    border: 1.5px solid #C9CED4;
}
.lic-box::after {
    content: ""; position: absolute; right: -5px; top: -5px;
    width: 7px; height: 7px; border-radius: 50%; background: var(--red);
}
.lic-item[aria-selected="true"] .lic-box { border-color: var(--lime); background: var(--lime); }
.lic-item[aria-selected="true"] .lic-box::before {
    content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 9px;
    border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.lic-label { flex: 1 1 auto; min-width: 0; }
.lic-tag {
    flex: 0 0 auto; color: var(--red);
    font-family: var(--f-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
    border: 1px solid rgba(232, 80, 58, .55); padding: .05em .4em;
}
.lic-panel[hidden] { display: none !important; }
.lic-panel {
    border-left: 2px solid var(--lime);
    padding: .2rem 0 .2rem 1.3rem;
    min-width: 0;
}
.lic-panel h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.lic-panel h3::before { content: "› "; color: var(--lime); }
.lic-lead { color: #C9CED4; font-weight: 500; }
.lic-panel p { font-size: .95rem; }
.lic-risk {
    margin: 0; padding: .55rem .8rem;
    border: 1px solid rgba(232, 80, 58, .5); background: rgba(232, 80, 58, .08);
    color: #F2A396; font-size: .88rem !important;
}
.lic-risk::before { content: "Риск: "; color: var(--red); font-weight: 700; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .04em; }

/* Карточки записей */
.cards { display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1fr); }
.card {
    display: flex; flex-direction: column;
    background: #15181C;
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform .12s, box-shadow .12s, border-color .12s;
    min-width: 0;
}
.card:hover { border-color: var(--lime); transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--lime); }
.card-thumb { position: relative; margin: 8px 8px 0; border: 5px solid var(--ink); background: var(--ink); }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-tc {
    position: absolute; top: 6px; right: 6px;
    background: var(--lime); color: var(--ink);
    font: 700 .74rem/1.2 var(--f-head); letter-spacing: .04em;
    padding: .18em .45em;
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: .95rem 1rem 1rem; min-width: 0; }
.card-title { font-size: 1.18rem; margin: 0 0 .45rem; line-height: 1.22; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--lime); }
.card-excerpt { color: #C3C8CE; font-size: .92rem; line-height: 1.5; flex: 1; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-excerpt a { color: var(--blue); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .7rem; }
.card-date { color: var(--muted); font-size: .85rem; font-family: var(--f-head); letter-spacing: .03em; }
.empty-note { color: var(--muted); border: 1px dashed var(--line); padding: 1.2rem 1.4rem; margin: 0; }

/* Блок 4 — таймлайн адаптации */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1fr); position: relative; }
.stage { position: relative; min-width: 0; padding-left: 2rem; }
.stage::before { content: ""; position: absolute; left: 6px; top: 0; bottom: -1.4rem; width: 2px; background: var(--blue); }
.stage:last-child::before { bottom: 0; }
.stage-shot { display: block; }
.stage img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); margin-bottom: .6rem; }
.stage-dot { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--bg); }
.stage strong { display: block; font-family: var(--f-head); font-size: 1.05rem; line-height: 1.25; }
.stage > span:last-child { display: block; color: var(--muted); font-size: .85rem; }
.stages-note { text-align: center; color: var(--muted); margin: 1.4rem 0 0; font-family: var(--f-head); letter-spacing: .02em; }

/* Блок 5 — каталог форматов */
.catalog { position: relative; padding-left: 26px; }
.catalog::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
    background-color: var(--ink);
    background-image: repeating-linear-gradient(180deg, transparent 0 5px, #2E333A 5px 10px);
    background-size: 6px 100%; background-position: 4px 0; background-repeat: no-repeat;
}
.catalog { overflow-x: auto; }
.catalog-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.catalog-table th, .catalog-table td {
    text-align: left; padding: .55rem .6rem;
    border: 0; border-bottom: 1px solid var(--line);
}
.catalog-table thead th {
    background: #0F1318; color: #C9CED4;
    font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; font-weight: 700;
    border-bottom: 1px solid var(--lime);
}
.catalog-table tbody tr:nth-child(odd) { background: var(--bg); }
.catalog-table tbody tr:nth-child(even) { background: var(--steel); }
.catalog-table tbody tr:hover { background: #222C3A; }
.catalog-table td:first-child { font-weight: 500; }
.catalog-table td:nth-child(2) { font-family: var(--f-head); color: var(--lime); letter-spacing: .03em; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 1.6rem 0 3rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.6rem; font-family: var(--f-head); letter-spacing: .02em; }
.crumbs a { color: var(--blue); }
.crumbs-sep { color: var(--lime); margin: 0 .2em; }
.crumbs span:last-child { color: #C9CED4; }

.layout-single .content-area { display: block; }
.layout-with-sidebar { display: block; }
.content-area { min-width: 0; }
.cards-list { margin-bottom: 1.8rem; }
.blog-intro { margin-bottom: 1.6rem; }
.archive-desc { color: var(--muted); margin: -1rem 0 1.6rem; }

.entry-head { margin-bottom: 1.4rem; }
.entry-head .page-title { margin-bottom: .7rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; color: var(--muted); font-size: .88rem; font-family: var(--f-head); }
.entry-tc { color: var(--ink); background: var(--lime); padding: 0 .45em; font-weight: 700; }
.entry-cats { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.entry-cats a { color: var(--blue); }
.entry-thumb { margin: 0 0 1.6rem; border: 6px solid var(--ink); outline: 1px solid var(--line); }
.entry-thumb img { width: 100%; height: auto; }

.entry-content { font-size: 1.03rem; line-height: 1.7; }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.8em; padding-left: .7em; border-left: 4px solid var(--lime); }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.5em; }
.entry-content h4 { font-size: 1.1rem; margin-top: 1.3em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content ul li::marker { color: var(--lime); }
.entry-content ol li::marker { color: var(--blue); font-family: var(--f-head); font-weight: 700; }
.entry-content blockquote {
    margin: 1.6em 0; padding: 1.1rem 1.4rem;
    background: var(--steel); border-left: 4px solid var(--lime);
    font-family: var(--f-head); font-size: 1.2rem; line-height: 1.45;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .5em; font-size: .9rem; color: var(--muted); font-style: normal; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; border: 1px solid var(--line); }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .55rem .8rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--steel); font-family: var(--f-head); text-transform: uppercase; letter-spacing: .04em; font-size: .88rem; }
.entry-content tr:nth-child(even) td { background: #161A1F; }
.entry-content .wp-block-table { overflow-x: auto; margin: 1.4em 0; }
.entry-content img { height: auto; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { color: var(--muted); font-size: .85rem; margin-top: .4em; }
.entry-content code { background: var(--ink); color: var(--lime); padding: .1em .35em; font-size: .92em; }
.entry-content pre { background: var(--ink); border: 1px solid var(--line); padding: 1rem; overflow-x: auto; }
.entry-content hr { border: 0; height: 12px; margin: 2em 0; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.entry-content .alignleft { float: left; margin: .3em 1.2em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.2em; }
.entry-content .aligncenter { margin-inline: auto; }
.page-links { margin-top: 1.2rem; font-family: var(--f-head); }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.entry-tags a { border: 1px solid var(--line); padding: .2em .6em; text-decoration: none; font-family: var(--f-head); font-size: .88rem; }
.entry-tags a:hover { border-color: var(--lime); }

.post-navigation { margin: 2.2rem 0; }
.post-navigation .nav-links { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.post-navigation a { display: block; border: 1px solid var(--line); padding: .9rem 1.1rem; text-decoration: none; color: var(--text); height: 100%; }
.post-navigation a:hover { border-color: var(--lime); }
.post-navigation .nav-sub { display: block; color: var(--lime); font-family: var(--f-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.post-navigation .nav-title { display: block; font-family: var(--f-head); font-size: 1.05rem; margin-top: .2rem; }
.post-navigation .nav-next { text-align: right; }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .6rem; }
.pager .page-numbers {
    display: inline-block; min-width: 2.5em; padding: .45em .75em;
    border: 1px solid var(--line); color: var(--text); text-decoration: none; text-align: center;
    font-family: var(--f-head); font-size: .95rem; line-height: 1.2;
    transition: border-color .12s, background-color .12s, color .12s;
}
.pager a.page-numbers:hover { border-color: var(--lime); color: var(--lime); }
.pager .page-numbers.current { background: var(--lime); border-color: var(--lime); color: var(--ink); font-weight: 700; }
.pager .page-numbers.dots { border: 0; min-width: 0; padding-inline: .3em; color: var(--muted); }

/* Сайдбар */
.sidebar { margin-top: 2.4rem; min-width: 0; }
.sidebar .widget {
    background: var(--side); color: #D5D9DE;
    border: 1px solid var(--line); border-top: 3px solid var(--blue);
    padding: 1.2rem 1.3rem; margin-bottom: 1.4rem;
}
.sidebar .widget-title {
    color: var(--text); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em;
    padding-left: .7em; border-left: 3px solid var(--lime); margin-bottom: .9rem;
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; line-height: 1.4; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: #DCE6EF; text-decoration: none; }
.sidebar .widget a:hover { color: var(--lime); }
.sidebar .widget .post-date, .sidebar .widget .rss-date { display: block; color: #9AA3AC; font-size: .8rem; }
.sidebar .widget p { color: #D5D9DE; }

/* Подвал */
.site-foot {
    position: relative; background: var(--foot); color: #C9CED4;
    padding: 2.8rem 0 1.6rem;
    border-top: 1px solid var(--line);
}
.site-foot::before {
    content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 8px;
    background: repeating-linear-gradient(90deg, #22262B 0 7px, transparent 7px 13px);
}
.foot-cols { display: grid; gap: 1.8rem; grid-template-columns: minmax(0, 1fr); }
.foot-col { min-width: 0; }
.site-foot .widget { margin: 0; }
.site-foot .widget-title {
    color: var(--text); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .7rem;
}
.site-foot .widget, .site-foot .widget p, .site-foot .textwidget { color: #B9BFC6; font-size: .9rem; line-height: 1.55; }
.site-foot .widget ul { list-style: none; margin: 0; padding: 0; }
.site-foot .widget li { margin-bottom: .35rem; }
.site-foot .widget a { color: var(--blue); font-size: .9rem; }
.site-foot .widget a:hover { color: var(--lime); }
.foot-copy {
    margin: 2.2rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line);
    color: var(--muted); font-size: .84rem;
}

/* Поиск */
.seek { display: flex; gap: 0; max-width: 34rem; margin: 1rem 0; }
.seek-field {
    flex: 1 1 auto; min-width: 0;
    background: var(--ink); color: var(--text);
    border: 1px solid var(--line); border-right: 0; border-radius: 0;
    padding: .65rem .9rem; font: inherit; font-size: .95rem;
}
.seek-field::placeholder { color: var(--muted); }
.seek-field:focus { border-color: var(--lime); outline: none; }
.seek-btn { flex: 0 0 auto; }

/* 404 */
.nf { max-width: 44rem; padding: 1rem 0 2rem; }
.nf-code {
    display: inline-block; margin: 0 0 1rem;
    font-family: var(--f-head); font-weight: 700; font-size: clamp(2.6rem, 2rem + 4vw, 5rem); line-height: 1;
    color: var(--lime); letter-spacing: .04em;
    border: 1px solid var(--line); padding: .15em .3em; background: var(--ink);
}
.nf-text { color: #C9CED4; }
.nf-home { margin-top: 1.4rem; }

/* Комментарии */
.talk { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.talk-title, .comment-reply-title { font-size: 1.4rem; }
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { padding-left: 1.4rem; border-left: 1px solid var(--line); margin-top: 1rem; }
.reel-comment { margin-bottom: 1rem; }
.reel-comment-body { background: #15181C; border: 1px solid var(--line); padding: 1rem 1.1rem; }
.reel-comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; margin-bottom: .6rem; }
.reel-comment-head img { width: 40px; height: 40px; border: 2px solid var(--ink); }
.reel-comment-author { font-family: var(--f-head); font-weight: 700; }
.reel-comment-head time { color: var(--muted); font-size: .82rem; }
.reel-comment-wait { color: var(--lime); font-size: .88rem; }
.reel-comment-text p:last-child { margin-bottom: 0; }
.reel-comment-reply { margin-top: .6rem; }
.reel-comment-reply a { font-family: var(--f-head); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.comment-respond { margin-top: 1.8rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-family: var(--f-head); font-size: .9rem; margin-bottom: .3rem; color: #C9CED4; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; background: var(--ink); color: var(--text);
    border: 1px solid var(--line); border-radius: 0; padding: .6rem .8rem; font: inherit;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--lime); outline: none; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; font-family: var(--f-body); font-size: .85rem; }
.comment-form .submit {
    background: var(--lime); color: var(--ink); border: 1px solid var(--lime); border-radius: 0;
    padding: .65em 1.3em; font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; cursor: pointer;
}
.comment-form .submit:hover { box-shadow: 3px 3px 0 var(--blue); transform: translate(-2px, -2px); }
.talk-note, .talk-closed { color: var(--muted); font-size: .88rem; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }

/* Cookie-баннер */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--foot); border-top: 2px solid var(--lime);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .45);
    padding: .9rem 0;
}
.cookie-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.4rem; }
.cookie-text { margin: 0; color: #C9CED4; font-size: .9rem; flex: 1 1 18rem; min-width: 0; }

/* ---------- ≥ 600px ---------- */
@media (min-width: 600px) {
    .topnav-toggle { display: none; }
    .topnav { display: block; position: static; background: none; border: 0; }
    .topnav-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .2rem 1.6rem; }
    .topnav-list li { border: 0; }
    .topnav-list a { padding: .25rem 0; font-size: 1rem; border-bottom: 2px solid transparent; }
    .topnav-list a:hover, .topnav-list .current-menu-item > a { border-bottom-color: var(--lime); }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .anat-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .post-navigation .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stage { padding-left: 0; padding-top: 0; }
    .stage::before { display: none; }
    .stage-dot { position: static; display: block; margin: .1rem 0 .5rem; }
    .fp-sec { padding: 3.2rem 0 3.4rem; }
    .catalog-table { font-size: .95rem; }
    .catalog-table th, .catalog-table td { padding: .6rem .9rem; }
}

/* ---------- ≥ 960px ---------- */
@media (min-width: 960px) {
    .fp-inner { width: 85%; margin-left: auto; margin-right: auto; }
    .layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
    .layout-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        column-gap: 6%;
        align-items: start;
    }
    .layout-with-sidebar .sidebar { margin-top: 0; }
    .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    /* Анатомия: схема с выносками */
    .anat { aspect-ratio: 1000 / 340; }
    .anat-frame { position: absolute; left: 18%; top: 1.18%; width: 59%; height: 97.65%; margin: 0; aspect-ratio: auto; }
    .anat-lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
    .anat-lines polyline { fill: none; stroke: var(--lime); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .85; }
    .anat-notes { display: block; }
    .anat-notes li { position: absolute; padding-left: 0; }
    .anat-notes .n1 { left: 0; top: 2%; width: 15.5%; }
    .anat-notes .n2, .anat-notes .n3, .anat-notes .n4 { left: 81%; width: 13%; }
    .anat-notes .n2 { top: 2%; }
    .anat-notes .n3 { top: 36%; }
    .anat-notes .n4 { top: 70%; }
    .anat-notes li { display: flex; align-items: flex-start; gap: .45rem; }
    .anat-num { position: static; flex: 0 0 18px; width: 18px; height: 18px; line-height: 16px; font-size: .68rem; margin-top: .1em; }
    .anat-notes strong { font-size: .96rem; font-weight: 500; line-height: 1.25; }
    .anat-notes li > span:last-child { display: none; }
    .anat-scale {
        display: block; position: absolute; left: 96%; top: 1.18%; bottom: 1.18%; width: 4%;
        border-left: 1px solid var(--muted);
        background-image: repeating-linear-gradient(180deg, #4A5058 0 1px, transparent 1px 6.6667%);
        background-size: 6px 100%; background-repeat: no-repeat;
    }
    .anat-scale span {
        position: absolute; left: 0; transform: translateY(-50%);
        padding-left: 12px; color: #C9CED4; font: 500 .74rem/1 var(--f-head);
    }
    .anat-scale span::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 1px; background: var(--lime); }

    /* Лицензия: список + раскрытый пункт */
    .lic { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2.6rem; }

    /* Таймлайн: горизонтальная лента */
    .stages { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.4rem; }
    .stage { text-align: center; }
    .stage-shot { display: block; position: relative; margin-bottom: 1rem; }
    .stage-shot img { margin: 0; }
    .stage:not(:last-child) .stage-shot::after {
        content: ""; position: absolute; top: 50%; right: -1.95rem;
        width: 1.5rem; height: 12px; margin-top: -6px;
        background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 6h21M16 1l5 5-5 5' fill='none' stroke='%235FB4E8' stroke-width='2'/%3E%3C/svg%3E");
    }
    .stage-dot { position: relative; display: block; width: 100%; height: 14px; margin: 0 0 .7rem; background: none; border-radius: 0; box-shadow: none; }
    .stage-dot::before {
        content: ""; position: absolute; left: 50%; top: 0; z-index: 1;
        width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
        background: var(--lime); box-shadow: 0 0 0 4px var(--bg);
    }
    .stage:not(:last-child) .stage-dot::after {
        content: ""; position: absolute; left: 50%; top: 6px;
        width: calc(100% + 2.4rem); height: 2px; background: var(--blue);
    }

    .foot-cols { gap: 2.4rem; }
}

