/*
Theme Name: dds_navajojewelryandcraftsllc.com
Author: Анна Соколова
Description: Тема каталога и агрегатора объявлений о недвижимости с разделом о подготовке жилья к продаже и аренде. Графитовая доска с планами, песочная бумага и лаймовый маркер.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: nvjo
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-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+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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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 {
    --graphite: #1E2224;
    --grid: #2E3538;
    --panel: #232A2C;
    --night: #14181A;
    --paper: #EDE4D3;
    --paper-2: #E2D7C1;
    --paper-3: #D6C9AE;
    --muted: #9A9384;
    --lime: #C6F24E;
    --lime-ink: #5E7A12;
    --green: #2F4A3C;
    --line: #3A4245;
    --ink: #1A1E20;
    --ink-soft: #4B4F49;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --f-text: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-text);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--paper);
    background-color: var(--graphite);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: -1px -1px;
}
img, svg { max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 .6em;
    overflow-wrap: break-word;
    hyphens: auto;
}
p, li, dd, td, th, blockquote, figcaption { overflow-wrap: break-word; hyphens: auto; }
a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--lime);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .15s, text-decoration-color .15s;
}
a:hover { color: var(--lime); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 2px;
}
.skip-link {
    position: absolute;
    left: 1rem;
    top: -60px;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--lime);
    color: var(--ink);
    font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ---------- Контейнер ---------- */
.shell { width: min(92%, 1240px); margin-left: auto; margin-right: auto; }
.shell--front { width: min(85%, 1240px); }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: .7rem 1.35rem;
    border: 2px solid var(--lime);
    border-radius: 0;
    background: transparent;
    color: var(--lime);
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, background .12s, color .12s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--line); color: var(--lime); }
.btn--fill { background: var(--lime); color: var(--ink); }
.btn--fill:hover { background: var(--lime); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }

/* ---------- Шапка ---------- */
.topbar {
    position: relative;
    background: var(--graphite);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 0;
}
.topbar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
    max-width: 640px;
}
.brand__mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-logo { display: block; width: 96px; height: auto; max-height: 96px; object-fit: contain; }
.brand__text { min-width: 0; }
.brand__name {
    margin: 0 0 .35rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: clamp(1rem, 1.55vw, 1.4rem);
    line-height: 1.22;
    letter-spacing: .01em;
}
.brand__name a { text-decoration: none; color: var(--paper); }
.brand__name a:hover { color: var(--lime); }
.brand__tag {
    margin: 0;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--muted);
    letter-spacing: .02em;
}
.navtoggle { display: none; }
.mainnav { flex: 0 0 auto; }
.mainnav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mainnav__list li { border-left: 1px solid var(--line); }
.mainnav__list li:first-child { border-left: 0; }
.mainnav__list a {
    display: block;
    padding: .3rem 1.1rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.12rem;
    color: var(--paper);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.mainnav__list li:last-child a { padding-right: 0; }
.mainnav__list a:hover { color: var(--lime); }
.mainnav__list .current-menu-item > a,
.mainnav__list .current_page_item > a,
.mainnav__list .current-menu-ancestor > a {
    color: var(--lime);
    border-bottom-color: var(--lime);
}

/* ---------- Заголовки секций ---------- */
.sec-title {
    position: relative;
    hyphens: manual;
    padding-left: .6em;
    font-size: clamp(1.75rem, 3.3vw, 2.9rem);
    text-transform: uppercase;
    letter-spacing: .005em;
    line-height: 1.08;
    margin: 0 0 .5em;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .1em;
    width: .2em;
    height: .9em;
    background: var(--lime);
}
.sec-lead {
    max-width: 62ch;
    margin: -.2rem 0 2rem;
    font-size: .92rem;
    letter-spacing: .02em;
    color: var(--muted);
}
.sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 2rem;
    margin-bottom: 1.6rem;
}
.sec-head .sec-title { margin: 0; }
.sec-head__link {
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--paper);
}

