/*
Theme Name: dds_bellacollanadesigns.com
Theme URI: https://bellacollanadesigns.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: bellac
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-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: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-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: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-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: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fira-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: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fira-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: "Fira Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/fira-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: "Fira Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/fira-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: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/fira-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: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/fira-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fira-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: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fira-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Палитра ---------- */
:root {
    --velvet: #14221F;
    --night: #0E1714;
    --leather: #241C16;
    --moss: #1A2B26;
    --paper: #E8DFCE;
    --paper-line: #CFC3AB;
    --text: #F2EADB;
    --muted: #9C9184;
    --brass: #C9A227;
    --brass-soft: rgba(201, 162, 39, .55);
    --brass-faint: rgba(201, 162, 39, .22);
    --copper: #B4633A;
    --copper-deep: #9A5230;
    --sea: #4E8C7D;
    --silver: #C9C7C0;
    --aside: #10201C;
    --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
    --sans: "Fira Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --velvet-tex:
        radial-gradient(1px 1px at 12% 18%, rgba(242, 234, 219, .18) 50%, transparent 51%),
        radial-gradient(1px 1px at 67% 41%, rgba(201, 162, 39, .22) 50%, transparent 51%),
        radial-gradient(1.4px 1.4px at 38% 77%, rgba(242, 234, 219, .12) 50%, transparent 51%),
        radial-gradient(1px 1px at 86% 88%, rgba(201, 162, 39, .18) 50%, transparent 51%),
        radial-gradient(1px 1px at 23% 59%, rgba(242, 234, 219, .1) 50%, transparent 51%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 5px);
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--velvet);
    background-image: var(--velvet-tex);
    background-size: 220px 220px, 260px 260px, 300px 300px, 240px 240px, 190px 190px, auto;
    color: var(--text);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--brass); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 1.4em 0 .55em; color: var(--text); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
p, li, dd, dt, td, th, h1, h2, h3, h4, h5, h6, .card-title, .tag-txt { overflow-wrap: break-word; hyphens: auto; }
.sec-title, .page-title, .brand-name { hyphens: manual; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brass); color: var(--night); padding: .5rem 1rem; }
.skip-link:focus { left: 8px; }

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

/* ---------- Кнопки ---------- */
.btn-frame {
    display: inline-block;
    padding: .62rem 1.35rem;
    border: 1px solid var(--brass);
    border-radius: 0;
    background: transparent;
    color: var(--brass);
    font: 500 .8rem/1.3 var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s, color .18s, box-shadow .18s, transform .1s;
}
.btn-frame:hover { background: var(--brass); color: var(--night); }
.btn-frame:active { transform: translateY(1px); box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 4px var(--brass); }
.btn-copper {
    display: inline-block;
    padding: .38rem .9rem;
    background: var(--copper);
    border: 1px solid var(--copper);
    border-radius: 2px;
    color: #FBF3E6;
    font: 500 .78rem/1.3 var(--sans);
    text-decoration: none;
    transition: background .18s, color .18s;
}
.btn-copper:hover { background: transparent; color: #E9A27C; }

/* ---------- Шапка ---------- */
.topbar {
    background: var(--night);
    border-top: 1px solid var(--brass-soft);
    border-bottom: 1px solid var(--brass-soft);
    position: relative;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.1rem 0; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--text); min-width: 0; }
.brand:hover { color: var(--text); }
.brand-mark { color: var(--brass); flex: 0 0 auto; display: flex; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-svg { width: 34px; height: 48px; display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .04em; max-width: 34ch; }
.brand-desc { color: var(--muted); font-size: .72rem; line-height: 1.35; margin-top: .35rem; max-width: 46ch; }
.site-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.7rem; justify-content: flex-end; }
.site-nav a { color: var(--text); text-decoration: none; font-size: .86rem; padding: .3rem 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--brass); border-bottom-color: var(--brass); }
.nav-toggle { display: none; }

/* ---------- Заголовки секций ---------- */
.front-section { padding: 3.2rem 0 3.4rem; position: relative; }
.sec-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    flex-wrap: wrap;
}
.sec-no {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--copper);
}
.sec-no::before { content: ""; width: 34px; height: 1px; background: var(--brass); }

