/*
Theme Name: dds_cosmeticdom.ru
Theme URI: https://cosmeticdom.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: cosdom
*/

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

/* ---------- Токены ---------- */
:root {
    --page: #E8ECEC;
    --graphite: #232B2E;
    --plum: #3B2A3E;
    --coal: #171A1B;
    --rule: #B9C2C2;
    --ink: #2A3234;
    --muted: #7C8A87;
    --lime: #C7E82B;
    --rose: #E2556B;
    --rose-deep: #B8394E;
    --cyan: #4FB3C6;
    --line: #9AA6A4;
    --aside: #DCE2E1;
    --paper: #F2F4F4;
    --on-dark: #E6EBEA;
    --on-dark-muted: #A9B4B2;
    --plum-line: #8E7A92;
    --f-head: "Oswald", "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    --f-text: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --f-mono: "IBM Plex Mono", "Roboto Mono", Consolas, "Courier New", monospace;
}

/* ---------- База ---------- */
*, *::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: 16px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--page);
    background-image:
        linear-gradient(rgba(154, 166, 164, .16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(154, 166, 164, .16) 1px, transparent 1px),
        linear-gradient(rgba(154, 166, 164, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(154, 166, 164, .08) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body > main { flex: 1 0 auto; }
p, li, td, th, dd, h1, h2, h3, h4, h5, h6, .card-title, .brand-name, .brand-desc {
    overflow-wrap: break-word;
    hyphens: auto;
}
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.15;
    margin: 1.4em 0 .6em;
    color: inherit;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}
table { border-collapse: collapse; width: 100%; }
table, th, td { border: 1px solid var(--line); }
th, td { padding: .55em .8em; text-align: start; vertical-align: top; }

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

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

/* ---------- Кнопки-ярлыки ---------- */
.btn-tag {
    --bt-bg: var(--rose);
    --bt-fg: #FFFFFF;
    --bt-edge: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 46px;
    padding: .7em 1.9em .7em 1.5em;
    border: 0;
    font-family: var(--f-head);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: var(--bt-fg);
    cursor: pointer;
    background:
        linear-gradient(225deg, transparent 9.9px, var(--bt-edge) 9.9px, var(--bt-edge) 12.4px, transparent 12.4px),
        var(--bt-bg);
    box-shadow: inset 0 0 0 2.5px var(--bt-edge), inset -5px -5px 0 rgba(23, 26, 27, .28);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn-tag:hover { --bt-bg: var(--lime); --bt-fg: var(--ink); transform: translate(-2px, -2px); }
.btn-tag:active { transform: translate(1px, 1px); }
.btn-tag--lime { --bt-bg: var(--lime); --bt-fg: var(--ink); }
.btn-tag--lime:hover { --bt-bg: var(--rose); --bt-fg: #FFFFFF; }
.btn-tag--full { display: flex; width: 100%; }

.link-arrow,
.entry a:not(.btn-tag):not(.wp-block-button__link),
.page-intro a,
.widget_text a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--line);
    transition: text-decoration-color .15s ease, color .15s ease;
}
.link-arrow::after,
.entry a:not(.btn-tag):not(.wp-block-button__link)::after,
.widget_text a::after {
    content: "↗";
    display: inline-block;
    margin-left: .15em;
    font-size: .72em;
    vertical-align: .35em;
    text-decoration: none;
}
.link-arrow:hover,
.entry a:not(.btn-tag):not(.wp-block-button__link):hover,
.page-intro a:hover,
.widget_text a:hover { text-decoration-color: currentColor; }
.entry a:not(.btn-tag):not(.wp-block-button__link):has(img)::after { content: none; }

/* ---------- Заголовки секций ---------- */
.sec-head {
    display: flex;
    align-items: baseline;
    gap: .7rem;
    margin: 0 0 2rem;
    font-family: var(--f-mono);
    font-size: clamp(1.05rem, 1.6vw, 1.45rem);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
}
.sec-head::after {
    content: "";
    flex: 1 1 2rem;
    min-width: 2rem;
    align-self: center;
    height: 1px;
    background: currentColor;
    opacity: .7;
    transform: translateY(.2em);
}
.sec-num { color: inherit; }
.sec-slash { color: var(--muted); }
.sec-name { min-width: 0; }
.sec-head--light { color: var(--on-dark); }

/* ---------- Шапка ---------- */
.masthead {
    background: var(--graphite);
    color: var(--on-dark);
    border-bottom: 3px solid var(--coal);
    box-shadow: 0 3px 0 var(--lime);
}
.masthead-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    flex: 1 1 380px;
    max-width: 620px;
    text-decoration: none;
    color: inherit;
}
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { display: block; width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--f-head);
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: .01em;
    color: #FFFFFF;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-desc {
    margin-top: .25rem;
    font-family: var(--f-mono);
    font-size: .74rem;
    line-height: 1.45;
    color: var(--on-dark-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .55rem .9rem;
    background: transparent;
    color: var(--on-dark);
    border: 1.5px solid var(--line);
    font-family: var(--f-mono);
    font-size: .85rem;
    text-transform: uppercase;
    cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--lime);
    content: "";
    position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 2.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-list a {
    display: inline-block;
    padding: .35rem 0;
    font-family: var(--f-head);
    font-size: 1.12rem;
    font-weight: 400;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--on-dark);
    border-bottom: 2px solid transparent;
    transition: border-color .15s ease, color .15s ease;
}
.nav-list a:hover,
.nav-list .current-menu-item > a { color: #FFFFFF; border-bottom-color: var(--lime); }

/* ---------- Главная: общее ---------- */
.fs { padding: 4.5rem 0; position: relative; }
.fs + .fs { border-top: 1px solid var(--rule); }
.fs-latest::before,
.fs-duo::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 5px;
    height: 1px;
    background: var(--rule);
}