/* ---------- Секции главной ---------- */
.fs { position: relative; padding: 4rem 0; }
.fs + .fs { border-top: 1px solid var(--line); }

/* Блок 1: разметка объекта */
.fs-plan {
    background-color: rgba(30, 34, 36, .55);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='520' viewBox='0 0 420 520'%3E%3Cg fill='none' stroke='%23323A3D' stroke-width='1.5'%3E%3Crect x='60' y='40' width='300' height='420'/%3E%3Cpath d='M60 180h300M200 40v140M60 320h180v140M240 320v-60h120M120 40v-20h60v20M300 460v30h40'/%3E%3Cpath d='M240 260a60 60 0 0 1 60-60' stroke-dasharray='4 4'/%3E%3Ccircle cx='130' cy='110' r='22'/%3E%3Cpath d='M20 40v420M14 40h12M14 460h12M60 500h300M60 494v12M360 494v12'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right -190px top 20px;
    background-size: 380px auto;
}
.plan-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    gap: 3rem;
    align-items: center;
}
.plan {
    margin: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto 44px auto;
    min-width: 0;
}
.plan__stage { position: relative; grid-column: 2; grid-row: 1; line-height: 0; }
.plan__stage img { display: block; width: 100%; height: auto; aspect-ratio: 1410 / 794; }
.plan__room {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--f-head);
    font-weight: 500;
    line-height: 1.05;
    font-size: clamp(.68rem, 1.9vw, 1.65rem);
    color: var(--paper);
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 0 6px var(--graphite), 0 0 2px var(--graphite);
}
.plan__room b { font-weight: 500; }
.plan__room i { font-style: normal; font-weight: 700; color: var(--lime); font-size: 1.3em; }
.plan__room--kitchen { left: 20.8%; top: 41.6%; }
.plan__room--bed { left: 60.6%; top: 63%; }
.plan__room--balcony { left: 91.2%; top: 63%; }
.plan__dim { position: relative; color: var(--lime); }
.plan__dim--v { grid-column: 1; grid-row: 1; margin: 6% 0 4%; }
.plan__dim--v::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    border-left: 2px solid var(--lime);
}
.plan__dim--v::after {
    content: "";
    position: absolute;
    left: calc(50% - 7px);
    top: 0;
    width: 14px;
    height: 100%;
    background:
        linear-gradient(var(--lime), var(--lime)) top / 14px 2px no-repeat,
        linear-gradient(var(--lime), var(--lime)) bottom / 14px 2px no-repeat;
}
.plan__dim--v span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    padding: 0 .5rem;
    background: var(--graphite);
    font-family: var(--f-head);
    font-size: 1rem;
    white-space: nowrap;
}
.plan__dim--h { grid-column: 2; grid-row: 2; margin: 0 3% 0 0; }
.plan__dim--h::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 2px solid var(--lime);
}
.plan__dim--h::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - 7px);
    height: 14px;
    background:
        linear-gradient(var(--lime), var(--lime)) left / 2px 14px no-repeat,
        linear-gradient(var(--lime), var(--lime)) right / 2px 14px no-repeat;
}
.plan__dim--h span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0 .6rem;
    background: var(--graphite);
    font-family: var(--f-head);
    font-size: 1rem;
    z-index: 1;
}
.plan__note {
    grid-column: 2;
    grid-row: 3;
    margin-top: .8rem;
    font-size: .78rem;
    letter-spacing: .04em;
    color: var(--muted);
}
.plan-facts {
    list-style: none;
    margin: 0;
    padding: .5rem 0 .5rem 2.4rem;
    border-left: 1px solid var(--line);
    display: grid;
    gap: 2.2rem;
}
.plan-fact {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 1.3rem;
    align-items: center;
}
.plan-fact__icon { grid-row: 1 / span 2; width: 58px; height: 58px; color: var(--lime); }
.plan-fact__label { font-family: var(--f-head); font-weight: 500; font-size: 1.35rem; line-height: 1.1; color: var(--paper); }
.plan-fact__value { font-family: var(--f-head); font-weight: 700; font-size: 2.3rem; line-height: 1.05; color: var(--paper); }