/* ---------- Hero «стол» ---------- */
.desk {
    background-color: #132522;
    background-image:
        radial-gradient(ellipse 60% 80% at 78% 40%, rgba(78, 140, 125, .16), transparent 70%),
        var(--velvet-tex);
    background-size: auto, 220px 220px, 260px 260px, 300px 300px, 240px 240px, 190px 190px, auto;
    padding: 3.6rem 0 3.8rem;
    overflow: hidden;
}
.desk-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.desk-text { min-width: 0; }
.desk-kicker { color: var(--muted); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; }
.desk-kicker::before { content: ""; width: 34px; height: 1px; background: var(--brass); }
.desk-title { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 500; line-height: 1.05; margin: 0 0 1.1rem; max-width: 12ch; hyphens: manual; }
.desk-lead { font-size: 1.05rem; color: var(--text); max-width: 32ch; margin-bottom: 1.8rem; }
.desk-photo { margin: 0; position: relative; min-width: 0; margin-right: -6%; }
.desk-photo img { width: 100%; aspect-ratio: 190 / 176; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px rgba(201, 162, 39, .18); }
.desk-photo::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--brass-faint); pointer-events: none; }

/* ---------- 01. Схема изделия ---------- */
.scheme { background: var(--leather); }
.scheme::before, .scheme::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--brass-faint); }
.scheme::before { top: 0; } .scheme::after { bottom: 0; }
.scheme-stage {
    position: relative;
    width: min(100%, 680px);
    margin: 0 auto;
    aspect-ratio: 394 / 156;
    container-type: inline-size;
    color: var(--brass);
}
.scheme-earring { position: absolute; left: 42.64%; top: .64%; width: 15.99%; height: 98.72%; }
.scheme-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.scheme-tag {
    position: absolute;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: baseline;
    gap: .4em;
    padding: .32em .7em;
    border: 1px solid var(--brass-soft);
    border-radius: 3px;
    background: rgba(36, 28, 22, .92);
    color: var(--text);
    font-size: clamp(.62rem, 2.45cqw, 1rem);
    line-height: 1.25;
    white-space: nowrap;
}
.scheme-tag b { color: var(--brass); font-weight: 500; }
.tag-left { right: 63.96%; }
.tag-right { left: 64.64%; }
.scheme-legend { display: none; list-style: none; margin: 1.6rem 0 0; padding: 0; }
.scheme-legend li { padding: .55rem 0; border-top: 1px solid var(--brass-faint); font-size: .92rem; }
.scheme-legend b { color: var(--brass); font-weight: 500; margin-right: .35rem; }

/* ---------- 02. Материалы ---------- */
.matter { background: var(--paper); color: var(--leather); }
.matter .sec-title { color: var(--leather); }
.matter .sec-no { color: var(--copper-deep); }
.matter-sheet { width: min(100%, 820px); margin: 0 auto; }
.matter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px 92px;
    gap: 1.4rem;
    align-items: center;
    padding: .85rem .2rem;
    border-bottom: 1px solid var(--paper-line);
}
.matter-row > * { min-width: 0; }
.matter-head { padding-top: 0; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #7A6B5A; border-bottom: 1px solid var(--leather); }
.matter-name { display: flex; align-items: center; gap: .95rem; font-size: .98rem; }
.matter-name b { font-weight: 500; }
.matter-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--dot, var(--brass)); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .25); }
.matter-cell { min-width: 0; display: block; }
.matter-cap { display: none; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #7A6B5A; margin-bottom: .25rem; }
.matter-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; height: 7px; }
.matter-scale i { border: 1px solid rgba(36, 28, 22, .35); background: transparent; }
.matter-scale i.on { background: var(--dot, var(--brass)); border-color: var(--dot, var(--brass)); }
.is-brass { --dot: var(--brass); }
.is-copper { --dot: var(--copper); }
.is-silver { --dot: #A9A7A0; }
.is-stone { --dot: var(--sea); }
.matter-note { width: min(100%, 820px); margin: 1.2rem auto 0; font-size: .82rem; color: #6A5D4F; }

/* ---------- Последние записи и карточки ---------- */
.fresh { background-color: var(--moss); background-image: var(--velvet-tex); background-size: 220px 220px, 260px 260px, 300px 300px, 240px 240px, 190px 190px, auto; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--brass-soft);
    border-radius: 3px;
    background: rgba(14, 23, 20, .55);
    padding: .6rem;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--brass); transform: translateY(-2px); }
