/*
Theme Name: dds_cordiajapanesechin.com
Theme URI: https://cordiajapanesechin.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: hinhome
*/

/* ---------- Шрифты (вложены в тему) ---------- */
@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+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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-serif-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 Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-serif-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-serif-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 Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-serif-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-serif-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 Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-serif-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/caveat-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: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/caveat-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/caveat-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: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/caveat-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
    --paper: #F2EADB;
    --pine: #1F3A2E;
    --pine-deep: #18301F;
    --ink: #2B2A26;
    --muted: #7A7364;
    --terra: #C4552B;
    --sage: #8FA36B;
    --on-dark: #F2EADB;
    --sand: #E3D3AF;
    --sheet: #FBF8F1;
    --kraft: #DCC6A0;
    --kraft-soft: #EADBBD;
    --side: #E9DEC8;
    --line: rgba(43, 42, 38, .55);
    --hair: rgba(43, 42, 38, .22);
    --grid: rgba(43, 42, 38, .055);
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --f-text: "PT Serif", Georgia, "Times New Roman", serif;
    --f-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    --shadow: 0 8px 18px rgba(43, 42, 38, .14);
}

/* ---------- Скрытие по [hidden] — до основных стилей ---------- */
.cookie-banner[hidden] { display: none !important; }
[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--f-text);
    font-size: 17px;
    line-height: 1.65;
    background-color: var(--paper);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .06' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .27 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 220px 220px, 24px 24px, 24px 24px;
}

img, svg { max-width: 100%; }
img { height: auto; }

p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    font-family: var(--f-head);
    font-weight: 700;
    line-height: 1.15;
    color: var(--pine);
}
p, li, dd, dt, td, th, h1, h2, h3, h4, h5, h6, .card-title, .lot__title, figcaption, blockquote {
    overflow-wrap: break-word;
    hyphens: auto;
}

a {
    color: var(--pine);
    text-decoration: underline wavy var(--terra) 1px;
    text-underline-offset: 4px;
    transition: color .2s ease;
}
a:hover { color: var(--terra); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px dashed var(--terra);
    outline-offset: 3px;
}

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

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-link {
    position: absolute;
    left: 1rem; top: -100px;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--terra);
    color: #fff;
}
.skip-link:focus { top: 1rem; }

/* ---------- Кнопки: плашка с рамкой и скошенным правым углом ---------- */
.hh-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-right: 12px;
    padding: .38rem 1.4rem .38rem 1rem;
    border: 1px solid var(--ink);
    border-right: 0;
    border-radius: 0;
    background: var(--kraft);
    color: var(--ink);
    font-family: var(--f-hand);
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.hh-btn::after {
    content: "";
    position: absolute;
    top: -1px; bottom: -1px; right: -11px;
    width: 22px;
    background: inherit;
    border: 1px solid var(--ink);
    border-left: 0;
    transform: skewX(-22deg);
    transform-origin: 0 100%;
}
.hh-btn:hover, .hh-btn:focus-visible {
    background: var(--terra);
    color: var(--on-dark);
    transform: translate(-2px, -2px);
}
.hh-btn--solid {
    background: var(--pine);
    color: var(--on-dark);
    border-color: var(--pine);
    font-family: var(--f-head);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .03em;
    padding: .62rem 1.6rem .62rem 1.2rem;
}
.hh-btn--solid::after { border-color: var(--pine); }
.hh-btn--solid:hover, .hh-btn--solid:focus-visible { border-color: var(--terra); }
.hh-btn--solid:hover::after, .hh-btn--solid:focus-visible::after { border-color: var(--terra); }
.hh-btn--tape { background: var(--kraft); }

/* ---------- Подпись секции: капитель + длинная терракотовая линия ---------- */
.kicker {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 0 0 .35rem;
    font-family: var(--f-text);
    font-size: .86rem;
    font-variant: small-caps;
    letter-spacing: .14em;
    text-transform: lowercase;
    color: var(--terra);
}
.kicker::after {
    content: "";
    flex: 1;
    min-width: 2rem;
    height: 1px;
    background: var(--terra);
}
.kicker a { color: inherit; text-decoration: none; }

.hand-title {
    margin: 0 0 1.4rem;
    font-family: var(--f-hand);
    font-weight: 700;
    font-size: clamp(2.1rem, 3.3vw, 2.9rem);
    line-height: 1.05;
    color: var(--ink);
}
.hand-title--light { color: var(--on-dark); }