/* Блок 1 — ингредиент под микроскопом */
.micro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 2rem 1.2rem;
    align-items: stretch;
}
.micro-text {
    grid-column: 1 / -1;
    min-width: 0;
    position: relative;
    padding: 1.6rem 1.4rem 1.8rem;
    background-color: rgba(242, 244, 244, .55);
    background-image:
        linear-gradient(rgba(154, 166, 164, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(154, 166, 164, .35) 1px, transparent 1px);
    background-size: 24px 24px;
    border: 1px solid var(--line);
}
.micro-title {
    margin: 0 0 1.1rem;
    hyphens: manual;
    font-family: var(--f-head);
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.005em;
    text-transform: uppercase;
    color: #111516;
}
.micro-lead {
    margin: 0 0 .9rem;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.3;
    color: var(--ink);
}
.micro-body { max-width: 34em; font-size: .97rem; }
.micro-text .btn-tag { margin-top: .4rem; }
.micro-source {
    margin: 1.4rem 0 0;
    font-family: var(--f-mono);
    font-size: .76rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}
.micro-source::before { content: "■ "; color: var(--lime); }
.micro-fig {
    position: relative;
    margin: 0;
    min-width: 0;
    aspect-ratio: 540 / 474;
}
.micro-drop {
    position: absolute;
    left: 30.56%;
    top: 1.27%;
    width: 56.85%;
    height: 98.73%;
    object-fit: contain;
    display: block;
}
.micro-leaders { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.micro-dot {
    position: absolute;
    width: 9px; height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--page);
}
.micro-labels { position: absolute; inset: 0; pointer-events: none; }
.micro-label {
    position: absolute;
    display: flex;
    flex-direction: column;
    max-width: 30%;
    padding-bottom: .25rem;
    transform: translateY(-100%);
    line-height: 1.2;
}
.micro-label b {
    font-family: var(--f-mono);
    font-size: clamp(.68rem, 1.3vw, .9rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--ink);
}
.micro-label i {
    display: none;
    font-style: normal;
    font-family: var(--f-mono);
    font-size: .68rem;
    color: var(--muted);
}
.micro-label--r { max-width: 25%; }
.micro-scale {
    position: relative;
    margin: 4% 0;
    background:
        linear-gradient(var(--ink), var(--ink)) 0 0 / 1px 100% no-repeat,
        repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 7px) 1px 0 / 9px 100% no-repeat;
}
.micro-scale span {
    position: absolute;
    left: 0;
    padding-left: 22px;
    transform: translateY(-50%);
    font-family: var(--f-mono);
    font-size: .78rem;
    white-space: nowrap;
    color: var(--ink);
}
.micro-scale span::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 17px; height: 2px;
    background: var(--ink);
}