.card-thumb { overflow: hidden; border-radius: 4px; }
.card-thumb a { display: block; text-decoration: none; }
.card-thumb img { width: 100%; aspect-ratio: 108 / 58; object-fit: cover; display: block; transition: transform .4s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: .8rem .35rem .3rem; min-width: 0; }
.card-title { font-family: var(--sans); font-size: .98rem; font-weight: 500; line-height: 1.35; margin: 0 0 .45rem; }
.card-title a { text-decoration: none; color: var(--text); }
.card-title a:hover { color: var(--brass); }
.card-excerpt { color: var(--muted); font-size: .84rem; line-height: 1.5; margin-bottom: .7rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.card-date { color: var(--muted); font-size: .78rem; }
.fresh-more { text-align: center; margin: 2.2rem 0 0; }
.empty-note { padding: 1.6rem 1.8rem; border: 1px dashed var(--brass-soft); color: var(--muted); text-align: center; }

/* ---------- 03. Уход ---------- */
.care { background: var(--velvet); }
.care-scale { list-style: none; margin: 0 auto; padding: 0; width: min(100%, 820px); }
.care-step {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 48px;
    gap: 1.2rem;
    align-items: center;
    padding: 1.05rem .2rem;
    border-bottom: 1px solid var(--brass-soft);
}
.care-step:last-child { border-bottom: 0; }
.care-no { font-family: var(--serif); font-weight: 500; font-size: 2.3rem; line-height: 1; color: var(--copper); }
.care-text { font-size: 1.02rem; }
.care-icon { width: 40px; height: 34px; color: var(--brass); justify-self: end; }

/* ---------- 04. Инструменты ---------- */
.tools { background: var(--velvet); background-image: linear-gradient(180deg, rgba(14, 23, 20, .5), transparent 30%), var(--velvet-tex); background-size: auto, 220px 220px, 260px 260px, 300px 300px, 240px 240px, 190px 190px, auto; border-top: 1px solid var(--brass-faint); }
.tool-grid { list-style: none; margin: 0 auto; padding: 0; width: min(100%, 820px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.tool-cell { min-width: 0; border: 1px solid var(--brass-soft); border-radius: 3px; padding: .45rem .45rem .55rem; background: rgba(14, 23, 20, .45); text-align: center; transition: border-color .2s, background .2s; }
.tool-cell:hover { border-color: var(--brass); background: rgba(14, 23, 20, .75); }
.tool-cell img { width: 100%; aspect-ratio: 11 / 4; object-fit: cover; display: block; border-radius: 2px; }
.tool-name { display: block; margin-top: .45rem; font-size: .8rem; color: var(--text); letter-spacing: .03em; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 2rem 0 3.5rem; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 1.6rem; }
.crumbs a { color: var(--muted); text-decoration-color: var(--brass-soft); }
.crumbs a:hover { color: var(--brass); }
.crumbs-sep { color: var(--brass); margin: 0 .35rem; }
.crumbs span:last-child { color: var(--text); }
.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-bottom: 1.8rem; }
.page-title { font-weight: 500; margin: 0 0 .6rem; }
.page-intro { color: var(--muted); }
.card-grid--list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.layout-with-sidebar .card-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry-head { margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--brass-faint); }
.entry-meta { color: var(--muted); font-size: .84rem; display: flex; gap: 1rem; flex-wrap: wrap; margin: 0; }
.entry-cat a { color: var(--brass); text-decoration: none; }
.entry-cover { margin: 0 0 1.6rem; }
.entry-cover img { width: 100%; border-radius: 4px; }
.entry-content { font-size: 1.02rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { padding-left: .9rem; border-left: 2px solid var(--brass); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--brass); }
.entry-content ol li::marker { color: var(--copper); font-weight: 600; }
.entry-content blockquote { margin: 1.6rem 0; padding: 1.2rem 1.5rem; border: 1px solid var(--brass-soft); border-left: 3px solid var(--brass); background: rgba(36, 28, 22, .7); font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { border-radius: 4px; }
.entry-content figure { margin: 1.6rem 0; }
.entry-content figcaption { color: var(--muted); font-size: .82rem; margin-top: .4rem; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .92rem; border: 1px solid var(--brass-soft); }
.entry-content th, .entry-content td { border: 1px solid var(--brass-soft); padding: .55rem .75rem; text-align: left; }
.entry-content th { background: var(--leather); color: var(--brass); font-weight: 500; }
.entry-content pre, .entry-content code { font-family: ui-monospace, Consolas, monospace; background: var(--night); }
.entry-content pre { padding: 1rem; overflow-x: auto; border: 1px solid var(--brass-faint); }
.entry-content hr { border: 0; border-top: 1px solid var(--brass-soft); margin: 2rem 0; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.entry-tags a { border: 1px solid var(--brass-soft); padding: .2rem .6rem; font-size: .78rem; text-decoration: none; color: var(--muted); }
.entry-tags a:hover { color: var(--brass); border-color: var(--brass); }
.post-navigation { margin: 2.4rem 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.post-navigation a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--brass-soft); text-decoration: none; height: 100%; }
.post-navigation a:hover { border-color: var(--brass); }
.post-navigation .nav-next { text-align: right; }
.nav-cap { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; background: var(--aside); border: 1px solid var(--brass-faint); padding: 1.4rem 1.4rem .6rem; color: var(--text); }
.sidebar .widget { margin-bottom: 1.6rem; }
.sidebar .widget-title { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .9rem; padding-bottom: .5rem; border-bottom: 1px solid var(--brass-soft); color: var(--text); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .5rem 0; border-bottom: 1px solid rgba(201, 162, 39, .12); font-size: .9rem; color: var(--text); }
.sidebar a { color: var(--text); text-decoration: none; }
.sidebar a:hover { color: var(--brass); }
.sidebar .post-date { display: block; color: var(--muted); font-size: .75rem; }
.sidebar p { color: var(--text); font-size: .9rem; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; margin-top: 2.4rem; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .75rem; border: 1px solid var(--brass-soft); color: var(--text); text-decoration: none; font-size: .86rem; transition: background .18s, color .18s; }
.pager a.page-numbers:hover { background: var(--brass); color: var(--night); border-color: var(--brass); }
.pager .page-numbers.current { background: var(--brass); border-color: var(--brass); color: var(--night); font-weight: 600; }
.pager .page-numbers.dots { border: 0; min-width: auto; padding: 0 .2rem; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.search-field { flex: 1 1 220px; min-width: 0; padding: .62rem .85rem; background: var(--night); border: 1px solid var(--brass-soft); border-radius: 0; color: var(--text); font: inherit; font-size: .9rem; }
.search-field::placeholder { color: var(--muted); }

/* ---------- 404 ---------- */
.lost { text-align: center; }
.lost-code { font-family: var(--serif); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--brass); margin: 0 0 .5rem; }
.lost .search-form { justify-content: center; width: min(100%, 520px); margin: 1.4rem auto; }
.lost-home { margin-top: 1.6rem; }

/* ---------- Комментарии ---------- */
.notes { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--brass-soft); }
.notes-title, .comment-reply-title { font-weight: 500; font-size: 1.6rem; margin: 0 0 1.2rem; }
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { padding-left: 1.6rem; border-left: 1px solid var(--brass-faint); }
.note-body { padding: 1rem 1.2rem; margin-bottom: 1rem; border: 1px solid var(--brass-faint); background: rgba(14, 23, 20, .5); }
.note-meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .5rem; font-size: .84rem; }
.note-meta img { border-radius: 50%; }
.note-author { font-weight: 500; }
.note-meta time { color: var(--muted); }
.note-wait { color: var(--copper); font-size: .84rem; }
.note-reply a { font-size: .8rem; color: var(--brass); }
.comment-respond { margin-top: 1.6rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .84rem; color: var(--muted); margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .6rem .8rem; background: var(--night); border: 1px solid var(--brass-soft); border-radius: 0; color: var(--text); font: inherit; }
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; }
.form-hint { color: var(--muted); font-size: .84rem; }
.req { color: var(--copper); }
.form-submit .submit { padding: .62rem 1.35rem; border: 1px solid var(--brass); background: transparent; color: var(--brass); font: 500 .8rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; border-radius: 0; }
.form-submit .submit:hover { background: var(--brass); color: var(--night); }

