/*
Theme Name: dds_lespotesencielastrologieetart.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: stgplan
*/

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

/* ---------- Переменные ---------- */
:root {
    --graphite: #2B2C2A;
    --graphite-deep: #232422;
    --paper: #E8E3DA;
    --calque: #F4F0E8;
    --calque-2: #EFEADF;
    --line: #B9AE9C;
    --copper: #C0603A;
    --copper-dark: #A44E2C;
    --green: #3E5C4B;
    --green-soft: #677057;
    --muted: #7A7468;
    --ink: #2B2C2A;
    --white: #FFFFFF;
    --font-head: "Oswald", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --font-body: "PT Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- [hidden] до основных стилей ---------- */
.cookie-note[hidden] { display: none !important; }
.nav-panel[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;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(185, 174, 156, .28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(185, 174, 156, .28) 1px, transparent 1px),
        linear-gradient(rgba(185, 174, 156, .14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(185, 174, 156, .14) 1px, transparent 1px);
    background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
    background-position: center top;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--copper); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 500; line-height: 1.2; color: var(--graphite); margin: 1.4em 0 .6em; letter-spacing: .02em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }
p, li, h1, h2, h3, h4, td, th, .card-title, .widget { overflow-wrap: break-word; hyphens: auto; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line); background: var(--calque); }
th, td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; vertical-align: top; }
th { font-family: var(--font-head); font-weight: 500; letter-spacing: .04em; background: var(--calque-2); }
blockquote { margin: 1.5em 0; padding: 1.1em 1.4em; background: var(--calque); border: 1px solid var(--line); border-left: 4px solid var(--copper); font-style: italic; }
blockquote p:last-child { margin-bottom: 0; }
code, pre { font-family: Consolas, "Courier New", monospace; font-size: .92em; }
pre { overflow-x: auto; padding: 1em 1.2em; background: var(--calque); border: 1px solid var(--line); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.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; left: 12px; top: 12px; z-index: 1000; width: auto; height: auto; clip: auto; padding: .6em 1em; background: var(--copper); color: var(--white); }

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

/* ---------- Кнопки ---------- */
.btn-plate {
    display: inline-flex; align-items: center; gap: .7em;
    padding: .62em 1.15em; border: 0; border-radius: 0;
    background: var(--copper); color: var(--white);
    font-family: var(--font-body); font-weight: 700; font-size: .92rem; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: background-color .2s, transform .2s;
}
.btn-plate::after {
    content: ""; width: 18px; height: 10px; flex: 0 0 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: transform .2s;
}
.btn-plate:hover { background: var(--copper-dark); color: var(--white); }
.btn-plate:hover::after { transform: translateX(4px); }