/* Блок 2 — протокол процедуры */
.fs-protocol {
    background-color: var(--plum);
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--on-dark);
    border-top: 0 !important;
}
.fs-protocol .sec-head { color: var(--on-dark); }
.fs-protocol .sec-slash { color: var(--plum-line); }
.protocol-title {
    margin: 0 0 2.4rem;
    font-family: var(--f-text);
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    font-weight: 400;
    color: #FFFFFF;
}
.steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 1.2rem;
}
.step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    min-width: 0;
    padding: 0;
    background: none;
    border: 0;
    color: var(--on-dark);
    text-align: start;
    font: inherit;
    cursor: pointer;
}
.step-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 160 / 142;
    border: 1.5px solid var(--on-dark-muted);
    transition: border-color .15s ease, background-color .15s ease;
}
.step-n {
    position: absolute;
    left: .6rem; top: .4rem;
    font-family: var(--f-mono);
    font-size: .9rem;
}
.step-ico { width: 42%; height: auto; display: block; color: #FFFFFF; }
.step-name {
    font-family: var(--f-mono);
    font-size: .92rem;
    line-height: 1.35;
}
.step:hover .step-box { border-color: var(--cyan); }
.step.is-on .step-box {
    border-color: var(--lime);
    background-color: rgba(199, 232, 43, .07);
    box-shadow: inset 0 -4px 0 var(--lime);
}
.step.is-on .step-n,
.step.is-on .step-name { color: var(--lime); }
.step-panel {
    margin-top: 2rem;
    padding: 1.4rem 1.6rem;
    max-width: 52rem;
    background: rgba(23, 26, 27, .35);
    border: 1px solid var(--plum-line);
    border-left: 4px solid var(--lime);
}
.step-time {
    margin: 0 0 .4rem;
    font-family: var(--f-mono);
    font-size: .82rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--lime);
}
.step-text { margin: 0; font-size: 1.02rem; color: var(--on-dark); }

/* Последние записи */
.latest-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .6rem 2rem;
    margin-bottom: 2rem;
}
.latest-title {
    margin: 0;
    font-family: var(--f-head);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.link-arrow {
    font-family: var(--f-mono);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration-color: var(--ink);
}
.empty-note {
    padding: 1.4rem 1.6rem;
    background: var(--paper);
    border: 1px dashed var(--line);
    font-family: var(--f-mono);
    font-size: .92rem;
}

/* ---------- Каталожные карточки ---------- */
.cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.1rem 1.1rem 1.3rem;
    background: rgba(242, 244, 244, .7);
    border: 1.5px solid #3D4648;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--lime); }
.card.sticky { border-color: var(--rose); }
.card-thumb { position: relative; border: 1px solid var(--line); }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}
.card-no {
    position: absolute;
    left: 0; top: 0;
    z-index: 1;
    padding: .2rem .9rem .25rem 0;
    background: var(--page);
    font-family: var(--f-mono);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--ink);
    pointer-events: none;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 1rem;
}
.card-title {
    margin: 0 0 .6rem;
    font-family: var(--f-head);
    font-size: 1.32rem;
    font-weight: 500;
    line-height: 1.2;
}
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 2px; }
.card-excerpt { font-size: .93rem; color: var(--ink); }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-excerpt a { color: inherit; }
.card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .2rem 1rem;
    margin: auto 0 1.1rem;
    padding-top: .7rem;
    border-top: 1px dashed var(--line);
    font-family: var(--f-mono);
    font-size: .78rem;
}
.card-meta div { display: flex; justify-content: space-between; gap: .5rem; min-width: 0; }
.card-meta dt { color: var(--muted); }
.card-meta dd { margin: 0; text-align: end; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Блоки 3 и 4 ---------- */
.duo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    align-items: stretch;
}
.fs-guide { min-width: 0; }
.guide-lead {
    margin: -1rem 0 1.4rem;
    font-size: 1rem;
    color: var(--ink);
}
.guide-lead::before { content: "→ "; color: var(--cyan); font-weight: 600; }
.guide-wrap { overflow-x: auto; border: 1.5px solid var(--ink); background: rgba(242, 244, 244, .75); }
.guide-table { min-width: 560px; border: 0; }
.guide-table th, .guide-table td { border: 1px solid var(--ink); }
.guide-table tr > :first-child { border-left: 0; }
.guide-table tr > :last-child { border-right: 0; }
.guide-table thead th { border-top: 0; }
.guide-table tbody tr:last-child td { border-bottom: 0; }
.guide-table th {
    font-family: var(--f-mono);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: var(--aside);
}
.guide-table td { font-size: .86rem; line-height: 1.45; }
.guide-table td:nth-child(3) { font-family: var(--f-mono); font-size: .8rem; }
.guide-table td:last-child { color: var(--rose-deep); }
.guide-table tbody tr:hover td { background: rgba(199, 232, 43, .18); }