.wavy { font-family: var(--f-hand); font-size: 1.35rem; font-weight: 700; }

/* ---------- Шапка ---------- */
.masthead {
    position: relative;
    background-color: var(--pine);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    color: var(--on-dark);
}
.masthead__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-width: 0;
    color: var(--on-dark);
    text-decoration: none;
}
.brand:hover { color: var(--on-dark); }
.brand__mark { flex: 0 0 auto; display: block; color: var(--sand); }
.brand-logo { display: block; width: 84px; height: auto; max-height: 84px; }
.brand__text { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.brand__name {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.22rem;
    line-height: 1.2;
    color: var(--sand);
    max-width: 30rem;
}
.brand__desc {
    font-size: .8rem;
    line-height: 1.45;
    color: rgba(242, 234, 219, .8);
    max-width: 34rem;
}

.site-nav .nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav a {
    display: inline-block;
    padding: .2rem 0;
    font-family: var(--f-hand);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--on-dark);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}
.site-nav a:hover { color: var(--sand); border-bottom-color: var(--terra); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { border-bottom-color: var(--sand); }

.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .45rem .8rem;
    background: transparent;
    border: 1px solid rgba(242, 234, 219, .6);
    color: var(--on-dark);
    font-family: var(--f-hand);
    font-size: 1.35rem;
    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; }

/* ---------- Обложка главной ---------- */
.front .shell { width: min(85%, 1240px); }
.cover { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.cover__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}
.cover__text {
    position: relative;
    min-width: 0;
    padding: 1rem 0 2.6rem 1.4rem;
}
.cover__text::before {
    content: "";
    position: absolute;
    left: 0; top: -1rem; bottom: -1.2rem;
    width: 1px;
    background: var(--line);
}
.cover__text::after {
    content: "";
    position: absolute;
    left: -1.2rem; right: -2rem; bottom: 0;
    height: 1px;
    background: var(--line);
}
.cover__title {
    margin: .3rem 0 1.2rem;
    font-size: clamp(2.6rem, 5.6vw, 5.1rem);
    line-height: 1.02;
    letter-spacing: -.005em;
    color: var(--pine);
}
.cover__lead { font-size: 1.18rem; line-height: 1.55; max-width: 32rem; }
.cover__note { font-size: .95rem; color: var(--muted); max-width: 32rem; }
.cover__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: 1.6rem; }
.cover__link { font-family: var(--f-hand); font-size: 1.4rem; font-weight: 700; }

.cover__photo {
    position: relative;
    margin: 0;
    min-width: 0;
    padding: 1.4rem 1.2rem 2rem 2.2rem;
}
.cover__fern {
    position: absolute;
    left: -2.6rem; bottom: -1rem;
    width: 96px;
    z-index: 2;
    transform: rotate(-10deg);
    pointer-events: none;
}
.cover__frame {
    position: relative;
    display: block;
    padding: 1.1rem 1.1rem 2.6rem;
    background: #EEE2C8;
    border: 1px solid var(--hair);
    box-shadow: var(--shadow);
    transform: rotate(1.6deg);
}
.cover__frame::before {
    content: "";
    position: absolute;
    inset: -14px 18px 10px -16px;
    z-index: -1;
    background: #E4D3B1;
    border: 1px solid var(--hair);
    transform: rotate(-3.4deg);
    box-shadow: 0 4px 10px rgba(43, 42, 38, .1);
}
.cover__frame img {
    display: block;
    width: 100%;
    aspect-ratio: 1323 / 1032;
    object-fit: cover;
}
.cover__paw {
    position: absolute;
    left: 1.2rem; bottom: .55rem;
    width: 26px; height: 26px;
    color: var(--ink);
    opacity: .8;
}
.cover__frame .clip { top: -18px; right: 34px; }

/* скрепка */
.clip {
    position: absolute;
    z-index: 3;
    width: 15px; height: 48px;
    border: 2px solid #8C857A;
    border-radius: 8px;
    pointer-events: none;
}
.clip::after {
    content: "";
    position: absolute;
    left: 2px; right: 2px; top: 7px; bottom: 9px;
    border: 2px solid #8C857A;
    border-top: 0;
    border-radius: 0 0 6px 6px;
}

