/*
Theme Name: dds_bobatdiadep.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: bobdd
*/

/* ---------- Шрифты (OFL, вложены в тему) ---------- */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/playfair-display-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: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/playfair-display-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: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/playfair-display-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: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/playfair-display-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: 'Roboto Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/roboto-condensed-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: 'Roboto Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/roboto-condensed-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: 'Roboto Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/roboto-condensed-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: 'Roboto Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/roboto-condensed-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: 'Roboto Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/roboto-condensed-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: 'Roboto Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/roboto-condensed-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; }

/* ---------- Переменные ---------- */
:root {
    --clay: #C97B5A;
    --graph: #2E2622;
    --cream: #EDE3D2;
    --sage: #6E7A5E;
    --beige: #D8C3A5;
    --turq: #3E8E8A;
    --cobalt: #2F4C8C;
    --muted: #8A7A6A;
    --muted-dark: #B9A894;
    --paper: #F4EDE1;
    --ink-soft: #4A3F38;
    --turq-light: #8FD0CA;
    --serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --sans: 'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Правила для элементов со скрытием через [hidden] ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--clay) url('images/clay-texture.jpg') repeat;
    color: var(--graph);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    overflow-x: hidden;
    overflow-wrap: break-word;
}
p, li, dd, td, th, figcaption, blockquote, h1, h2, h3, h4, h5, h6 { hyphens: auto; overflow-wrap: break-word; }
img, svg, video { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.15; }
a { color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--turq); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px dashed var(--cobalt); outline-offset: 3px; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; border: 1px solid var(--graph); }
th, td { border: 1px solid var(--graph); padding: .55rem .75rem; text-align: left; vertical-align: top; }
th { background: var(--beige); font-weight: 700; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--cream); color: var(--graph); padding: .6rem 1rem; border: 2px solid var(--graph); }
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---------- Кнопки-бирки ---------- */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 500;
    font-size: .98rem;
    line-height: 1.2;
    letter-spacing: .02em;
    padding: .62rem 1.5rem;
    border: 2px solid var(--graph);
    border-radius: 0;
    background: var(--turq);
    color: #FFF8EE;
    box-shadow: 4px 4px 0 var(--graph);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background-color .2s ease;
}
.btn:hover { color: #FFF8EE; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--graph); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--graph); }
.btn--cobalt { background: var(--cobalt); }
.btn--cream { background: var(--cream); color: var(--graph); }
.btn--cream:hover { color: var(--graph); background: #FFF8EE; }
.btn--tag { padding: .45rem 1.15rem; font-size: .92rem; box-shadow: 3px 3px 0 var(--graph); }
.btn--tag:hover { box-shadow: 1px 1px 0 var(--graph); }

/* ---------- Шапка ---------- */
.topbar { background: var(--graph); color: var(--cream); border-bottom: 1px solid rgba(185, 168, 148, .25); }
.topbar-in { display: flex; align-items: center; gap: 2rem; padding: 1.1rem 0; }
.brand { display: flex; align-items: center; gap: 1.1rem; flex: 1 1 auto; min-width: 0; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--cream); }
.brand-mark { flex: 0 0 60px; width: 60px; height: 60px; display: block; }
.brand-logo { display: block; width: 60px; height: 60px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: clamp(1.02rem, 1.5vw, 1.3rem); line-height: 1.25; color: #FFF8EE; max-width: 46ch; }
.brand-desc { font-size: .8rem; line-height: 1.4; color: var(--muted-dark); max-width: 72ch; }
.mainnav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.8rem; flex-wrap: wrap; justify-content: flex-end; }
.mainnav-list a { position: relative; display: inline-block; padding: .35rem 0; color: var(--cream); text-decoration: none; font-weight: 500; font-size: 1.02rem; white-space: nowrap; }
.mainnav-list a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--turq); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.mainnav-list a:hover { color: #FFF8EE; }
.mainnav-list a:hover::after, .mainnav-list .current-menu-item > a::after, .mainnav-list .current_page_item > a::after { transform: scaleX(1); }
.nav-toggle { display: none; align-items: center; gap: .6rem; background: transparent; color: var(--cream); border: 2px solid var(--muted-dark); padding: .5rem .9rem; font-family: var(--sans); font-size: .95rem; cursor: pointer; border-radius: 0; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- Секции главной ---------- */
.band { position: relative; padding: 4.4rem 0 4.2rem; }
.band--clay { background: var(--clay) url('images/clay-texture.jpg') repeat; overflow: hidden; }
.band--cream {
    background-color: var(--cream);
    background-image:
        repeating-linear-gradient(0deg, rgba(46, 38, 34, .035) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(90deg, rgba(46, 38, 34, .035) 0 1px, transparent 1px 64px);
}
.band--sage { background: var(--sage); color: var(--cream); }
.band--graph { background: var(--graph); color: var(--cream); }
.band .shell { position: relative; z-index: 1; }

.sec-head { display: flex; align-items: flex-end; gap: 1.2rem; margin: 0 0 1.6rem; }
.sec-num { flex: 0 0 auto; align-self: flex-start; margin-top: .9rem; min-width: 2.4rem; padding-bottom: .3rem; border-bottom: 1px solid currentColor; font-size: .95rem; letter-spacing: .06em; }
.sec-title { margin: 0; min-width: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.7vw, 4.4rem); line-height: 1.05; letter-spacing: -.01em; }
.sec-rule { flex: 0 1 96px; height: 1px; background: currentColor; opacity: .55; margin-bottom: 1.15rem; }
.sec-head--light { color: #FFF8EE; }
.sec-lead { margin: -.6rem 0 2.2rem 3.6rem; font-size: 1.02rem; max-width: 60ch; }
.band--clay .sec-lead { color: var(--graph); font-weight: 500; }
.band--graph .sec-lead { color: var(--cream); }

/* Блок 1 — каталог по материалам */
.clay-decor { position: absolute; z-index: 0; pointer-events: none; display: block; width: auto; max-width: none; }
.clay-decor--left { left: 0; bottom: 0; height: 78%; }
.clay-decor--right { right: 0; top: 0; height: 80%; }
.mat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.03fr); gap: 1.3rem 1.4rem; }
.mat-tile { position: relative; margin: 0; min-width: 0; box-shadow: 6px 9px 16px rgba(46, 38, 34, .38); transition: transform .2s ease, box-shadow .2s ease; }
.mat-tile--3 { justify-self: start; width: 97%; }
.mat-tile img { display: block; width: 100%; height: auto; aspect-ratio: 702 / 364; object-fit: cover; }
.mat-tile:hover { transform: translate(-2px, -3px); box-shadow: 10px 14px 20px rgba(46, 38, 34, .42); }
.mat-label { position: absolute; left: 0; bottom: .9rem; max-width: 92%; padding: .35rem 1.2rem .35rem 1.1rem; font-weight: 500; font-size: clamp(1rem, 1.6vw, 1.35rem); line-height: 1.2; color: #FFF8EE; background: linear-gradient(90deg, rgba(30, 24, 21, .5), rgba(30, 24, 21, .28) 70%, rgba(30, 24, 21, 0)); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.mat-tile--3 .mat-label, .mat-tile--5 .mat-label { color: var(--graph); text-shadow: none; background: linear-gradient(90deg, rgba(240, 230, 212, .82), rgba(240, 230, 212, .55) 70%, rgba(240, 230, 212, 0)); }

/* Блок 2 — образцы глазури */
.glaze-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 16rem); gap: 2.6rem; align-items: center; }
.glaze-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; }
.glaze-item { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.glaze-disc { display: block; width: 100%; max-width: 152px; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; filter: drop-shadow(4px 8px 7px rgba(46, 38, 34, .32)); transition: transform .35s ease; }
.glaze-item:hover .glaze-disc { transform: rotate(14deg) scale(1.04); }
.glaze-name { margin-top: 1.1rem; font-size: 1.06rem; font-weight: 500; }
.side-note { border-left: 1px solid var(--graph); padding: .4rem 0 .4rem 2rem; min-width: 0; }
.side-note-title { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; margin: 0 0 .7rem; }
.side-note p { margin: 0; font-size: .97rem; color: var(--ink-soft); }

/* Блок записей */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem; }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); color: var(--graph); border: 1px solid rgba(46, 38, 34, .3); box-shadow: 6px 8px 16px rgba(30, 24, 21, .28); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 8px 12px 20px rgba(30, 24, 21, .32); }
.card-thumb { position: relative; padding: 9px 9px 0; background: var(--turq); }
.card:nth-child(3n+2) .card-thumb { background: var(--cobalt); }
.card:nth-child(3n+3) .card-thumb { background: #5E8F87; }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 7 / 3; object-fit: cover; }
.card.sticky .card-thumb::after { content: 'Закреплено'; position: absolute; top: 1.1rem; right: 1.1rem; padding: .2rem .6rem; font-size: .8rem; font-weight: 700; background: var(--cream); color: var(--graph); border: 2px solid var(--graph); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 1.3rem 1.5rem 1.6rem; }
.card-title { font-family: var(--sans); font-weight: 700; font-size: 1.17rem; line-height: 1.25; margin: 0 0 .65rem; }
.card-title a { color: var(--graph); text-decoration: none; }
.card-title a:hover { color: var(--turq); text-decoration: underline; }
.card-excerpt { font-size: .97rem; color: var(--ink-soft); }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-date { display: block; margin: auto 0 1rem; padding-top: .5rem; font-size: .86rem; color: var(--muted); letter-spacing: .03em; }
.card-more { align-self: flex-start; }
.card:nth-child(3n+2) .card-more { background: var(--cobalt); }
.posts-more { margin: 2.6rem 0 0; text-align: center; }
.empty-note { font-size: 1.05rem; }
.empty-note--plate, .empty-plate { background: var(--cream); border: 2px solid var(--graph); padding: 1.6rem 1.8rem; box-shadow: 6px 6px 0 rgba(46, 38, 34, .85); }

/* Блок 4 — разбор плитки по слоям */
.layers-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 16rem); gap: 3rem; align-items: center; }
.layers-fig { position: relative; margin: 0; padding-right: 11.5rem; min-width: 0; }
.layers-fig img { display: block; width: 100%; height: auto; aspect-ratio: 1288 / 470; }
.layers-labels { list-style: none; margin: 0; padding: 0; }
.layers-labels li { position: absolute; right: 0; width: 11rem; transform: translateY(-50%); font-size: 1.06rem; line-height: 1.2; }
.layers-labels li:nth-child(1) { top: 22.6%; font-weight: 700; }
.layers-labels li:nth-child(2) { top: 40.9%; }
.layers-labels li:nth-child(3) { top: 59.2%; }
.layers-labels li:nth-child(4) { top: 77.5%; }

