/*
Theme Name: dds_realtorneyor.com
Theme URI: https://realtorneyor.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: rnjr
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Pangolin"; src: url("fonts/pangolin-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Pangolin"; src: url("fonts/pangolin-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-cyrillic-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; src: url("fonts/pt-serif-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; src: url("fonts/pt-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; src: url("fonts/pt-serif-cyrillic-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; src: url("fonts/pt-serif-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; src: url("fonts/pt-serif-cyrillic-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; src: url("fonts/pt-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; src: url("fonts/roboto-condensed-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; src: url("fonts/roboto-condensed-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: "Roboto Condensed"; src: url("fonts/roboto-condensed-cyrillic-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; src: url("fonts/roboto-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Палитра ---------- */
:root {
    --paper: #F2EBDD;
    --grid: #C9BFA8;
    --pine: #1F3A34;
    --pine-deep: #172C27;
    --carton: #D9C7A7;
    --ink: #1B2A3A;
    --muted: #8A7B63;
    --red: #C23B2E;
    --red-dark: #9E2E23;
    --mustard: #D9A227;
    --light: #F2EBDD;
    --sheet: #F8F3E7;
    --tab: #E8DCC2;
    --aside: #E7DCC6;
    --f-hand: "Pangolin", "Comic Sans MS", "Segoe Print", cursive;
    --f-note: "Caveat", "Segoe Script", cursive;
    --f-text: "PT Serif", Georgia, "Times New Roman", serif;
    --f-ui: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    --hand-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='8' viewBox='0 0 600 8'%3E%3Cpath d='M0 4.2C60 3.1 120 5.4 180 4.1S300 2.8 360 4.6 480 5.2 540 3.6 590 4.4 600 4.2' fill='none' stroke='%231B2A3A' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
    --double-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='12' viewBox='0 0 400 12'%3E%3Cg fill='none' stroke='%231B2A3A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 3.4C80 2.6 160 4.2 240 3.1S360 2.8 398 3.6'/%3E%3Cpath d='M4 8.6C90 9.4 170 7.8 250 8.8S350 9.2 396 8.2'/%3E%3C/g%3E%3C/svg%3E");
    --double-line-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='12' viewBox='0 0 400 12'%3E%3Cg fill='none' stroke='%23F2EBDD' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 3.4C80 2.6 160 4.2 240 3.1S360 2.8 398 3.6'/%3E%3Cpath d='M4 8.6C90 9.4 170 7.8 250 8.8S350 9.2 396 8.2'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Служебные правила 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);
    font-family: var(--f-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(201, 191, 168, .55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 191, 168, .55) 1px, transparent 1px),
        linear-gradient(rgba(201, 191, 168, .9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 191, 168, .9) 1px, transparent 1px);
    background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
}
p, li, dd, td, th, .card-title, .page-title, .sec-title, .widget, .crumbs { overflow-wrap: break-word; hyphens: auto; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-style: wavy; text-decoration-color: rgba(27, 42, 58, .55); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--red); text-decoration-color: var(--red); }
:focus-visible { outline: 2px dashed var(--red); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 1.4em 0 .6em; line-height: 1.2; }
button { font: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--ink); color: var(--light); font-family: var(--f-ui); }
.skip:focus { top: 1rem; }

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

/* ---------- Кнопки-штампы ---------- */
.stamp-btn {
    display: inline-block;
    padding: .55em 1.3em;
    border: 2px solid var(--red);
    border-radius: 2px 5px 3px 6px / 5px 2px 6px 3px;
    background: var(--red);
    box-shadow: inset 0 0 0 2px rgba(242, 235, 221, .35);
    color: var(--light);
    font-family: var(--f-hand);
    font-size: 1.05rem;
    line-height: 1.2;
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
    transform: rotate(-1deg);
    transition: transform .15s ease, background-color .15s ease;
}
.stamp-btn:hover { background: var(--red-dark); color: var(--light); transform: rotate(0deg) translateY(-1px); }

