/*
Theme Name: dds_blu-lok.com
Theme URI: https://blu-lok.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: blulok
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Oswald"; src: url("fonts/oswald-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; src: url("fonts/oswald-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; 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"; src: url("fonts/oswald-cyrillic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; 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"; src: url("fonts/oswald-cyrillic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; src: url("fonts/oswald-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; 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"; src: url("fonts/oswald-cyrillic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; src: url("fonts/oswald-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; 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 Sans"; src: url("fonts/ibm-plex-sans-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; 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 Sans"; src: url("fonts/ibm-plex-sans-cyrillic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; 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 Sans"; src: url("fonts/ibm-plex-sans-cyrillic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; 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 {
    --bg: #101B2D;
    --grid: #24344D;
    --paper: #F3EEE3;
    --paper-2: #E7E0D0;
    --paper-3: #DAD2BF;
    --green: #1E3A32;
    --foot: #0B1420;
    --aside: #15223A;
    --ink: #1C2430;
    --muted: #6B7280;
    --light: #EDE8DC;
    --light-muted: #A9B0BC;
    --marker: #E8FF4D;
    --marker-hover: #F3FF9A;
    --stamp: #C8462F;
    --rule: #B9B2A2;
    --head: "Oswald", "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
    --body: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --speckle:
        radial-gradient(rgba(28, 36, 48, .17) .7px, transparent 1.1px) 0 0 / 17px 19px,
        radial-gradient(rgba(107, 114, 128, .14) .8px, transparent 1.3px) 9px 7px / 29px 23px,
        radial-gradient(rgba(185, 178, 162, .35) 1px, transparent 1.6px) 4px 15px / 41px 37px;
    --marker-shape: polygon(1% 10%, 18% 3%, 41% 8%, 63% 1%, 86% 6%, 99% 2%, 97% 46%, 100% 92%, 79% 97%, 55% 93%, 31% 99%, 9% 94%, 0% 97%, 2% 54%);
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--light);
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 44px 44px;
    background-position: -1px -1px;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px dashed var(--marker);
    outline-offset: 3px;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--head);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 .6em;
    letter-spacing: .01em;
}
p { margin: 0 0 1em; }
p, li, dd, h1, h2, h3, h4, td, th, .card-title, .brand-name {
    overflow-wrap: break-word;
    hyphens: auto;
}
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
    position: fixed; top: 8px; left: 8px; z-index: 1000;
    width: auto; height: auto; clip: auto;
    background: var(--marker); color: var(--ink); padding: .6em 1em; font-weight: 600;
}

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

/* ---------- Бумажный лист ---------- */
.sheet {
    position: relative;
    isolation: isolate;
    background: var(--speckle), var(--paper);
    color: var(--ink);
    border: 1px solid var(--rule);
    padding: 2.4rem 2.6rem;
    box-shadow:
        6px 7px 0 -1px var(--paper-2),
        6px 7px 0 0 var(--rule),
        12px 13px 0 -1px var(--paper-3),
        12px 13px 0 0 var(--rule),
        0 22px 40px rgba(0, 0, 0, .35);
}
.sheet a { color: var(--ink); text-decoration-color: rgba(28, 36, 48, .45); }
.sheet a:hover { color: #000; text-decoration-color: var(--stamp); }

/* ---------- Кнопки-маркеры ---------- */
.marker-btn,
.search-form button,
.comment-form .submit,
.cookie-banner button {
    display: inline-block;
    font-family: var(--head);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .03em;
    line-height: 1.2;
    color: var(--ink) !important;
    text-decoration: none !important;
    background: var(--marker);
    border: 0;
    border-radius: 0;
    padding: .62em 1.25em .66em;
    clip-path: var(--marker-shape);
    cursor: pointer;
    transition: background-color .15s, transform .15s;
}
.marker-btn:hover,
.search-form button:hover,
.comment-form .submit:hover,
.cookie-banner button:hover {
    background: var(--marker-hover);
    transform: translate(-1px, -2px) rotate(-1deg);
}
.mark {
    background-image: linear-gradient(100deg, transparent 0 1%, var(--marker) 2% 97%, transparent 99%);
    background-repeat: no-repeat;
    background-size: 100% .38em;
    background-position: 0 92%;
    padding: 0 .12em;
}

/* ---------- Шапка ---------- */
.site-header {
    background: var(--bg);
    border-bottom: 3px solid var(--marker);
    position: relative;
}
.header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.1rem 1.6rem;
    align-items: start;
    padding: 1.9rem 0 1.6rem;
}
.brand-mark { display: block; width: 74px; flex: none; }
.brand-mark svg, .brand-mark img { width: 74px; height: auto; display: block; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--head);
    font-weight: 500;
    text-transform: uppercase;
    font-size: clamp(1.35rem, 1rem + 1.5vw, 2.15rem);
    line-height: 1.12;
    letter-spacing: .02em;
    color: var(--light);
    text-decoration: none;
    max-width: 36ch;
    text-wrap: balance;
    hyphens: manual;
}
.brand-name:hover { color: #fff; }
.brand-desc {
    margin: .5rem 0 0;
    hyphens: manual;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--light-muted);
    max-width: 62ch;
}
.nav-toggle[hidden] { display: none !important; }
.nav-toggle {
    display: none;
    background: transparent;
    color: var(--light);
    border: 1px solid var(--grid);
    font-family: var(--head);
    font-size: .95rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .45em .9em;
    cursor: pointer;
}
.nav-toggle-bars { display: inline-block; width: 18px; height: 12px; margin-right: .5em; vertical-align: -1px;
    background: linear-gradient(var(--marker) 0 2px, transparent 2px 5px, var(--marker) 5px 7px, transparent 7px 10px, var(--marker) 10px 12px); }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0 0 .35rem; }
