/*
Theme Name: dds_killtime.su
Author: Зимина Нина Аркадьевна
Description: Тема информационного сайта о выборе мебели: обмерный каталог на миллиметровке, чертёжная графика, размерные линии и штампы-заголовки.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: obmer
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

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

/* ========== Переменные ========== */
:root {
    --graphite: #33322E;
    --paper: #E8E6E1;
    --grid: #CFCCC4;
    --ink: #2B2B2B;
    --muted: #8C877C;
    --orange: #E4571C;
    --blue: #2E5FA3;
    --sheet-light: #F5F4F0;
    --sheet-side: #F0EEE8;
    --text-soft: #4A4842;
    --on-dark: #EEECE6;
    --on-dark-soft: #C2BDB2;
    --grid-dark: rgba(232, 230, 225, 0.05);
    --grid-dark-major: rgba(232, 230, 225, 0.09);
    --font-head: "Oswald", "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", sans-serif;
    --font-text: "PT Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --hard: 4px 4px 0 var(--orange);
}

/* ========== Сброс и база ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        linear-gradient(rgba(207, 204, 196, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(207, 204, 196, 0.5) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--ink); }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 0.6em;
    overflow-wrap: break-word;
    hyphens: manual;
}
p, li, td, th, dd, dt, figcaption, blockquote { overflow-wrap: break-word; hyphens: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

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

/* ========== Лист-рамка ========== */
.sheet {
    width: min(94%, 1240px);
    margin: 14px auto;
    border: 2px solid var(--ink);
    background: transparent;
}