/* ---------- Разворот: четыре листа + записи ---------- */
.spread {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid var(--line);
    margin-bottom: 0;
}
.spread__cell {
    position: relative;
    min-width: 0;
    padding: clamp(2.2rem, 4vw, 3.4rem) 0;
    border-bottom: 1px solid var(--line);
}

/* План участка */
.plan { margin: 0; }
.plan__sheet, .cutaway__sheet { position: relative; }
.plan__sheet img, .cutaway__sheet img { display: block; width: 100%; height: auto; }
.plan__pin {
    position: absolute;
    left: var(--x); top: var(--y);
    display: grid;
    place-items: center;
    width: 1.75rem; height: 1.75rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--terra);
    color: var(--on-dark);
    font-family: var(--f-head);
    font-size: .9rem;
    line-height: 1;
    box-shadow: 0 0 0 3px rgba(242, 234, 219, .85);
}
.plan__marks {
    counter-reset: mark;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.6rem;
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
}
.plan__marks li {
    counter-increment: mark;
    position: relative;
    min-width: 0;
    padding-left: 2.3rem;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--muted);
}
.plan__marks li::before {
    content: counter(mark);
    position: absolute;
    left: 0; top: .1rem;
    display: grid;
    place-items: center;
    width: 1.6rem; height: 1.6rem;
    border: 1px solid var(--terra);
    border-radius: 50%;
    color: var(--terra);
    font-family: var(--f-head);
    font-size: .82rem;
}
.plan__marks strong {
    display: block;
    font-family: var(--f-hand);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--terra);
}

/* Каталог */
.lots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.6rem 1rem;
}
.lot {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: .7rem .75rem 1.1rem;
    background: var(--kraft-soft);
    border: 1px solid var(--hair);
    border-radius: 5px;
    box-shadow: 0 5px 12px rgba(43, 42, 38, .1);
    transition: transform .2s ease, box-shadow .2s ease;
}
.lot:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 10px 20px rgba(43, 42, 38, .16); }
.lot .clip { top: -14px; right: 16px; }
.lot__pic {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    margin-bottom: .8rem;
    padding: .4rem;
    background: var(--sheet);
    border-radius: 4px;
}
.lot__pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lot__title { margin: 0 0 .3rem; font-size: 1.12rem; font-weight: 500; color: var(--ink); }
.lot__text { margin: 0 0 .55rem; font-size: .86rem; line-height: 1.45; }
.lot__area {
    margin: 0 0 .55rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .9rem;
    color: var(--pine);
}
.lot__tags { margin: 0 0 1rem; padding: 0; list-style: none; font-size: .84rem; flex: 1; }
.lot__tags li { position: relative; padding-left: 1.5rem; margin-bottom: .2rem; }
.lot__tags li::before {
    content: "";
    position: absolute;
    left: 0; top: .2rem;
    width: 1rem; height: 1rem;
    background: var(--terra);
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}
.lot__tags .tag-paw { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='27' rx='9' ry='7.5'/%3E%3Cellipse cx='9' cy='17' rx='3.6' ry='4.6'/%3E%3Cellipse cx='16' cy='10.5' rx='3.6' ry='4.8'/%3E%3Cellipse cx='24' cy='10.5' rx='3.6' ry='4.8'/%3E%3Cellipse cx='31' cy='17' rx='3.6' ry='4.6'/%3E%3C/svg%3E"); }
.lot__tags .tag-leaf::before { background: var(--sage); }
.lot__tags .tag-leaf { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M6 34C6 16 16 6 35 5c0 19-10 29-27 29l12-14-14 14z'/%3E%3C/svg%3E"); }
.lot .hh-btn { align-self: flex-start; }

/* Записи — вклеенные листы */
.notes-board { position: relative; }
.deco { position: absolute; z-index: 0; pointer-events: none; display: block; }
.deco--retriever { right: 128px; top: .4rem; width: 112px; }
.deco--flowers { right: -1.4rem; top: -3.4rem; width: 118px; }
.deco--hin { right: 6%; bottom: 2.6rem; width: 132px; }
.deco--fern { left: -3.6rem; bottom: 0; width: 92px; opacity: .9; }

.cards { position: relative; z-index: 1; }
.cards--board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.6rem 2rem;
    align-items: start;
}
.cards--board .card:nth-child(1) { grid-column: 1; grid-row: 1; transform: rotate(-1.6deg); }
.cards--board .card:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; align-self: center; transform: rotate(1.8deg); }
.cards--board .card:nth-child(3) { grid-column: 1; grid-row: 2; transform: rotate(-.7deg); }
.cards--board .card:hover { transform: rotate(0) translateY(-4px); }