.main-nav a {
    font-size: .93rem;
    color: var(--light);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}
.main-nav a:hover { color: var(--marker); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a {
    color: var(--marker);
    border-bottom-color: var(--marker);
}

/* ---------- Хлебные крошки ---------- */
.crumbs {
    font-size: .84rem;
    color: var(--light-muted);
    margin: 2rem 0 1.4rem;
    letter-spacing: .01em;
}
.crumbs a { color: var(--light); text-decoration-color: rgba(237, 232, 220, .4); }
.crumbs a:hover { color: var(--marker); }
.crumbs-sep { color: var(--marker); margin: 0 .3em; }

/* ---------- Раскладки ---------- */
.site-main { padding-bottom: 4rem; }
.layout-single { display: block; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
}
.content-area { min-width: 0; }
@media (min-width: 960px) {
    .layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        justify-content: space-between;
        column-gap: 6%;
        align-items: start;
    }
}

.page-head { margin-bottom: 2rem; }
.page-head-title {
    font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.2rem);
    font-weight: 500;
    color: var(--light);
    margin: 0;
}
.page-head-note { color: var(--light-muted); margin: .6rem 0 0; max-width: 60ch; }

.sect-title {
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 500;
    font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
    padding-bottom: .45rem;
    border-bottom: 1px solid var(--rule);
    margin: 0 0 1.6rem;
}

/* ---------- Карточки записей ---------- */
.cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem 1.8rem;
}
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cards-3 { gap: 2.4rem 2rem; }
@media (min-width: 960px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--speckle), var(--paper);
    color: var(--ink);
    border: 1px solid var(--rule);
    padding: .8rem .8rem 1rem;
    transform: rotate(-1.2deg);
    box-shadow:
        4px 5px 0 -1px var(--paper-2),
        4px 5px 0 0 var(--rule),
        8px 9px 0 -1px var(--paper-3),
        8px 9px 0 0 var(--rule),
        0 14px 24px rgba(0, 0, 0, .22);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:nth-child(3n+2) { transform: rotate(1.1deg); }