/* ========== Кнопки и ссылки ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.55rem 1.15rem;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    color: var(--ink);
    background: var(--sheet-light);
    border: 2px solid var(--ink);
    border-radius: 0;
    box-shadow: var(--hard);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}
.btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--orange);
    background: var(--ink);
    color: var(--sheet-light);
}
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--orange); }
.btn-small { padding: 0.4rem 0.8rem; font-size: 0.82rem; }

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-head);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid var(--blue);
    padding-bottom: 1px;
}
.arrow-link::after {
    content: "";
    width: 18px;
    height: 10px;
    flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h15M11 1l5 4-5 4' fill='none' stroke='%23E4571C' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: transform 0.15s ease;
}
.arrow-link:hover { color: var(--orange); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ========== Шапка ========== */
.masthead {
    background-color: var(--graphite);
    background-image:
        linear-gradient(var(--grid-dark-major) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-dark-major) 1px, transparent 1px),
        linear-gradient(var(--grid-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
    color: var(--on-dark);
    padding: 2rem 5.5%;
}
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    min-width: 0;
    padding-left: 1.4rem;
    border-left: 2px solid var(--orange);
    color: var(--on-dark);
    text-decoration: none;
}
.brand-mark { flex: none; display: block; width: 64px; color: #fff; }
.brand-svg { display: block; width: 64px; height: 64px; }
.brand-logo { display: block; width: 64px; height: auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    hyphens: manual;
    font-family: var(--font-head);
    font-weight: 400;
    font-size: clamp(1.45rem, 2.6vw, 2.35rem);
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    max-width: 21em;
    overflow-wrap: break-word;
}
.brand-desc {
    margin-top: 0.55rem;
    max-width: 44em;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--on-dark-soft);
}
.brand:hover .brand-name { color: #fff; }

.site-nav { flex: none; }
.site-nav-list {
    list-style: none;
    margin: 0;
    padding: 0.2rem 0 0.2rem 1.3rem;
    border-left: 2px solid var(--orange);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.site-nav-list a {
    font-family: var(--font-head);
    font-weight: 400;
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav-list a:hover { color: var(--orange); border-bottom-color: var(--orange); }
.site-nav-list .current-menu-item > a { color: var(--orange); }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.8rem;
    background: transparent;
    border: 2px solid var(--on-dark);
    color: var(--on-dark);
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    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; }

/* ========== Полосы главной ========== */
.band {
    position: relative;
    border-top: 3px solid var(--ink);
}
.band-light { background: transparent; }
.band-dark {
    background-color: var(--graphite);
    background-image:
        linear-gradient(var(--grid-dark-major) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-dark-major) 1px, transparent 1px),
        linear-gradient(var(--grid-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
    color: var(--on-dark);
}
.band-inner {
    position: relative;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 2.4rem 0 2.8rem 3.2rem;
}
.band-inner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6.8rem;
    bottom: 2.4rem;
    width: 2px;
    background: var(--ink);
}
.band-dark .band-inner::before { background: rgba(238, 236, 230, 0.35); }

.stamp {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin: 0 0 1.8rem -3.2rem;
    padding-left: 1.2rem;
    border-left: 3px solid var(--orange);
    min-width: 0;
}
.stamp-num {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 3.3rem;
    line-height: 1;
    color: var(--orange);
    letter-spacing: 0.02em;
}
.stamp-title {
    margin: 0;
    font-size: clamp(1.55rem, 2.6vw, 2.25rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: inherit;
    min-width: 0;
}

/* --- 01: разбор дивана --- */
.anatomy {
    position: relative;
    container-type: inline-size;
}
.anatomy-figure { margin: 0; }
.anatomy-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dim .dim-line { stroke: var(--orange); stroke-width: 2; fill: none; }
.dim .dim-ext { stroke: var(--orange); stroke-width: 1.2; fill: none; opacity: 0.75; }
.dim .dim-arrow { fill: var(--orange); }
.dim .dim-text {
    fill: var(--orange);
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 30px;
    letter-spacing: 0.04em;
}
.lead path { stroke: var(--blue); stroke-width: 1.8; fill: none; }
.lead circle { fill: var(--blue); }
.anatomy-rule { stroke: var(--ink); stroke-width: 3; }
.anatomy-caption {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--muted);
}
.anatomy-parts {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 84.6%;
    top: 0;
    width: 15.4%;
    height: calc(100cqw * 560 / 1500);
}
.anatomy-parts li {
    position: absolute;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: flex-start;
    gap: 0.55em;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: clamp(11px, 1.2cqw, 16px);
    line-height: 1.22;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    hyphens: manual;
}
.anatomy-parts li:nth-child(1) { top: 12.5%; }
.anatomy-parts li:nth-child(2) { top: 37.5%; }
.anatomy-parts li:nth-child(3) { top: 62.5%; }
.anatomy-parts li:nth-child(4) { top: 87.5%; }
.part-mark {
    flex: none;
    width: 0.8em;
    height: 0.8em;
    margin-top: 0.2em;
    background: var(--orange);
}

/* --- 02: проверка размеров --- */
.ruler {
    position: absolute;
    top: 7rem;
    bottom: 3.2rem;
    width: 34px;
    background-image:
        linear-gradient(rgba(238, 236, 230, 0.75) 2px, transparent 2px),
        linear-gradient(rgba(238, 236, 230, 0.6) 1px, transparent 1px);
    background-size: 100% 60px, 55% 12px;
    background-repeat: repeat-y;
}
.ruler-left { left: 2.4%; border-left: 2px solid rgba(238, 236, 230, 0.75); background-position: left top, left top; }
.ruler-right { right: 2.4%; border-right: 2px solid rgba(238, 236, 230, 0.75); background-position: right top, right top; }
.check-figure { margin: 0 auto; max-width: 860px; }
.check-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dim-light .dim-line { stroke: var(--on-dark); stroke-width: 1.8; }
.dim-light .dim-ext { stroke: var(--on-dark); stroke-width: 1; opacity: 0.45; stroke-dasharray: 6 5; }
.dim-light .dim-arrow { fill: var(--on-dark); }
.dim-light .dim-text { fill: var(--on-dark); font-size: 28px; }
.check-note {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.92rem;
    color: var(--on-dark-soft);
}

/* --- 03: последние записи --- */
.samples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}
.samples .card:nth-child(2) { margin-top: 1.4rem; }
.samples .card:nth-child(3) { margin-top: 0.5rem; }
.samples .card:nth-child(n+4) { display: none; }
.samples-more { margin: 2rem 0 0; text-align: right; }
.empty-note { color: var(--text-soft); font-size: 1rem; }

/* ========== Карточка записи ========== */
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 0.7rem;
    background: var(--sheet-light);
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 rgba(43, 43, 43, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--orange); }
.card-media {
    position: relative;
    border: 2px solid var(--ink);
    background: var(--paper);
}
.card-media a { display: block; }
.card-media img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}
.card-num {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.12rem 0.5rem;
    background: var(--orange);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    line-height: 1.4;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0.95rem 0.35rem 0.25rem;
}
.card-title {
    margin: 0 0 0.5rem;
    font-size: 1.18rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--orange); }
.card-excerpt {
    flex: 1;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-soft);
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--text-soft); }
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.7rem;
}
.card-date {
    font-family: var(--font-head);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    color: var(--muted);
}