.fs-myths {
    min-width: 0;
    padding: 2.6rem 2rem 2.8rem;
    background-color: var(--coal);
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px);
    background-size: 14px 14px;
    color: var(--on-dark);
}
.myths-title {
    margin: -.6rem 0 1.8rem;
    font-family: var(--f-head);
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    font-weight: 600;
    text-transform: uppercase;
    color: #FFFFFF;
}
.myths-pair {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 1.6rem;
}
.myth-plate {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    align-content: start;
    min-width: 0;
    margin-bottom: 1.2rem;
    padding: 1.4rem 1.4rem 1.8rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}
.myth-plate--myth { background: var(--rose); color: #FFFFFF; }
.myth-plate--fact { background: var(--lime); color: var(--coal); }
.myth-head {
    margin: 0 0 .9rem;
    font-family: var(--f-head);
    font-size: 2.2rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
}
.myth-list {
    display: contents;
    list-style: none;
}
.myth-list li {
    padding: .55rem 0;
    font-family: var(--f-mono);
    font-size: .9rem;
    line-height: 1.4;
    border-top: 1px solid rgba(23, 26, 27, .25);
}
.myth-plate--myth .myth-list li { border-top-color: rgba(255, 255, 255, .4); }
.myth-head + .myth-list li:first-child { border-top: 0; padding-top: 0; }
.myths-pair .myth-plate:last-child { margin-bottom: 0; }

/* ---------- Внутренние страницы ---------- */
.inner { padding: 2rem 0 4.5rem; }
.crumbs {
    margin: 0 0 2rem;
    font-family: var(--f-mono);
    font-size: .8rem;
    line-height: 1.5;
    color: var(--muted);
}
.crumbs a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.crumbs a:hover { text-decoration-color: var(--ink); }
.crumbs-sep { color: var(--cyan); margin: 0 .2rem; }
.layout-single { display: block; }
.layout-single > .content-area { margin-left: auto; margin-right: auto; }
.layout-with-sidebar { display: block; }
.content-area { min-width: 0; }
.sidebar { margin-top: 3rem; min-width: 0; }

.page-head {
    margin-bottom: 2.4rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--ink);
}
.page-kicker {
    margin: 0 0 .3rem;
    font-family: var(--f-mono);
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.page-kicker::before { content: "■ "; color: var(--lime); }
.page-title,
.entry-title {
    margin: 0;
    hyphens: manual;
    font-family: var(--f-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.05;
    text-transform: uppercase;
    color: #111516;
}
.page-intro { margin-top: 1rem; max-width: 46rem; }

.entry-wrap {
    padding: 1.8rem 1.6rem 2rem;
    background: rgba(242, 244, 244, .8);
    border: 1.5px solid #3D4648;
}
.entry-head { margin-bottom: 1.6rem; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1.2rem;
    margin: 0 0 .8rem;
    font-family: var(--f-mono);
    font-size: .8rem;
    color: var(--muted);
}
.entry-meta a { color: var(--ink); }
.entry-no { color: var(--ink); background: var(--lime); padding: 0 .4rem; }
.entry-figure { margin: 0 0 1.8rem; border: 1px solid var(--line); }
.entry-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.entry { font-size: 1.03rem; }
.entry > *:first-child { margin-top: 0; }
.entry h2 {
    font-size: 1.75rem;
    text-transform: uppercase;
    padding-top: .6rem;
    border-top: 1px solid var(--rule);
}
.entry h3 { font-size: 1.35rem; }
.entry h4 { font-size: 1.15rem; }
.entry ul, .entry ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry li { margin-bottom: .35em; }
.entry ul { list-style: none; padding-left: 1.3em; }
.entry ul > li { position: relative; }
.entry ul > li::before {
    content: "";
    position: absolute;
    left: -1.1em; top: .62em;
    width: 7px; height: 7px;
    background: var(--lime);
    outline: 1px solid var(--ink);
}
.entry ol > li::marker { font-family: var(--f-mono); color: var(--rose-deep); }
.entry blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem 1.4rem 1.8rem;
    background: var(--plum);
    color: var(--on-dark);
    border-left: 5px solid var(--lime);
    font-size: 1.1rem;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry blockquote cite { font-family: var(--f-mono); font-size: .8rem; font-style: normal; color: var(--lime); }
.entry blockquote a { color: #FFFFFF; }
.entry table { margin: 1.4em 0; font-size: .92rem; background: var(--paper); }
.entry th, .entry td { border: 1px solid var(--ink); }
.entry th { background: var(--aside); font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.entry figure { margin: 1.6em 0; }
.entry figcaption, .wp-caption-text { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); margin-top: .4rem; }
.entry img { display: block; }
.entry pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--coal); color: var(--on-dark); font-family: var(--f-mono); font-size: .85rem; }
.entry code { font-family: var(--f-mono); font-size: .9em; background: var(--aside); padding: 0 .25em; }
.entry pre code { background: none; padding: 0; }
.entry hr { border: 0; border-top: 1px dashed var(--line); margin: 2em 0; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 0; font-family: var(--f-mono); font-size: .82rem; }
.entry-tags a { padding: .15rem .55rem; border: 1px solid var(--ink); text-decoration: none; }
.entry-tags a:hover { background: var(--lime); }
.entry-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 2rem; }
.entry-nav-link {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1rem 1.2rem;
    border: 1.5px solid var(--ink);
    text-decoration: none;
    font-family: var(--f-head);
    font-size: 1.1rem;
    line-height: 1.25;
    background: rgba(242, 244, 244, .7);
}
.entry-nav-link span { font-family: var(--f-mono); font-size: .76rem; text-transform: uppercase; color: var(--muted); }
.entry-nav-link:hover { background: var(--lime); }
.entry-nav-link--next { text-align: end; }