/* Блок 2: что снять с полки */
.fs-shelf {
    background-color: var(--paper);
    background-image: var(--grain), linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
    color: var(--ink);
    border-top: 0;
}
.fs-shelf + .fs { border-top: 0; }
.fs-shelf .sec-lead { color: var(--ink-soft); }
.shelf {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.shelf__item {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: .3rem 1.2rem .3rem 1.4rem;
    border-left: 1px solid var(--ink);
    min-width: 0;
}
.shelf__item:first-child { border-left: 0; padding-left: 0; }
.shelf__num {
    flex: 0 0 auto;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 4.6rem;
    line-height: .9;
    color: var(--lime);
    -webkit-text-stroke: 1.5px var(--green);
    text-shadow: 3px 3px 0 rgba(47, 74, 60, .22);
}
.shelf__text { min-width: 0; }
.shelf__title {
    margin: .15rem 0 .45rem;
    font-size: 1.32rem;
    font-weight: 500;
    line-height: 1.12;
}
.shelf__text p { margin: 0; font-size: .85rem; line-height: 1.45; color: var(--ink-soft); }

/* Блок 3: последние записи */
.fs-latest { background: rgba(20, 24, 26, .35); }

/* Карточки */
.cards { display: grid; gap: 2.4rem 2rem; }
.cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--paper);
    background-image: var(--grain);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow:
        5px 5px 0 -1px var(--paper-2),
        5px 5px 0 0 var(--line),
        10px 10px 0 -1px var(--paper-3),
        10px 10px 0 0 var(--line);
    margin: 0 10px 10px 0;
    transition: transform .15s;
}
.card:hover { transform: translate(-3px, -3px); }
.card-thumb { padding: 18px 18px 0; }
.card-thumb a { display: block; line-height: 0; border: 1px solid var(--ink); transform: translate(-8px, -8px); transition: transform .15s; }
.card:hover .card-thumb a { transform: translate(-11px, -11px); }
.card-img, .card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: .7rem 1.4rem 1.4rem;
    min-width: 0;
}
.card-date {
    display: block;
    font-family: var(--f-head);
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: .45rem;
}
.card-title { font-size: 1.4rem; line-height: 1.15; margin: 0 0 .55rem; hyphens: manual; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--lime-ink); }
.card-excerpt { font-size: .9rem; line-height: 1.5; color: var(--ink-soft); margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--ink); text-decoration-color: var(--lime-ink); }
.card-more {
    align-self: flex-start;
    margin-top: auto;
    padding: .35rem .7rem;
    background: var(--lime);
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .88rem;
    text-decoration: none;
    border: 1px solid var(--ink);
    transition: box-shadow .12s, transform .12s;
}
.card-more:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--ink); }
.card.sticky .card-body::before {
    content: "Закреплено";
    align-self: flex-start;
    margin-bottom: .5rem;
    padding: .15rem .5rem;
    background: var(--green);
    color: var(--paper);
    font-family: var(--f-head);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.empty-note { color: var(--muted); margin: 0 0 1rem; }

/* Блок 4: потенциал комнаты */
.room {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
}
.room__photo {
    position: relative;
    margin: 0;
    min-height: 360px;
    border-right: 3px solid var(--lime);
    overflow: hidden;
}
.room__photo img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.room__panel {
    min-width: 0;
    padding: 1.8rem 2rem 1.8rem 2.2rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 0;
}
.room__title {
    position: relative;
    padding-left: .55em;
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0 0 1.4rem;
}
.room__title::before {
    content: "";
    position: absolute;
    left: 0; top: .1em;
    width: .18em; height: .95em;
    background: var(--lime);
}
.axes { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 1.15rem; }
.axis {
    display: grid;
    grid-template-columns: 36px minmax(0, 7.5rem) minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
}
.axis__icon { width: 36px; height: 36px; color: var(--lime); }
.axis__name { font-family: var(--f-head); font-weight: 500; font-size: 1.2rem; }
.axis__bar { position: relative; height: 22px; background: #182022; border: 1px solid var(--line); }
.axis__fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--lime); }
.axis__fill--40 { width: 40%; }
.axis__fill--50 { width: 50%; }
.axis__fill--60 { width: 60%; }
.axis__fill--70 { width: 70%; }
.axis__score { font-family: var(--f-head); font-size: .95rem; color: var(--muted); min-width: 2.6em; text-align: right; }
.room__note { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.55; }

