/*
Theme Name: dds_dulisshoes.com
Theme URI: https://dulisshoes.com/
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: dlshoe
*/

/* ---------- Шрифты ---------- */
@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: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-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: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-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 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: italic; font-weight: 400; font-display: swap; src: url("fonts/roboto-condensed-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: "Roboto Condensed"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/roboto-condensed-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; }
@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; }

/* ---------- Палитра ---------- */
:root {
    --c-page: #3B322C;
    --c-head: #241E1A;
    --c-block: #4A3F36;
    --c-sand: #D9C9A8;
    --c-foot: #1C1714;
    --c-text: #EFE4CF;
    --c-muted: #A89578;
    --c-mustard: #E0A526;
    --c-mustard-hi: #EDB43F;
    --c-rust: #B4472E;
    --c-rust-hi: #D2603F;
    --c-line: #6E5D4B;
    --c-ink: #2A211B;
    --c-line-light: #8A7658;
    --c-aside: #2F2722;
    --c-paper: #EFE4CF;
    --c-paper-2: #E4D6BB;
    --c-ink-soft: #5A4936;
    --f-head: "Oswald", "Arial Narrow", Impact, "Helvetica Neue", sans-serif;
    --f-text: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
    --scratch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='420'%3E%3Cg fill='none' stroke='%23EFE4CF' stroke-opacity='.05' stroke-linecap='round'%3E%3Cpath d='M30 60l140 22M410 30l120 48M250 300l160-20M60 360l90 14M480 250l70 60'/%3E%3Cpath d='M300 140c30-6 60 2 84 10' stroke-width='.8'/%3E%3C/g%3E%3Cg fill='%23000' fill-opacity='.05'%3E%3Cellipse cx='520' cy='370' rx='46' ry='22'/%3E%3Cellipse cx='120' cy='180' rx='30' ry='14'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Сброс и основа ---------- */
*, *::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;
    overflow-x: hidden;
    font-family: var(--f-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--c-text);
    background-color: var(--c-page);
    background-image: var(--scratch), var(--grain);
    overflow-wrap: break-word;
    hyphens: auto;
}

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: 500;
    line-height: 1.15;
    margin: 1.4em 0 .55em;
    overflow-wrap: break-word;
    hyphens: manual;
}
a { color: var(--c-mustard); text-decoration: underline dashed var(--c-rust); text-underline-offset: .22em; text-decoration-thickness: 1px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--c-mustard-hi); text-decoration-style: solid; }
:focus-visible { outline: 2px dashed var(--c-mustard); outline-offset: 3px; }
button { font: inherit; }

.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;
    background: var(--c-mustard); color: var(--c-ink); padding: .6rem 1rem; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Единый контейнер ширины */
.shell { width: min(92%, 1240px); margin-inline: auto; }
@media (min-width: 960px) { .shell { width: min(85%, 1240px); } }

