/*
Theme Name: dds_splendipityhammocks.com
Theme URI: https://splendipityhammocks.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: splhm
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Oswald"; font-weight: 500; font-style: normal; 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-weight: 500; font-style: normal; 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-weight: 700; font-style: normal; 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-weight: 700; font-style: normal; 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: "Caveat"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/caveat-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: "Caveat"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/caveat-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: "Caveat"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/caveat-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: "Caveat"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/caveat-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+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-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: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-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: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-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: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-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: "PT Serif"; font-weight: 400; font-style: normal; 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-weight: 400; font-style: normal; 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-weight: 400; font-style: italic; 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-weight: 400; font-style: italic; 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-weight: 700; font-style: normal; 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-weight: 700; font-style: normal; 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; }

/* ---------- Переменные ---------- */
:root {
    --paper: #E8EEF0;
    --grid: #B9CBD1;
    --ink: #1B3A4B;
    --ink-grid: #2F5566;
    --moss: #3E5B3A;
    --moss-grid: #4F6E4A;
    --ochre: #B08A3E;
    --cream: #F2EAD8;
    --sage: #7D8C86;
    --sheet: #F7F2E6;
    --tape: rgba(232, 221, 186, 0.82);
    --tape-edge: rgba(190, 172, 125, 0.45);
    --stain: rgba(206, 178, 104, 0.16);
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
    --f-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    --f-mono: "IBM Plex Mono", "Courier New", monospace;
    --f-text: "PT Serif", Georgia, "Times New Roman", serif;
}

/* ---------- Скрытие через 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: 1.0625rem;
    line-height: 1.65;
    background-color: var(--paper);
    background-image:
        radial-gradient(ellipse 260px 180px at 8% 22%, var(--stain), transparent 70%),
        radial-gradient(circle 70px at 91% 58%, transparent 52px, rgba(176, 138, 62, 0.13) 56px, transparent 62px),
        linear-gradient(rgba(27, 58, 75, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 58, 75, 0.1) 1px, transparent 1px),
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 100% 1400px, 100% 1400px, 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: 0 0, 0 0, -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    overflow-wrap: break-word;
    hyphens: auto;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ink); text-decoration: underline wavy var(--ochre); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--moss); text-decoration-color: var(--moss); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px dashed var(--ochre); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 1.4em 0 .55em; line-height: 1.15; color: var(--ink); font-family: var(--f-head); font-weight: 700; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1.5px solid var(--ink); background: rgba(247, 242, 230, 0.55); }
th, td { border: 1px solid var(--ink); padding: .55em .75em; text-align: left; vertical-align: top; }
th { font-family: var(--f-mono); font-size: .88rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; background: rgba(185, 203, 209, 0.45); }
blockquote { margin: 1.6em 0; padding: 1.1em 1.4em 1.1em 1.6em; border-left: 4px solid var(--ochre); background: rgba(247, 242, 230, 0.75); font-family: var(--f-hand); font-size: 1.55rem; line-height: 1.3; }
blockquote p:last-child { margin-bottom: 0; }
hr { border: 0; height: 2px; margin: 2em 0; background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 16px); }
code, pre, kbd { font-family: var(--f-mono); font-size: .9em; }
pre { overflow-x: auto; padding: 1em; border: 1.5px solid var(--ink); background: var(--sheet); }
figure { margin: 0; }
.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: -9999px; top: 0; z-index: 100; padding: .6em 1em; background: var(--ink); color: var(--cream); font-family: var(--f-mono); }
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---------- Кнопки ---------- */
.btn-plate,
input[type="submit"],
.comment-form .submit {
    display: inline-block;
    padding: .62em 1.25em;
    border: 2.5px solid var(--ink);
    border-radius: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .03em;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform .15s, box-shadow .15s, background-color .15s, color .15s;
}
.btn-plate:hover,
input[type="submit"]:hover,
.comment-form .submit:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); background: var(--ink); color: var(--cream); }
.btn-plate:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-plate-small { padding: .45em .9em; font-size: .82rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-plate-light { background: transparent; border-color: var(--cream); color: var(--cream); box-shadow: 4px 4px 0 var(--ochre); }
.btn-plate-light:hover { background: var(--cream); color: var(--ink); box-shadow: 2px 2px 0 var(--ochre); }

/* ---------- Шапка ---------- */
.masthead { padding: 2rem 0 1.2rem; }
.masthead-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; }
.brand { display: flex; align-items: center; justify-content: center; gap: 1rem 1.3rem; min-width: 0; max-width: 900px; }
.brand-mark { flex: 0 0 auto; color: var(--ink); text-decoration: none; }
.brand-svg { display: block; width: 104px; height: auto; }
.brand-logo { max-height: 90px; width: auto; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(1.05rem, 2.1vw, 1.45rem);
    line-height: 1.2;
    letter-spacing: .015em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
}
.brand-name { hyphens: manual; }
.brand-name:hover { color: var(--moss); }
.brand-tagline { margin: .45rem 0 0; font-family: var(--f-mono); font-size: .8rem; line-height: 1.5; color: var(--moss); max-width: 72ch; }
.nav-toggle { display: none; }
.site-nav { flex: 1 0 100%; }
.nav-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 2.4rem; margin: .6rem 0 0; padding: .55rem 0 0; list-style: none; border-top: 1.5px solid var(--ink); }
.nav-list li { position: relative; }
.nav-list a {
    display: inline-block;
    padding: .1em .15em;
    font-family: var(--f-hand);
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    text-decoration: none;
    background: linear-gradient(var(--ochre), var(--ochre)) no-repeat 0 92% / 0 3px;
    transition: background-size .25s, color .2s;
}
.nav-list a:hover, .nav-list .current-menu-item > a { background-size: 100% 3px; color: var(--moss); }
.nav-list .sub-menu { display: none; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 220px; margin: 0; padding: .5rem 1rem; list-style: none; background: var(--sheet); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }
.nav-list .sub-menu a { font-size: 1.4rem; }

