/*
Theme Name: dds_lunchapalooza.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: lunchap
*/

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

/* ---------- Переменные ---------- */
:root {
    --paper: #E8DCC2;
    --choc: #2B2118;
    --choc-deep: #1F1811;
    --gold: #C9A227;
    --ink: #2B2118;
    --muted: #7A6A53;
    --terra: #8C2F1B;
    --terra-dark: #6E2312;
    --spinach: #4A5D3A;
    --hair: #B8A88A;
    --card: #F2E9D5;
    --band: #DCCEAF;
    --cream: #F0E6D0;
    --strip: #F6EEDB;
    --on-dark: #E8DCC2;
    --on-dark-soft: #CDBE9F;
    --serif: "PT Serif", "Georgia", "Times New Roman", serif;
    --sans: "PT Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(ellipse 38% 26% at 8% 18%, rgba(140, 98, 46, .10), transparent 70%),
        radial-gradient(ellipse 30% 22% at 92% 62%, rgba(140, 98, 46, .08), transparent 70%),
        url("images/parchment.jpg");
    background-repeat: no-repeat, no-repeat, repeat;
    background-attachment: scroll;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--terra); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(140, 47, 27, .45); transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--terra-dark); text-decoration-color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
p { margin: 0 0 1em; hyphens: auto; }
li, dd, td { hyphens: auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 1.4em 0 .6em; color: var(--ink); hyphens: manual; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
ul, ol { padding-left: 1.3em; }
table { width: 100%; border-collapse: collapse; margin: 1.4em 0; background: var(--card); border: 1px solid var(--hair); font-size: .95rem; }
th, td { border: 1px solid var(--hair); padding: .6em .8em; text-align: left; vertical-align: top; }
th { background: var(--band); font-weight: 700; }
hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 2.4em 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; background: var(--gold); color: var(--choc); padding: .6rem 1rem; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---------- Шапка ---------- */
.masthead { background: var(--choc); padding: 7px; color: var(--on-dark); }
.masthead-frame { border: 1px solid var(--gold); box-shadow: inset 0 0 0 4px var(--choc), inset 0 0 0 5px var(--gold); padding: 1.1rem 0; }
.masthead-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--on-dark); min-width: 0; flex: 1 1 320px; }
.brand:hover { color: var(--on-dark); }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-seal, .brand-logo { display: block; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); transition: transform .4s; }
.brand:hover .brand-seal { transform: rotate(-12deg); }
.brand-text { display: flex; flex-direction: column; min-width: 0; max-width: 46rem; }
.brand-name { font-family: var(--serif); color: var(--gold); font-size: 1.05rem; line-height: 1.3; letter-spacing: .01em; }
.brand-desc { font-size: .78rem; line-height: 1.35; color: var(--on-dark-soft); margin-top: .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.menu-toggle { display: inline-flex; align-items: center; gap: .55rem; background: transparent; border: 1px solid var(--gold); color: var(--on-dark); font: 700 .8rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: .6rem .8rem; cursor: pointer; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--gold); position: relative; transition: transform .25s, background .25s; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.topnav { flex-basis: 100%; display: none; }
.topnav.is-open { display: block; }
.topnav-list { list-style: none; margin: 0; padding: .4rem 0 0; display: flex; flex-direction: column; border-top: 1px solid rgba(201, 162, 39, .35); }
.topnav-list a { display: block; padding: .7rem 0; color: var(--on-dark); text-decoration: none; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid rgba(201, 162, 39, .15); }
.topnav-list a:hover { color: var(--gold); }
.topnav-list .current-menu-item > a { color: var(--gold); }

/* ---------- Кнопка-ярлык ---------- */
.tag-btn { display: inline-flex; align-items: center; position: relative; text-decoration: none; margin-left: 22px; }
.tag-btn span { display: inline-block; background: var(--terra); color: #FFF; font: 700 .95rem/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; padding: .9rem 1.7rem .9rem 2.1rem; clip-path: polygon(0 0, 100% 2%, 98.6% 18%, 100% 34%, 98.2% 50%, 100% 66%, 98.7% 82%, 100% 100%, 0 98%, 1.2% 80%, 0 62%, 1.4% 44%, 0 26%, 1% 10%); transition: background .2s, transform .2s; }
.tag-btn-seal { position: absolute; left: -22px; top: 50%; width: 46px; height: 46px; transform: translateY(-50%); z-index: 1; filter: drop-shadow(0 2px 2px rgba(43, 33, 24, .35)); transition: transform .35s; }
.tag-btn:hover span { background: var(--terra-dark); transform: translateX(3px); }
.tag-btn:hover .tag-btn-seal { transform: translateY(-50%) rotate(-25deg); }
.tag-btn:hover { color: #FFF; }
.tag-btn--plain { margin-left: 0; }
.tag-btn--plain span { padding-left: 1.7rem; }

/* ---------- Заголовки секций ---------- */
.sec-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.5vw, 2.45rem); hyphens: manual; text-wrap: balance; line-height: 1.15; margin: 0 0 1.6rem; padding-bottom: .55rem; background: linear-gradient(var(--gold), var(--gold)) left bottom / min(100%, 360px) 1px no-repeat; }
.sec-title::after { content: "\00a0•"; color: var(--gold); font-size: .9em; }
.sec-title--dots::before { content: "•\00a0"; color: var(--gold); font-size: .9em; }

/* ---------- Главная: вступление ---------- */
.lp-intro { padding: 2.4rem 0 1.5rem; }
.lp-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-items: center; }
.lp-intro-text { min-width: 0; }
.lp-intro-title { font-size: clamp(2.3rem, 7vw, 4.7rem); line-height: 1.04; letter-spacing: -.01em; margin: 0 0 1.4rem; hyphens: manual; }
.nowrap { white-space: nowrap; }
.lp-intro-lead { font-size: 1.2rem; line-height: 1.45; max-width: 26rem; margin-bottom: 1.8rem; }
.lp-intro-art { margin: 0; min-width: 0; }
.lp-intro-art img { display: block; width: 100%; height: auto; aspect-ratio: 1524 / 1094; object-fit: contain; }