/* ---------- Шапка ---------- */
.masthead { position: relative; padding: 1.6rem 0 1.4rem; }
.masthead::after {
    content: "";
    position: absolute;
    left: 3%;
    right: 3%;
    bottom: 0;
    height: 8px;
    background: var(--hand-line) repeat-x center / 600px 8px;
}
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.brand { display: flex; align-items: center; gap: 1.1rem; min-width: 0; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-svg, .brand-logo { display: block; width: 88px; height: 88px; object-fit: contain; }
.brand-text { display: block; min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--f-hand);
    font-size: clamp(1.45rem, 2.7vw, 2.25rem);
    font-style: oblique 8deg;
    line-height: 1.12;
    -webkit-text-stroke: .7px currentColor;
}
.brand-desc { display: block; max-width: 36rem; margin-top: .4rem; color: var(--ink); font-family: var(--f-ui); font-size: .98rem; line-height: 1.35; }

.menu-toggle { display: none; }
.tabs { flex: 0 0 auto; }
.tabs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; counter-reset: tab; }
.tabs-list li {
    counter-increment: tab;
    padding: 1.5px;
    background: var(--ink);
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
}
.tabs-list li:nth-child(odd) { margin-left: 1.2rem; transform: rotate(.6deg); }
.tabs-list li:nth-child(even) { transform: rotate(-.5deg); }
.tabs-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: .32rem .8rem .32rem 1.6rem;
    background: var(--tab);
    clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%);
    color: var(--ink);
    font-family: var(--f-hand);
    font-size: 1rem;
    font-style: oblique 8deg;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, padding .15s ease;
}
.tabs-list a::after { content: "[" counter(tab) "]"; color: var(--red); font-style: normal; letter-spacing: .05em; }
.tabs-list a:hover { background: #F4E3B6; padding-left: 1.9rem; color: var(--ink); }
.tabs-list .current-menu-item > a, .tabs-list .current_page_item > a { background: var(--mustard); }

/* ---------- Заголовки секций ---------- */
.band { position: relative; padding: 3rem 0 3.4rem; }
.sec-title {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 1.1rem;
    padding-bottom: .55rem;
    background: var(--double-line) no-repeat center bottom / 100% 12px;
    font-family: var(--f-hand);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-style: oblique 8deg;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: .07em;
    text-align: center;
    text-transform: uppercase;
    -webkit-text-stroke: .8px currentColor;
}
.sec-title--light { color: var(--light); background-image: var(--double-line-light); }
.sec-title--sm { font-size: clamp(1.3rem, 2.1vw, 1.65rem); margin-left: 0; text-align: left; }
.sec-lead { max-width: 46rem; margin: 0 auto 2rem; text-align: center; color: var(--ink); }
.sec-lead--light { color: rgba(242, 235, 221, .88); }

/* ---------- Блок 1: карта критериев ---------- */
.crit::after,
.latest::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 70px;
    border-radius: 48% 52% 44% 56% / 55% 42% 58% 45%;
    background: radial-gradient(circle at 40% 45%, rgba(60, 55, 48, .28) 0 22%, rgba(60, 55, 48, .14) 40%, transparent 66%);
    pointer-events: none;
}
.crit::after { right: 1%; top: 6%; }
.latest::after { right: 3%; top: 8%; width: 60px; height: 90px; }
.crit::before {
    content: "";
    position: absolute;
    left: 1.5%;
    top: 46%;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60, 55, 48, .2) 0 30%, transparent 62%);
    pointer-events: none;
}
.crit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 1.5rem 2.5rem; align-items: center; }
.plan-board { position: relative; margin: 0; aspect-ratio: 1000 / 600; container-type: inline-size; min-width: 0; }
.plan-img { position: absolute; left: 17.5%; top: 18.33%; width: 65%; height: auto; display: block; }
.plan-lines { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.plan-tag {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    transform: translate(-50%, -50%) rotate(-2deg);
    color: var(--ink);
    font-family: var(--f-hand);
    font-size: clamp(12px, 2.7cqw, 1.5rem);
    font-style: oblique 10deg;
    line-height: 1;
    white-space: nowrap;
    -webkit-text-stroke: .5px currentColor;
}
.prio { display: grid; grid-template-rows: auto 1fr auto; justify-items: start; gap: .6rem; height: 100%; min-height: 300px; padding-left: 1.4rem; }
.prio-end { font-family: var(--f-hand); font-size: 1.3rem; font-style: oblique 8deg; line-height: 1; }
.prio-end--top { color: var(--red); }
.prio-end--bottom { color: #5D6B57; }
.prio-bar {
    position: relative;
    width: 22px;
    min-height: 260px;
    margin-left: 1.2rem;
    border: 2px solid var(--ink);
    background:
        repeating-linear-gradient(to bottom, transparent 0 19px, rgba(27, 42, 58, .55) 19px 20px),
        linear-gradient(to bottom, #D8877C 0%, #E7BFA6 40%, #DCCDB0 62%, #B3BA9F 100%);
    background-size: 9px 100%, 100% 100%;
    background-repeat: no-repeat;
    background-position: right top, 0 0;
}
.prio-flag { position: absolute; left: -22px; top: calc(var(--p) * 1%); width: 28px; height: 20px; transform: translateY(-50%); }
.prio-flag::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--red);
    clip-path: polygon(0 50%, 40% 0, 100% 0, 100% 100%, 40% 100%);
}
.prio-flag--soft::before { background: #B3554A; opacity: .85; }
.prio-flag span {
    position: absolute;
    left: 54px;
    top: 50%;
    width: 7.5rem;
    transform: translateY(-50%);
    color: #5E513D;
    font-family: var(--f-note);
    font-size: 1.3rem;
    line-height: 1.05;
}
.crit-notes { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; }
.crit-notes li { position: relative; padding-left: 1.8rem; color: var(--ink); font-family: var(--f-note); font-size: 1.32rem; line-height: 1.2; }
.crit-notes li::before { content: "✓"; position: absolute; left: 0; top: -.05em; color: var(--red); font-family: var(--f-hand); font-size: 1.4rem; }

/* ---------- Блок 2: сравнение условий ---------- */
.band--pine {
    color: var(--light);
    background-color: var(--pine);
    background-image:
        linear-gradient(rgba(242, 235, 221, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242, 235, 221, .05) 1px, transparent 1px);
    background-size: 20px 20px;
    border-top: 3px solid var(--ink);
    border-bottom: 3px solid var(--ink);
}
.sale-wrap { position: relative; padding-bottom: 1.5rem; }
.sale-table { width: 100%; border-collapse: collapse; font-family: var(--f-ui); font-size: 1.02rem; line-height: 1.35; color: var(--light); }
.sale-table th, .sale-table td { padding: .85rem 1rem; border: 0; text-align: center; vertical-align: middle; }
.sale-table thead th {
    padding-bottom: .7rem;
    border-bottom: 2px solid rgba(242, 235, 221, .7);
    color: #F4E3B6;
    font-family: var(--f-hand);
    font-size: 1.35rem;
    font-style: oblique 8deg;
    font-weight: 400;
}
.sale-table tbody tr + tr th, .sale-table tbody tr + tr td { border-top: 1.5px dashed rgba(242, 235, 221, .42); }
.sale-table td, .sale-table thead th + th { border-left: 1.5px dashed rgba(242, 235, 221, .42); }
.sale-table tbody th { width: 15%; text-align: left; color: rgba(242, 235, 221, .85); font-weight: 400; font-size: 1.05rem; letter-spacing: .02em; }
.sale-table mark.ring {
    display: inline-block;
    padding: .25em .7em;
    border: 2.5px solid var(--mustard);
    border-radius: 46% 54% 50% 48% / 58% 44% 56% 42%;
    background: rgba(217, 162, 39, .08);
    color: var(--light);
    transform: rotate(-1deg);
}
.rubber {
    position: absolute;
    right: -.5rem;
    bottom: -1.4rem;
    padding: .35rem .8rem;
    border: 3px double #E0574A;
    border-radius: 4px 8px 5px 9px;
    color: #E0574A;
    font-family: var(--f-hand);
    font-size: 1.05rem;
    font-style: oblique 8deg;
    line-height: 1.05;
    text-align: center;
    text-transform: lowercase;
    transform: rotate(-12deg);
    opacity: .92;
    pointer-events: none;
}

/* ---------- Карточки записей ---------- */
.latest .sec-title { margin-bottom: 2rem; }
.cards { display: grid; gap: 2rem 1.8rem; }
.cards--front { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--front .card:nth-child(n+4) { display: none; }
.cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.no-aside .cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.2rem 1.15rem 1.35rem;
    background: var(--sheet);
    border: 1.5px solid rgba(27, 42, 58, .6);
    overflow: hidden;
    transition: transform .2s ease;
}
.card:nth-child(3n+1) { transform: rotate(-.4deg); }
.card:nth-child(3n+2) { transform: rotate(.3deg); }
.card:hover { transform: rotate(0) translateY(-3px); }
.card::after {
    content: "";
    position: absolute;
    right: -1.5px;
    bottom: -1.5px;
    width: 34px;
    height: 34px;
    background: linear-gradient(315deg, var(--paper) 0 48%, rgba(27, 42, 58, .6) 48% 52%, #E2D4B8 52% 100%);
}
.card-flag {
    position: absolute;
    top: -2px;
    right: 1.1rem;
    width: 22px;
    height: 42px;
    background: var(--red);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
    z-index: 1;
}
.card-top { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: .9rem; align-items: start; }
.card-thumb { display: block; text-decoration: none; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid rgba(27, 42, 58, .25); }
.card-thumb img.is-sketch { object-fit: contain; border: 0; mix-blend-mode: multiply; }
.card-head { min-width: 0; padding-right: 2.2rem; }
.card-title {
    margin: 0 0 .35rem;
    font-family: var(--f-hand);
    font-size: 1.28rem;
    font-style: oblique 8deg;
    font-weight: 400;
    line-height: 1.2;
    -webkit-text-stroke: .5px currentColor;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--red); }
.card-date { display: block; color: var(--muted); font-family: var(--f-note); font-size: 1.1rem; line-height: 1.1; }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; margin-top: .9rem; }
.card-excerpt { color: var(--ink); font-size: .96rem; line-height: 1.5; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-more {
    align-self: flex-end;
    margin: auto 1.6rem 0 0;
    padding: .35em .95em;
    border: 2px solid var(--red);
    border-radius: 3px 5px 2px 6px / 5px 2px 6px 3px;
    box-shadow: inset 0 0 0 2.5px var(--sheet), inset 0 0 0 4px var(--red);
    color: var(--red);
    font-family: var(--f-hand);
    font-size: 1rem;
    font-style: oblique 8deg;
    text-decoration: none;
    transform: rotate(-3deg);
    transition: background-color .15s ease, color .15s ease;
}
.card-more:hover { background: var(--red); color: var(--light); box-shadow: inset 0 0 0 2.5px var(--red), inset 0 0 0 4px var(--light); }
.empty-note { color: var(--muted); font-family: var(--f-note); font-size: 1.4rem; text-align: center; }

/* ---------- Блоки 3–4: пара ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; padding: 1rem 0 4rem; }
.adparse {
    position: relative;
    min-width: 0;
    padding: 1.8rem 1.7rem 2rem;
    border: 2px solid rgba(27, 42, 58, .7);
    background-color: var(--carton);
    background-image:
        radial-gradient(ellipse at 12% 18%, rgba(255, 250, 235, .35), transparent 45%),
        radial-gradient(ellipse at 88% 85%, rgba(120, 92, 52, .18), transparent 50%),
        radial-gradient(ellipse at 70% 10%, rgba(120, 92, 52, .12), transparent 40%);
}
.adparse .sec-title { font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin-bottom: 1.4rem; }
.adparse-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 9.5rem); gap: 1rem 1.2rem; align-items: start; }
.ad-board { position: relative; aspect-ratio: 640 / 440; container-type: inline-size; min-width: 0; }
.ad-sheet {
    position: absolute;
    left: 23.4%;
    top: 4.5%;
    width: 64%;
    height: 86.4%;
    padding: 3.2cqw 3.4cqw;
    background: #FBF8F1;
    border: 1.5px solid rgba(27, 42, 58, .55);
    transform: rotate(-1deg);
}
.ad-sheet::after {
    content: "";
    position: absolute;
    right: -1.5px;
    top: -1.5px;
    width: 6cqw;
    height: 6cqw;
    background: linear-gradient(225deg, var(--carton) 0 48%, rgba(27, 42, 58, .55) 48% 52%, #E6DCC6 52% 100%);
}
.ad-title { margin: 0; color: var(--ink); font-family: var(--f-hand); font-size: 4.3cqw; font-style: oblique 8deg; line-height: 1.15; -webkit-text-stroke: .4px currentColor; hyphens: none; }
.ad-params { display: flex; gap: 2.2cqw; margin: .8cqw 0 1.6cqw; color: var(--muted); font-family: var(--f-ui); font-size: 2.3cqw; line-height: 1.2; }
.ad-params span { border-bottom: 1.5px dotted var(--muted); }
.ad-photos { display: flex; gap: 1.6cqw; }
.ad-photos img { display: block; height: 27cqw; object-fit: cover; border: 1.5px solid var(--ink); }
.ad-photos img:first-child { width: 74%; }
.ad-photos img:last-child { width: 24%; }
.ad-lines {
    display: block;
    width: 92%;
    height: 12cqw;
    margin-top: 2.6cqw;
    background: repeating-linear-gradient(to bottom, rgba(27, 42, 58, .75) 0 2px, transparent 2px 3.6cqw);
}
.ad-arrows { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.ad-tag {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    padding: .25em .55em;
    border: 2px solid var(--red);
    background: #F6EFDF;
    color: var(--ink);
    font-family: var(--f-hand);
    font-size: clamp(12px, 3.1cqw, 1.25rem);
    font-style: oblique 8deg;
    line-height: 1;
    white-space: nowrap;
    transform: translate(-50%, -50%) rotate(-2deg);
}
.ask { min-width: 0; padding-top: .3rem; }
.ask-title { margin: 0 0 .8rem; padding-bottom: .3rem; background: var(--double-line) no-repeat left bottom / 100% 10px; font-family: var(--f-hand); font-size: 1.2rem; font-style: oblique 8deg; text-decoration: underline; text-decoration-style: wavy; text-decoration-color: transparent; }
.ask-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ask-list li { position: relative; padding-left: 1.8rem; color: var(--ink); font-family: var(--f-ui); font-size: .95rem; line-height: 1.25; }
.ask-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .05em;
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid var(--ink);
    background: #F6EFDF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10l5 5 10-14' fill='none' stroke='%23C23B2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 3px -3px / 120% 120%;
}

.deal { position: relative; min-width: 0; padding: 1.4rem 0 0; }
.deal-grid { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 1rem; }
.deal-ruler {
    position: relative;
    border-left: 3px solid var(--ink);
    background: repeating-linear-gradient(to bottom, var(--ink) 0 2px, transparent 2px 14px) no-repeat left top / 12px 100%;
}
.deal-ruler::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: repeating-linear-gradient(to bottom, var(--ink) 0 2px, transparent 2px 70px);
}
.deal-ruler span {
    position: absolute;
    left: 24px;
    top: 50%;
    color: var(--ink);
    font-family: var(--f-ui);
    font-size: .82rem;
    letter-spacing: .04em;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
}
.deal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.tick {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    width: 100%;
    padding: .35rem .2rem;
    border: 0;
    background: none;
    color: var(--ink);
    font-family: var(--f-ui);
    font-size: 1.02rem;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}
.tick::before {
    content: "";
    flex: 0 0 1.15rem;
    height: 1.15rem;
    margin-top: .05rem;
    border: 2px solid var(--ink);
    background: #F6EBC9 no-repeat center / 100% 100%;
}
.tick[aria-pressed="true"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 3l14 14M17 3L3 17' stroke='%23C23B2E' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.tick[aria-pressed="true"] { color: #44505C; }
.tick:hover::before { border-color: var(--red); }
.deal-count { margin: 1rem 0 0 62px; color: var(--muted); font-family: var(--f-ui); font-size: .92rem; }
.deal-count b { color: var(--red); }
.deal-sign { margin: .4rem 0 0 62px; color: var(--ink); font-family: var(--f-note); font-size: clamp(2.2rem, 3.6vw, 2.9rem); line-height: 1; transform: rotate(-2deg); }

/* ---------- Внутренние страницы ---------- */
.inner { padding: 1.6rem 0 4rem; }
.crumbs { margin: 0 0 1.6rem; color: var(--muted); font-family: var(--f-ui); font-size: .95rem; }
.crumbs a { color: var(--ink); }
.crumbs .sep { margin: 0 .3rem; color: var(--red); }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-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: 1.8rem; }
.page-title {
    margin: 0 0 .6rem;
    font-family: var(--f-hand);
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    font-style: oblique 8deg;
    font-weight: 400;
    line-height: 1.15;
    -webkit-text-stroke: .8px currentColor;
}
.page-intro { max-width: 44rem; }
.sheet {
    position: relative;
    padding: 2rem 2.3rem 2.4rem;
    background: var(--sheet);
    border: 1.5px solid rgba(27, 42, 58, .5);
}
.sheet::after {
    content: "";
    position: absolute;
    right: -1.5px;
    bottom: -1.5px;
    width: 40px;
    height: 40px;
    background: linear-gradient(315deg, var(--paper) 0 48%, rgba(27, 42, 58, .55) 48% 52%, #E2D4B8 52% 100%);
}
.entry-head { margin-bottom: 1.4rem; padding-bottom: .9rem; background: var(--double-line) no-repeat left bottom / 220px 12px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0; color: var(--muted); font-family: var(--f-note); font-size: 1.2rem; }
.entry-cover { margin: 0 0 1.6rem; }
.entry-cover img { display: block; width: 100%; height: auto; border: 1.5px solid rgba(27, 42, 58, .45); }
.entry { color: var(--ink); }
.entry h2 { font-family: var(--f-hand); font-size: 1.6rem; font-style: oblique 8deg; font-weight: 400; letter-spacing: .03em; padding-bottom: .4rem; background: var(--double-line) no-repeat left bottom / 160px 10px; }
.entry h3 { font-family: var(--f-hand); font-size: 1.32rem; font-style: oblique 8deg; font-weight: 400; }
.entry h4 { font-family: var(--f-ui); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; }
.entry ul, .entry ol { margin: 0 0 1.2em; padding-left: 1.5rem; }
.entry li { margin-bottom: .35em; }
.entry ul li::marker { color: var(--red); content: "✓  "; }
.entry ol li::marker { color: var(--red); font-family: var(--f-hand); }
.entry blockquote {
    margin: 1.6em 0;
    padding: 1.1rem 1.4rem 1.1rem 1.6rem;
    background: #E9DDC4;
    border-left: 4px solid var(--red);
    font-style: italic;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry table { width: 100%; margin: 1.4em 0; border-collapse: collapse; border: 1.5px solid var(--ink); font-family: var(--f-ui); font-size: .98rem; }
.entry th, .entry td { padding: .55rem .75rem; border: 1px solid rgba(27, 42, 58, .55); text-align: left; vertical-align: top; }
.entry th { background: #E9DDC4; }
.entry img { display: block; height: auto; }
.entry figure { margin: 1.6em 0; }
.entry figcaption { color: var(--muted); font-family: var(--f-note); font-size: 1.15rem; }
.entry pre { overflow-x: auto; padding: 1rem; background: #E9DDC4; font-size: .9rem; }
.entry code { font-size: .9em; }
.entry hr { height: 8px; margin: 2em 0; border: 0; background: var(--hand-line) repeat-x center / 600px 8px; }
.entry-tags { margin: 1.6rem 0 0; font-family: var(--f-ui); color: var(--muted); }
.post-navigation { margin: 2rem 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation a { display: block; padding: .9rem 1rem; border: 1.5px dashed rgba(27, 42, 58, .5); text-decoration: none; }
.nav-sub { display: block; color: var(--red); font-family: var(--f-ui); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.nav-name { display: block; font-family: var(--f-hand); font-size: 1.1rem; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2.4rem 0 0; }
.pager .page-numbers {
    display: inline-block;
    min-width: 2.5rem;
    padding: .4rem .75rem;
    border: 1.5px solid var(--ink);
    background: var(--sheet);
    color: var(--ink);
    font-family: var(--f-hand);
    font-size: 1.05rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}
.pager a.page-numbers:hover { background: #F4E3B6; color: var(--ink); }
.pager .page-numbers.current { background: var(--red); border-color: var(--red); color: var(--light); transform: rotate(-2deg); }
.pager .page-numbers.dots { min-width: 0; border: 0; background: none; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    padding: 1.4rem 1.3rem 1.6rem;
    background: var(--aside);
    border: 2px dashed rgba(27, 42, 58, .45);
    color: var(--ink);
}
.sidebar .widget + .widget { margin-top: 1.8rem; }
.sidebar .widget-title {
    margin: 0 0 .9rem;
    padding-bottom: .45rem;
    background: var(--double-line) no-repeat left bottom / 100% 10px;
    color: var(--ink);
    font-family: var(--f-hand);
    font-size: 1.2rem;
    font-style: oblique 8deg;
    font-weight: 400;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .45rem 0; border-bottom: 1px dashed rgba(27, 42, 58, .35); color: var(--ink); font-size: .98rem; line-height: 1.35; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); }
.sidebar a:hover { color: var(--red); }
.sidebar .post-date { display: block; color: #6E604A; font-size: .85rem; }
.sidebar p { color: var(--ink); }

/* ---------- Поиск ---------- */
.search-form { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.search-field {
    flex: 1 1 14rem;
    min-width: 0;
    padding: .6rem .8rem;
    border: 1.5px solid var(--ink);
    border-radius: 0;
    background: #FBF8F1;
    color: var(--ink);
    font-family: var(--f-ui);
    font-size: 1rem;
}
.search-submit { flex: 0 0 auto; }
.empty-box { padding: 1.4rem; border: 1.5px dashed rgba(27, 42, 58, .45); background: var(--sheet); }
.lost { text-align: center; }
.lost-code { margin: 0; color: var(--red); font-family: var(--f-hand); font-size: clamp(4rem, 12vw, 7rem); line-height: 1; transform: rotate(-4deg); }
.lost .search-form { justify-content: center; max-width: 30rem; margin-inline: auto; }
.lost-home { margin-top: 1.4rem; }

/* ---------- Комментарии ---------- */
.comments { margin-top: 2.4rem; padding: 1.8rem 2rem; background: var(--sheet); border: 1.5px dashed rgba(27, 42, 58, .45); }
.comments-title, .comment-reply-title { margin: 0 0 1rem; font-family: var(--f-hand); font-size: 1.45rem; font-style: oblique 8deg; font-weight: 400; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding-left: 1.6rem; border-left: 2px dashed rgba(194, 59, 46, .4); }
.note-body { padding: 1rem 0; border-bottom: 1px dashed rgba(27, 42, 58, .3); }
.note-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.note-head img { display: block; border-radius: 50%; }
.note-author { font-family: var(--f-ui); font-weight: 700; }
.note-date { color: var(--muted); font-family: var(--f-note); font-size: 1.1rem; }
.note-wait { color: var(--red); font-style: italic; }
.note-text { margin-top: .5rem; }
.note-reply a { font-family: var(--f-ui); font-size: .9rem; color: var(--red); }
.comment-form label { display: block; margin-bottom: .3rem; font-family: var(--f-ui); font-size: .95rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .6rem .75rem;
    border: 1.5px solid var(--ink);
    border-radius: 0;
    background: #FBF8F1;
    color: var(--ink);
    font: inherit;
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; }
.comment-form .submit {
    padding: .6em 1.4em;
    border: 2px solid var(--red);
    background: var(--red);
    color: var(--light);
    font-family: var(--f-hand);
    font-size: 1.05rem;
    cursor: pointer;
    transform: rotate(-1deg);
}
.comment-form .submit:hover { background: var(--red-dark); }
.comment-notes, .logged-in-as { color: var(--muted); font-family: var(--f-ui); font-size: .92rem; }
.req { color: var(--red); }

/* ---------- Подвал ---------- */
.colophon {
    padding: 3rem 0 1.6rem;
    color: var(--light);
    background-color: var(--pine);
    background-image:
        linear-gradient(rgba(242, 235, 221, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242, 235, 221, .045) 1px, transparent 1px);
    background-size: 20px 20px;
    border-top: 3px solid var(--ink);
}
.colophon-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.colophon-col { min-width: 0; }
.colophon .widget { color: rgba(242, 235, 221, .9); font-family: var(--f-ui); font-size: .98rem; line-height: 1.5; }
.colophon .widget p { color: rgba(242, 235, 221, .9); }
.colophon .widget-title { margin: 0 0 .8rem; color: var(--light); font-family: var(--f-hand); font-size: 1.3rem; font-style: oblique 8deg; font-weight: 400; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { padding: .22rem 0; }
.colophon a { color: var(--light); text-decoration-color: rgba(242, 235, 221, .55); }
.colophon a:hover { color: #F4D88A; text-decoration-color: #F4D88A; }
.colophon-copy { margin-top: 2.4rem; padding-top: 1.1rem; border-top: 1.5px dashed rgba(242, 235, 221, .35); text-align: center; }
.colophon-copy p { margin: 0; color: rgba(242, 235, 221, .82); font-family: var(--f-ui); font-size: .92rem; }

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 1rem 1.4rem;
    max-width: 760px;
    margin-inline: auto;
    padding: 1rem 1.3rem;
    background: var(--ink);
    border: 2px dashed var(--mustard);
    color: var(--light);
}
.cookie-text { margin: 0; color: var(--light); font-family: var(--f-ui); font-size: .95rem; line-height: 1.4; }
.cookie-ok { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .masthead-in { flex-wrap: wrap; }
    .tabs { flex: 1 1 100%; }
    .tabs-list { display: flex; flex-wrap: wrap; gap: .5rem .6rem; }
    .tabs-list li:nth-child(odd) { margin-left: 0; }
    .crit-grid { grid-template-columns: minmax(0, 1fr); }
    .prio { min-height: 0; grid-template-rows: auto auto auto; justify-self: center; }
    .prio-bar { min-height: 220px; }
    .cards--front { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .duo { grid-template-columns: minmax(0, 1fr); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.4rem; }
    .layout-single .content-area { width: 100%; }
    .colophon-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .sale-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .sale-table, .sale-table tbody, .sale-table tr, .sale-table th, .sale-table td { display: block; width: 100%; }
    .sale-table tbody tr { margin-bottom: 1.2rem; padding: .7rem .9rem; border: 1.5px dashed rgba(242, 235, 221, .42); }
    .sale-table tbody tr + tr th, .sale-table tbody tr + tr td, .sale-table td { border: 0; }
    .sale-table tbody th { width: 100%; padding: 0 0 .4rem; color: #F4E3B6; font-family: var(--f-hand); font-size: 1.25rem; }
    .sale-table td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .6rem; padding: .45rem 0; text-align: left; border-top: 1px dashed rgba(242, 235, 221, .25); }
    .sale-table td::before { content: attr(data-col); color: rgba(242, 235, 221, .65); font-size: .9rem; }
    .rubber { right: .2rem; bottom: -.6rem; }
    .cards--list, .no-aside .cards--list { grid-template-columns: minmax(0, 1fr); }
    .crit-notes { grid-template-columns: minmax(0, 1fr); }
    .adparse-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .shell { width: 92%; }
    body { font-size: 1rem; }
    .band { padding: 2.2rem 0 2.6rem; }
    .brand-svg, .brand-logo { width: 64px; height: 64px; }
    .brand { gap: .8rem; }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: .6rem;
        padding: .5rem .9rem;
        border: 1.5px solid var(--ink);
        background: var(--tab);
        color: var(--ink);
        font-family: var(--f-hand);
        font-size: 1.05rem;
        cursor: pointer;
    }
    .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--ink); }
    .menu-toggle-bars { position: relative; }
    .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; }
    .tabs { display: none; }
    .tabs.is-open { display: block; }
    .tabs-list { display: grid; }
    .cards--front { grid-template-columns: minmax(0, 1fr); }
    .card-top { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); }
    .adparse { padding: 1.4rem 1.1rem 1.6rem; }
    .sheet { padding: 1.4rem 1.2rem 1.8rem; }
    .comments { padding: 1.3rem 1.1rem; }
    .colophon-cols { grid-template-columns: minmax(0, 1fr); }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem; }
    .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
    .post-navigation .nav-next { grid-column: auto; }
    .crit-notes li { font-size: 1.2rem; }
    .crit::before, .crit::after, .latest::after { display: none; }
}