/* Блок 5: вопросы на просмотре */
.fs-ask { background: rgba(35, 42, 44, .85); }
.ask {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.ask__list {
    flex: 1;
    min-width: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.ask__item {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .2rem 1.1rem;
    border-left: 1px solid var(--line);
    min-width: 0;
}
.ask__item:first-child { border-left: 0; padding-left: 0; }
.ask__num {
    flex: 0 0 auto;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 3.4rem;
    line-height: 1;
    color: var(--lime);
}
.ask__q { font-family: var(--f-head); font-weight: 500; font-size: 1.15rem; line-height: 1.2; color: var(--paper); min-width: 0; }
.ask__arrow {
    flex: 0 0 auto;
    display: block;
    width: 150px;
    color: var(--lime);
    transition: transform .15s;
}
.ask__arrow svg { display: block; width: 100%; height: auto; }
.ask__arrow:hover { color: var(--lime); transform: translateX(8px); }

/* ---------- Внутренние страницы ---------- */
.inner { padding: 2rem 0 4rem; }
.crumbs {
    margin: 0 0 1.8rem;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.crumbs a { color: var(--paper); }
.crumbs-sep { color: var(--lime); margin: 0 .3rem; }
.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; }
.list-head { margin-bottom: 2rem; }
.list-head__intro { color: var(--muted); max-width: 70ch; }
.list-head__intro p:last-child { margin-bottom: 0; }

/* Лист записи и страницы */
.sheet {
    position: relative;
    background-color: var(--paper);
    background-image: var(--grain);
    color: var(--ink);
    border: 1px solid var(--line);
    border-top: 6px solid var(--lime);
    padding: 2.4rem 2.6rem 2.6rem;
    box-shadow: 8px 8px 0 -1px var(--paper-3), 8px 8px 0 0 var(--line);
    margin: 0 8px 2.4rem 0;
}
.sheet a { color: var(--ink); text-decoration-color: var(--lime-ink); }
.sheet a:hover { color: var(--green); }
.sheet .btn--fill, .sheet .btn--fill:hover { color: var(--ink); }
.entry__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.2rem;
    margin-bottom: .8rem;
    font-family: var(--f-head);
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.entry__cats { display: flex; flex-wrap: wrap; gap: .3rem .8rem; }
.entry__title { font-size: clamp(1.8rem, 3.2vw, 2.7rem); margin: 0 0 1.4rem; color: var(--ink); }
.entry__cover { margin: 0 0 2rem; border: 1px solid var(--ink); line-height: 0; }
.entry__cover img { display: block; width: 100%; height: auto; }
.entry__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px dashed var(--muted); }
.entry__tags a { padding: .2rem .6rem; border: 1px solid var(--ink); font-size: .85rem; text-decoration: none; }
.entry__tags a:hover { background: var(--lime); color: var(--ink); }
.entry__pages { margin-top: 1.5rem; font-family: var(--f-head); }

/* Типографика контента */
.prose { font-size: 1.04rem; line-height: 1.72; }
.prose h2 { font-size: 1.8rem; margin: 2rem 0 .8rem; text-transform: uppercase; }
.prose h3 { font-size: 1.4rem; margin: 1.6rem 0 .6rem; }
.prose h4 { font-size: 1.15rem; margin: 1.4rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose ul { list-style: none; padding-left: 1.3rem; }
.prose ul > li { position: relative; }
.prose ul > li::before {
    content: "";
    position: absolute;
    left: -1.1rem;
    top: .62em;
    width: 8px;
    height: 8px;
    background: var(--green);
    box-shadow: 2px 2px 0 var(--lime);
}
.prose ol > li::marker { font-family: var(--f-head); font-weight: 700; color: var(--green); }
.prose blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem 1.4rem 1.8rem;
    background: var(--green);
    color: var(--paper);
    border-left: 6px solid var(--lime);
    font-family: var(--f-head);
    font-size: 1.25rem;
    line-height: 1.4;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote a { color: var(--paper); text-decoration-color: var(--lime); }
.prose blockquote cite { display: block; margin-top: .6rem; font-size: .85rem; font-style: normal; color: var(--lime); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid #8C8578; padding: .6rem .8rem; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-3); font-family: var(--f-head); font-weight: 500; }
.prose img { display: block; max-width: 100%; height: auto; }
.prose figure { margin: 1.6rem 0; }
.prose figcaption, .prose .wp-element-caption { font-size: .82rem; color: var(--ink-soft); margin-top: .5rem; }
.prose pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--ink); color: var(--paper); font-size: .9rem; }
.prose code { font-size: .92em; background: var(--paper-3); padding: .05em .3em; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px dashed var(--muted); margin: 2rem 0; }
.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; display: grid; gap: 1.6rem; }
.sidebar .widget {
    background: var(--green);
    color: var(--paper);
    padding: 1.5rem 1.6rem;
    border: 1px solid #3F5E4E;
}
.sidebar .widget-title {
    position: relative;
    padding-left: .6em;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--paper);
    margin-bottom: 1rem;
}
.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: .12em;
    width: .2em; height: .9em;
    background: var(--lime);
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .6rem 0; border-bottom: 1px solid rgba(237, 228, 211, .16); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--paper); text-decoration-color: var(--lime); hyphens: manual; }
.sidebar .widget a:hover { color: var(--lime); }
.sidebar .widget .post-date { display: block; font-size: .78rem; color: #C9C1AE; }
.sidebar .widget p { color: var(--paper); }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.8rem 0 0;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 .8rem;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--paper);
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: border-color .12s, transform .12s, box-shadow .12s;
}
.pager a.page-numbers:hover { border-color: var(--lime); color: var(--lime); transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--lime); }
.pager .page-numbers.current { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .3rem; }