/* ---------- Сайдбар ---------- */
.sidebar .widget {
    margin-bottom: 1.6rem;
    padding: 1.4rem 1.4rem 1.2rem;
    background: var(--aside);
    border: 1.5px solid var(--line);
    color: var(--ink);
}
.sidebar .widget-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 1rem;
    font-family: var(--f-mono);
    font-size: .86rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink);
}
.sidebar .widget-title::before { content: ""; width: 10px; height: 10px; background: var(--lime); outline: 1px solid var(--ink); flex: none; }
.sidebar .widget ul { margin: 0; padding: 0; list-style: none; }
.sidebar .widget li { padding: .55rem 0; border-top: 1px dashed var(--line); line-height: 1.4; }
.sidebar .widget li:first-child { border-top: 0; padding-top: 0; }
.sidebar .widget a { color: var(--ink); text-decoration: none; }
.sidebar .widget a:hover { text-decoration: underline; text-decoration-color: var(--rose); }
.sidebar .widget .post-date { display: block; font-family: var(--f-mono); font-size: .76rem; color: #5E6B68; }
.sidebar .widget p { color: var(--ink); }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 2.6rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 .8rem;
    border: 1.5px solid var(--ink);
    background: rgba(242, 244, 244, .8);
    font-family: var(--f-mono);
    font-size: .9rem;
    text-decoration: none;
    color: var(--ink);
    transition: background-color .15s ease;
}
.pager a.page-numbers:hover { background: var(--lime); }
.pager .page-numbers.current { background: var(--ink); color: var(--lime); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .3rem; }