/* ---------- Пара блоков ---------- */
.lp-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; margin-top: 1.5rem; }
.lp-pair > * { min-width: 0; }

/* Рецепт */
.lp-recipe { background: var(--band); border-radius: 10px; padding: 2rem 1.4rem 2rem; box-shadow: inset 0 0 0 1px rgba(184, 168, 138, .55); }
.lp-recipe .sec-title { background-size: min(100%, 280px) 1px; }
.lp-recipe-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem 1rem; align-items: stretch; }
.lp-recipe-side { margin: 0; display: flex; align-items: center; justify-content: center; position: relative; padding-right: .9rem; }
.lp-recipe-side::before { content: ""; position: absolute; right: 0; top: 1.1rem; bottom: 1.1rem; width: 12px; border: 1px dotted var(--gold); border-right: 0; }
.lp-recipe-side span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--serif); font-size: 2.1rem; line-height: 1; white-space: nowrap; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.15rem; }
.lp-step { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .9rem; align-items: start; position: relative; }
.lp-step:not(:last-child)::after { content: ""; position: absolute; left: 1.3rem; top: 2.7rem; bottom: -1.05rem; border-left: 1px dashed var(--gold); }
.lp-step-num { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--gold); color: #FFF; display: grid; place-items: center; font: 400 1.35rem/1 var(--serif); box-shadow: 0 0 0 3px var(--band), 0 0 0 4px rgba(201, 162, 39, .55); transition: transform .25s, background .25s; }
.lp-step:hover .lp-step-num { transform: scale(1.08); background: var(--terra); }
.lp-step-text { font-size: 1rem; line-height: 1.4; padding-top: .15rem; }
.lp-step-text b { display: block; font-size: 1.04rem; }