/* --- 04: сочетания --- */
.match-head {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding-right: 4.6rem;
    margin-bottom: 1.6rem;
}
.match-head .stamp { margin-bottom: 0; }
.match-lead {
    max-width: 24rem;
    margin: 0;
    text-align: right;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-soft);
}
.match-arc {
    position: absolute;
    right: 0;
    top: 2.2rem;
    width: 64px;
    height: 112px;
    z-index: 2;
}
.swatches {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.1rem;
}
.swatch { min-width: 0; }
.swatch img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border: 2px solid var(--ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.swatch:hover img { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--orange); }
.swatch-name {
    display: block;
    margin-top: 0.5rem;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- 05: расстановка --- */
.layout-grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2.2rem;
    align-items: start;
}
.layout-grid .stamp { margin-bottom: 0; }
.plan-figure { margin: 0; min-width: 0; }
.plan-figure img { display: block; width: 100%; }
.plan-figure figcaption {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    margin-top: 0.7rem;
    font-size: 0.85rem;
    color: var(--text-soft);
}
.plan-legend { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; }
.lg { display: inline-block; width: 22px; height: 3px; }
.lg-orange { background: var(--orange); }
.lg-blue { background: var(--blue); }
.lg-grey { background: var(--muted); }
.plan-note { flex-basis: 100%; color: var(--muted); }
.axis-list {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}
.axis-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
.axis-num {
    min-width: 3.4rem;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 2.8rem;
    line-height: 0.95;
    color: var(--ink);
}
.axis-text { font-size: 0.92rem; line-height: 1.45; color: var(--text-soft); }
.axis-text strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.08rem;
    line-height: 1.25;
    color: var(--ink);
}

/* ========== Внутренние страницы ========== */
.inner-wrap {
    border-top: 3px solid var(--ink);
    padding: 1.6rem 1.8% 3.2rem;
}
.crumbs {
    width: 85%;
    margin: 0 auto 1.6rem;
    font-family: var(--font-head);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.inner-wrap:has(.layout-with-sidebar) .crumbs { width: 100%; }
.crumbs a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--blue); }
.crumbs a:hover { color: var(--orange); }
.crumbs-sep { color: var(--orange); margin: 0 0.25rem; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
}
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }
.sidebar { min-width: 0; }

.page-head {
    margin-bottom: 1.8rem;
    padding-left: 1.2rem;
    border-left: 3px solid var(--orange);
}
.page-head-mark {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
}
.page-title {
    margin: 0.15rem 0 0.4rem;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.page-intro { max-width: 46rem; margin: 0; color: var(--text-soft); }
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
}
.layout-single .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty-block { padding: 1.4rem 1.6rem; background: var(--sheet-light); border: 2px solid var(--ink); }

/* --- запись --- */
.entry {
    padding: 2.2rem 2.4rem;
    background: var(--sheet-light);
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 rgba(43, 43, 43, 0.15);
}
.entry-head { margin-bottom: 1.4rem; padding-bottom: 1.1rem; border-bottom: 2px solid var(--ink); }
.entry-cat {
    display: inline-block;
    margin-bottom: 0.6rem;
    padding: 0.15rem 0.6rem;
    background: var(--orange);
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
}
.entry-cat:hover { background: var(--ink); }
.entry-title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.entry-meta { margin: 0; font-family: var(--font-head); color: var(--muted); letter-spacing: 0.04em; }
.entry-thumb { margin: 0 0 1.6rem; border: 2px solid var(--ink); }
.entry-thumb img { display: block; width: 100%; }

.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 {
    margin-top: 1.8em;
    padding-left: 0.8rem;
    border-left: 3px solid var(--orange);
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.entry-content h3 { margin-top: 1.5em; font-size: 1.3rem; text-transform: uppercase; }
.entry-content h4 { margin-top: 1.3em; font-size: 1.1rem; }
.entry-content a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--blue);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--orange); }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.5rem; }
.entry-content ul { list-style: none; padding-left: 1.4rem; }
.entry-content ul > li { position: relative; margin-bottom: 0.4em; }
.entry-content ul > li::before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 0.62em;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--orange);
}
.entry-content ol > li { margin-bottom: 0.4em; }
.entry-content ol > li::marker { font-family: var(--font-head); color: var(--orange); }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.3rem 1.6rem;
    background: var(--graphite);
    color: var(--on-dark);
    border-left: 5px solid var(--orange);
    font-size: 1.08rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 0.6rem; font-style: normal; font-family: var(--font-head); color: var(--on-dark-soft); }