/* ---------- Подвал ---------- */
.basefoot { background: var(--night); border-top: 1px solid var(--brass-soft); position: relative; padding: 2.8rem 0 1.4rem; color: var(--text); }
.basefoot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--brass-faint); }
.basefoot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.basefoot-col { min-width: 0; }
.basefoot .widget { margin-bottom: 1rem; }
.basefoot .widget-title { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin: 0 0 .9rem; }
.basefoot .widget, .basefoot .widget p, .basefoot .textwidget { color: #CFC6B6; font-size: .86rem; line-height: 1.6; }
.basefoot ul { list-style: none; margin: 0; padding: 0; }
.basefoot li { margin-bottom: .45rem; }
.basefoot a { color: var(--text); text-decoration-color: var(--brass-soft); font-size: .86rem; }
.basefoot a:hover { color: var(--brass); }
.basefoot-copy { margin: 2.2rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(201, 162, 39, .18); text-align: center; color: var(--muted); font-size: .78rem; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    width: min(calc(100% - 2rem), 860px);
    margin-inline: auto;
    padding: 1.1rem 1.5rem;
    background: var(--night);
    border: 1px solid var(--brass);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.cookie-text { margin: 0; font-size: .86rem; color: var(--text); min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .shell { width: min(92%, 1120px); }
    .topbar-inner { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; align-items: center; gap: .55rem; background: transparent; border: 1px solid var(--brass-soft); color: var(--text); padding: .5rem .8rem; font: 500 .8rem var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; border-radius: 0; }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 1px; background: var(--brass); position: relative; }
    .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bars::before { top: -5px; } .nav-toggle-bars::after { top: 5px; }
    .site-nav { flex-basis: 100%; display: none; border-top: 1px solid var(--brass-faint); padding-top: .8rem; }
    .site-nav.is-open { display: block; }
    .site-nav .nav-list { flex-direction: column; gap: 0; }
    .site-nav li { border-bottom: 1px solid rgba(201, 162, 39, .12); }
    .site-nav a { display: block; padding: .7rem 0; border-bottom: 0; }
    .desk-inner { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .desk-photo { margin-right: 0; width: min(100%, 520px); }
    .card-grid, .card-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single .content-area { width: 100%; }
    .basefoot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    body { font-size: .96rem; }
    .front-section { padding: 2.4rem 0 2.6rem; }
    .desk { padding: 2.4rem 0 2.8rem; }
    .brand-desc { display: none; }
    .brand-name { font-size: 1rem; }
    .scheme-stage { width: min(100%, 360px); }
    .tag-txt { display: none; }
    .scheme-tag { font-size: .78rem; padding: .15em .5em; }
    .scheme-legend { display: block; }
    .matter-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .55rem 1.2rem; padding: .95rem 0; }
    .matter-head { display: none; }
    .matter-name { grid-column: 1 / -1; }
    .matter-cap { display: block; }
    .care-step { grid-template-columns: 52px minmax(0, 1fr) 36px; gap: .8rem; }
    .care-no { font-size: 1.8rem; }
    .care-icon { width: 30px; }
    .card-grid, .card-grid--list, .layout-with-sidebar .card-grid--list { grid-template-columns: minmax(0, 1fr); }
    .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .basefoot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
    .post-navigation .nav-next { text-align: left; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; gap: .9rem; }
    .sidebar { padding: 1.2rem 1.2rem .4rem; }
    .desk-photo::before { display: none; }
    .entry-content blockquote { padding: 1rem 1.1rem; font-size: 1.15rem; }
}