/* ---------- Ярлык-бирка (кнопка) ---------- */
.tag-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.55em;
    padding: .4em 1em .4em 1.05em;
    margin-right: 34px;
    border: 0;
    border-radius: 0;
    background: var(--c-mustard);
    color: var(--c-ink);
    font-family: var(--f-text);
    font-weight: 500;
    font-size: 1.02rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s, background-color .12s;
}
.tag-btn::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 100%;
    width: 18px;
    background:
        radial-gradient(circle at 7px 50%, #2A211B 0 3.2px, rgba(42, 33, 27, .55) 3.3px 4.4px, transparent 4.5px),
        var(--c-mustard);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transition: background-color .12s;
}
.tag-btn::after {
    content: "";
    position: absolute;
    left: calc(100% + 4px);
    top: 50%;
    width: 32px;
    height: 24px;
    transform: translateY(-46%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Cpath d='M3 12c4-6 12-7 15-3s-3 9 2 10 9-6 10-12' fill='none' stroke='%23B4472E' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
    pointer-events: none;
}
.tag-btn:hover, .tag-btn:focus-visible {
    color: var(--c-ink);
    background: var(--c-mustard-hi);
    transform: translate(2px, -2px);
    text-decoration: none;
}
.tag-btn:hover::before, .tag-btn:focus-visible::before {
    background:
        radial-gradient(circle at 7px 50%, #2A211B 0 3.2px, rgba(42, 33, 27, .55) 3.3px 4.4px, transparent 4.5px),
        var(--c-mustard-hi);
}
.tag-btn:active { transform: translate(0, 0); }

/* ---------- Шапка ---------- */
.masthead {
    background-color: var(--c-head);
    background-image: var(--grain);
    border-bottom: 1px solid #000;
}
.masthead-in {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1.6rem;
    row-gap: 1rem;
    padding: 1.6rem 0;
}
.brand-mark { display: block; text-decoration: none; }
.brand-logo { width: 58px; height: auto; }
.brand-text { min-width: 0; }
.site-name {
    margin: 0 0 .35rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: clamp(1.45rem, 3.2vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: .005em;
}
.site-name a { color: var(--c-text); text-decoration: none; }
.site-name a:hover { color: var(--c-mustard); }
.site-desc { margin: 0; max-width: 52ch; color: #DCD0B9; font-size: .98rem; line-height: 1.4; }

.nav-toggle {
    grid-column: 3;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .8rem;
    background: transparent;
    color: var(--c-text);
    border: 1px solid var(--c-line);
    border-radius: 0;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--c-mustard); 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; }
.nav-toggle[aria-expanded="true"] { border-color: var(--c-mustard); }

.site-nav { grid-column: 1 / -1; display: none; }
.site-nav.is-open { display: block; }
.site-nav-list { list-style: none; margin: 0; padding: .4rem 0 0; border-top: 1px solid var(--c-line); }
.site-nav-list li { margin: 0; }
.site-nav-list a {
    display: inline-block;
    padding: .45rem 0;
    color: var(--c-text);
    font-size: 1.12rem;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
}
.site-nav-list a:hover { color: var(--c-mustard); border-bottom-color: var(--c-rust); }
.site-nav-list .current-menu-item > a,
.site-nav-list .current_page_item > a { color: var(--c-mustard); border-bottom-color: var(--c-mustard); }

@media (max-width: 599px) {
    .masthead-in { grid-template-columns: auto minmax(0, 1fr); }
    .brand-logo { width: 44px; }
    .nav-toggle { grid-column: 1 / -1; justify-self: start; }
    .site-desc { font-size: .92rem; }
}

@media (min-width: 960px) {
    .masthead-in { padding: 2.2rem 0 2.3rem; column-gap: 2.2rem; }
    .brand-logo { width: 80px; }
    .nav-toggle { display: none; }
    .site-nav { display: block; grid-column: 3; }
    .site-nav-list { border-top: 0; padding: 0; }
    .site-nav-list a { padding: .22rem 0; font-size: 1.2rem; }
}

/* ---------- Заголовки секций ---------- */
.sec-head { display: flex; align-items: center; gap: 1.4rem; margin: 0 0 2.2rem; }
.sec-title {
    margin: 0;
    font-family: var(--f-head);
    font-weight: 500;
    text-transform: uppercase;
    font-size: clamp(1.9rem, 4.6vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: .005em;
    color: var(--c-text);
    min-width: 0;
}
.sec-rule {
    position: relative;
    flex: 1 1 auto;
    min-width: 2.5rem;
    height: 1px;
    background: var(--c-line-light);
    margin-top: .25em;
}
.sec-rule::after {
    content: "";
    position: absolute;
    right: 0; top: 50%;
    width: 24px; height: 12px;
    transform: translateY(-50%);
    background: radial-gradient(circle at 6px 50%, var(--c-ink) 0 2px, transparent 2.4px), var(--c-line-light);
    clip-path: polygon(0 50%, 26% 0, 100% 0, 100% 100%, 26% 100%);
}
.sec-head--ink .sec-title { color: var(--c-ink); }
.sec-head--ink .sec-rule, .sec-head--ink .sec-rule::after { background-color: var(--c-line-light); }

.kicker {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.2rem;
    color: var(--c-muted);
    font-size: .92rem;
    letter-spacing: .38em;
    text-transform: uppercase;
}
.kicker span { padding-bottom: .3rem; border-bottom: 1px solid var(--c-line-light); }
.kicker::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--c-line); min-width: 2rem; }

/* ---------- Главная: общие секции ---------- */
.fs { padding: 3rem 0 3.4rem; }
@media (min-width: 960px) { .fs { padding: 4rem 0 4.4rem; } }

.fs-footmap { background-color: var(--c-block); background-image: var(--scratch), var(--grain); border-top: 1px solid #000; }
.fs-shelf {
    background-color: var(--c-sand);
    background-image: var(--grain);
    color: var(--c-ink);
}
.fs-latest { background-color: var(--c-page); background-image: var(--scratch), var(--grain); }
.fs-duo { background-color: var(--c-block); background-image: var(--scratch), var(--grain); }

/* Блок 1 — обмерная карта */
.footmap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem; align-items: start; }
.footmap-fig { margin: 0; overflow-x: auto; }
.footmap-fig { position: relative; }
.footmap-fig img { width: 100%; }
.footmap-labels {
    position: absolute;
    inset: 0;
    container-type: inline-size;
    pointer-events: none;
}
.fm-label {
    position: absolute;
    transform: translate(-50%, -50%) rotate(var(--r, 0deg));
    padding: 0 .3em;
    color: var(--c-text);
    background: var(--c-block);
    font-family: var(--f-text);
    font-size: max(10px, 2.25cqw);
    line-height: 1.15;
    white-space: nowrap;
    hyphens: none;
}
.fm-label--v { --r: -90deg; }
.footmap-note {
    color: #E3D7BF;
    font-size: 1.05rem;
    border-left: 1px solid var(--c-line-light);
    padding: .4rem 0 .4rem 1.4rem;
}
.footmap-note p:last-child { margin-bottom: 0; }
@media (max-width: 599px) {
    .footmap-fig { width: 100%; }
    .fm-label { font-size: max(9px, 2.4cqw); }
}
@media (min-width: 960px) {
    .footmap { grid-template-columns: minmax(0, 3.1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
    .footmap-note { padding-left: 2rem; min-height: 70%; }
}

/* Блок 2 — полка материалов */
.swatches {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem 1.4rem;
}
.swatch { min-width: 0; }
.swatch img { width: 100%; aspect-ratio: 759 / 483; object-fit: cover; transition: transform .2s; }
.swatch:hover img { transform: rotate(-1.2deg) translateY(-3px); }
.swatch-name {
    margin: .55rem 0 .2rem;
    font-family: var(--f-text);
    font-weight: 700;
    font-size: 1.22rem;
    color: var(--c-ink);
}
.swatch-care { margin: 0; color: var(--c-ink-soft); font-size: .97rem; line-height: 1.4; }
.ruler {
    margin-top: 2.2rem;
    height: 18px;
    border-bottom: 1px solid var(--c-line-light);
    background:
        repeating-linear-gradient(90deg, var(--c-line-light) 0 1px, transparent 1px 60px) left bottom / 100% 16px no-repeat,
        repeating-linear-gradient(90deg, var(--c-line-light) 0 1px, transparent 1px 12px) left bottom / 100% 8px no-repeat;
}
@media (min-width: 600px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; } }

/* Блок записей */
.cards {
    counter-reset: card;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}
.cards--front { margin-top: .4rem; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
    .cards--front { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
    .cards--front .card:nth-child(1) { transform: rotate(-.5deg); }
    .cards--front .card:nth-child(2) { margin-top: 1.1rem; }
    .cards--front .card:nth-child(3) { transform: rotate(.45deg); margin-top: .4rem; }
    .layout-single .cards--list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--c-ink);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
    counter-increment: card;
    transition: transform .18s;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #F3E9D6, var(--c-paper) 40%, #E8DAC0);
    clip-path: polygon(0 1.2%, 6% .3%, 14% 1%, 25% 0, 37% .8%, 48% .2%, 61% 1%, 73% .1%, 86% .9%, 94% 0, 100% .8%, 99.4% 12%, 100% 26%, 99.3% 41%, 100% 57%, 99.4% 72%, 100% 87%, 99.5% 99.2%, 88% 100%, 76% 99.2%, 63% 100%, 50% 99.3%, 37% 100%, 24% 99.1%, 12% 100%, 0 99.4%, .6% 86%, 0 70%, .5% 54%, 0 38%, .6% 22%);
}
.card::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(138, 118, 88, .55);
    pointer-events: none;
}
.card:hover { transform: translateY(-4px) rotate(0deg); }
.card-stamp {
    position: absolute;
    top: 0; right: 0;
    width: 52px; height: 52px;
    z-index: 2;
    background: linear-gradient(225deg, var(--c-page) 0 49%, #CDBB98 50% 100%);
    pointer-events: none;
}
.fs-latest .card-stamp { background: linear-gradient(225deg, var(--c-page) 0 49%, #CDBB98 50% 100%); }
.card-stamp::after {
    content: "№" counter(card, decimal-leading-zero);
    position: absolute;
    right: 3px; top: 13px;
    padding: 0 3px;
    transform: rotate(45deg);
    border: 1px solid var(--c-rust);
    color: var(--c-rust);
    font-family: var(--f-head);
    font-size: .64rem;
    line-height: 1.3;
    letter-spacing: .04em;
}
.inner .card-stamp { background: linear-gradient(225deg, var(--c-page) 0 49%, #CDBB98 50% 100%); }
.card-thumb { padding: 16px 16px 0; }
.card-thumb a { display: block; text-decoration: none; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 6px;
    background: #CDBB98;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem 1.25rem 1.3rem;
}
.card-title {
    margin: 0 0 .4rem;
    font-family: var(--f-text);
    font-weight: 700;
    font-size: 1.32rem;
    line-height: 1.2;
}
.card-title a { color: var(--c-ink); text-decoration: none; }
.card-title a:hover { color: var(--c-rust); text-decoration: underline dashed var(--c-rust); }
.card-excerpt { color: #3E3226; font-size: 1.02rem; line-height: 1.45; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--c-rust); }
.card-foot {
    margin-top: auto;
    padding-top: .9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    flex-wrap: wrap;
}
.card-date { color: #8A7658; font-size: .98rem; }
.card .tag-btn { font-size: .98rem; }
.latest-more { margin: 2.2rem 0 0; text-align: right; }
.latest-more a { color: var(--c-text); }
.empty-note { color: var(--c-muted); font-size: 1.1rem; }

/* Блоки 3 и 4 */
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.4rem; }
.duo-item { min-width: 0; }
.duo-item .sec-title { margin-bottom: 1.6rem; font-size: clamp(1.9rem, 4vw, 3.1rem); }
@media (min-width: 960px) { .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; } }

.boot-fig { position: relative; margin: 0; }
.boot-fig img { width: 100%; }
.boot-labels { position: absolute; inset: 0; container-type: inline-size; pointer-events: none; }
.bt-label {
    position: absolute;
    transform: translateY(-50%);
    color: var(--c-text);
    font-size: max(11px, 3cqw);
    line-height: 1.1;
    white-space: nowrap;
    hyphens: none;
}
@media (min-width: 960px) { .boot-fig { margin-left: -5%; } }

.fitting-row { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
@media (min-width: 600px) { .fitting-row { flex-wrap: nowrap; } .notepad { flex: 0 1 64%; } }
.notepad { position: relative; flex: 0 1 380px; min-width: 0; width: 100%; max-width: 420px; container-type: inline-size; }
.notepad-img { width: 100%; }
.notepad-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 11%; left: 16.9%; right: 6.4%; bottom: 20.8%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.check {
    display: flex;
    align-items: flex-start;
    gap: .55em;
    width: 100%;
    padding: 0 0 .25em;
    margin: 0;
    background: none;
    border: 0;
    border-bottom: 1.5px dashed rgba(180, 71, 46, .7);
    color: var(--c-ink);
    font-family: var(--f-text);
    font-weight: 500;
    font-size: 4.3cqw;
    line-height: 1.18;
    text-align: left;
    cursor: pointer;
    hyphens: none;
}
.check::before {
    content: "";
    flex: 0 0 auto;
    width: 1.05em;
    height: 1.05em;
    margin-top: .05em;
    border: 2px solid #4A3F36;
    background: no-repeat center / 120% 120%;
}
.check.is-done::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10l5 6L19-1' fill='none' stroke='%23B4472E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check:hover { color: var(--c-rust); }
.fitting-count { margin: 0; display: flex; flex-direction: column; color: var(--c-text); }
.fitting-num { font-family: var(--f-head); font-weight: 600; font-size: clamp(5rem, 9vw, 8rem); line-height: .9; }
.fitting-cap { max-width: 6.5em; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.12; color: #DCD0B9; }

/* ---------- Внутренние страницы ---------- */
.inner { padding: 1.6rem 0 4rem; }
.breadcrumbs { margin: 0 0 1.6rem; color: var(--c-muted); font-size: .95rem; }
.breadcrumbs a { color: var(--c-mustard); }
.breadcrumbs .sep { margin: 0 .35em; color: var(--c-line-light); }
.breadcrumbs span:last-child { color: var(--c-text); }

.layout-single { display: block; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.6rem; }
.content-area { min-width: 0; }
@media (min-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; align-items: start; }
}

.page-head { margin-bottom: 2rem; }
.page-title {
    margin: 0 0 .6rem;
    font-family: var(--f-head);
    font-weight: 500;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 3.6vw, 2.9rem);
    line-height: 1.08;
    color: var(--c-text);
}
.page-head .page-title { padding-bottom: .7rem; border-bottom: 1px solid var(--c-line-light); }
.page-lead { color: #DCD0B9; }

/* Лист записи */
.sheet {
    position: relative;
    padding: clamp(1.4rem, 4vw, 2.8rem);
    background: linear-gradient(180deg, #F3E9D6, var(--c-paper) 30%, #EADDC4);
    color: var(--c-ink);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}
.sheet::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(138, 118, 88, .5);
    pointer-events: none;
}
.sheet .page-title { color: var(--c-ink); }
.sheet-head { margin-bottom: 1.4rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--c-line-light); }
.sheet-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: #7A6650; font-size: .96rem; }
.sheet-cats a { margin-right: .5rem; color: var(--c-rust); }
.sheet-cover { margin: 0 0 1.6rem; }
.sheet-cover img { width: 100%; border-radius: 6px; }
.sheet-tags { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; position: relative; z-index: 1; }
.sheet-tags a { padding: .2rem .6rem; border: 1px solid var(--c-line-light); color: var(--c-ink); text-decoration: none; font-size: .92rem; }
.sheet-tags a:hover { background: var(--c-mustard); }

.entry { position: relative; z-index: 1; font-size: 1.08rem; line-height: 1.7; }
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: 1.75rem; color: var(--c-ink); text-transform: uppercase; letter-spacing: .01em; }
.entry h3 { font-size: 1.4rem; color: var(--c-ink); }
.entry h4 { font-size: 1.18rem; color: var(--c-ink); }
.entry a { color: var(--c-rust); text-decoration-color: var(--c-rust); }
.entry a:hover { color: #8E3420; }
.entry ul, .entry ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.entry li { margin-bottom: .35em; }
.entry ul li::marker { color: var(--c-rust); }
.entry ol li::marker { color: var(--c-rust); font-family: var(--f-head); }
.entry blockquote {
    margin: 1.6em 0;
    padding: 1.1rem 1.4rem 1.1rem 1.5rem;
    background: #E2D3B5;
    border-left: 5px solid var(--c-mustard);
    font-size: 1.12rem;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .98rem; border: 1px solid var(--c-line-light); }
.entry th, .entry td { border: 1px solid var(--c-line-light); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.entry th { background: #DCCBA8; font-weight: 700; }
.entry tbody tr:nth-child(even) td { background: rgba(217, 201, 168, .35); }
.entry figure { margin: 1.4em 0; }
.entry img { border-radius: 4px; }
.entry figcaption, .entry .wp-caption-text { color: #7A6650; font-size: .92rem; margin-top: .4rem; }
.entry pre { overflow-x: auto; background: var(--c-ink); color: var(--c-text); padding: 1rem; font-size: .92rem; }
.entry code { background: rgba(42, 33, 27, .08); padding: .05em .3em; }
.entry pre code { background: none; padding: 0; }
.entry hr { border: 0; border-top: 1px dashed var(--c-line-light); margin: 2em 0; }
.page-links { margin-top: 1.4rem; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
@media (max-width: 599px) { .alignleft, .alignright { float: none; margin: 1em 0; } }

/* Навигация записи */
.post-navigation { margin-top: 2.2rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 600px) { .post-navigation .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-navigation a {
    display: block;
    height: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid var(--c-line);
    background: var(--c-aside);
    color: var(--c-text);
    text-decoration: none;
    transition: transform .12s, border-color .12s;
}
.post-navigation a:hover { border-color: var(--c-mustard); transform: translate(2px, -2px); }
.post-navigation .nav-next { text-align: right; }
.nav-cap { display: block; color: var(--c-muted); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; }
.nav-name { display: block; margin-top: .3rem; font-weight: 700; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 2.6rem; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.7rem;
    height: 2.7rem;
    padding: 0 .8rem;
    border: 1px solid var(--c-line);
    background: var(--c-aside);
    color: var(--c-text);
    font-family: var(--f-head);
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform .12s, border-color .12s, color .12s;
}
.pager a.page-numbers:hover { border-color: var(--c-mustard); color: var(--c-mustard); transform: translate(2px, -2px); }
.pager .page-numbers.current { background: var(--c-mustard); border-color: var(--c-mustard); color: var(--c-ink); }
.pager .page-numbers.dots { border: 0; background: none; min-width: 1.4rem; padding: 0; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    padding: 1.6rem 1.5rem;
    background-color: var(--c-aside);
    background-image: var(--grain);
    border: 1px solid var(--c-line);
    color: var(--c-text);
}
.sidebar .widget + .widget { margin-top: 2rem; }
.sidebar .widget-title {
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-line-light);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed var(--c-line); color: var(--c-muted); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--c-text); text-decoration-color: var(--c-rust); }
.sidebar a:hover { color: var(--c-mustard); }
.sidebar .post-date { display: block; color: var(--c-muted); font-size: .88rem; }
.sidebar p, .sidebar .textwidget { color: #DCD0B9; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: .5rem; max-width: 520px; margin: 1.2rem 0; }
.search-field {
    flex: 1 1 auto;
    min-width: 0;
    padding: .7rem .9rem;
    background: var(--c-aside);
    color: var(--c-text);
    border: 1px solid var(--c-line-light);
    border-radius: 0;
    font: inherit;
}
.search-field::placeholder { color: var(--c-muted); }
.search-field:focus { outline: 2px dashed var(--c-mustard); outline-offset: 1px; }
.search-submit {
    padding: .7rem 1.2rem;
    background: var(--c-mustard);
    color: var(--c-ink);
    border: 0;
    border-radius: 0;
    font-weight: 700;
    cursor: pointer;
    transition: transform .12s, background-color .12s;
}
.search-submit:hover { background: var(--c-mustard-hi); transform: translate(2px, -2px); }

/* ---------- 404 ---------- */
.lost { padding: 1rem 0 2rem; }
.lost-num {
    margin: 0;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(6rem, 18vw, 11rem);
    line-height: .9;
    color: transparent;
    -webkit-text-stroke: 2px var(--c-mustard);
    letter-spacing: .06em;
}
.lost-text { max-width: 60ch; color: #DCD0B9; }
.lost-home { margin-top: 1.6rem; }

/* ---------- Комментарии ---------- */
.notes { margin-top: 2.6rem; color: var(--c-text); }
.notes-title, .comment-reply-title {
    font-family: var(--f-head);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1.6rem;
    margin: 0 0 1.2rem;
}
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { padding-left: clamp(1rem, 4vw, 2.4rem); }
.note-body { padding: 1.1rem 1.2rem; margin-bottom: 1rem; background: var(--c-aside); border: 1px solid var(--c-line); }
.note-head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: .6rem; }
.note-head img { border-radius: 50%; }
.note-author { font-weight: 700; }
.note-date { color: var(--c-muted); font-size: .9rem; }
.note-wait { color: var(--c-mustard); font-style: italic; }
.note-text p:last-child { margin-bottom: 0; }
.note-reply { margin-top: .6rem; }
.note-reply a { font-size: .92rem; }
.comment-respond { margin-top: 2rem; padding: 1.5rem 1.4rem; background: var(--c-aside); border: 1px solid var(--c-line); }
.comment-reply-title small { display: block; margin-top: .4rem; font-size: .9rem; text-transform: none; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; color: #DCD0B9; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .65rem .8rem;
    background: var(--c-page);
    color: var(--c-text);
    border: 1px solid var(--c-line-light);
    border-radius: 0;
    font: inherit;
}
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { margin: 0; }
.comment-notes, .logged-in-as, .must-log-in { color: var(--c-muted); font-size: .94rem; }
.req { color: var(--c-rust-hi); }
.tag-btn--submit { font-weight: 700; }
.notes-closed { color: var(--c-muted); }

/* ---------- Подвал ---------- */
.colophon {
    padding: 3rem 0 0;
    background-color: var(--c-foot);
    background-image: var(--grain);
    color: #DCD0B9;
    border-top: 1px solid #000;
}
.colophon-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-bottom: 2.4rem; }
@media (min-width: 600px) { .colophon-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .colophon-cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 3.5rem; } }
.colophon-col { min-width: 0; }
.colophon .widget-title {
    margin: 0 0 .8rem;
    font-family: var(--f-text);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--c-text);
}
.colophon p, .colophon .textwidget { color: #DCD0B9; font-size: 1rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin: 0 0 .35rem; }
.colophon a { color: var(--c-text); text-decoration: underline dashed var(--c-rust); text-underline-offset: .25em; }
.colophon a:hover { color: var(--c-mustard); }
.copyline {
    margin: 0;
    padding: 1.3rem 0 1.5rem;
    border-top: 1px solid var(--c-line);
    text-align: center;
    color: var(--c-muted);
    font-size: .95rem;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem 1.4rem;
    max-width: 780px;
    margin-inline: auto;
    padding: 1rem 1.3rem;
    background-color: var(--c-head);
    background-image: var(--grain);
    border: 1px solid var(--c-mustard);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    color: var(--c-text);
}
.cookie-text { flex: 1 1 320px; margin: 0; font-size: .95rem; line-height: 1.45; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Прочее ---------- */
.wp-block-image img { height: auto; }
.sticky .card-title a::after { content: " ●"; color: var(--c-rust); font-size: .7em; vertical-align: middle; }
.bypostauthor > .note-body { border-color: var(--c-mustard); }
.gallery-caption, .wp-caption { max-width: 100%; }