/* Блок 5 — палитра */
.swatch-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1.4rem; }
.swatch { min-width: 0; }
.swatch img { display: block; width: 100%; height: auto; aspect-ratio: 340 / 162; object-fit: cover; box-shadow: 3px 5px 10px rgba(0, 0, 0, .45); transition: transform .2s ease; }
.swatch:hover img { transform: translateY(-4px); }
.swatch-name { display: block; margin-top: .75rem; font-size: 1rem; color: var(--cream); }

/* ---------- Внутренние страницы ---------- */
.inner { padding: 2rem 0 4.5rem; }
.crumbs { margin: 0 0 1.6rem; font-size: .92rem; color: var(--graph); font-weight: 500; }
.crumbs a { color: var(--graph); }
.crumbs a:hover { color: #FFF8EE; }
.crumbs span:last-child { color: #3D322C; }
.crumbs-sep { margin: 0 .35rem; }
.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; }

.plate { background: var(--cream); border: 2px solid var(--graph); box-shadow: 8px 8px 0 rgba(46, 38, 34, .85); padding: 2.2rem 2.4rem; }
.list-head { background: var(--cream); border: 2px solid var(--graph); box-shadow: 8px 8px 0 rgba(46, 38, 34, .85); padding: 1.8rem 2.2rem; margin: 0 0 2.4rem; }
.list-title, .entry-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.1; margin: 0; }
.list-intro { margin-top: 1rem; color: var(--ink-soft); }
.list-intro p:last-child { margin-bottom: 0; }