/* ---------- Поиск ---------- */
.seek { margin: 1.4rem 0; }
.seek__label { display: block; margin-bottom: .4rem; font-family: var(--f-head); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.seek__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.seek__field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .7rem .9rem;
    font: inherit;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: #F6F0E4;
    color: var(--ink);
}
.sidebar .seek__field { border-color: var(--paper); }

/* ---------- 404 ---------- */
.lost__code {
    margin: 0 0 .5rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(4rem, 12vw, 8rem);
    line-height: 1;
    color: var(--lime);
    -webkit-text-stroke: 2px var(--green);
}
.lost__home { margin-top: 1.6rem; }

/* ---------- Комментарии ---------- */
.remarks { border-top-color: var(--green); }
.remarks__title { font-size: 1.6rem; text-transform: uppercase; }
.remarks__list, .remarks__list .children { list-style: none; margin: 0; padding: 0; }
.remarks__list .children { padding-left: 1.6rem; }
.remark-body { padding: 1rem 0 1rem 1.2rem; border-left: 3px solid var(--lime-ink); margin-bottom: 1rem; }
.remark-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-bottom: .5rem; font-size: .85rem; color: var(--ink-soft); }
.remark-avatar { display: block; border: 1px solid var(--ink); }
.remark-author { color: var(--ink); font-family: var(--f-head); font-weight: 500; font-size: 1rem; }
.remark-wait { font-size: .85rem; color: var(--green); font-weight: 600; }
.remark-reply a { font-family: var(--f-head); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.comment-respond { margin-top: 1.8rem; }
.comment-reply-title { font-size: 1.4rem; text-transform: uppercase; }
.comment-reply-title small { display: block; margin-top: .4rem; font-size: .8rem; font-family: var(--f-text); text-transform: none; }
.comment-form label { display: block; margin-bottom: .3rem; font-size: .88rem; font-weight: 500; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .65rem .8rem;
    font: inherit;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: #F6F0E4;
    color: var(--ink);
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-notes, .logged-in-as, .must-log-in, .remarks__closed { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Подвал ---------- */
.basement {
    background: var(--night);
    color: #D9D1C0;
    padding: 3.4rem 0 1.6rem;
    border-top: 1px solid var(--line);
}
.basement__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 2.4rem;
}
.basement__col { min-width: 0; padding: 0 2.4rem; border-left: 1px solid var(--line); }
.basement__col:first-child { padding-left: 0; border-left: 0; }
.basement .widget { margin-bottom: 1.2rem; color: #D9D1C0; }
.basement .widget:last-child { margin-bottom: 0; }
.basement .widget-title {
    position: relative;
    padding-left: .6em;
    font-size: 1.55rem;
    font-weight: 500;
    color: var(--paper);
    margin-bottom: .7rem;
}
.basement .widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: .14em;
    width: .2em; height: .85em;
    background: var(--lime);
}
.basement .widget p, .basement .textwidget { color: #D9D1C0; font-size: .95rem; }
.basement .widget a { color: var(--lime); text-decoration-color: var(--lime); }
.basement .widget a:hover { color: var(--paper); }
.basement .widget ul { list-style: none; margin: 0; padding: 0; }
.basement .widget li { margin-bottom: .45rem; }
.basement .widget_nav_menu li a,
.basement .widget_recent_entries li a {
    position: relative;
    display: inline-block;
    padding-left: 1.3rem;
    color: var(--paper);
    text-decoration: none;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.08rem;
}
.basement .widget_nav_menu li a::before,
.basement .widget_recent_entries li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: .52em;
    width: 7px;
    height: 7px;
    border-top: 3px solid var(--lime);
    border-right: 3px solid var(--lime);
    transform: rotate(45deg);
}
.basement .widget_nav_menu li a:hover,
.basement .widget_recent_entries li a:hover { color: var(--lime); }
.basement__copy {
    margin: 0;
    padding-top: 1.4rem;
    border-top: 1px solid #4A5356;
    font-size: .82rem;
    color: #B9B1A0;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--night);
    border-top: 2px solid var(--lime);
    padding: 1rem 0;
    box-shadow: 0 -6px 0 rgba(20, 24, 26, .4);
}
.cookie-banner__row { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding: 0 .2rem; }
.cookie-banner__text { margin: 0; font-size: .88rem; color: var(--paper); }
.cookie-banner__btn { flex: 0 0 auto; }

/* ---------- Адаптив: планшет ---------- */
@media (max-width: 960px) {
    .topbar__row { flex-wrap: wrap; gap: 1rem; }
    .brand { flex: 1 1 0; max-width: none; }
    .navtoggle {
        display: inline-flex;
        align-items: center;
        gap: .6rem;
        padding: .55rem .9rem;
        background: transparent;
        border: 1px solid var(--lime);
        border-radius: 0;
        color: var(--lime);
        font-family: var(--f-head);
        font-size: 1rem;
        cursor: pointer;
    }
    .navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after {
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        position: relative;
    }
    .navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; }
    .navtoggle__bars::before { top: -6px; }
    .navtoggle__bars::after { top: 6px; }
    .mainnav { display: none; flex: 1 0 100%; }
    .mainnav.is-open { display: block; }
    .mainnav__list { flex-direction: column; align-items: stretch; border-top: 1px solid var(--line); }
    .mainnav__list li { border-left: 0; border-bottom: 1px solid var(--line); }
    .mainnav__list a, .mainnav__list li:last-child a { padding: .75rem 0; }
    .mainnav__list .current-menu-item > a { border-bottom-color: transparent; box-shadow: inset 4px 0 0 var(--lime); padding-left: .9rem; }

    .plan-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .plan-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 0; border-top: 1px solid var(--line); padding: 1.6rem 0 0; gap: 1.2rem; }
    .plan-fact { grid-template-columns: 44px minmax(0, 1fr); column-gap: .8rem; }
    .plan-fact__icon { width: 44px; height: 44px; }
    .plan-fact__label { font-size: 1.05rem; }
    .plan-fact__value { font-size: 1.6rem; }

    .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.6rem; }
    .shelf__item:nth-child(4) { border-left: 0; padding-left: 0; }

    .cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .room { grid-template-columns: minmax(0, 1fr); }
    .room__photo { min-height: 0; border-right: 0; border-bottom: 3px solid var(--lime); }
    .room__photo img { position: static; height: auto; aspect-ratio: 16 / 9; }
    .room__panel { border-left: 1px solid var(--line); border-top: 0; }

    .ask { flex-direction: column; align-items: stretch; }
    .ask__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.4rem; }
    .ask__item:nth-child(4) { border-left: 0; padding-left: 0; }
    .ask__arrow { align-self: flex-end; width: 120px; }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.4rem; }
    .layout-single .content-area { width: 100%; }

    .basement__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .basement__col:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ---------- Адаптив: телефон ---------- */