.card:nth-child(3n) { transform: rotate(-.6deg); }
.card:hover { transform: rotate(0) translateY(-4px); }
.card::after {
    content: "";
    position: absolute;
    top: -6px;
    right: 14px;
    width: 22px;
    height: 46px;
    background: var(--stamp);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
    z-index: 2;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12);
}
.card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--rule);
    background: var(--paper-2);
}
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    filter: saturate(.85) contrast(1.02);
    transition: transform .35s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: .9rem .25rem 0;
}
.card-title {
    font-family: var(--head);
    font-weight: 500;
    font-size: 1.22rem;
    line-height: 1.2;
    margin: 0 0 .45rem;
}
.card-title a { text-decoration: none; color: var(--ink); }
.card-title a:hover { color: var(--ink); background: linear-gradient(transparent 62%, var(--marker) 62% 92%, transparent 92%); }
.card-excerpt { font-size: .88rem; line-height: 1.55; color: #2E3644; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-top: .6rem;
    padding-top: .7rem;
    border-top: 1px dashed var(--rule);
}
.card-date { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.card-foot .marker-btn { font-size: .85rem; padding: .5em 1em .55em; }
.card.is-sticky .card-body::before {
    content: "Закреплено";
    align-self: flex-start;
    font-family: var(--head);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--stamp);
    border: 1.5px solid var(--stamp);
    padding: .05em .5em;
    margin-bottom: .5rem;
    transform: rotate(-3deg);
}

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin: 3rem 0 0;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 2.5rem;
    text-align: center;
    font-family: var(--head);
    font-size: .95rem;
    padding: .4em .8em;
    color: var(--light);
    border: 1px solid var(--grid);
    background: rgba(16, 27, 45, .85);
    text-decoration: none;
    transition: background-color .15s, color .15s, transform .15s;
}
.pager a.page-numbers:hover { border-color: var(--marker); color: var(--marker); transform: translateY(-2px); }
.pager .page-numbers.current {
    background: var(--marker);
    color: var(--ink);
    border-color: var(--marker);
    clip-path: var(--marker-shape);
}
.pager .page-numbers.dots { border: 0; background: none; min-width: 0; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    background: var(--aside);
    border: 1px solid var(--grid);
    border-top: 3px solid var(--marker);
    padding: 1.6rem 1.5rem;
    color: var(--light);
}
.sidebar .widget { margin: 0 0 2rem; font-size: .92rem; color: var(--light); }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 1.02rem;
    color: var(--light);
    padding-bottom: .45rem;
    border-bottom: 1px solid var(--grid);
    margin-bottom: 1rem;
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: .5rem 0 .5rem 1.1rem; border-bottom: 1px dashed var(--grid); position: relative; }
.sidebar li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; background: var(--marker); }
.sidebar a { color: var(--light); text-decoration-color: rgba(237, 232, 220, .35); }
.sidebar a:hover { color: var(--marker); }
.sidebar .post-date, .sidebar .rss-date { display: block; color: var(--light-muted); font-size: .8rem; }
.sidebar p { color: var(--light); }

/* ---------- Запись и страница ---------- */
.entry { padding: 2.6rem 2.8rem; }
.entry-head { margin-bottom: 1.6rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--rule); position: relative; }
.entry-title { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.1rem); font-weight: 500; margin: 0 0 .5rem; }
.entry-meta { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.entry-meta a { color: var(--muted); }
.entry-stamp {
    position: absolute;
    right: 0;
    top: -.4rem;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    color: var(--stamp);
    border: 2px solid var(--stamp);
    padding: .15em .6em;
    transform: rotate(4deg);
    opacity: .85;
}
.entry-cover { margin: 0 0 1.8rem; border: 1px solid var(--rule); }
.entry-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.entry-content { font-size: 1.02rem; line-height: 1.8; }
.entry-content h2 { font-size: 1.75rem; margin: 2rem 0 .8rem; }
.entry-content h3 { font-size: 1.35rem; margin: 1.6rem 0 .6rem; }
.entry-content h2::after { content: ""; display: block; width: 3.2rem; height: .28em; margin-top: .3em; background: var(--marker); clip-path: var(--marker-shape); }
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul li { position: relative; padding-left: 1.7em; margin-bottom: .4em; }
.entry-content ul li::before { content: ""; position: absolute; left: 0; top: .42em; width: .9em; height: .9em; border: 1.5px solid var(--ink); background: linear-gradient(135deg, transparent 45%, var(--marker) 45%); }
.entry-content ol li { margin-bottom: .4em; }
.entry-content ol li::marker { font-family: var(--head); color: var(--stamp); }
.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.3rem 1.6rem;
    background: var(--bg);
    color: var(--light);
    border-left: 6px solid var(--marker);
    font-size: 1.08rem;
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content blockquote cite { display: block; margin-top: .5rem; color: var(--light-muted); font-size: .88rem; font-style: normal; }
.entry-content blockquote a { color: var(--marker); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .94rem; border: 1px solid var(--ink); }
.entry-content th, .entry-content td { border: 1px solid var(--rule); padding: .6em .8em; text-align: left; vertical-align: top; }
.entry-content th { background: var(--ink); color: var(--light); font-family: var(--head); font-weight: 500; letter-spacing: .04em; border-color: var(--ink); }
.entry-content tr:nth-child(even) td { background: rgba(185, 178, 162, .16); }
.entry-content img { border: 1px solid var(--rule); }
.entry-content figure { margin: 1.6rem 0; }
.entry-content figcaption { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.entry-content pre { overflow-x: auto; background: #E5DFD1; padding: 1rem; font-size: .9rem; }
.entry-content mark { background: var(--marker); color: var(--ink); }
.entry-content .wp-block-table { overflow-x: auto; }
.table-scroll { overflow-x: auto; }
.entry-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .82rem; }
.entry-tags a { border: 1px solid var(--rule); padding: .2em .7em; text-decoration: none; }
.entry-tags a:hover { background: var(--marker); border-color: var(--marker); }

.post-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 2rem; }
@media (min-width: 600px) { .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-nav a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--grid); background: rgba(16, 27, 45, .9); color: var(--light); text-decoration: none; }
.post-nav a:hover { border-color: var(--marker); }
.post-nav span { display: block; font-size: .78rem; color: var(--light-muted); text-transform: uppercase; letter-spacing: .1em; }
.post-nav .next { text-align: right; }