/* ---------- Шапка ---------- */
.site-top {
    background-color: var(--graphite);
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 18px 18px;
    color: #E8E3DA;
    border-bottom: 3px solid var(--copper);
}
.site-top-row { display: flex; align-items: center; gap: 2rem; padding: 1.6rem 0; }
.brand { display: flex; align-items: center; gap: 1.6rem; min-width: 0; flex: 1 1 auto; }
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-mark svg, .brand-logo { width: 92px; height: 92px; display: block; object-fit: contain; }
.brand-text { min-width: 0; max-width: 520px; }
.brand-name { display: block; margin: 0 0 .5em; font-size: .92rem; line-height: 1.4; color: #F4F0E8; text-decoration: none; font-weight: 400; }
.brand-name:hover { color: #FFFFFF; }
.brand-desc { margin: 0; font-size: .76rem; line-height: 1.45; color: #A9A397; }
.main-nav { flex: 0 0 auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 2.2rem; }
.main-nav a {
    display: inline-block; padding: .3em 0; color: #F4F0E8; text-decoration: none;
    font-size: .95rem; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s;
}
.main-nav a:hover { color: #FFFFFF; border-bottom-color: rgba(192, 96, 58, .6); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a { border-bottom-color: var(--copper); }
.nav-toggle {
    display: none; flex: 0 0 auto; margin-left: auto;
    background: transparent; border: 1px solid #6B6A64; color: #F4F0E8;
    padding: .5em .8em; font: inherit; font-size: .88rem; cursor: pointer; border-radius: 0;
}
.nav-toggle-bars { display: inline-block; width: 18px; height: 12px; margin-right: .5em; vertical-align: -1px;
    background: linear-gradient(#F4F0E8, #F4F0E8) top / 100% 2px no-repeat, linear-gradient(#F4F0E8, #F4F0E8) center / 100% 2px no-repeat, linear-gradient(#F4F0E8, #F4F0E8) bottom / 100% 2px no-repeat; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { margin: 1.8rem 0 1.2rem; font-size: .85rem; color: var(--muted); }
.breadcrumbs a { color: var(--green); }
.breadcrumbs .sep { margin: 0 .45em; color: var(--copper); }
.breadcrumbs span:last-child { color: var(--ink); }

/* ---------- Заголовок секции со штампом ---------- */
.stamp-title { display: flex; align-items: center; gap: 1.2rem; margin: 0 0 1.4rem; }
.stamp-num {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    min-width: 46px; height: 46px; padding: 0 .35em;
    background: var(--copper); color: var(--white);
    font-family: var(--font-head); font-size: 1.6rem; line-height: 1; letter-spacing: .04em;
    box-shadow: 4px 4px 0 rgba(43, 44, 42, .12);
}
.stamp-title h2, .stamp-title .stamp-h {
    margin: 0; flex: 0 1 auto; min-width: 0;
    font-family: var(--font-head); font-weight: 500; text-transform: uppercase;
    font-size: clamp(1.35rem, 2.7vw, 2.05rem); letter-spacing: .26em; line-height: 1.15; color: var(--graphite);
}
.stamp-rule { flex: 1 1 60px; min-width: 40px; height: 0; border-top: 1px solid var(--muted); position: relative; }
.stamp-rule::before, .stamp-rule::after { content: ""; position: absolute; top: -5px; width: 1px; height: 9px; background: var(--muted); }
.stamp-rule::before { left: 0; }
.stamp-rule::after { right: 0; }
.stamp-sub { flex: 0 1 380px; min-width: 0; margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- Главная: секции ---------- */
.front-wrap { width: 85%; margin-left: auto; margin-right: auto; padding: 2.4rem 0 3rem; }
.fsec { position: relative; margin: 0 0 3.2rem; }
.fsec:last-child { margin-bottom: 0; }
.fsec-body { position: relative; isolation: isolate; }
.fsec-body::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    top: 14px; bottom: -14px; left: -16px; right: 20px;
    background: rgba(244, 240, 232, .55);
    border: 1px solid rgba(185, 174, 156, .45);
}
.fsec:nth-of-type(even) .fsec-body::before { left: 22px; right: -16px; top: -12px; bottom: 12px; }
.proba {
    background: var(--calque);
    border: 1px solid var(--line);
    box-shadow: 0 2px 0 rgba(43, 44, 42, .06), 0 10px 22px -16px rgba(43, 44, 42, .45);
}

/* Блок 1 — разбор по зонам */
.zones-board { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 1.4rem; align-items: stretch; }
.zones-stage { position: relative; padding: 2rem 1.6rem; min-width: 0; display: flex; flex-direction: column; justify-content: center;
    background-image: linear-gradient(rgba(185, 174, 156, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(185, 174, 156, .22) 1px, transparent 1px);
    background-size: 20px 20px; background-color: var(--calque); }
.zplan { position: relative; width: 52%; margin: 0 auto; }
.zplan img { display: block; width: 100%; height: auto; aspect-ratio: 1100 / 970; mix-blend-mode: multiply; }
.zpin { position: absolute; left: 0; right: 0; height: 0; top: var(--y); }
.zpin-dot {
    position: absolute; left: var(--x); top: 0; transform: translate(-50%, -50%);
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--copper); color: var(--white); border: 3px solid var(--calque);
    font-family: var(--font-head); font-size: .72rem; line-height: 16px; text-align: center;
}
.zpin-line { position: absolute; top: 0; height: 0; border-top: 1px solid var(--copper); }
.zpin--r .zpin-line { left: var(--x); right: -36px; }
.zpin--l .zpin-line { left: -36px; right: calc(100% - var(--x)); }
.zpin-tag {
    position: absolute; top: 0; transform: translateY(-50%);
    width: 158px; padding: .45em .8em;
    background: var(--copper); color: var(--white);
    font-size: .82rem; line-height: 1.35;
}
.zpin-tag b { display: block; font-weight: 700; }
.zpin--r .zpin-tag { left: calc(100% + 36px); }
.zpin--l .zpin-tag { right: calc(100% + 36px); }
.zones-legend { display: none; }
.zones-samples { padding: 1.2rem 1.1rem; display: flex; flex-direction: column; gap: .8rem; justify-content: center; }
.sample { margin: 0; }
.sample-chip { display: block; width: 100%; aspect-ratio: 2 / 1; border: 1px solid rgba(43, 44, 42, .12); box-shadow: 0 3px 6px -3px rgba(43, 44, 42, .35); }
.sample-chip--ivory { background: #E2DAC9; }
.sample-chip--olive { background: #677057; }
.sample-chip--taupe { background: #AC987D; }
.sample-chip--wood { object-fit: cover; height: auto; }
.sample figcaption { margin-top: .25em; font-size: .72rem; line-height: 1.35; color: var(--muted); letter-spacing: .03em; }

/* Блок 2 — до и после */
.ba-board { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); gap: 1.4rem; padding: 1.4rem 1.4rem 1.6rem; align-items: start; }
.ba-shot { margin: 0; min-width: 0; }
.ba-shot img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border: 1px solid var(--line); outline: 6px solid var(--white); outline-offset: -7px; }
.ba-shot figcaption { margin-top: .9rem; font-size: .92rem; color: var(--ink); }
.ba-mid { position: relative; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 1.6rem 0 2.8rem; text-align: center; font-size: .9rem; color: var(--graphite); }
.ba-mid::before { content: ""; position: absolute; left: 50%; top: 3.2rem; bottom: 4.6rem; border-left: 1px solid var(--copper); opacity: .55; }
.ba-mid span { position: relative; background: var(--calque); padding: .2em .4em; }
.ba-arrow { position: relative; width: 58px; height: 34px; background: var(--calque); }
.ba-arrow svg { display: block; width: 100%; height: 100%; }

/* Последние записи — сетка */
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }

/* Карточка */
.card {
    position: relative; display: flex; flex-direction: column; min-width: 0;
    background: var(--calque); border: 1px solid var(--line);
    padding: 1.2rem 1.2rem 1.4rem;
    box-shadow: 0 10px 22px -18px rgba(43, 44, 42, .55);
    transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 rgba(192, 96, 58, .22); }
.card-thumb { position: relative; margin: -.4rem -.55rem 1rem; }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 760 / 360; object-fit: cover; border: 1px solid rgba(43, 44, 42, .1); }
.card-stamp {
    position: absolute; top: .55rem; right: .55rem;
    padding: .18em .5em; border: 1.5px solid var(--copper);
    background: rgba(244, 240, 232, .82); color: var(--copper);
    font-family: var(--font-head); font-size: .82rem; letter-spacing: .08em; line-height: 1.2;
}
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.card-title { margin: 0 0 .45em; font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; line-height: 1.35; letter-spacing: 0; }
.card-title a { color: var(--graphite); text-decoration: none; }
.card-title a:hover { color: var(--copper); }
.card-excerpt { font-size: .9rem; color: #4A4A45; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-meta { margin: .3em 0 1em; font-size: .8rem; color: var(--muted); }
.card-more { margin-top: auto; align-self: flex-start; }
.sticky-mark { display: inline-block; margin-bottom: .5em; padding: .1em .5em; background: var(--green); color: var(--white); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.empty-note { padding: 1.6rem 1.8rem; background: var(--calque); border: 1px dashed var(--line); color: var(--muted); }

/* Блок 3 — смета впечатления */
.estimate { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 1.4rem; align-items: stretch; }
.estimate-sheet { padding: 1.4rem; min-width: 0; overflow-x: auto; }
.estimate-table { margin: 0; background: transparent; font-size: .92rem; }
.estimate-table th { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; background: rgba(232, 227, 218, .5); }
.estimate-table td:first-child { color: var(--green); font-weight: 700; }
.estimate-stamp { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.6rem 1.4rem; text-align: center; transform: rotate(-1.2deg); }
.estimate-num { font-family: var(--font-head); color: var(--copper); font-size: 6.4rem; line-height: .95; }
.estimate-unit { font-family: var(--font-head); color: var(--copper); font-size: 2.5rem; letter-spacing: .12em; line-height: 1.1; text-transform: uppercase; }
.estimate-cap { margin: .6rem 0 0; font-size: .86rem; color: var(--muted); }

/* Блок 4 — свет, цвет, фактура */
.material-strips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.strip { min-width: 0; }
.strip-light { display: grid; grid-template-columns: minmax(0, 32%) 34px minmax(0, 1fr); gap: 0; padding: .45rem; }
.strip-light img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.kelvin { display: flex; flex-direction: column; }
.kelvin i { flex: 1; display: block; }
.k1 { background: #EFC68A; } .k2 { background: #E8BA7E; } .k3 { background: #DBB98E; } .k4 { background: #B6AF9F; } .k5 { background: #969993; }
.strip-list { list-style: none; margin: 0; padding: .8rem .9rem .8rem 1rem; display: flex; flex-direction: column; justify-content: space-around; font-size: .9rem; }
.strip-light .strip-list li { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; border-bottom: 1px dashed rgba(185, 174, 156, .6); padding: .2em 0; }
.strip-light .strip-list li:last-child { border-bottom: 0; }
.strip-list li { line-height: 1.3; hyphens: manual; }
.strip-list small { flex: 0 0 auto; color: var(--copper); font-family: var(--font-head); font-size: .78rem; letter-spacing: .04em; }
.strip-colors { padding: 1rem 1.4rem; }
.strip-colors .strip-list { padding: 0; height: 100%; gap: .55rem; }
.strip-colors li { display: flex; align-items: center; gap: 1rem; }
.dot { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(43, 44, 42, .1); }
.dot-beige { background: #B8A68A; } .dot-olive { background: #656D54; } .dot-graphite { background: #42423A; } .dot-terra { background: #A35620; } .dot-sand { background: #AE9470; }
.strip-photo { position: relative; margin: 0; border: 1px solid var(--line); min-height: 240px; }
.strip-photo img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.strip-photo figcaption { position: absolute; left: .8rem; bottom: .8rem; padding: .25em .6em; background: var(--green); color: var(--white); font-size: .78rem; letter-spacing: .03em; }

/* ---------- Внутренние страницы: раскладка ---------- */
.inner { padding-bottom: 3rem; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); 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: 0 0 1.6rem; }
.page-head h1 { margin: 0 0 .3em; text-transform: uppercase; letter-spacing: .14em; }
.page-head p { margin: 0; color: var(--muted); }
.entry {
    background: var(--calque); border: 1px solid var(--line); padding: 2rem 2.2rem 2.2rem;
    box-shadow: 0 12px 26px -20px rgba(43, 44, 42, .5);
}
.entry-title { margin: 0 0 .4em; font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: .04em; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0 0 1.4rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.entry-meta a { color: var(--green); }
.entry-cover { margin: 0 0 1.6rem; }
.entry-cover img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { display: block; height: auto; }
.entry-content ul li::marker { color: var(--copper); }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-size: .82rem; color: var(--muted); margin-top: .4em; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .82rem; color: var(--muted); }
.entry-tags { margin-top: 1.6rem; font-size: .85rem; color: var(--muted); }
.entry-tags a { display: inline-block; margin: 0 .3em .3em 0; padding: .15em .6em; border: 1px solid var(--line); text-decoration: none; color: var(--green); }
.entry-tags a:hover { border-color: var(--copper); color: var(--copper); }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.post-nav a { display: block; padding: .9rem 1.1rem; background: var(--calque); border: 1px solid var(--line); text-decoration: none; color: var(--graphite); font-size: .92rem; }
.post-nav a:hover { border-color: var(--copper); color: var(--copper); }
.post-nav small { display: block; color: var(--muted); font-size: .76rem; }
.post-nav .next { text-align: right; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0; padding: 1.4rem 1.4rem .6rem;
    background: #DDD6C9;
    background-image: linear-gradient(rgba(122, 116, 104, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(122, 116, 104, .12) 1px, transparent 1px);
    background-size: 16px 16px;
    border: 1px solid var(--line); border-top: 4px solid var(--green);
    color: var(--ink);
}
.sidebar .widget { margin: 0 0 1.6rem; color: var(--ink); }
.sidebar .widget-title { margin: 0 0 .8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .5em 0 .5em 1.1em; border-bottom: 1px dashed var(--line); position: relative; }
.sidebar li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 6px; background: var(--copper); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--green); text-decoration: none; }
.sidebar a:hover { color: var(--copper); text-decoration: underline; }
.sidebar .post-date, .sidebar .wp-block-latest-posts__post-date { display: block; color: var(--muted); font-size: .78rem; }

/* ---------- Пагинация (type => plain) ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 2.2rem 0 0; }
.pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 .8em;
    background: var(--calque); border: 1px solid var(--line); color: var(--graphite);
    font-family: var(--font-head); font-size: 1rem; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s;
}
.pager a.page-numbers:hover { border-color: var(--copper); color: var(--copper); }
.pager .page-numbers.current { background: var(--copper); border-color: var(--copper); color: var(--white); }
.pager .page-numbers.dots { background: transparent; border: 0; min-width: auto; padding: 0 .3em; }

/* ---------- Поиск ---------- */
.search-form { display: flex; max-width: 520px; }
.search-form label { flex: 1 1 auto; min-width: 0; }
.search-field { width: 100%; height: 46px; padding: 0 .9em; border: 1px solid var(--line); border-right: 0; border-radius: 0; background: var(--white); font: inherit; color: var(--ink); }
.search-submit { flex: 0 0 auto; height: 46px; padding: 0 1.2em; border: 0; border-radius: 0; background: var(--copper); color: var(--white); font: inherit; font-weight: 700; cursor: pointer; }
.search-submit:hover { background: var(--copper-dark); }

.search-again { margin: 0 0 1.8rem; }
.archive-desc { color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { padding: 2.4rem 2.2rem; }
.notfound-code { font-family: var(--font-head); font-size: clamp(4.5rem, 12vw, 8rem); line-height: 1; color: var(--copper); letter-spacing: .08em; }
.notfound .search-form { margin: 1.4rem 0; }

/* ---------- Комментарии ---------- */
.comments { margin-top: 2.2rem; padding: 1.8rem 2rem; background: var(--calque); border: 1px solid var(--line); }
.comments-title, .comment-reply-title { margin: 0 0 1rem; font-size: 1.35rem; letter-spacing: .08em; text-transform: uppercase; }
.comment-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0 1.6rem; padding: 0; }
.comment-item { margin: 0 0 1rem; }
.comment-box { padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--green); }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: .5rem; font-size: .85rem; color: var(--muted); }
.comment-head .avatar { border-radius: 50%; display: block; }
.comment-author-name { font-weight: 700; color: var(--graphite); }
.comment-wait { margin: 0 0 .5em; font-size: .85rem; color: var(--copper); }
.comment-reply-link { font-size: .85rem; }
.comment-form label { display: block; margin-bottom: .3em; font-size: .88rem; font-weight: 700; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: .65em .8em; border: 1px solid var(--line); border-radius: 0; background: var(--white); font: inherit; color: var(--ink);
}
.comment-form p { margin: 0 0 1em; }
.comment-form .comment-form-cookies-consent { display: flex; gap: .5em; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }
.comment-form .submit { padding: .7em 1.4em; border: 0; border-radius: 0; background: var(--copper); color: var(--white); font: inherit; font-weight: 700; cursor: pointer; }
.comment-form .submit:hover { background: var(--copper-dark); }
.comments-nav { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; font-size: .9rem; }

/* ---------- Подвал ---------- */
.site-bottom {
    background-color: var(--graphite);
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 18px 18px;
    color: #D9D3C7;
    padding: 3rem 0 0;
    margin-top: 1rem;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.footer-col { min-width: 0; padding: 0 2.2rem; border-left: 1px solid rgba(185, 174, 156, .22); }
.footer-col:first-child { padding-left: 0; border-left: 0; }
.site-bottom .widget { margin: 0 0 1.6rem; color: #D9D3C7; font-size: .92rem; }
.site-bottom .widget-title { margin: 0 0 .9rem; font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; letter-spacing: .06em; color: #FFFFFF; }
.site-bottom p { color: #D9D3C7; }
.site-bottom a { color: #F4F0E8; text-decoration-color: rgba(244, 240, 232, .55); }
.site-bottom a:hover { color: #E39A78; text-decoration-color: #E39A78; }
.site-bottom ul { list-style: none; margin: 0; padding: 0; }
.site-bottom li { margin: 0 0 .65em; }
.site-bottom .menu a { display: inline-block; padding-bottom: .15em; border-bottom: 1px solid rgba(185, 174, 156, .35); text-decoration: none; }
.site-bottom .menu a:hover { border-bottom-color: #E39A78; }
.copyline { margin-top: 1.4rem; padding: 1.3rem 0 1.6rem; border-top: 1px solid rgba(185, 174, 156, .3); font-size: .8rem; color: #A9A397; }
.copyline p { margin: 0; color: #A9A397; }

/* ---------- Cookie ---------- */
.cookie-note {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900;
    display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
    max-width: 760px; margin-left: auto; margin-right: auto;
    padding: 1rem 1.3rem; background: var(--calque); color: var(--ink);
    border: 1px solid var(--line); border-top: 4px solid var(--copper);
    box-shadow: 0 14px 30px -12px rgba(43, 44, 42, .45);
}
.cookie-note p { margin: 0; flex: 1 1 300px; min-width: 0; font-size: .88rem; }
.cookie-note .btn-plate { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
    .zplan { width: 58%; }
    .zpin-line, .zpin-tag { display: none; }
    .zones-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; list-style: none; margin: 1.6rem 0 0; padding: 0; counter-reset: zl; }
    .zones-legend li { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; line-height: 1.35; padding: .55rem .7rem; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--copper); }
    .zones-legend li::before { counter-increment: zl; content: counter(zl); flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--copper); color: var(--white); text-align: center; font-family: var(--font-head); font-size: .74rem; line-height: 22px; }
    .zones-legend b { display: block; }
    .material-strips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .strip-light { grid-column: 1 / -1; grid-template-columns: minmax(0, 30%) 34px minmax(0, 1fr); }
}
@media (max-width: 960px) {
    .front-wrap { width: 100%; }
    .site-top-row { flex-wrap: wrap; gap: 1rem 1.4rem; }
    .brand { flex: 1 1 calc(100% - 140px); }
    .nav-toggle { display: inline-block; }
    .main-nav { flex: 1 1 100%; }
    .main-nav ul { flex-direction: column; gap: 0; padding: .4rem 0 .2rem; border-top: 1px solid rgba(185, 174, 156, .3); }
    .main-nav li { border-bottom: 1px solid rgba(185, 174, 156, .18); }
    .main-nav a { display: block; padding: .7em 0; border-bottom: 0; }
    .main-nav .current-menu-item > a { color: #E39A78; }
    .zones-board { grid-template-columns: minmax(0, 1fr); }
    .zones-samples { flex-direction: row; flex-wrap: wrap; }
    .zones-samples .sample { flex: 1 1 120px; }
    .ba-board { grid-template-columns: minmax(0, 1fr); }
    .ba-mid { flex-direction: row; padding: 0; justify-content: center; gap: 1rem; }
    .ba-mid::before { display: none; }
    .ba-arrow { width: 44px; height: 26px; transform: rotate(90deg); }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .estimate { grid-template-columns: minmax(0, 1fr); }
    .estimate-stamp { flex-direction: row; flex-wrap: wrap; gap: 0 1rem; transform: none; }
    .estimate-num { font-size: 4.2rem; }
    .material-strips { grid-template-columns: minmax(0, 1fr); }
    .strip-light { grid-column: auto; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .layout-single .content-area { width: 100%; }
    .footer-cols { grid-template-columns: minmax(0, 1fr); }
    .footer-col { padding: 0; border-left: 0; }
}
@media (max-width: 600px) {
    body { font-size: .97rem; }
    .brand { gap: 1rem; }
    .brand-mark svg, .brand-logo { width: 64px; height: 64px; }
    .brand-desc { display: none; }
    .stamp-title { gap: .8rem; flex-wrap: wrap; }
    .stamp-title h2, .stamp-title .stamp-h { flex: 1 1 0; font-size: 1.2rem; }
    .stamp-rule { display: none; }
    .stamp-num { min-width: 38px; height: 38px; font-size: 1.3rem; }
    .stamp-title h2, .stamp-title .stamp-h { letter-spacing: .14em; }
    .stamp-sub { flex-basis: 100%; }
    .fsec-body::before, .fsec:nth-of-type(even) .fsec-body::before { left: -6px; right: -6px; }
    .zones-stage { padding: 1.2rem 1rem; }
    .zplan { width: 100%; }
    .ba-board { padding: 1rem; }
    .cards-grid, .list-grid { grid-template-columns: minmax(0, 1fr); }
    .estimate-sheet { padding: 1rem; }
    .estimate-stamp { padding: 1.2rem 1rem; }
    .strip-light { grid-template-columns: minmax(0, 40%) 30px minmax(0, 1fr); }
    .strip-list { padding: .6rem .6rem .6rem 1rem; }
    .entry { padding: 1.3rem 1.2rem 1.5rem; }
    .comments { padding: 1.3rem 1.1rem; }
    .comment-list .children { margin-left: .8rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav .next { text-align: left; }
    .notfound { padding: 1.6rem 1.2rem; }
    .cookie-note { left: 10px; right: 10px; bottom: 10px; padding: .9rem 1rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}