.entry-content table { width: 100%; margin: 0 0 1.4em; border-collapse: collapse; border: 2px solid var(--ink); font-size: 0.95rem; }
.entry-content th, .entry-content td { padding: 0.55rem 0.75rem; border: 1px solid var(--ink); text-align: left; vertical-align: top; }
.entry-content th { background: var(--graphite); color: var(--on-dark); font-family: var(--font-head); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.entry-content tr:nth-child(even) td { background: rgba(207, 204, 196, 0.25); }
.entry-content img { display: block; max-width: 100%; height: auto; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { margin-top: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.entry-content pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--graphite); color: var(--on-dark); font-size: 0.9rem; }
.entry-content code { font-family: Consolas, "Courier New", monospace; font-size: 0.92em; }
.entry-content hr { border: 0; border-top: 2px dashed var(--muted); margin: 2em 0; }
.page-links { margin-top: 1.4rem; font-family: var(--font-head); }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.6rem 0 0; }
.entry-tags a {
    padding: 0.15rem 0.6rem;
    border: 2px solid var(--ink);
    font-family: var(--font-head);
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
}
.entry-tags a:hover { background: var(--ink); color: var(--sheet-light); }

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}
.post-nav-link {
    display: block;
    padding: 1rem 1.2rem;
    background: var(--sheet-light);
    border: 2px solid var(--ink);
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 1.02rem;
    line-height: 1.3;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.post-nav-link span { display: block; margin-bottom: 0.3rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange); }
.post-nav-link:hover { transform: translate(-2px, -2px); box-shadow: var(--hard); }
.post-nav-next { grid-column: 2; text-align: right; }

/* --- комментарии --- */
.comments {
    margin-top: 2rem;
    padding: 1.8rem 2rem;
    background: var(--sheet-light);
    border: 2px solid var(--ink);
}
.comments-title, .comment-reply-title {
    font-size: 1.4rem;
    text-transform: uppercase;
    padding-left: 0.8rem;
    border-left: 3px solid var(--orange);
}
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 1.6rem; border-left: 2px dashed var(--grid); }
.note-body { margin-bottom: 1.2rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--grid); }
.note-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; font-family: var(--font-head); }
.note-author { font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; }
.note-head time { color: var(--muted); }
.note-wait { color: var(--orange); font-size: 0.9rem; }
.note-text p:last-child { margin-bottom: 0.4rem; }
.note-reply a { font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--blue); }
.comment-respond { margin-top: 1.6rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: 0.3rem; font-family: var(--font-head); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 0;
}
.comment-form .comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; text-transform: none; font-family: var(--font-text); letter-spacing: 0; }
.comment-form input[type="submit"] {
    padding: 0.6rem 1.3rem;
    font-family: var(--font-head);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink);
    background: var(--sheet-light);
    border: 2px solid var(--ink);
    box-shadow: var(--hard);
    cursor: pointer;
}
.comment-form input[type="submit"]:hover { background: var(--ink); color: var(--sheet-light); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--orange); }
.req { color: var(--orange); }
.comments .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; font-family: var(--font-head); }

/* --- поиск --- */
.search-form { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1rem 0; }
.search-field {
    flex: 1 1 14rem;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 0;
}

/* --- 404 --- */
.notfound { padding: 2.4rem 2.4rem 2.6rem; background: var(--sheet-light); border: 2px solid var(--ink); box-shadow: 6px 6px 0 rgba(43, 43, 43, 0.15); }
.notfound-code {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(5rem, 14vw, 9rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--orange);
}