/* ---------- Комментарии ---------- */
.comments { margin-top: 2.4rem; padding: 2.2rem 2.4rem; }
.comments-title { font-size: 1.5rem; }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .children { padding-left: 1.6rem; border-left: 2px solid var(--marker); margin-left: .4rem; }
.note-body { padding: 1rem 0; border-bottom: 1px dashed var(--rule); }
.note-head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: .4rem; }
.note-head img { border-radius: 0; border: 1px solid var(--rule); }
.note-author { font-weight: 600; }
.note-date { font-size: .8rem; color: var(--muted); }
.note-wait { font-size: .85rem; color: var(--stamp); }
.note-text p { margin-bottom: .6em; }
.note-reply a { font-size: .85rem; }
.comment-respond { margin-top: 1.8rem; }
.comment-reply-title { font-size: 1.35rem; }
.comment-reply-title small { font-size: .8rem; margin-left: .6rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: .7em .8em; font: inherit; color: var(--ink);
    background: #FBF8F1; border: 1px solid var(--rule); border-radius: 0;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--ink); }
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-notes, .logged-in-as { font-size: .85rem; color: var(--muted); }
.comment-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; font-size: .9rem; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.search-form input[type="search"] {
    flex: 1 1 200px; min-width: 0;
    padding: .65em .8em; font: inherit; color: var(--ink);
    background: #FBF8F1; border: 1px solid var(--rule); border-radius: 0;
}
.sidebar .search-form input[type="search"] { border-color: var(--grid); }

/* ---------- Пустые состояния и 404 ---------- */
.empty-state { padding: 2.4rem 2.6rem; }
.empty-state h2 { font-size: 1.6rem; }
.e404 { text-align: left; }
.e404-code {
    font-family: var(--head);
    font-size: clamp(4.5rem, 3rem + 7vw, 8rem);
    line-height: 1;
    color: var(--ink);
    margin: 0 0 .5rem;
    display: inline-block;
    background: linear-gradient(transparent 60%, var(--marker) 60% 88%, transparent 88%);
}
.e404 .search-form { max-width: 520px; margin: 1.4rem 0; }

/* ==========================================================
   ГЛАВНАЯ
   ========================================================== */
.fp { padding: 2.8rem 0 0; }
.fp-block { margin-bottom: 3.6rem; }
.fp-block:last-child { margin-bottom: 0; }

/* --- Блок 1: смотровой лист --- */
.fp-check .sheet {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 2.6rem 2.8rem 2.8rem;
}
@media (min-width: 960px) {
    .fp-check .sheet { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.fp-check-title {
    font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem);
    font-weight: 500;
    margin-bottom: .4rem;
}
.fp-check-lead { color: var(--muted); font-size: .92rem; max-width: 46ch; margin-bottom: 1.4rem; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
    display: grid;
    grid-template-columns: 1.4rem minmax(0, 1fr);
    gap: .9rem;
    align-items: start;
    margin-bottom: .95rem;
}
.checklist .box {
    width: 1.35rem; height: 1.35rem;
    margin-top: .35rem;
    border: 2px solid var(--ink);
    background: #FBF8F1;
}
.checklist li.is-done .box { background: var(--marker); }
.checklist-name {
    display: inline;
    font-family: var(--head);
    font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
    font-weight: 500;
    line-height: 1.35;
}
.checklist-hint { display: block; font-size: .84rem; line-height: 1.5; color: var(--muted); margin-top: .1rem; }

.house {
    position: relative;
    container-type: inline-size;
    padding-left: 22%;
    max-width: 470px;
    justify-self: center;
    width: 100%;
}
.house img { width: 100%; height: auto; }
.house-level {
    position: absolute;
    left: 0;
    width: 24%;
    font-family: var(--head);
    font-size: max(13px, 5.2cqw);
    line-height: 1;
    color: var(--ink);
    transform: translateY(-100%);
    padding-bottom: 3px;
}
.house-level::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 1.5px;
    background: var(--ink);
}
.house-level::before {
    content: "";
    position: absolute;
    right: -1px; bottom: -8px;
    border: 4.5px solid transparent;
    border-left: 8px solid var(--ink);
    border-right: 0;
}
.house-level.l3 { top: 31.5%; }
.house-level.l2 { top: 53.5%; }
.house-level.l1 { top: 76%; }
.house-stamp {
    position: absolute;
    left: 69%;
    top: 59%;
    font-family: var(--head);
    font-size: max(10px, 3.4cqw);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--stamp);
    background: rgba(243, 238, 227, .92);
    border: 2px solid var(--stamp);
    outline: 1px solid var(--stamp);
    outline-offset: 2px;
    padding: .1em .45em;
    transform: rotate(-9deg);
    white-space: nowrap;
}
.house-stamp::after {
    content: "";
    position: absolute;
    left: calc(100% + 8px);
    top: 30%;
    width: 2.4em;
    height: 1em;
    border-top: 2px solid var(--stamp);
    border-radius: 50% 50% 0 0;
    transform: rotate(14deg);
}