.cards--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 2.8rem 1.8rem;
}
.cards--grid .card:nth-child(odd) { transform: rotate(-.7deg); }
.cards--grid .card:nth-child(even) { transform: rotate(.8deg); }
.cards--grid .card:hover { transform: rotate(0) translateY(-4px); }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: .75rem .75rem 1.1rem;
    background: var(--sheet);
    border: 1px solid rgba(43, 42, 38, .35);
    border-bottom: 0;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card::after {
    content: "";
    position: absolute;
    left: -1px; right: -1px; bottom: -7px;
    height: 8px;
    background:
        linear-gradient(-45deg, transparent 5px, var(--sheet) 0) 0 0 / 10px 8px repeat-x,
        linear-gradient(45deg, transparent 5px, var(--sheet) 0) 0 0 / 10px 8px repeat-x;
}
.card:hover { box-shadow: 0 14px 26px rgba(43, 42, 38, .18); }
.card-tape {
    position: absolute;
    top: -13px; left: 50%;
    z-index: 2;
    width: 92px; height: 26px;
    margin-left: -46px;
    background: rgba(214, 190, 148, .82);
    box-shadow: 0 1px 2px rgba(43, 42, 38, .12);
    transform: rotate(-4deg);
}
.card:nth-child(even) .card-tape { transform: rotate(5deg); margin-left: -20px; }
.card-thumb {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--hair);
    background: #F5EFE2;
}
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .4s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: .9rem .2rem 0;
}
.card-title {
    margin: 0 0 .45rem;
    font-family: var(--f-head);
    font-size: 1.16rem;
    font-weight: 500;
    line-height: 1.25;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--terra); }