@media (max-width: 600px) {
    .shell--front { width: min(92%, 1240px); }
    .topbar { padding: 1rem 0; }
    .brand { gap: .8rem; }
    .brand-logo { width: 58px; }
    .brand__name { font-size: .98rem; }
    .brand__tag { display: none; }

    .fs { padding: 2.8rem 0; }
    .fs-plan { background-size: 240px auto; }
    .plan { grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto 36px auto; }
    .plan__dim span { font-size: .8rem; }
    .plan__room { font-size: clamp(.58rem, 2.6vw, .9rem); }
    .plan-facts { grid-template-columns: minmax(0, 1fr); }

    .shelf { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .shelf__item, .shelf__item:nth-child(4) { border-left: 0; padding: 1rem 0; border-top: 1px solid var(--ink); }
    .shelf__item:first-child { border-top: 0; }
    .shelf__num { font-size: 3.6rem; min-width: 2.4rem; }

    .cards--three { grid-template-columns: minmax(0, 1fr); }

    .room__panel { padding: 1.4rem 1.2rem; }
    .axis { grid-template-columns: 30px minmax(0, 1fr) auto; row-gap: .4rem; }
    .axis__icon { width: 30px; height: 30px; }
    .axis__bar { grid-column: 1 / -1; }
    .axis__score { grid-row: 1; grid-column: 3; }

    .ask__list { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .ask__item, .ask__item:nth-child(4) { border-left: 0; padding: .8rem 0; border-top: 1px solid var(--line); }
    .ask__item:first-child { border-top: 0; }
    .ask__num { font-size: 2.6rem; min-width: 3.2rem; }
    .ask__arrow { width: 100px; }

    .sheet { padding: 1.6rem 1.3rem 1.8rem; box-shadow: 5px 5px 0 -1px var(--paper-3), 5px 5px 0 0 var(--line); margin-right: 5px; }
    .prose blockquote { padding: 1.1rem 1.1rem 1.1rem 1.3rem; font-size: 1.1rem; }
    .sidebar .widget { padding: 1.3rem 1.2rem; }
    .alignleft, .alignright { float: none; margin: 1rem 0; }

    .basement__cols { grid-template-columns: minmax(0, 1fr); }
    .basement__col, .basement__col:nth-child(3) { padding: 0; border-left: 0; }
    .basement__col + .basement__col { padding-top: 1.6rem; border-top: 1px solid var(--line); }

    .cookie-banner__row { flex-direction: column; align-items: stretch; }
    .cookie-banner__btn { align-self: flex-start; }
}