/* --- Блок 2: три предложения --- */
.fp-compare {
    background: var(--green);
    background-image:
        linear-gradient(rgba(237, 232, 220, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(237, 232, 220, .045) 1px, transparent 1px);
    background-size: 22px 22px;
    border-top: 1px solid rgba(237, 232, 220, .12);
    border-bottom: 1px solid rgba(237, 232, 220, .12);
    color: var(--light);
    padding: 2.6rem 0 2.8rem;
}
.fp-compare-title {
    font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 500;
    color: var(--light);
    margin-bottom: .5rem;
}
.fp-compare-lead { color: #C9CFC6; font-size: .92rem; max-width: 70ch; margin-bottom: 1.8rem; }
.ledger {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) { .ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ledger-col { padding: .4rem 1.6rem 1rem; min-width: 0; }
.ledger-col + .ledger-col { border-top: 1px solid rgba(237, 232, 220, .35); }
@media (min-width: 760px) {
    .ledger-col:first-child { padding-left: 0; }
    .ledger-col + .ledger-col { border-top: 0; border-left: 1px solid rgba(237, 232, 220, .35); }
}
@media (max-width: 759px) { .ledger-col { padding-left: 0; padding-right: 0; } }
.ledger-head {
    font-family: var(--head);
    font-size: .8rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--marker);
    margin: .6rem 0 .8rem;
}
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li {
    position: relative;
    padding: .28rem 0 .28rem 1.45rem;
    font-size: .98rem;
    line-height: 1.4;
}
.ledger li small { display: block; font-size: .78rem; color: #AEB8AE; }
.ledger li.is-hl > span { box-shadow: inset 0 -2px 0 var(--marker); padding-bottom: 1px; }
.ledger li.dot-y::before, .ledger li.dot-r::before {
    content: "";
    position: absolute;
    left: 0; top: .62em;
    width: .78rem; height: .78rem;
    border-radius: 50%;
}
.ledger li.dot-y::before { background: var(--marker); }
.ledger li.dot-r::before { background: var(--stamp); }
.ledger-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.8rem;
    margin-top: 1.6rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(237, 232, 220, .3);
    font-size: .84rem;
    color: #C9CFC6;
}
.ledger-legend span::before { content: ""; display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .45rem; vertical-align: -1px; }
.ledger-legend .lg-y::before { background: var(--marker); }
.ledger-legend .lg-r::before { background: var(--stamp); }
.ledger-legend .lg-u::before { border-radius: 0; height: 2px; width: 1.2rem; vertical-align: 3px; background: var(--marker); }

/* --- Последние записи --- */
.fp-latest .sheet { padding: 2.2rem 2.4rem 2.8rem; }
.fp-latest .sect-title { border-bottom-color: var(--rule); }
.fp-latest .card { box-shadow: 4px 5px 0 -1px var(--paper-2), 4px 5px 0 0 var(--rule), 8px 9px 0 -1px var(--paper-3), 8px 9px 0 0 var(--rule), 0 8px 16px rgba(28, 36, 48, .12); }
.fp-latest-more { margin-top: 2.2rem; text-align: right; }

/* --- Блок 3: штампы --- */
.fp-stamps-title {
    font-size: clamp(1.6rem, 1.1rem + 2vw, 2.7rem);
    color: var(--light);
    font-weight: 500;
    margin-bottom: .4rem;
}
.fp-stamps-lead { color: var(--light-muted); max-width: 70ch; font-size: .92rem; margin-bottom: 1.4rem; }
.margin-strip {
    background: var(--speckle), var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    padding: 2.6rem 0;
    position: relative;
    z-index: 1;
}
.margin-strip::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 7%;
    border-left: 1px solid rgba(200, 70, 47, .35);
}
.clauses {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border: 1px solid var(--ink);
    background: rgba(251, 248, 241, .55);
    position: relative;
}
@media (min-width: 600px) { .clauses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .clauses { grid-template-columns: 1.35fr 1fr 1fr 1fr; } }
.clause {
    position: relative;
    min-width: 0;
    padding: 1.3rem 1.3rem 1.4rem;
    border-bottom: 1px solid var(--rule);
}
@media (min-width: 600px) {
    .clause { border-right: 1px solid var(--rule); }
}
@media (min-width: 960px) {
    .clause { border-bottom: 0; }
    .clause:last-child { border-right: 0; }
    .clause.has-stamp-l { padding-left: 32%; }
}
.clause-name { font-family: var(--head); font-size: 1.2rem; font-weight: 500; margin: 0 0 .35rem; position: relative; z-index: 2; }
.clause-text { font-size: .84rem; line-height: 1.55; color: #3A4250; margin: 0; position: relative; z-index: 2; }

.stamp {
    position: absolute;
    z-index: 1;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 4px solid var(--stamp);
    display: grid;
    place-items: center;
    color: var(--stamp);
    opacity: .9;
    pointer-events: none;
    mix-blend-mode: multiply;
}
.stamp::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    border: 2px solid var(--stamp);
}
.stamp::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background:
        radial-gradient(var(--paper) 1.2px, transparent 1.8px) 0 0 / 11px 13px,
        radial-gradient(var(--paper) 1px, transparent 1.6px) 5px 6px / 17px 9px;
    opacity: .75;
}
.stamp-band {
    position: relative;
    z-index: 1;
    font-family: var(--head);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    background: var(--paper);
    border: 3px solid var(--stamp);
    outline: 1.5px solid var(--stamp);
    outline-offset: 2px;
    padding: .05em .45em;
}
.stamp-1 { left: -14px; top: 50%; transform: translateY(-50%) rotate(-14deg); }
.stamp-2 { left: 62%; top: -46px; transform: rotate(-8deg); }
.stamp-2 .stamp-band { font-size: .82rem; }
.stamp-3 { right: -58px; top: -58px; transform: rotate(-6deg); }
.stamp-3 .stamp-band { font-size: .95rem; }
@media (max-width: 959px) {
    .stamp { width: 96px; height: 96px; border-width: 3px; }
    .stamp-band { font-size: .78rem !important; }
    .stamp-1 { left: auto; right: 6px; top: 10px; transform: rotate(-12deg); }
    .stamp-2 { left: auto; right: 10px; top: 10px; }
    .stamp-3 { right: 6px; top: 10px; }
    .clause.has-stamp-l, .clause.has-stamp { padding-right: 110px; min-height: 120px; }
}