/* ---------- Поиск, 404 ---------- */
.search-form { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 34rem; }
.search-field {
    flex: 1 1 14rem;
    min-width: 0;
    height: 46px;
    padding: 0 1rem;
    border: 1.5px solid var(--ink);
    background: var(--paper);
    font-family: var(--f-mono);
    font-size: .92rem;
    color: var(--ink);
    border-radius: 0;
}
.sidebar .search-form, .colophon .search-form { max-width: none; }
.empty-box .search-form { margin-top: 1rem; }
.nf { padding: 2rem 0 1rem; }
.nf-code {
    margin: 0;
    font-family: var(--f-head);
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 700;
    line-height: .9;
    color: transparent;
    -webkit-text-stroke: 2px var(--ink);
}
.nf .page-title { margin: .8rem 0 1rem; }
.nf-text { max-width: 36rem; margin-bottom: 1.6rem; }
.nf-home { margin-top: 1.8rem; }

/* ---------- Комментарии ---------- */
.comments { margin-top: 3rem; }
.comments-title, .comment-reply-title {
    font-family: var(--f-head);
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 0 0 1.2rem;
}
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 1.6rem; }
.note {
    margin-bottom: 1rem;
    padding: 1.1rem 1.3rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--cyan);
    background: rgba(242, 244, 244, .8);
}
.note-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-bottom: .6rem; }
.note-head img { display: block; border-radius: 0; }
.note-author { font-weight: 600; }
.note-date { font-family: var(--f-mono); font-size: .76rem; color: #5E6B68; }
.note-wait { font-family: var(--f-mono); font-size: .8rem; color: var(--rose-deep); }
.note-text p:last-child { margin-bottom: 0; }
.note-reply a { font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; color: var(--ink); }
.comment-respond { padding: 1.6rem; border: 1.5px solid var(--ink); background: rgba(242, 244, 244, .8); }
.comment-form label { display: block; font-family: var(--f-mono); font-size: .8rem; margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .04em; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 1.5px solid var(--ink);
    background: var(--paper);
    font: inherit;
    color: var(--ink);
    border-radius: 0;
}
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; text-transform: none; font-family: var(--f-text); font-size: .86rem; letter-spacing: 0; }
.comment-notes, .logged-in-as { font-size: .88rem; color: #5E6B68; }
.req { color: var(--rose-deep); }
.comments-closed { font-family: var(--f-mono); color: var(--muted); }
#cancel-comment-reply-link { margin-left: .8rem; font-family: var(--f-mono); font-size: .8rem; text-transform: none; }

/* ---------- Подвал ---------- */
.colophon {
    background: var(--graphite);
    color: #C3CBCA;
    padding: 3.5rem 0 1.6rem;
    border-top: 3px solid var(--lime);
}
.colophon-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
}
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1.4rem; color: #C3CBCA; font-family: var(--f-mono); font-size: .86rem; line-height: 1.65; }
.colophon .widget-title {
    margin: 0 0 .9rem;
    font-family: var(--f-mono);
    font-size: .86rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lime);
}
.colophon .widget p { color: #C3CBCA; }
.colophon .widget ul { margin: 0; padding: 0; list-style: none; }
.colophon .widget li { margin-bottom: .45rem; }
.colophon .widget a { color: #E6EBEA; text-decoration: underline; text-decoration-color: rgba(230, 235, 234, .35); text-underline-offset: 3px; }
.colophon .widget a:hover { color: var(--lime); text-decoration-color: var(--lime); }
.colophon .widget .post-date { color: #A9B4B2; }
.colophon-copy {
    margin: 2rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid #3E494C;
    font-family: var(--f-mono);
    font-size: .76rem;
    letter-spacing: .04em;
    color: #A9B4B2;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.6rem;
    max-width: 920px;
    margin-inline: auto;
    padding: 1.2rem 1.4rem;
    background: var(--coal);
    color: var(--on-dark);
    border: 1.5px solid var(--line);
    border-left: 5px solid var(--lime);
}
.cookie-text { flex: 1 1 18rem; margin: 0; font-size: .88rem; line-height: 1.5; color: var(--on-dark); }

/* ---------- Адаптив ---------- */
@media (max-width: 599px) {
    .fs { padding: 3rem 0; }
    .micro-text { padding: 1.3rem 1.1rem 1.5rem; }
    .micro-grid { grid-template-columns: minmax(0, 1fr) 52px; }
    .micro-scale span { font-size: .66rem; padding-left: 16px; }
    .micro-scale span::before { width: 12px; }
    .fs-myths { padding: 2rem 1.3rem 2.2rem; }
    .entry-wrap { padding: 1.3rem 1.1rem 1.5rem; }
    .comment-respond { padding: 1.2rem; }
    .step-panel { padding: 1.1rem 1.2rem; }
    .cookie-banner { left: .5rem; right: .5rem; bottom: .5rem; padding: 1rem 1.1rem; }
    .card-meta { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 600px) {
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .myths-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .myth-plate { margin-bottom: 0; }
    .myths-pair::before {
        content: "";
        position: absolute;
        left: 50%; top: 0; bottom: 0;
        width: 1px;
        background: var(--line);
    }
    .micro-label i { display: block; }
    .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .entry-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .entry-nav-link--next:only-child { grid-column: 2; }
}

@media (max-width: 959px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav { display: none; flex-basis: 100%; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; padding: .4rem 0 .6rem; border-top: 1px solid #3E494C; }
    .nav-list a { padding: .6rem 0; }
}

@media (min-width: 960px) {
    .shell--front { width: min(85%, 1280px); }
    .masthead-row { flex-wrap: nowrap; padding: 1.3rem 0; }
    .micro-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 72px;
        gap: 2rem 1.4rem;
        align-items: center;
    }
    .micro-text { grid-column: auto; }
    .micro-scale { align-self: stretch; }
    .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2rem 2.6rem; }
    .step:not(:last-child)::after {
        content: "";
        position: absolute;
        right: -2.25rem;
        top: 0;
        width: 1.9rem;
        aspect-ratio: 1;
        margin-top: calc((100% * 142 / 160) / 2 - .95rem);
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M2 15h24M18 7l8 8-8 8' fill='none' stroke='%234FB3C6' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
        pointer-events: none;
    }
    .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
    .cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
    .layout-single > .content-area { width: 85%; }
    .layout-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        column-gap: 6%;
        align-items: start;
    }
    .sidebar { margin-top: 0; }
    .duo-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; }
    .fs-myths { padding: 3rem 2.4rem 3.2rem; }
    .colophon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
    .entry-wrap { padding: 2.4rem 2.6rem 2.6rem; }
}

@media (min-width: 960px) and (max-width: 1199px) {
    .duo-grid { grid-template-columns: minmax(0, 1fr); }
}

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

@media (max-width: 599px) {
    .sec-head { font-size: .95rem; gap: .5rem; }
    .guide-wrap { overflow: visible; border: 0; background: none; }
    .guide-table { min-width: 0; border: 0; }
    .guide-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .guide-table, .guide-table tbody, .guide-table tr, .guide-table td { display: block; width: 100%; }
    .guide-table tr {
        margin-bottom: 1rem;
        border: 1.5px solid var(--ink);
        background: rgba(242, 244, 244, .85);
    }
    .guide-table td {
        display: grid;
        grid-template-columns: 7.2rem minmax(0, 1fr);
        gap: .8rem;
        border: 0;
        border-top: 1px dashed var(--line);
    }
    .guide-table td:first-child { border-top: 0; font-weight: 600; }
    .guide-table td::before {
        content: attr(data-label);
        font-family: var(--f-mono);
        font-size: .7rem;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: var(--muted);
        padding-top: .15em;
    }
}