/* ---------- Главная: общие ---------- */
.front .shell { width: min(85%, 1240px); }
.fs { position: relative; padding: 4.5rem 0; }
.fs-title {
    margin: 0 0 1.6rem;
    font-family: var(--f-hand);
    font-weight: 600;
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: 0;
    color: var(--ink);
}
.fs-title-light { color: var(--cream); text-align: center; }
.fs-lead { max-width: 60ch; margin: -.6rem 0 2rem; font-family: var(--f-hand); font-size: 1.5rem; line-height: 1.3; color: var(--moss); }
.fs-more { margin: 3rem 0 0; text-align: center; }
.empty-note { font-family: var(--f-hand); font-size: 1.6rem; color: var(--moss); }
.empty-note-light { color: var(--cream); text-align: center; }

/* Скотч */
.taped { position: relative; }
.taped::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    width: 92px;
    height: 30px;
    margin-left: -46px;
    background: var(--tape);
    border-left: 1px dashed var(--tape-edge);
    border-right: 1px dashed var(--tape-edge);
    transform: rotate(-3deg);
    z-index: 2;
}

/* ---------- Блок 1: план участка ---------- */
.fs-plan { padding-top: 2.5rem; }
.plan-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "plan" "snap" "notes";
    gap: 2.2rem;
}
.plan-sheet { grid-area: plan; align-self: start; position: relative; min-width: 0; padding: 1rem; border: 1.5px dashed rgba(27, 58, 75, 0.45); }
.plan-canvas { position: relative; }
.plan-drawing { width: 100%; height: auto; }
.plan-pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    padding: .05em .55em .1em;
    background: rgba(242, 234, 216, 0.92);
    border: 1.5px solid var(--ink);
    font-family: var(--f-hand);
    font-size: clamp(.95rem, 1.9vw, 1.45rem);
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    color: var(--moss);
}
.plan-pin::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .4em; vertical-align: middle; background: var(--ochre); border-radius: 50%; }
.plan-caption { margin-top: .7rem; font-family: var(--f-mono); font-size: .78rem; color: var(--sage); }
.plan-notes { grid-area: notes; min-width: 0; }
.plan-note { margin-bottom: 1.6rem; }
.plan-note h3.oval {
    display: inline-block;
    margin: 0 0 .5rem -.4rem;
    padding: .2em .9em .3em;
    font-family: var(--f-hand);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 52% 48% 55% 45% / 60% 50% 50% 40%;
    transform: rotate(-1.5deg);
}
.plan-note:nth-child(2) h3.oval { transform: rotate(1deg); border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; }
.plan-note p { margin: 0; font-family: var(--f-hand); font-size: 1.4rem; line-height: 1.3; }
.plan-snap {
    grid-area: snap;
    justify-self: center;
    width: min(320px, 80%);
    padding: 12px 12px 34px;
    background: var(--sheet);
    box-shadow: 2px 6px 14px rgba(27, 58, 75, 0.22);
    transform: rotate(3deg);
    position: relative;
}
.plan-snap::before { content: ""; position: absolute; top: -14px; left: 50%; width: 100px; height: 30px; margin-left: -50px; background: var(--tape); border-left: 1px dashed var(--tape-edge); border-right: 1px dashed var(--tape-edge); transform: rotate(2deg); }
.plan-snap img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- Блок 2: материалы ---------- */
.fs-materials { padding-top: 2rem; }
.mat-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.8rem; }
.mat-head .fs-title { margin-bottom: 1.2rem; }
.mat-knot { width: 110px; height: auto; color: var(--moss); transform: rotate(-6deg); }
.mat-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.mat-item { position: relative; display: flex; flex-direction: column; min-width: 0; }
.mat-item img { order: -1; width: 100%; aspect-ratio: 6 / 5; object-fit: cover; box-shadow: 0 6px 12px rgba(27, 58, 75, 0.25); }
.mat-item::before { content: ""; position: absolute; top: -12px; left: 50%; width: 64%; height: 26px; transform: translateX(-50%) rotate(-2deg); background: var(--tape); border-left: 1px dashed var(--tape-edge); border-right: 1px dashed var(--tape-edge); z-index: 1; }
.mat-item:nth-child(even)::before { transform: translateX(-50%) rotate(2.5deg); }
.mat-name { margin-top: .8rem; font-family: var(--f-hand); font-size: 2rem; font-weight: 600; line-height: 1.05; text-align: center; }
.mat-use { margin-top: .35rem; font-family: var(--f-mono); font-size: .8rem; line-height: 1.45; text-align: center; color: var(--moss); }