/* Кухня документов */
.lp-docs-stage { position: relative; container-type: inline-size; }
.lp-docs-img { display: block; width: 100%; height: auto; aspect-ratio: 1420 / 1068; }
.lp-sheet { position: absolute; transform-origin: left top; color: var(--ink); font-family: var(--serif); pointer-events: none; }
.lp-sheet b { display: block; font-style: italic; font-weight: 400; font-size: 3.5cqw; line-height: 1.1; padding-bottom: .25em; border-bottom: 1px solid rgba(43, 33, 24, .55); }
.lp-sheet i { display: block; font-size: 2.05cqw; line-height: 1.25; color: #5B4D3B; margin-top: .45em; padding-bottom: .2em; border-bottom: 1px dashed rgba(122, 106, 83, .55); }
.lp-sheet--1 { left: 15.6%; top: 11.4%; width: 34cqw; transform: rotate(-9deg); }
.lp-sheet--2 { left: 16.6%; top: 26.6%; width: 40cqw; transform: rotate(-11.5deg); }
.lp-sheet--3 { left: 29.4%; top: 43.4%; width: 37cqw; transform: rotate(-13deg); }
.lp-sheet--4 { left: 45.6%; top: 64.4%; width: 39cqw; transform: rotate(-12deg); }

/* Свежие записи */
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--gold); padding: .7rem; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 3px 8px rgba(43, 33, 24, .08); transition: transform .25s, box-shadow .25s; position: relative; }
.card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 10px 20px rgba(43, 33, 24, .16); }
.card-thumb { overflow: hidden; border-radius: 6px; background: var(--paper); }
.card-thumb a { display: block; }
.card-thumb img, .card-img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 7; object-fit: cover; filter: sepia(.18); transition: transform .5s; }
.card:hover .card-img { transform: scale(1.04); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: .9rem .25rem .2rem; min-width: 0; }
.card-pin { align-self: flex-start; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; background: var(--terra); color: #FFF; padding: .15rem .5rem; margin-bottom: .5rem; }
.card-title { font-family: var(--sans); font-weight: 700; font-size: 1.12rem; line-height: 1.22; margin: 0 0 .5rem; hyphens: manual; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--terra); }
.card-excerpt { font-size: .9rem; line-height: 1.4; color: #4E4233; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-date { display: block; font-family: var(--serif); font-style: italic; font-size: .85rem; color: var(--muted); margin: .3rem 0 .8rem; }
.card-more { margin-top: auto; display: block; text-align: center; text-decoration: none; background: #EFE1C3; border: 1px solid var(--gold); color: var(--terra); font-weight: 700; font-size: .85rem; letter-spacing: .07em; text-transform: uppercase; padding: .5rem .6rem; transition: background .2s, color .2s; }
.card-more:hover { background: var(--terra); color: #FFF; border-color: var(--terra); }
.empty-note { font-style: italic; color: var(--muted); }

/* Специи риска */
.lp-spices { background: var(--cream); padding: 2rem 1.3rem 2.2rem; box-shadow: inset 0 0 0 1px rgba(184, 168, 138, .5); align-self: stretch; display: flex; flex-direction: column; }
.lp-spices-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; align-items: center; flex: 1; align-content: center; }
.lp-jars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.lp-jar { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; text-align: center; min-width: 0; }
.lp-jar-glass { position: relative; display: block; width: 100%; max-width: 112px; transition: transform .3s; }
.lp-jar:hover .lp-jar-glass { transform: translateY(-5px) rotate(-3deg); }
.lp-jar-glass img { display: block; width: 100%; height: auto; aspect-ratio: 294 / 585; }
.lp-jar-tag { position: absolute; left: 50%; top: 57%; transform: translate(-50%, -50%); font-family: var(--serif); font-weight: 700; font-size: clamp(.8rem, 1.6vw, 1.15rem); color: var(--terra); }
.lp-jar-name { display: block; font-weight: 700; font-size: .8rem; line-height: 1.15; margin-top: .45rem; hyphens: auto; overflow-wrap: anywhere; }
.lp-jar-level { display: inline-block; align-self: end; margin-top: .4rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .45rem; color: #FFF; }
.lvl-high { background: var(--terra); }
.lvl-mid { background: #9C7A16; }
.lvl-low { background: var(--spinach); }
.lp-spices-note { margin: 0; font-weight: 700; font-size: 1.1rem; line-height: 1.3; padding: .9rem 1rem; border-left: 3px solid var(--gold); background: rgba(220, 206, 175, .45); }

/* Книга отзывов и дел */
.lp-book { margin-top: 3rem; padding: 2.6rem 0 3rem; background-color: var(--band); background-image: linear-gradient(rgba(220, 206, 175, .86), rgba(220, 206, 175, .86)), url("images/parchment.jpg"); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.lp-book-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.lp-book-grid > * { min-width: 0; }
.lp-facts { margin: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.lp-fact { display: flex; flex-direction: column; }
.lp-fact dt { font-family: var(--serif); font-size: 3.4rem; line-height: 1; order: 1; }
.lp-fact--big dt { font-size: 4.6rem; }
.lp-fact dd { margin: .25rem 0 0; font-weight: 700; font-size: 1.05rem; line-height: 1.25; order: 2; max-width: 14rem; }
.lp-quotes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.6rem; }
.lp-quote { position: relative; background: var(--strip); padding: 1.4rem 1.5rem 1.1rem; box-shadow: 0 6px 12px rgba(43, 33, 24, .16); transform: rotate(-.5deg); transition: transform .25s; }
.lp-quote:nth-child(2) { transform: rotate(.6deg); }
.lp-quote:hover { transform: rotate(0) translateY(-3px); }
.lp-quote::before { content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F0D573, var(--gold) 55%, #8E7016); box-shadow: 0 2px 3px rgba(43, 33, 24, .35); }
.lp-quote p { margin: 0 0 .35rem; font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.lp-quote span { font-size: .85rem; color: var(--muted); }
.lp-quote span::before { content: "— "; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 1.6rem 0 3.5rem; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1.6rem; }
.crumbs a { color: var(--terra); }
.crumbs .sep { color: var(--gold); margin: 0 .2rem; }
.crumbs span:last-child { color: var(--ink); }
.layout-single { display: block; }
.layout-single .content-area { width: 100%; margin-inline: auto; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 1.8rem; }
.page-title { margin: 0 0 .5rem; font-size: clamp(2rem, 4vw, 2.9rem); padding-bottom: .5rem; background: linear-gradient(var(--gold), var(--gold)) left bottom / min(100%, 320px) 1px no-repeat; }
.page-title::after { content: "\00a0•"; color: var(--gold); font-size: .9em; }
.page-sub { color: var(--muted); font-family: var(--serif); font-style: italic; margin: .6rem 0 0; }

.entry { background: var(--card); border: 1px solid var(--gold); padding: 1.6rem 1.3rem 2rem; box-shadow: 0 4px 12px rgba(43, 33, 24, .08); }
.entry-head { margin-bottom: 1.4rem; }
.entry-title { margin: 0 0 .6rem; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: .92rem; }
.entry-cats a { margin-right: .5rem; }
.entry-cover { margin: 0 0 1.6rem; }
.entry-cover img { display: block; width: 100%; height: auto; border: 1px solid var(--hair); }
.entry-content { font-size: 1.06rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content ul { list-style: none; padding-left: 1.4em; }
.entry-content ul li { position: relative; margin-bottom: .4em; }
.entry-content ul li::before { content: ""; position: absolute; left: -1.1em; top: .62em; width: .4em; height: .4em; border-radius: 50%; background: var(--gold); }
.entry-content ol li { margin-bottom: .4em; }
.entry-content ol li::marker { color: var(--terra); font-family: var(--serif); font-weight: 700; }
.entry-content blockquote { margin: 1.6em 0; padding: 1.2rem 1.4rem; background: var(--band); border-left: 4px solid var(--terra); font-family: var(--serif); font-style: italic; font-size: 1.12rem; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); font-style: italic; margin-top: .4rem; }
.entry-content pre { background: var(--choc); color: var(--on-dark); padding: 1rem 1.2rem; overflow-x: auto; font-size: .9rem; }
.entry-content code { background: var(--band); padding: .05em .3em; font-size: .92em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-tags { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.entry-tags a { font-size: .85rem; text-decoration: none; border: 1px solid var(--gold); padding: .2rem .6rem; background: var(--cream); }
.entry-tags a:hover { background: var(--terra); color: #FFF; border-color: var(--terra); }
.page-links { margin-top: 1.4rem; font-weight: 700; }

.post-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 2rem 0; }
.post-nav a { display: block; text-decoration: none; color: var(--ink); background: var(--cream); border: 1px dashed var(--hair); padding: 1rem 1.2rem; font-family: var(--serif); transition: border-color .2s, background .2s; }
.post-nav a:hover { border-color: var(--gold); background: var(--card); }
.post-nav span { display: block; font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--terra); margin-bottom: .3rem; }
.post-nav-next { text-align: right; }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.4rem; align-items: center; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem; border: 1px solid var(--gold); background: var(--card); color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1rem; transition: background .2s, color .2s; }
.pager a.page-numbers:hover { background: var(--band); color: var(--terra); }
.pager .page-numbers.current { background: var(--terra); border-color: var(--terra); color: #FFF; }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .2rem; }

/* Сайдбар */
.sidebar { min-width: 0; align-self: start; background: var(--band); border: 1px solid var(--gold); padding: 1.4rem 1.3rem; color: var(--ink); }
.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 .9rem; color: var(--ink); padding-bottom: .4rem; border-bottom: 1px solid var(--gold); }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed var(--hair); line-height: 1.35; color: var(--ink); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--terra); text-decoration: underline; }
.sidebar .post-date { display: block; font-size: .82rem; color: #5E5140; }
.sidebar p { color: var(--ink); }

/* Поиск */
.search-form { display: flex; gap: .5rem; max-width: 34rem; margin: 1.2rem 0; }
.search-field { flex: 1; min-width: 0; font: inherit; padding: .7rem .9rem; background: #FBF6EA; border: 1px solid var(--hair); color: var(--ink); }
.search-field:focus { border-color: var(--gold); }
.search-submit { font: 700 .9rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; background: var(--terra); color: #FFF; border: 0; padding: 0 1.2rem; cursor: pointer; transition: background .2s; }
.search-submit:hover { background: var(--terra-dark); }

/* 404 */
.lost { text-align: center; padding: 1rem 0; }
.lost .page-title { background-position: center bottom; display: inline-block; }
.lost-code { font-family: var(--serif); font-size: clamp(5rem, 18vw, 9rem); line-height: 1; margin: 0; color: var(--terra); opacity: .85; }
.lost-text { max-width: 34rem; margin: 1rem auto; }
.lost .search-form { margin-inline: auto; }
.empty-box { background: var(--card); border: 1px solid var(--gold); padding: 1.6rem 1.4rem; }

/* Комментарии */
.comments { margin-top: 2.4rem; background: var(--cream); border: 1px solid var(--hair); padding: 1.6rem 1.3rem; }
.comments-title, .comment-reply-title { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 1.2rem; }
.comment-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.4rem; border-left: 1px dashed var(--gold); margin-top: 1rem; }
.note { margin-bottom: 1rem; }
.note-body { background: var(--card); border: 1px solid var(--hair); padding: 1rem 1.1rem; }
.note-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.note-head img { border-radius: 50%; display: block; }
.note-author { display: block; }
.note-date { font-family: var(--serif); font-style: italic; font-size: .82rem; color: var(--muted); }
.note-wait { font-style: italic; color: var(--terra); }
.note-text p:last-child { margin-bottom: .4rem; }
.note-reply a { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; font: inherit; padding: .65rem .8rem; background: #FBF6EA; border: 1px solid var(--hair); color: var(--ink); }
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }
.comment-form .submit { font: 700 .92rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; background: var(--terra); color: #FFF; border: 0; padding: .9rem 1.5rem; cursor: pointer; }
.comment-form .submit:hover { background: var(--terra-dark); }
.form-note { font-size: .88rem; color: var(--muted); }
.req { color: var(--terra); }
.comments-closed { font-style: italic; color: var(--muted); }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }

/* ---------- Подвал ---------- */
.colophon { background: var(--choc); color: var(--on-dark-soft); padding: 7px; margin-top: 0; }
.colophon-frame { border: 1px solid var(--gold); box-shadow: inset 0 0 0 4px var(--choc), inset 0 0 0 5px var(--gold); padding: 2.4rem 0 1.4rem; }
.colophon-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1.4rem; }
.colophon .widget:last-child { margin-bottom: 0; }
.colophon .widget-title { font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0 0 .8rem; }
.colophon p, .colophon .textwidget { color: var(--on-dark-soft); font-size: .95rem; line-height: 1.5; hyphens: manual; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: .45rem; color: var(--on-dark-soft); }
.colophon a { color: var(--on-dark); text-decoration-color: rgba(201, 162, 39, .6); font-size: .95rem; }
.colophon a:hover { color: var(--gold); }
.colophon .post-date { display: block; font-size: .8rem; color: #B5A585; }
.colophon-copy { margin: 2.2rem 0 0; padding-top: 1.1rem; border-top: 1px solid rgba(201, 162, 39, .3); text-align: center; font-size: .88rem; color: #B5A585; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; max-width: 760px; margin-inline: auto; background: var(--choc); color: var(--on-dark); border: 1px solid var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); padding: 1rem 1.3rem; }
.cookie-text { margin: 0; flex: 1 1 280px; font-size: .9rem; line-height: 1.45; color: var(--on-dark); }
.cookie-accept { font: 700 .88rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--terra); color: #FFF; border: 1px solid var(--gold); padding: .8rem 1.4rem; cursor: pointer; transition: background .2s; }
.cookie-accept:hover { background: var(--terra-dark); }

/* ---------- Адаптив: планшет ---------- */
@media (min-width: 600px) {
    .brand-seal, .brand-logo { width: 76px; height: 76px; }
    .brand-name { font-size: 1.15rem; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-recipe { padding: 2.4rem 2.2rem; }
    .lp-spices { padding: 2.2rem 2rem 2.4rem; }
    .lp-jar-name { font-size: .86rem; }
    .lp-book-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; }
    .colophon-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .colophon-frame { padding: 2.8rem 0 1.5rem; }
    .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .entry { padding: 2rem 2.2rem 2.4rem; }
    .comments { padding: 2rem 2.2rem; }
    .layout-single .content-area { width: 85%; }
}

/* ---------- Адаптив: десктоп ---------- */
@media (min-width: 960px) {
    .lp-wide { width: 85%; }
    .menu-toggle { display: none; }
    .topnav { display: block; flex-basis: auto; }
    .topnav-list { flex-direction: row; padding: 0; border-top: 0; gap: 2rem; }
    .topnav-list a { padding: .3rem 0; border-bottom: 1px solid transparent; font-size: .88rem; }
    .topnav-list a:hover { border-bottom-color: var(--gold); }
    .topnav-list .current-menu-item > a { color: var(--on-dark); border-bottom: 2px solid var(--gold); }
    .lp-intro { padding: 3.6rem 0 2.6rem; }
    .lp-intro-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2.5rem; }
    .lp-intro-art { margin-right: -2%; }
    .lp-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
    .lp-pair--mid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); margin-top: 3rem; align-items: stretch; }
    .lp-pair--mid .card-grid--front { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
    .card-grid--front .card-title { font-size: 1.02rem; }
    .card-grid--front .card-excerpt { font-size: .84rem; }
    .lp-docs { padding-top: 2rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-single .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lp-fact--big dt { font-size: 5.6rem; }
    .lp-fact dt { font-size: 4rem; }
}

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

@media (max-width: 599px) {
    .lp-sheet i { display: none; }
    .lp-jars { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.2rem; }
    .lp-recipe-side span { font-size: 1.6rem; }
    .lp-spices, .lp-recipe { padding: 1.8rem 1.2rem; }
    .tag-btn span { padding: .85rem 1.3rem .85rem 1.9rem; }
}

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