.card-excerpt { font-size: .9rem; line-height: 1.5; color: var(--ink); }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-top: auto;
    padding-top: .6rem;
}
.card-date { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.sticky .card-title::before { content: "★ "; color: var(--terra); }

.notes-board__more { position: relative; z-index: 1; margin: 2.4rem 0 0; }
.empty-note {
    position: relative;
    z-index: 1;
    padding: 1.4rem 1.6rem;
    background: var(--sheet);
    border: 1px dashed var(--line);
}

/* День с хином */
.spread__day { isolation: isolate; }
.spread__day::before {
    content: "";
    position: absolute;
    top: clamp(1.2rem, 2.6vw, 2rem); right: -.6rem;
    width: 42%; height: 62%;
    z-index: 0;
    background: var(--kraft);
    border: 1px solid var(--hair);
    transform: rotate(4deg);
    box-shadow: 0 4px 12px rgba(43, 42, 38, .14);
}
.day {
    position: relative;
    z-index: 1;
    padding: 2.2rem 2.2rem 2rem;
    background: var(--pine);
    color: var(--on-dark);
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(31, 58, 46, .3);
}
.day .clip { top: -20px; right: 2.4rem; border-color: #B9B1A2; }
.day .clip::after { border-color: #B9B1A2; }
.day__scene { display: block; width: 100%; height: auto; margin: -.4rem 0 .4rem; }
.day__scale {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .6rem;
    margin: .6rem 0 1.2rem;
    padding: 0;
    list-style: none;
    text-align: center;
}
.day__scale::before {
    content: "";
    position: absolute;
    left: 10%; right: 10%; top: 6px;
    height: 1px;
    background: rgba(242, 234, 219, .7);
}
.day__scale li { position: relative; min-width: 0; padding-top: 1.3rem; }
.day__scale li::before {
    content: "";
    position: absolute;
    left: 50%; top: 0;
    width: 13px; height: 13px;
    margin-left: -6.5px;
    border-radius: 50%;
    background: var(--pine);
    border: 2px solid var(--on-dark);
}
.day__time { display: block; font-family: var(--f-head); font-size: .82rem; letter-spacing: .06em; color: var(--sage); }
.day__name { display: block; font-family: var(--f-hand); font-size: 1.3rem; font-weight: 500; line-height: 1.1; color: var(--on-dark); }
.day__line { margin: 0; font-size: .92rem; color: rgba(242, 234, 219, .88); }

/* Разрез дома */
.cutaway { position: relative; margin: 0; }
.cutaway__flower { position: absolute; right: -1.2rem; top: -1.6rem; width: 78px; pointer-events: none; z-index: 1; }
.callouts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
    margin: 1.3rem 0 0;
    padding: 0;
    list-style: none;
}
.callouts li {
    position: relative;
    min-width: 0;
    padding: .75rem .9rem .75rem 2.9rem;
    background: var(--sheet);
    border: 1px solid var(--line);
    font-size: .88rem;
    line-height: 1.45;
}
.callouts li::before {
    content: "";
    position: absolute;
    left: 2.2rem; top: -1px; bottom: -1px;
    width: 1px;
    background: var(--terra);
}
.callouts span {
    position: absolute;
    left: .55rem; top: .7rem;
    font-family: var(--f-head);
    font-size: 1.05rem;
    color: var(--terra);
}

/* ---------- Внутренние страницы ---------- */
.inner { padding: 1.6rem 0 4rem; }
.breadcrumbs {
    margin: 0 0 1.8rem;
    font-size: .88rem;
    color: var(--muted);
}
.breadcrumbs a { color: var(--ink); }
.breadcrumbs .sep { margin: 0 .3rem; color: var(--terra); }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

.page-head { margin-bottom: 2.4rem; }
.page-head__title {
    margin: .2rem 0 .8rem;
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.05;
}
.page-head__intro { color: var(--muted); max-width: 46rem; }

.sheet {
    position: relative;
    padding: clamp(1.6rem, 4vw, 3rem) clamp(1.3rem, 4vw, 3rem);
    background: var(--sheet);
    border: 1px solid rgba(43, 42, 38, .3);
    box-shadow: var(--shadow);
}
.sheet__tape {
    position: absolute;
    top: -14px; left: 2.4rem;
    width: 110px; height: 28px;
    background: rgba(214, 190, 148, .82);
    transform: rotate(-3deg);
}
.sheet__head { margin-bottom: 1.6rem; }
.sheet__title { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; margin: .2rem 0 .6rem; }
.sheet__meta { margin: 0; font-size: .86rem; color: var(--muted); }
.sheet__photo { margin: 0 0 1.8rem; border: 1px solid var(--hair); padding: .6rem; background: #F2EAD9; }
.sheet__photo img { display: block; width: 100%; height: auto; }
.sheet__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.sheet__tags a {
    display: inline-block;
    padding: .15rem .7rem;
    border: 1px solid var(--line);
    font-size: .85rem;
    text-decoration: none;
    color: var(--ink);
    background: var(--kraft-soft);
}
.sheet__tags a:hover { background: var(--terra); color: var(--on-dark); }

/* Текст записи */
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { font-size: 1.8rem; margin: 2rem 0 .8rem; }
.entry-content h3 { font-size: 1.4rem; margin: 1.7rem 0 .7rem; }
.entry-content h4 { font-size: 1.15rem; margin: 1.4rem 0 .6rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--terra); }
.entry-content ol li::marker { color: var(--terra); font-family: var(--f-head); }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.6rem 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.2rem 1.5rem 1.2rem 1.7rem;
    background: var(--kraft-soft);
    border-left: 3px solid var(--terra);
    font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; margin: 1.6rem 0; border-collapse: collapse; border: 1px solid var(--ink); font-size: .92rem; }
.entry-content th, .entry-content td { padding: .55rem .75rem; border: 1px solid var(--ink); text-align: left; vertical-align: top; }
.entry-content th { background: var(--pine); color: var(--on-dark); font-family: var(--f-head); font-weight: 500; }
.entry-content tr:nth-child(even) td { background: rgba(220, 198, 160, .25); }
.entry-content pre { overflow-x: auto; padding: 1rem; background: #EDE4D2; border: 1px solid var(--hair); }
.entry-content hr { border: 0; border-top: 1px dashed var(--line); margin: 2rem 0; }
.page-links { margin-top: 1.4rem; font-family: var(--f-head); }

.post-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 2.4rem 0;
}
.post-steps a {
    display: block;
    padding: 1rem 1.2rem;
    background: var(--side);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-family: var(--f-head);
    font-weight: 500;
    line-height: 1.3;
}
.post-steps a span { display: block; font-family: var(--f-hand); font-size: 1.2rem; color: var(--terra); }
.post-steps a:hover { background: var(--kraft-soft); }
.post-steps__next { grid-column: 2; text-align: right; }

/* Сайдбар */
.sidebar {
    min-width: 0;
    padding: 1.6rem 1.5rem;
    background: var(--side);
    border: 1px solid var(--line);
    color: var(--ink);
    box-shadow: 4px 4px 0 rgba(43, 42, 38, .12);
}
.sidebar .widget + .widget { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px dashed var(--line); }
.sidebar .widget-title { margin: 0 0 .8rem; font-family: var(--f-hand); font-size: 1.8rem; color: var(--ink); }
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li { padding: .45rem 0; border-bottom: 1px solid var(--hair); font-size: .92rem; line-height: 1.4; color: var(--ink); }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--terra); text-decoration: underline wavy var(--terra) 1px; }
.sidebar .post-date { display: block; font-size: .78rem; color: var(--muted); }