/* ---------- Блок записей ---------- */
.fs-latest,
.fs-evening {
    color: var(--cream);
    background-color: var(--ink);
    background-image:
        linear-gradient(rgba(242, 234, 216, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242, 234, 216, 0.06) 1px, transparent 1px),
        linear-gradient(var(--ink-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--ink-grid) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px;
}
.fs-latest a:not(.btn-plate), .fs-evening a:not(.btn-plate) { color: var(--cream); }

/* ---------- Карточки ---------- */
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem 2rem; }
.card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 18px 8px 8px; }
.card-thumb {
    position: relative;
    padding: 12px 12px 30px;
    background: var(--sheet);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    transform: rotate(-2deg);
    transition: transform .25s;
}
.card-thumb::before { content: ""; position: absolute; top: -13px; left: 50%; width: 96px; height: 28px; margin-left: -48px; background: var(--tape); border-left: 1px dashed var(--tape-edge); border-right: 1px dashed var(--tape-edge); transform: rotate(3deg); z-index: 1; }
.card:nth-child(3n+2) .card-thumb { transform: rotate(1.5deg); }
.card:nth-child(3n) .card-thumb { transform: rotate(2.6deg); }
.card:hover .card-thumb { transform: rotate(0deg) translateY(-4px); }
.card-thumb a { display: block; text-decoration: none; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 1.2rem .4rem 0; text-align: center; }
.card-flag { align-self: center; margin-bottom: .4rem; padding: .1em .6em; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--paper); background: var(--ochre); }
.card-title { margin: 0 0 .5rem; font-family: var(--f-hand); font-size: 1.85rem; font-weight: 600; line-height: 1.08; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { text-decoration: underline wavy var(--ochre); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.card-excerpt { font-family: var(--f-hand); font-size: 1.32rem; line-height: 1.25; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot { margin-top: auto; padding-top: .8rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .7rem 1.1rem; }
.card-date { font-family: var(--f-mono); font-size: .8rem; color: var(--ochre); letter-spacing: .04em; }
.fs-latest .card-body, .fs-latest .card-title { color: var(--cream); }
.fs-latest .card-date { color: #D3B470; }
.fs-latest .card .btn-plate { background: transparent; border-color: var(--cream); color: var(--cream); box-shadow: 3px 3px 0 var(--ochre); }
.fs-latest .card .btn-plate:hover { background: var(--cream); color: var(--ink); box-shadow: 1px 1px 0 var(--ochre); }

/* ---------- Блок 3: календарь ---------- */
.fs-calendar { background-image: radial-gradient(ellipse 320px 200px at 88% 18%, var(--stain), transparent 70%); }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
.cal-sheet { position: relative; min-width: 0; }
.cal-table { margin: 0; border: 2px solid var(--ink); background: rgba(232, 238, 240, 0.65); min-width: 520px; }
.cal-table th, .cal-table td { border: 1.5px solid var(--ink); padding: .6rem .8rem; vertical-align: middle; }
.cal-table thead th { background: rgba(185, 203, 209, 0.5); }
.cal-table tbody th { font-family: var(--f-mono); font-size: .86rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--ochre); background: transparent; white-space: nowrap; }
.cal-table td { font-family: var(--f-hand); font-size: 1.38rem; line-height: 1.2; }
.cal-table td:nth-child(2) { font-weight: 600; white-space: nowrap; }
.cal-ico { display: inline-block; width: 30px; height: 30px; margin-right: .45rem; vertical-align: -8px; }
.cal-ico svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cal-check { width: 52px; text-align: center; }
.cal-check svg { width: 28px; height: 28px; fill: none; stroke: var(--moss); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cal-check-open svg { stroke: var(--sage); stroke-width: 2; }
.cal-note { margin: .9rem 0 0; font-family: var(--f-mono); font-size: .8rem; color: var(--sage); }
.cal-photo {
    position: relative;
    justify-self: center;
    width: min(460px, 92%);
    padding: 14px 14px 40px;
    background: var(--sheet);
    box-shadow: 3px 8px 18px rgba(27, 58, 75, 0.25);
    transform: rotate(-2.5deg);
}
.cal-photo img { width: 100%; aspect-ratio: 828 / 712; object-fit: cover; }
.cal-photo::before,
.cal-photo::after { content: ""; position: absolute; width: 120px; height: 34px; background: var(--tape); border-left: 1px dashed var(--tape-edge); border-right: 1px dashed var(--tape-edge); z-index: 1; }
.cal-photo::before { top: 8px; right: -34px; transform: rotate(40deg); }
.cal-photo::after { bottom: 22px; left: -36px; transform: rotate(40deg); }

/* ---------- Блок 4: вечерний уголок ---------- */
.eve-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.6rem; align-items: center; }
.eve-drawings { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; min-width: 0; }
.eve-fig { position: relative; min-width: 0; padding: 1rem 1rem 2.2rem; border: 1.5px dashed rgba(242, 234, 216, 0.4); }
.eve-canvas { position: relative; }
.eve-fig img { width: 100%; height: auto; }
.eve-fig figcaption { position: absolute; left: 1rem; bottom: .6rem; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: #C9D3D0; }
.eve-pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    padding: .05em .55em;
    background: var(--ink);
    border: 1.5px solid var(--ochre);
    font-family: var(--f-hand);
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    color: var(--cream);
}
.eve-rules { margin: 0; padding: 0; list-style: none; }
.eve-rules li { position: relative; margin-bottom: 1.7rem; padding-left: 2.4rem; }
.eve-rules li::before,
.eve-rules li::after { content: ""; position: absolute; left: 2px; top: 1rem; width: 22px; height: 3px; background: var(--ochre); }
.eve-rules li::before { transform: rotate(45deg); }
.eve-rules li::after { transform: rotate(-45deg); }
.eve-rules strong { display: block; font-family: var(--f-hand); font-size: 2rem; font-weight: 600; line-height: 1.1; color: var(--cream); }
.eve-rules span { display: block; margin-top: .3rem; font-family: var(--f-mono); font-size: .84rem; line-height: 1.55; color: #D6DDDA; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 1.4rem 0 4rem; }
.crumbs { margin: 0 0 1.6rem; padding: .5rem 0; font-family: var(--f-mono); font-size: .8rem; color: var(--sage); border-bottom: 1.5px solid var(--ink); }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline wavy var(--ochre); text-decoration-thickness: 1px; }
.crumbs-sep { margin: 0 .35em; color: var(--ochre); }
.crumbs-current { color: var(--moss); }
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 2.2rem; }
.page-title { margin: 0 0 .6rem; font-family: var(--f-head); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; }
.page-intro { font-size: 1.05rem; color: var(--moss); }
.layout-with-sidebar .card-grid,
.layout-single .card-grid { grid-template-columns: minmax(0, 1fr); }
.entry-sheet { position: relative; padding: 2rem 1.4rem; background: rgba(247, 242, 230, 0.92); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 rgba(27, 58, 75, 0.85); }
.entry-sheet::before { content: ""; position: absolute; top: -14px; left: 2.2rem; width: 110px; height: 30px; background: var(--tape); border-left: 1px dashed var(--tape-edge); border-right: 1px dashed var(--tape-edge); transform: rotate(-3deg); }
.entry-head { margin-bottom: 1.4rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0; font-family: var(--f-mono); font-size: .82rem; color: var(--ochre); }
.entry-cat a { color: var(--moss); }
.entry-photo { margin: 0 0 1.8rem; padding: 10px 10px 26px; background: #FFFDF7; box-shadow: 0 6px 14px rgba(27, 58, 75, 0.2); transform: rotate(-.6deg); }
.entry-photo img { width: 100%; height: auto; }
.entry { min-width: 0; }
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); padding-bottom: .2em; border-bottom: 1.5px dashed rgba(27, 58, 75, 0.45); }
.entry h3 { font-size: 1.3rem; color: var(--moss); }
.entry ul { list-style: none; padding-left: 1.6em; }
.entry ul li { position: relative; margin-bottom: .4em; }
.entry ul li::before { content: ""; position: absolute; left: -1.25em; top: .62em; width: 9px; height: 9px; border: 2px solid var(--ochre); transform: rotate(45deg); }
.entry ol li { margin-bottom: .4em; }
.entry ol li::marker { font-family: var(--f-mono); color: var(--ochre); }
.entry img { height: auto; }
.entry figure { margin: 1.6em 0; }
.entry figcaption, .wp-caption-text { font-family: var(--f-mono); font-size: .8rem; color: var(--sage); margin-top: .5em; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.entry-tags { margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--f-mono); font-size: .82rem; }
.entry-tags a { padding: .25em .7em; border: 1.5px solid var(--ink); text-decoration: none; }
.entry-tags a:hover { background: var(--ink); color: var(--cream); }
.entry-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 2.4rem 0 0; }
.entry-nav-link { display: block; padding: 1rem 1.2rem; border: 2px solid var(--ink); background: rgba(247, 242, 230, 0.7); font-family: var(--f-hand); font-size: 1.4rem; line-height: 1.2; text-decoration: none; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.entry-nav-link span { display: block; margin-bottom: .2rem; font-family: var(--f-mono); font-size: .76rem; color: var(--ochre); }
.entry-nav-link:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.entry-nav-next { text-align: right; }

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; }
.sidebar .widget { position: relative; margin-bottom: 2.2rem; padding: 1.6rem 1.4rem 1.3rem; background: var(--cream); border: 1.5px solid var(--ink); color: var(--ink); box-shadow: 5px 5px 0 var(--moss); }
.sidebar .widget::before { content: ""; position: absolute; top: -12px; right: 1.6rem; width: 80px; height: 26px; background: var(--tape); border-left: 1px dashed var(--tape-edge); border-right: 1px dashed var(--tape-edge); transform: rotate(4deg); }
.sidebar .widget-title { margin: 0 0 .9rem; font-family: var(--f-hand); font-size: 1.9rem; font-weight: 600; line-height: 1.05; color: var(--ink); }
.sidebar .widget ul { margin: 0; padding: 0; list-style: none; }
.sidebar .widget li { padding: .55rem 0; border-bottom: 1px dashed rgba(27, 58, 75, 0.35); font-size: .98rem; line-height: 1.4; color: var(--ink); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); text-decoration: none; }
.sidebar .widget a:hover { color: var(--moss); text-decoration: underline wavy var(--ochre); text-decoration-thickness: 1px; }
.sidebar .widget .post-date { display: block; font-family: var(--f-mono); font-size: .76rem; color: #6E6A5F; }
.sidebar .widget p { color: var(--ink); }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .55rem; margin: 3rem 0 0; font-family: var(--f-mono); font-size: .9rem; }
.pager .page-numbers,
.pager > a,
.pager > span:not(.screen-reader-text) { display: inline-block; min-width: 2.6em; padding: .45em .7em; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); text-align: center; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.pager a.page-numbers:hover,
.pager > a:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); background: var(--cream); }
.pager .page-numbers.current,
.pager > span.current { background: var(--ink); color: var(--cream); box-shadow: 3px 3px 0 var(--ochre); }
.pager .page-numbers.dots { border: 0; background: none; box-shadow: none; min-width: 0; }