/* --- пагинация --- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.4rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.75rem;
    background: var(--sheet-light);
    border: 2px solid var(--ink);
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.pager a.page-numbers:hover { transform: translate(-2px, -2px); box-shadow: var(--hard); }
.pager .page-numbers.current { background: var(--orange); border-color: var(--orange); color: #fff; }
.pager .page-numbers.dots { background: none; border: 0; min-width: auto; padding: 0 0.2rem; }

/* --- сайдбар --- */
.sidebar .widget {
    margin-bottom: 1.6rem;
    padding: 1.3rem 1.4rem;
    background: var(--sheet-side);
    border: 2px solid var(--ink);
    color: var(--ink);
}
.sidebar .widget-title {
    margin: 0 0 0.9rem;
    padding-left: 0.7rem;
    border-left: 3px solid var(--orange);
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { position: relative; padding: 0.45rem 0 0.45rem 1.1rem; border-bottom: 1px dashed var(--grid); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 0.45rem; height: 0.45rem; background: var(--orange); }
.sidebar a { color: var(--ink); text-decoration: none; line-height: 1.4; }
.sidebar a:hover { color: var(--orange); }
.sidebar .post-date { display: block; font-size: 0.8rem; color: var(--muted); }
.sidebar p { color: var(--text-soft); }

/* ========== Подвал ========== */
.foot {
    border-top: 3px solid var(--ink);
    background-color: var(--graphite);
    background-image:
        linear-gradient(var(--grid-dark-major) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-dark-major) 1px, transparent 1px),
        linear-gradient(var(--grid-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
    color: var(--on-dark-soft);
    padding: 2.4rem 7.5% 1.2rem;
}
.foot-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2.6rem;
}
.foot-col { min-width: 0; }
.foot .widget { margin-bottom: 1.2rem; color: var(--on-dark-soft); }
.foot .widget-title {
    margin: 0 0 0.9rem;
    padding-left: 0.9rem;
    border-left: 3px solid var(--orange);
    font-size: 1.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--on-dark);
}
.foot p, .foot .textwidget { color: var(--on-dark-soft); font-size: 0.95rem; line-height: 1.6; }
.foot a { color: var(--on-dark); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot .menu li { margin-bottom: 0.35rem; }
.foot .menu a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-head);
    font-size: 1.08rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--on-dark);
    text-decoration: none;
    border-bottom: 2px solid var(--blue);
    line-height: 1.3;
}
.foot .menu a::after {
    content: "";
    width: 18px;
    height: 10px;
    flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h15M11 1l5 4-5 4' fill='none' stroke='%23E4571C' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: transform 0.15s ease;
}
.foot .menu a:hover { color: var(--orange); }
.foot .menu a:hover::after { transform: translateX(4px); }
.foot-copy {
    margin: 1.8rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(238, 236, 230, 0.6);
    text-align: center;
    font-family: var(--font-head);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-dark);
}

/* ========== Cookie ========== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.3rem;
    background: var(--graphite);
    color: var(--on-dark);
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 var(--orange);
}
.cookie-text { margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--on-dark); }
.cookie-accept { flex: none; }

/* ========== Адаптив ========== */
@media (max-width: 1100px) {
    .layout-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
    .layout-grid .stamp { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
    body { font-size: 16px; }
    .masthead { padding: 1.4rem 5%; }
    .masthead-row { flex-wrap: wrap; }
    .brand { flex: 1 1 0; gap: 1rem; padding-left: 1rem; }
    .brand-mark, .brand-svg, .brand-logo { width: 48px; height: auto; }
    .nav-toggle { display: inline-flex; }
    .site-nav { flex-basis: 100%; display: none; }
    .site-nav.is-open { display: block; }
    .site-nav-list { margin-top: 0.4rem; }
    .ruler { display: none; }
    .samples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .samples .card:nth-child(n) { margin-top: 0; }
    .samples .card:nth-child(3) { grid-column: 1 / -1; }
    .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .layout-single .content-area, .crumbs { width: 100%; }
    .layout-single .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot { padding-left: 5%; padding-right: 5%; }
}
@media (max-width: 700px) {
    .anatomy-parts {
        position: static;
        width: auto;
        height: auto;
        margin-top: 1rem;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem 1rem;
    }
    .anatomy-parts li { position: static; transform: none; font-size: 0.85rem; }
    .layout-grid { grid-template-columns: minmax(0, 1fr); }
    .match-head { flex-direction: column; align-items: flex-start; padding-right: 0; }
    .match-lead { text-align: left; }
    .match-arc { display: none; }
}
@media (max-width: 600px) {
    .sheet { width: 100%; margin: 0; border-left: 0; border-right: 0; }
    .masthead-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .brand { flex: none; width: 100%; align-items: flex-start; }
    .brand-name { font-size: 1.3rem; }
    .site-nav { width: 100%; }
    .dim .dim-text { font-size: 50px; }
    .dim-light .dim-text { font-size: 40px; }
    .brand-desc { font-size: 0.85rem; }
    .band-inner { width: 92%; padding: 1.8rem 0 2.2rem 1.6rem; }
    .band-inner::before { top: 5.4rem; bottom: 1.8rem; }
    .stamp { margin-left: -1.6rem; padding-left: 0.9rem; gap: 0.8rem; margin-bottom: 1.3rem; }
    .stamp-num { font-size: 2.4rem; }
    .stamp-title { font-size: 1.4rem; }
    .samples, .card-grid, .layout-single .card-grid { grid-template-columns: minmax(0, 1fr); }
    .samples .card:nth-child(3) { grid-column: auto; }
    .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
    .axis-num { font-size: 2.2rem; }
    .inner-wrap { padding: 1.2rem 4% 2.4rem; }
    .entry { padding: 1.4rem 1.2rem; }
    .comments { padding: 1.3rem 1.1rem; }
    .notfound { padding: 1.6rem 1.3rem 1.8rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-next { grid-column: auto; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem; }
    .check-note { text-align: left; }
}