/* --- Блок 4: папка --- */
.fp-folder { margin-top: 3.6rem; }
.fp-folder .sheet {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 2.6rem 2.8rem;
}
@media (min-width: 960px) {
    .fp-folder .sheet { grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, .7fr); }
}
.fp-folder-title { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem); font-weight: 500; margin-bottom: .7rem; }
.fp-folder-text { font-size: .92rem; color: #3A4250; margin-bottom: 1.4rem; }
.folder-pic { margin: 0; }
.folder-pic img {
    width: 100%;
    aspect-ratio: 211 / 134;
    object-fit: cover;
    filter: drop-shadow(0 10px 14px rgba(28, 36, 48, .16));
}
.ready-scale { list-style: none; margin: 0; padding: 0; counter-reset: rs; }
.ready-scale li {
    display: grid;
    grid-template-columns: 2.3rem minmax(0, 1fr);
    align-items: stretch;
    min-height: 2.6rem;
}
.ready-scale .cell {
    border: 1.5px solid var(--ink);
    border-bottom-width: 0;
    background: #FBF8F1;
}
.ready-scale li:last-child .cell { border-bottom-width: 1.5px; }
.ready-scale li.is-on .cell { background: var(--marker); }
.ready-scale .lbl {
    align-self: center;
    padding-left: .8rem;
    font-family: var(--head);
    font-size: 1.08rem;
    line-height: 1.2;
}
.ready-scale .lbl small { display: block; font-family: var(--body); font-size: .76rem; color: var(--muted); line-height: 1.35; }
.ready-note { margin-top: .9rem; font-size: .8rem; color: var(--muted); }

/* ---------- Подвал ---------- */
.site-footer {
    background: var(--foot);
    color: var(--light);
    border-top: 1px solid var(--grid);
    padding: 3rem 0 1.6rem;
    margin-top: 1rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}
@media (min-width: 760px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.footer-col { min-width: 0; color: var(--light); }
.footer-col .widget { margin-bottom: 1.6rem; font-size: .88rem; line-height: 1.6; color: #C9C4B8; }
.footer-col .widget-title {
    font-family: var(--head);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--light);
    margin-bottom: .7rem;
}
.footer-col p { color: #C9C4B8; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .25rem; }
.footer-col a { color: var(--light); text-decoration-color: rgba(237, 232, 220, .45); }
.footer-col a:hover { color: var(--marker); text-decoration-color: var(--marker); }
.footer-col .post-date { color: var(--light-muted); font-size: .8rem; display: block; }
.copyright {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--grid);
    text-align: center;
    font-size: .82rem;
    color: var(--light-muted);
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 900;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1.4rem;
    align-items: center;
    justify-content: space-between;
    background: var(--speckle), var(--paper);
    color: var(--ink);
    border: 1px solid var(--rule);
    border-left: 6px solid var(--stamp);
    padding: 1rem 1.4rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.cookie-banner p { margin: 0; font-size: .86rem; line-height: 1.5; flex: 1 1 320px; min-width: 0; }
.cookie-banner a { color: var(--ink); }

/* ---------- Адаптив ---------- */
@media (max-width: 959px) {
    .header-inner { grid-template-columns: auto minmax(0, 1fr); }
    .nav-toggle { display: inline-block; grid-column: 1 / -1; justify-self: start; }
    .main-nav { grid-column: 1 / -1; display: none; }
    .main-nav.is-open { display: block; }
    .main-nav ul { border-top: 1px solid var(--grid); }
    .main-nav li { margin: 0; border-bottom: 1px solid var(--grid); }
    .main-nav a { display: block; padding: .7rem 0; border-bottom: 0; }
    .main-nav .current-menu-item > a { border-bottom: 0; }
}
@media (max-width: 600px) {
    body { font-size: 15px; }
    .header-inner { padding: 1.3rem 0 1.1rem; gap: .8rem 1rem; }
    .brand-mark, .brand-mark svg, .brand-mark img { width: 52px; }
    .brand-desc { font-size: .8rem; }
    .sheet, .entry, .comments, .empty-state { padding: 1.6rem 1.3rem; }
    .fp-check .sheet, .fp-folder .sheet { padding: 1.7rem 1.3rem; }
    .fp-latest .sheet { padding: 1.6rem 1.2rem 2rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .clause { padding: 1.1rem 1rem 1.2rem; }
    .clause.has-stamp-l, .clause.has-stamp { padding-right: 96px; }
    .stamp { width: 80px; height: 80px; }
    .stamp-band { font-size: .64rem !important; }
    .stamp-2 .stamp-band { font-size: .52rem !important; }
    .card, .card:nth-child(3n+2), .card:nth-child(3n) { transform: none; }
    .entry-stamp { position: static; display: inline-block; margin-bottom: .6rem; }
    .cookie-banner { left: .5rem; right: .5rem; bottom: .5rem; padding: .9rem 1rem; }
    .fp-compare { padding: 2rem 0; }
    .margin-strip { padding: 1.6rem 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