/* ---------- Поиск ---------- */
.seek { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0 1.5rem; }
.seek-field { flex: 1 1 220px; min-width: 0; padding: .65em .9em; border: 2px solid var(--ink); border-radius: 0; background: #FBF8F0; color: var(--ink); font-family: var(--f-mono); font-size: .92rem; }
.seek-field::placeholder { color: var(--sage); }
.empty-block { padding: 1.4rem; border: 1.5px dashed var(--ink); }

/* ---------- 404 ---------- */
.lost { max-width: 640px; margin: 1rem auto 0; padding: 2.5rem 1.6rem; text-align: center; background: rgba(247, 242, 230, 0.9); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.lost-code { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.lost-text { font-family: var(--f-hand); font-size: 1.5rem; line-height: 1.3; }
.lost .seek { justify-content: center; }

/* ---------- Комментарии ---------- */
.remarks { margin-top: 3rem; padding: 1.8rem 1.4rem; background: rgba(247, 242, 230, 0.85); border: 1.5px solid var(--ink); }
.remarks-title { margin: 0 0 1.2rem; font-family: var(--f-hand); font-size: 2.1rem; font-weight: 600; }
.remark-list, .remark-list .children { margin: 0; padding: 0; list-style: none; }
.remark-list .children { margin-left: 1.4rem; padding-left: 1rem; border-left: 2px dashed var(--grid); }
.remark-body { margin-bottom: 1.2rem; padding: 1rem 1.1rem; background: #FBF8F0; border: 1px solid var(--ink); }
.remark-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-bottom: .5rem; }
.remark-head img { border-radius: 0; border: 1.5px solid var(--ink); }
.remark-author { font-weight: 700; }
.remark-date { font-family: var(--f-mono); font-size: .76rem; color: var(--ochre); }
.remark-wait { font-family: var(--f-mono); font-size: .8rem; color: var(--moss); }
.remark-reply a { font-family: var(--f-mono); font-size: .8rem; }
.remarks-closed { font-family: var(--f-mono); color: var(--sage); }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { font-family: var(--f-hand); font-size: 1.9rem; font-weight: 600; margin: 0 0 .7rem; }
.comment-reply-title small { margin-left: .6rem; font-family: var(--f-mono); font-size: .8rem; }
.comment-notes, .logged-in-as, .must-log-in { font-family: var(--f-mono); font-size: .8rem; color: var(--sage); }
.comment-form label { display: block; margin-bottom: .3rem; font-family: var(--f-mono); font-size: .82rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: .6em .8em; border: 2px solid var(--ink); border-radius: 0; background: #FBF8F0; color: var(--ink); font-family: var(--f-text); font-size: 1rem; }
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; }
.req { color: #9A3B2A; }

/* ---------- Подвал ---------- */
.colophon {
    padding: 3rem 0 1.4rem;
    color: var(--cream);
    background-color: var(--moss);
    background-image:
        linear-gradient(var(--moss-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--moss-grid) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: -1px -1px;
}
.colophon-sprig { display: flex; justify-content: center; margin-bottom: 2rem; color: rgba(242, 234, 216, 0.75); }
.colophon-sprig svg { width: min(400px, 90%); height: auto; }
.colophon-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1.4rem; color: var(--cream); }
.colophon .widget-title { margin: 0 0 .7rem; font-family: var(--f-hand); font-size: 2rem; font-weight: 600; line-height: 1.05; color: var(--cream); }
.colophon .widget p, .colophon .widget li, .colophon .textwidget { color: #E9E2CF; font-size: .98rem; line-height: 1.55; }
.colophon .widget ul { margin: 0; padding: 0; list-style: none; }
.colophon .widget li { padding: .22rem 0; }
.colophon .widget a { color: var(--cream); text-decoration: underline wavy rgba(242, 234, 216, 0.45); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.colophon .widget a:hover { color: #FFFFFF; text-decoration-color: #D3B470; }
.colophon .widget .menu a { font-family: var(--f-hand); font-size: 1.45rem; text-decoration: none; }
.colophon .widget .menu a:hover { text-decoration: underline wavy #D3B470; text-decoration-thickness: 1px; }
.colophon-copy { margin: 2rem 0 0; padding-top: 1.1rem; border-top: 1px solid rgba(242, 234, 216, 0.35); font-family: var(--f-mono); font-size: .78rem; color: #E1DAC6; text-align: center; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.6rem;
    max-width: 880px;
    margin: 0 auto;
    padding: 1.1rem 1.4rem;
    background: var(--cream);
    color: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
}
.cookie-text { flex: 1 1 320px; margin: 0; font-family: var(--f-mono); font-size: .84rem; line-height: 1.5; }

/* ---------- Адаптив: 600px ---------- */
@media (min-width: 600px) {
    .mat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar .card-grid,
    .layout-single .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .entry-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .entry-sheet { padding: 2.6rem 2.4rem; }
    .eve-drawings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Адаптив: 960px ---------- */
@media (min-width: 960px) {
    .plan-layout {
        grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
        grid-template-areas: "plan snap" "plan notes";
        column-gap: 3rem;
        row-gap: 1.6rem;
    }
    .plan-snap { justify-self: end; margin-top: -1rem; width: 270px; }
    .mat-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .card-grid-front { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; }
    .cal-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; }
    .eve-layout { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 3.2rem; }
    .colophon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
    .colophon-col:nth-child(2) { text-align: center; }
    .colophon-col:nth-child(3) { text-align: right; }
}

/* ---------- Мобильная навигация и узкие экраны ---------- */
@media (max-width: 959px) {
    .layout-single .content-area { width: 100%; }
}
@media (max-width: 760px) {
    .masthead { padding: 1.4rem 0 .8rem; }
    .brand { flex-direction: column; text-align: center; }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: .6rem;
        padding: .5em 1em;
        border: 2px solid var(--ink);
        background: var(--paper);
        color: var(--ink);
        font-family: var(--f-mono);
        font-size: .85rem;
        cursor: pointer;
        box-shadow: 3px 3px 0 var(--ink);
    }
    .nav-toggle-bars { position: relative; display: block; width: 20px; height: 2px; background: var(--ink); }
    .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); }
    .nav-toggle-bars::before { top: -6px; }
    .nav-toggle-bars::after { top: 6px; }
    .site-nav { display: none; }
    .site-nav.is-open { display: block; }
    .nav-list { flex-direction: column; align-items: center; gap: .1rem; }
    .nav-list .sub-menu { position: static; display: block; box-shadow: none; border: 0; background: none; padding: 0; text-align: center; }
}
@media (max-width: 600px) {
    .front .shell { width: 92%; }
    .fs { padding: 3.2rem 0; }
    .entry-sheet { padding: 1.8rem 1.2rem; }
    .remarks { padding: 1.4rem 1.1rem; }
    .lost { padding: 2rem 1.2rem; }
    .cookie-banner { padding: 1rem 1.1rem; left: .6rem; right: .6rem; bottom: .6rem; }
    .sidebar .widget { padding: 1.4rem 1.1rem 1.1rem; }
    .plan-sheet { padding: .6rem; }
    .plan-pin { font-size: .9rem; padding: 0 .35em; }
    .eve-pin { font-size: 1rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
    .cal-table { min-width: 0; }
    .cal-photo::before { right: -12px; }
    .cal-photo::after { left: -12px; }
    .cal-table thead { display: none; }
    .cal-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) 46px; border-bottom: 1.5px solid var(--ink); }
    .cal-table tbody tr:last-child { border-bottom: 0; }
    .cal-table tbody th, .cal-table td { border: 0; padding: .35rem .8rem; }
    .cal-table tbody th { grid-column: 1; padding-top: .7rem; }
    .cal-table td:nth-child(2), .cal-table td:nth-child(3) { grid-column: 1; }
    .cal-table td:nth-child(3) { padding-bottom: .8rem; }
    .cal-table td.cal-check { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: auto; border-left: 1.5px solid var(--ink); }
}