/* Пагинация (type => plain) */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 3rem;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 2.4rem;
    padding: .38rem .8rem;
    border: 1px solid var(--ink);
    background: var(--sheet);
    color: var(--ink);
    font-family: var(--f-head);
    text-align: center;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.pager a.page-numbers:hover { background: var(--terra); border-color: var(--terra); color: var(--on-dark); }
.pager .page-numbers.current { background: var(--pine); border-color: var(--pine); color: var(--on-dark); }
.pager .page-numbers.dots { border: 0; background: none; min-width: 0; padding-inline: .2rem; }

/* Поиск */
.search-form { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.2rem 0; }
.search-form__field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .65rem .9rem;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--sheet);
    color: var(--ink);
    font: inherit;
}
.search-form__btn { border-radius: 0; }

/* 404 */
.lost { text-align: left; }
.lost__code {
    margin: 0;
    font-family: var(--f-head);
    font-size: clamp(4rem, 12vw, 7rem);
    line-height: 1;
    color: var(--terra);
}

/* Комментарии */
.comments { margin-top: 2.4rem; }
.comments__title, .comment-reply-title { font-family: var(--f-hand); font-size: 2rem; color: var(--ink); }
.comments__list, .comments__list .children { margin: 0; padding: 0; list-style: none; }
.comments__list .children { margin-left: clamp(1rem, 4vw, 2.6rem); }
.note-comment__body {
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    background: var(--sheet);
    border: 1px solid var(--hair);
}
.note-comment__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: .5rem; font-size: .86rem; }
.note-comment__meta img { border-radius: 50%; display: block; }
.note-comment__author { font-family: var(--f-head); font-weight: 500; }
.note-comment__meta time { color: var(--muted); }
.note-comment__wait { font-style: italic; color: var(--terra); }
.note-comment__reply a { font-family: var(--f-hand); font-size: 1.2rem; font-weight: 700; }
.comment-respond {
    margin-top: 1.6rem;
    padding: 1.6rem 1.6rem;
    background: var(--side);
    border: 1px solid var(--line);
}
.comment-respond label { display: block; font-size: .88rem; margin-bottom: .3rem; }
.comment-form-cookies-consent label { display: inline; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: .6rem .8rem;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--sheet);
    font: inherit;
    color: var(--ink);
}
.comment-respond .required { color: var(--terra); }
.comments__closed { color: var(--muted); }

/* ---------- Подвал ---------- */
.colophon {
    margin-top: 0;
    padding: 3.2rem 0 1.6rem;
    background: var(--pine);
    color: var(--on-dark);
}
.colophon__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.colophon__col { min-width: 0; }
.colophon .widget { color: var(--on-dark); font-size: .95rem; line-height: 1.6; }
.colophon .widget + .widget { margin-top: 1.6rem; }
.colophon .widget-title {
    margin: 0 0 .7rem;
    font-family: var(--f-hand);
    font-size: 2rem;
    font-weight: 500;
    color: var(--sand);
}
.colophon .widget p { color: var(--on-dark); }
.colophon .widget ul { margin: 0; padding: 0; list-style: none; }
.colophon .widget li { margin-bottom: .35rem; color: var(--on-dark); }
.colophon .widget a { color: var(--on-dark); text-decoration: none; }
.colophon .widget p a { text-decoration: underline wavy var(--terra) 1px; text-underline-offset: 4px; }
.colophon .widget a:hover { color: var(--sand); text-decoration: underline wavy var(--terra) 1px; }
.colophon .widget .post-date { color: rgba(242, 234, 219, .7); }
.colophon__copy {
    margin: 2.6rem 0 0;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(242, 234, 219, .2);
    font-size: .86rem;
    text-align: center;
    color: rgba(242, 234, 219, .85);
}