.entry-head { margin-bottom: 1.6rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--graph); }
.entry-meta { margin: .8rem 0 0; font-size: .9rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; }
.entry-cat a { color: var(--cobalt); }
.entry-thumb { margin: 0 0 1.8rem; border: 9px solid var(--turq); }
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 1.05rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--serif); font-weight: 700; margin-top: 1.6em; }
.entry-content h2 { font-size: 1.85rem; }
.entry-content h3 { font-size: 1.45rem; }
.entry-content h4 { font-size: 1.2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content ul { list-style: none; }
.entry-content ul > li { position: relative; }
.entry-content ul > li::before { content: ''; position: absolute; left: -1.15rem; top: .62em; width: 8px; height: 8px; background: var(--turq); border: 1px solid var(--graph); }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote { margin: 1.6em 0; padding: 1.1rem 1.5rem; background: var(--beige); border-left: 6px solid var(--cobalt); font-family: var(--serif); font-size: 1.15rem; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { display: block; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption, .wp-caption-text { font-size: .88rem; color: var(--muted); margin-top: .5rem; }
.entry-content pre { background: var(--graph); color: var(--cream); padding: 1rem 1.2rem; overflow-x: auto; font-size: .9rem; }
.entry-content code { background: rgba(46, 38, 34, .08); padding: 0 .3em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content hr { border: 0; border-top: 1px solid var(--graph); margin: 2em 0; }
.entry-tags { margin: 1.6rem 0 0; font-size: .9rem; }
.entry-tags a { display: inline-block; margin: 0 .4rem .4rem 0; padding: .2rem .7rem; border: 1px solid var(--graph); color: var(--graph); text-decoration: none; }
.entry-tags a:hover { background: var(--turq); color: #FFF8EE; }
.page-links { margin-top: 1.4rem; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }

/* Сайдбар */
.sidebar { min-width: 0; }
.sidebar .widget { background: var(--beige); color: var(--graph); border: 2px solid var(--graph); box-shadow: 6px 6px 0 rgba(46, 38, 34, .85); padding: 1.4rem 1.5rem; margin: 0 0 2rem; }
.sidebar .widget-title { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--graph); margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--graph); }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .55rem 0; border-bottom: 1px dashed rgba(46, 38, 34, .4); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--graph); text-decoration: none; font-weight: 500; }
.sidebar .widget a:hover { color: var(--cobalt); text-decoration: underline; }
.sidebar .widget .post-date, .sidebar .widget .rss-date { display: block; font-size: .82rem; color: #6B5D50; }
.sidebar .widget p { color: var(--graph); }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin: 2.8rem 0 0; }
.pager .page-numbers { display: inline-block; min-width: 2.7rem; padding: .5rem .85rem; text-align: center; font-weight: 500; color: var(--graph); background: var(--cream); border: 2px solid var(--graph); box-shadow: 3px 3px 0 var(--graph); text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.pager a.page-numbers:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--graph); color: var(--graph); }
.pager .page-numbers.current { background: var(--cobalt); color: #FFF8EE; }
.pager .page-numbers.dots { background: none; border: 0; box-shadow: none; min-width: 0; padding: .5rem .2rem; }

/* Поиск */
.searchbox { display: flex; gap: .8rem; margin: 1.2rem 0; }
.searchbox-field { flex: 1 1 auto; min-width: 0; padding: .6rem .85rem; font: inherit; color: var(--graph); background: var(--paper); border: 2px solid var(--graph); border-radius: 0; }
.searchbox-btn { flex: 0 0 auto; }

/* 404 */
.nf { text-align: center; }
.nf-code { font-family: var(--serif); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; margin: 0 0 .5rem; color: var(--turq); text-shadow: 5px 5px 0 var(--graph); }
.nf .searchbox { max-width: 520px; margin: 1.6rem auto; }

/* Комментарии */
.comments { margin-top: 2.6rem; }
.comments-title, .comment-reply-title { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 0 0 1.2rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 1.8rem; border-left: 2px solid var(--turq); margin-left: .4rem; }
.note { padding: 1.1rem 0; border-bottom: 1px solid rgba(46, 38, 34, .3); }
.note-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.note-head img { display: block; border: 2px solid var(--graph); }
.note-who { display: flex; flex-direction: column; }
.note-date { font-size: .82rem; color: var(--muted); }
.note-wait { font-size: .9rem; color: var(--cobalt); font-style: italic; }
.note-text p:last-child { margin-bottom: .4rem; }
.note-reply a { font-size: .9rem; font-weight: 700; color: var(--cobalt); }
.comment-respond { margin-top: 1.6rem; }
.comment-form label { display: block; font-size: .92rem; font-weight: 500; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .6rem .8rem; font: inherit; color: var(--graph); background: var(--paper); border: 2px solid var(--graph); border-radius: 0; }
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-notes, .logged-in-as { font-size: .9rem; color: var(--ink-soft); }
.req { color: #A2402A; }
#cancel-comment-reply-link { font-size: .9rem; margin-left: .6rem; }

/* ---------- Подвал ---------- */
.footbar { background: var(--graph); color: var(--cream); }
.footbar-in { padding: 0 0 2rem; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 3rem 0 2.6rem; border-top: 1px solid rgba(185, 168, 148, .55); }
.foot-col { min-width: 0; padding: 0 2.6rem; }
.foot-col--1 { padding-left: 0; }
.foot-col--2, .foot-col--3 { border-left: 1px solid rgba(185, 168, 148, .45); }
.footbar .widget { margin: 0 0 1.4rem; color: var(--cream); }
.footbar .widget-title { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; color: #FFF8EE; margin: 0 0 .8rem; }
.foot-col--1 .widget-title { font-family: var(--serif); font-weight: 400; font-size: 2rem; }
.footbar .widget p, .footbar .textwidget { font-size: .95rem; color: var(--cream); }
.footbar .widget ul { list-style: none; margin: 0; padding: 0; }
.footbar .widget li { margin: 0 0 .45rem; }
.footbar .widget a { color: #FFF8EE; font-weight: 500; text-decoration: none; }
.footbar .widget a:hover { color: var(--turq-light); text-decoration: underline; }
.footbar .widget .post-date { color: var(--muted-dark); font-size: .85rem; }
.copyright { margin: 0; padding-top: 1.6rem; border-top: 1px solid rgba(185, 168, 148, .55); text-align: center; font-size: .88rem; color: var(--muted-dark); }

/* ---------- Cookie ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; display: flex; justify-content: center; }
.cookie-in { display: flex; align-items: center; gap: 1.4rem; width: min(100%, 940px); padding: 1.1rem 1.5rem; background: var(--graph); color: var(--cream); border: 2px solid var(--muted-dark); box-shadow: 6px 6px 0 rgba(0, 0, 0, .35); }
.cookie-text { margin: 0; font-size: .93rem; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
    .clay-decor { display: none; }
}
@media (max-width: 960px) {
    .topbar-in { flex-wrap: wrap; gap: 1rem; }
    .nav-toggle { display: inline-flex; }
    .mainnav { display: none; width: 100%; }
    .mainnav.is-open { display: block; }
    .mainnav-list { flex-direction: column; gap: 0; padding: .6rem 0 .4rem; border-top: 1px solid rgba(185, 168, 148, .35); }
    .mainnav-list a { display: block; padding: .7rem 0; white-space: normal; }
    .mainnav-list a::after { right: auto; width: 2.5rem; }
    .band { padding: 3.4rem 0 3.2rem; }
    .sec-lead { margin-left: 0; }
    .mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mat-tile--3 { width: 100%; }
    .glaze-wrap, .layers-wrap { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .swatch-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .layout-with-sidebar { display: block; }
    .layout-with-sidebar .sidebar { margin-top: 2.6rem; }
    .layout-single .content-area { width: 100%; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .foot-col, .foot-col--1 { padding: 0; }
    .foot-col--2, .foot-col--3 { border-left: 0; border-top: 1px solid rgba(185, 168, 148, .35); padding-top: 1.6rem; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .brand-mark, .brand-logo { width: 48px; height: 48px; flex-basis: 48px; }
    .brand-desc { display: none; }
    .sec-head { gap: .7rem; }
    .sec-num { margin-top: .4rem; min-width: 1.8rem; font-size: .85rem; }
    .sec-rule { display: none; }
    .glaze-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.8rem; }
    .side-note { padding-left: 1.2rem; }
    .card-grid--three { grid-template-columns: minmax(0, 1fr); }
    .layers-fig { padding-right: 0; }
    .layers-labels { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; counter-reset: layer; }
    .layers-labels li { position: static; width: auto; transform: none; font-size: .9rem; padding: .25rem .7rem; border: 1px solid var(--graph); background: var(--paper); counter-increment: layer; }
    .layers-labels li::before { content: counter(layer) '. '; color: var(--turq); font-weight: 700; }
    .swatch-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .plate { padding: 1.4rem 1.25rem; box-shadow: 5px 5px 0 rgba(46, 38, 34, .85); }
    .list-head { padding: 1.3rem 1.25rem; }
    .sidebar .widget { padding: 1.2rem 1.2rem; }
    .empty-note--plate, .empty-plate { padding: 1.3rem 1.2rem; }
    .cookie-in { flex-direction: column; align-items: flex-start; gap: .9rem; padding: 1rem 1.2rem; }
    .searchbox { flex-direction: column; }
    .comment-list .children { padding-left: 1rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}
@media (max-width: 420px) {
    .mat-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