/* ---------- 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: 760px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    background: var(--pine);
    color: var(--on-dark);
    border: 1px solid rgba(242, 234, 219, .35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.cookie-banner__text { flex: 1 1 280px; margin: 0; font-size: .9rem; line-height: 1.5; color: var(--on-dark); }
.cookie-banner .hh-btn--solid { background: var(--terra); border-color: var(--terra); }
.cookie-banner .hh-btn--solid::after { border-color: var(--terra); }
.cookie-banner .hh-btn--solid:hover { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.cookie-banner .hh-btn--solid:hover::after { border-color: var(--sand); }

/* ---------- Адаптив ---------- */
@media (min-width: 961px) {
    .spread {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "plan catalog"
            "notes day"
            "notes cutaway";
    }
    .spread__plan { grid-area: plan; padding-right: 2.6rem; }
    .spread__catalog { grid-area: catalog; padding-left: 2.6rem; border-left: 1px solid var(--line); }
    .spread__notes { grid-area: notes; padding-right: 2.6rem; }
    .spread__day { grid-area: day; padding-left: 2.6rem; border-left: 1px solid var(--line); border-bottom: 0; }
    .spread__cutaway { grid-area: cutaway; padding-left: 2.6rem; border-left: 1px solid var(--line); }
}

@media (max-width: 960px) {
    .masthead__row { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; flex-basis: 100%; }
    .site-nav.is-open { display: block; }
    .site-nav .nav-list { flex-direction: column; gap: 0; padding: .6rem 0 .4rem; border-top: 1px solid rgba(242, 234, 219, .25); }
    .site-nav a { padding: .5rem 0; }
    .brand__desc { max-width: 28rem; }

    .cover__grid { grid-template-columns: minmax(0, 1fr); }
    .cover__photo { max-width: 620px; justify-self: center; width: 100%; }
    .cover__fern { left: -1rem; }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; }
    .layout-single .content-area { width: 100%; }
    .deco--fern { left: -2.2rem; }
    .spread__day::before { right: 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .front .shell { width: min(92%, 1240px); }
    .masthead__row { padding: 1.1rem 0; }
    .brand { gap: .8rem; }
    .brand-logo { width: 58px; }
    .brand__name { font-size: 1.02rem; }
    .brand__desc { display: none; }

    .cover__text { padding-left: 1rem; }
    .cover__text::after { right: 0; left: -.6rem; }
    .cover__photo { padding: 1rem .4rem 1.6rem 1rem; }
    .cover__fern { width: 64px; left: -.6rem; }

    .plan__marks, .callouts { grid-template-columns: minmax(0, 1fr); }
    .plan__pin { width: 1.4rem; height: 1.4rem; font-size: .75rem; }

    .cards--board { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .cards--board .card:nth-child(1),
    .cards--board .card:nth-child(2),
    .cards--board .card:nth-child(3) { grid-column: 1; grid-row: auto; align-self: auto; }
    .deco--retriever, .deco--flowers, .deco--fern { display: none; }
    .notes-board { display: flex; flex-direction: column; }
    .notes-board .cards { order: 1; }
    .deco--hin { order: 2; position: static; width: 110px; margin: 1.6rem auto 0; }
    .notes-board__more, .notes-board .empty-note { order: 3; }

    .day { padding: 1.8rem 1.3rem 1.6rem; }
    .day__scale { grid-template-columns: minmax(0, 1fr); gap: .9rem; text-align: left; padding-left: 1.8rem; }
    .day__scale::before { left: 6px; right: auto; top: .3rem; bottom: .3rem; width: 1px; height: auto; }
    .day__scale li { padding-top: 0; }
    .day__scale li::before { left: -1.8rem; top: .35rem; margin-left: 0; }
    .spread__day::before { width: 60%; height: 40%; }
    .cutaway__flower { display: none; }

    .colophon__cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .post-steps { grid-template-columns: minmax(0, 1fr); }
    .post-steps__next { grid-column: 1; }
    .sheet { padding: 1.6rem 1.2rem; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .comment-respond { padding: 1.3rem 1.1rem; }
    .cookie-banner { padding: 1rem 1.1rem; left: .6rem; right: .6rem; bottom: .6rem; }
}
