/*
Theme Name: dds_entezamiartgallery.com
Theme URI: https://entezamiartgallery.com/
Author: Панина Софья Витальевна
Description: Тема для информационного сайта о живописи и художественных выставках. Музейная развеска: тёмно-зелёное сукно, золочёные рамы, этикетки-паспарту, разбор картины по частям, направления, план залов и памятка посетителя.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
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: ezgal
*/

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

/* ---------- Палитра ---------- */
:root {
    --green: #1E2B24;
    --plum: #2A1B22;
    --graphite: #23262A;
    --ink: #14181A;
    --cream: #EFE6D2;
    --muted: #A89E8C;
    --gold: #C9A24B;
    --gold-light: #E4C878;
    --gold-deep: #8C6A24;
    --wine: #7A2E35;
    --line: #D8CDB8;
    --forest: #1A2620;
    --panel: #16211B;
    --paper-ink: #2B2620;
    --paper-muted: #6E6556;
    --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --sans: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --gilt-bg: repeating-linear-gradient(45deg, rgba(255, 240, 190, .16) 0 2px, transparent 2px 6px), linear-gradient(135deg, #7d5d1f 0%, #e6c86f 17%, #a07b2c 34%, #f1d88a 52%, #8c6a24 70%, #d9b25a 86%, #6e521b 100%);
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--green);
    background-image: url("images/velvet.webp");
    background-blend-mode: soft-light;
    color: var(--cream);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.7;
    font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; }
a { color: var(--cream); text-decoration-color: var(--gold); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--gold-light); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold-light); 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(--cream); }
h1, h2, h3, h4, h5, h6, p, li, dd, dt, figcaption, blockquote, td, th, .crumbs, .card-title, .brand-name, .style-name, .widget { overflow-wrap: break-word; hyphens: auto; }
button { font: inherit; }
.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: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--green); padding: .6rem 1rem; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ---------- Контейнер ---------- */
.shell { width: min(94%, 1320px); margin-inline: auto; }
.front-in { width: 100%; }
@media (min-width: 600px) { .front-in { width: 94%; margin-inline: auto; } }
@media (min-width: 960px) { .front-in { width: 85%; } }

/* ---------- Кнопки и ссылки ---------- */
.btn-plate {
    display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    padding: .7rem 1.25rem;
    border: 0; border-radius: 0;
    background: linear-gradient(180deg, #DDBC66 0%, var(--gold) 55%, #B48E3A 100%);
    color: var(--green);
    font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3;
    text-decoration: none; text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255, 240, 200, .55), 0 2px 0 var(--gold-deep);
    cursor: pointer;
    transition: transform .2s, background .2s, box-shadow .2s;
}
.btn-plate:hover { color: var(--green); background: linear-gradient(180deg, #EFD58C 0%, var(--gold-light) 60%, var(--gold) 100%); transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255, 240, 200, .7), 0 3px 0 var(--gold-deep); }
.btn-plate:active { transform: translateY(1px); box-shadow: inset 0 0 0 1px rgba(255, 240, 200, .5), 0 1px 0 var(--gold-deep); }
.link-gilt { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--cream); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .3em; }
.link-gilt::after { content: " →"; color: var(--gold); }
.link-gilt:hover { color: var(--gold-light); text-decoration-thickness: 2px; }

/* ---------- Золочёная рама ---------- */
.gilt {
    position: relative;
    margin: 0;
    padding: clamp(10px, 1.5vw, 18px);
    background: var(--gilt-bg);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 0 0 1px #5a4316, inset 0 0 0 3px rgba(255, 236, 170, .45), inset 0 0 0 5px rgba(90, 67, 22, .6);
}
.gilt img { display: block; width: 100%; height: auto; box-shadow: 0 0 0 2px #4b3812, 0 0 0 4px rgba(227, 198, 117, .85), inset 0 0 20px rgba(0, 0, 0, .4); }
.tag {
    display: inline-block;
    margin-top: 1.1rem;
    padding: .35rem .8rem;
    background: var(--ink);
    border: 1px solid var(--gold);
    box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3px rgba(201, 162, 75, .35);
    color: var(--muted);
    font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
}

/* ---------- Шапка ---------- */
.masthead { padding: 1.4rem 0 1rem; border-bottom: 1px solid rgba(201, 162, 75, .25); }
.masthead-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--cream); min-width: 0; flex: 1 1 18rem; }
.brand:hover { color: var(--cream); }
.brand-mark { flex: 0 0 auto; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.brand-svg { display: block; width: 54px; height: auto; }
.brand-logo { display: block; max-height: 76px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: clamp(1.1rem, 2.3vw, 1.7rem); font-weight: 600; line-height: 1.08; text-transform: uppercase; letter-spacing: .03em; color: var(--gold-light); max-width: 34ch; hyphens: manual; }
.brand-desc { font-size: .82rem; line-height: 1.45; color: var(--muted); max-width: 48ch; }
.nav-toggle {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .55rem .9rem;
    background: transparent; border: 1px solid var(--gold); color: var(--cream);
    font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 18px; height: 1.5px; background: var(--gold); position: relative; transition: transform .25s, background .25s; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav { display: none; width: 100%; }
.site-nav.is-open { display: block; }
.site-menu { list-style: none; margin: 0; padding: .4rem 0; border-top: 1px solid rgba(201, 162, 75, .35); }
.site-menu li { border-bottom: 1px solid rgba(201, 162, 75, .15); }
.site-menu a { display: block; padding: .6rem 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--cream); text-decoration: none; }
.site-menu a:hover, .site-menu .current-menu-item > a { color: var(--gold-light); }
@media (min-width: 960px) {
    .masthead { padding: 1.8rem 0 1.3rem; }
    .masthead-in { flex-wrap: nowrap; }
    .brand-svg { width: 64px; }
    .nav-toggle { display: none; }
    .site-nav, .site-nav.is-open { display: block; width: auto; flex: 0 0 auto; }
    .site-menu { border: 0; padding: 0; display: grid; gap: .1rem; }
    .site-menu li { border: 0; }
    .site-menu a { position: relative; padding: .1rem 0 .1rem 1.1rem; font-size: 1.12rem; line-height: 1.35; }
    .site-menu a::before { content: ""; position: absolute; left: 0; top: 50%; width: .6rem; height: 1px; background: var(--gold); opacity: .35; transition: opacity .2s, width .2s; }
    .site-menu a:hover::before, .site-menu .current-menu-item > a::before { opacity: 1; width: .8rem; }
}

/* ---------- Заголовки секций («таблички») ---------- */
.plaque { text-align: center; margin: 0 0 clamp(1.8rem, 4vw, 2.8rem); }
.plaque-title { margin: 0; font-family: var(--serif); font-size: clamp(1.65rem, 3.2vw, 2.45rem); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-light); }
.plaque-num { color: var(--gold); }
.plaque-rule { display: flex; align-items: center; gap: .8rem; width: min(26rem, 86%); margin: .55rem auto 0; color: var(--muted); font-family: var(--serif); font-size: 1rem; font-weight: 600; }
.plaque-rule::before, .plaque-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent); }

/* ---------- Секции главной ---------- */
.wall { padding: clamp(2.6rem, 6vw, 4.6rem) 0; position: relative; }
.wall + .wall { border-top: 1px solid rgba(201, 162, 75, .22); }

/* Вывеска */
.sign { padding-top: clamp(1.6rem, 4vw, 2.6rem); }
.sign-board {
    display: grid; gap: 2rem; align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1.3rem, 4vw, 3.2rem);
    background: rgba(16, 24, 20, .55);
    border: 3px solid var(--gold);
    box-shadow: inset 0 0 0 8px rgba(16, 24, 20, .55), inset 0 0 0 9px rgba(216, 205, 184, .35), 0 24px 50px rgba(0, 0, 0, .45);
}
.sign-text { min-width: 0; }
.sign-kicker { margin: 0 0 .8rem; color: var(--gold); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; }
.sign-title { margin: 0; font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 5rem); font-weight: 600; line-height: .95; letter-spacing: .01em; text-transform: uppercase; color: var(--cream); hyphens: manual; overflow-wrap: normal; }
.sign-lead { margin: 1.2rem 0 0; font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-style: italic; font-weight: 500; color: var(--line); }
.sign-lead::before { content: ""; display: block; width: 4rem; height: 1px; background: var(--gold); margin-bottom: 1rem; }
.sign-art { margin: 0; min-width: 0; text-align: right; }
.sign-art .gilt img { aspect-ratio: 1182 / 834; object-fit: cover; }
@media (min-width: 960px) {
    .sign-board { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; }
}

/* Анатомия картины */
.anat { position: relative; display: flex; flex-direction: column; gap: 1.6rem; }
.anat-canvas { order: -1; margin: 0; min-width: 0; position: relative; z-index: 1; }
.anat-pic { position: relative; }
.anat-pic img { aspect-ratio: 824 / 572; object-fit: cover; }
.anat-labels { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; min-width: 0; position: relative; z-index: 2; }
.anat-label {
    display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .1rem .7rem;
    width: 100%; padding: .75rem 1rem;
    background: var(--cream); color: var(--paper-ink);
    border: 1px solid var(--gold);
    box-shadow: inset 0 0 0 3px var(--cream), inset 0 0 0 4px rgba(201, 162, 75, .55), 0 6px 14px rgba(0, 0, 0, .35);
    text-align: left; cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
}
.anat-no { font-family: var(--serif); font-size: .95rem; font-weight: 700; color: var(--gold-deep); }
.anat-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.anat-tip { grid-column: 2; font-size: .86rem; line-height: 1.55; color: var(--paper-muted); }
.anat-label:hover, .anat-label.is-active { background: var(--ink); color: var(--cream); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgba(201, 162, 75, .7), 0 6px 14px rgba(0, 0, 0, .35); }
.anat-label:hover .anat-tip, .anat-label.is-active .anat-tip { color: var(--muted); }
.anat-label:hover .anat-no, .anat-label.is-active .anat-no { color: var(--gold); }
.anat-dot {
    position: absolute; left: var(--x); top: var(--y);
    width: 1.5rem; height: 1.5rem; transform: translate(-50%, -50%);
    display: grid; place-items: center;
    border-radius: 50%; border: 1px solid var(--gold);
    background: rgba(20, 24, 26, .78); color: var(--gold-light);
    font-family: var(--serif); font-size: .82rem; font-weight: 700; line-height: 1;
    transition: background .2s, color .2s, box-shadow .2s;
}
.anat-dot.is-active { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 5px rgba(201, 162, 75, .3), 0 0 0 10px rgba(201, 162, 75, .12); }
.anat-caption { display: none; }
.anat-lines { display: none; }
@media (min-width: 600px) {
    .anat-labels { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
    .anat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.35fr) minmax(0, 1fr); align-items: center; gap: 2.8rem; }
    .anat-canvas { order: 0; }
    .anat-labels { grid-template-columns: 1fr; gap: 2.4rem; }
    .anat-labels--left .anat-label { grid-template-columns: 1fr auto; text-align: right; }
    .anat-labels--left .anat-no { order: 2; }
    .anat-label { display: grid; padding: .6rem .9rem; }
    .anat-tip { display: none; }
    .anat-dot { width: 1.25rem; height: 1.25rem; font-size: 0; }
    .anat-caption { display: block; max-width: 40rem; margin: 1.6rem auto 0; text-align: center; min-height: 5.2rem; }
    .anat-caption-title { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--gold-light); margin-bottom: .25rem; }
    .anat-caption-text { color: var(--line); font-size: .95rem; }
    .anat-lines { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
    .anat-line { stroke: rgba(201, 162, 75, .45); stroke-width: 1; }
    .anat-line.is-active { stroke: var(--gold-light); stroke-width: 1.6; }
    .anat-end { fill: var(--gold); }
}

/* Двойные ряды (две секции рядом) */
.duo { position: relative; overflow: hidden; overflow: clip; border-top: 1px solid rgba(201, 162, 75, .22); }
.duo-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.duo-pane { position: relative; min-width: 0; padding: clamp(2.6rem, 6vw, 4.4rem) 0; background-color: var(--pane, var(--green)); background-image: url("images/velvet.webp"); background-blend-mode: soft-light; }
.duo-pane::before, .duo-pane::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3000px; background-color: inherit; background-image: inherit; background-blend-mode: soft-light; z-index: 0; }
.duo-pane::before { right: 100%; }
.duo-pane::after { left: 100%; }
.duo-pane > * { position: relative; z-index: 1; }
.duo-pane + .duo-pane { border-top: 1px solid rgba(201, 162, 75, .3); }
.duo-pane--plum { --pane: var(--plum); }
.duo-pane--green { --pane: var(--green); }
.duo-pane--forest { --pane: var(--forest); }
.duo-pane--graphite { --pane: var(--graphite); }
@media (min-width: 1200px) {
    .duo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); }
    .duo-grid--b { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .duo-pane:first-child { padding-right: clamp(1.5rem, 2.6vw, 2.8rem); }
    .duo-pane:first-child::after { display: none; }
    .duo-pane + .duo-pane { padding-left: clamp(1.5rem, 2.6vw, 2.8rem); border-top: 0; box-shadow: -1px 0 0 rgba(201, 162, 75, .6); }
    .duo-pane + .duo-pane::before { display: none; }
}

/* Направления */
.styles { display: grid; gap: 1rem; }
.style-panel {
    display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); grid-template-areas: "frame name" "frame period" "frame line" "frame hint"; column-gap: 1rem; align-items: start;
    width: 100%; padding: .9rem;
    background: var(--cream); color: var(--paper-ink);
    border: 1px solid var(--gold);
    box-shadow: inset 0 0 0 3px var(--cream), inset 0 0 0 4px rgba(201, 162, 75, .5), 0 10px 22px rgba(0, 0, 0, .4);
    text-align: left; cursor: pointer;
    transition: flex-grow .45s ease, background .3s, opacity .3s;
}
.style-frame { grid-area: frame; display: block; padding: 5px; background: var(--gilt-bg); box-shadow: inset 0 0 0 1px #5a4316; }
.style-frame img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: filter .3s; }
.style-name { grid-area: name; display: block; hyphens: manual; overflow-wrap: normal; font-family: var(--serif); font-size: clamp(1rem, 4.4vw, 1.25rem); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.15; }
.style-period { grid-area: period; display: block; margin-top: .15rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.style-line { grid-area: line; display: block; margin-top: .4rem; font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; }
.style-hint { grid-area: hint; display: block; margin-top: .4rem; font-size: .8rem; line-height: 1.5; color: var(--paper-muted); }
@media (min-width: 960px) {
    .styles { display: flex; align-items: flex-start; gap: .8rem; min-height: 25rem; }
    .style-panel {
        flex: 1 1 0; min-width: 0;
        display: flex; flex-direction: column; align-items: center;
        margin-top: calc(var(--drop) * 1rem);
        padding: .7rem .55rem 1rem;
        text-align: center;
        background: #DCD2BC;
        box-shadow: inset 0 0 0 3px #DCD2BC, inset 0 0 0 4px rgba(201, 162, 75, .45), 0 10px 22px rgba(0, 0, 0, .4);
    }
    .style-frame { width: 100%; max-width: 9rem; }
    .style-panel:not(.is-open) .style-frame img { filter: saturate(.55) brightness(.82); }
    .style-name { margin-top: .9rem; font-size: 1.05rem; }
    .style-panel:not(.is-open) .style-name { writing-mode: vertical-rl; transform: rotate(180deg); margin-top: 1rem; letter-spacing: .08em; white-space: nowrap; color: #3e382f; }
    .style-panel:not(.is-open) .style-period,
    .style-panel:not(.is-open) .style-line,
    .style-panel:not(.is-open) .style-hint { display: none; }
    .style-panel.is-open { flex-grow: 3.2; background: var(--cream); box-shadow: inset 0 0 0 3px var(--cream), inset 0 0 0 4px rgba(201, 162, 75, .7), 0 16px 30px rgba(0, 0, 0, .5); cursor: default; }
    .style-panel.is-open .style-name { font-size: 1.2rem; }
    .style-panel:not(.is-open) .style-frame { max-width: 4.2rem; }
    .style-panel:not(.is-open):hover { background: var(--cream); }
}

/* Карточки записей (этикетки-паспарту) */
.hang { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.2rem 1.8rem; padding-top: 1.6rem; }
.card {
    position: relative;
    display: flex; flex-direction: column;
    min-width: 0;
    padding: .9rem .9rem 1.2rem;
    background: var(--cream); color: var(--paper-ink);
    border: 1px solid var(--gold);
    box-shadow: inset 0 0 0 4px var(--cream), inset 0 0 0 5px rgba(201, 162, 75, .5), 0 16px 30px rgba(0, 0, 0, .45);
    transition: transform .3s, box-shadow .3s;
}
.card::before {
    content: ""; position: absolute; left: 50%; top: -1.35rem; width: 3.4rem; height: 1.35rem; transform: translateX(-50%);
    background: linear-gradient(to top right, transparent calc(50% - .6px), rgba(201, 162, 75, .8) 50%, transparent calc(50% + .6px)) left / 50% 100% no-repeat,
                linear-gradient(to top left, transparent calc(50% - .6px), rgba(201, 162, 75, .8) 50%, transparent calc(50% + .6px)) right / 50% 100% no-repeat;
}
.card::after { content: ""; position: absolute; left: 50%; top: -1.6rem; width: .5rem; height: .5rem; transform: translateX(-50%); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
.card:hover { transform: rotate(-.6deg) translateY(-2px); box-shadow: inset 0 0 0 4px var(--cream), inset 0 0 0 5px var(--gold), 0 22px 36px rgba(0, 0, 0, .55); }
.card-thumb { padding: 6px; background: var(--gilt-bg); box-shadow: inset 0 0 0 1px #5a4316, 0 4px 10px rgba(0, 0, 0, .25); }
.card-thumb a { display: block; }
.card-thumb img, .card-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 0 0 1px #4b3812; }
.card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 1rem .2rem 0; }
.card-flag { display: inline-block; margin-bottom: .5rem; padding: .15rem .5rem; background: var(--wine); color: var(--cream); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.card-title { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.15; color: var(--paper-ink); }
.card-title a { color: var(--paper-ink); text-decoration: none; }
.card-title a:hover { color: var(--wine); }
.card-excerpt { font-size: .9rem; line-height: 1.6; color: #4A4337; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--wine); }
.card-meta { margin: auto 0 .9rem; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-muted); }
.card-cat::before { content: "· "; color: var(--gold-deep); }
.card-more { padding: .6rem 1rem; }
@media (min-width: 600px) {
    .hang { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hang > .card:nth-child(2n) { margin-top: 1.6rem; }
    .hang > .card:nth-child(2n+1) { margin-bottom: 1.2rem; }
}
@media (min-width: 960px) {
    .hang { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hang > .card:nth-child(n) { margin-top: 0; margin-bottom: 0; }
    .hang > .card:nth-child(3n+1) { margin-bottom: 1.4rem; }
    .hang > .card:nth-child(3n+2) { margin-top: 2rem; }
    .hang > .card:nth-child(3n) { margin-top: .9rem; margin-bottom: .6rem; }
    .layout-with-sidebar .hang { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar .hang > .card:nth-child(n) { margin-top: 0; margin-bottom: 0; }
    .layout-with-sidebar .hang > .card:nth-child(2n) { margin-top: 1.6rem; }
    .layout-with-sidebar .hang > .card:nth-child(2n+1) { margin-bottom: 1.2rem; }
}
@media (min-width: 1200px) {
    .hang--front { gap: 3rem 1.2rem; }
    .hang--front .card { padding: .7rem .7rem 1rem; }
    .hang--front .card-title { font-size: 1.22rem; }
    .hang--front .card-excerpt { font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .hang--front .card-more { padding: .55rem .8rem; font-size: .7rem; }
}
.pane-more { margin: 2.6rem 0 0; text-align: center; }
.empty-note { color: var(--line); font-family: var(--serif); font-size: 1.25rem; font-style: italic; }

/* План выставки */
.plan { display: grid; gap: 2rem; align-items: center; }
.plan-sheet { margin: 0; min-width: 0; }
.plan-pic { position: relative; border: 1px solid var(--gold); box-shadow: 0 0 0 6px rgba(239, 230, 210, .08), 0 18px 36px rgba(0, 0, 0, .5); background: var(--cream); }
.plan-pic img { display: block; width: 100%; height: auto; aspect-ratio: 888 / 1048; }
.plan-hall {
    position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
    width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
    border-radius: 50%;
    font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; line-height: 1;
    color: #8A7F6C;
    transition: color .25s, box-shadow .25s, background .25s;
}
.plan-hall.is-lit { color: var(--wine); background: rgba(201, 162, 75, .18); box-shadow: 0 0 0 2px var(--gold), 0 0 0 8px rgba(201, 162, 75, .18); }
.plan-cap { display: flex; align-items: center; gap: .9rem; margin-top: 1.2rem; font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--line); text-align: center; }
.plan-cap::before, .plan-cap::after { content: ""; flex: 1; height: 1px; background: rgba(201, 162, 75, .55); }
.plan-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.plan-tip {
    display: block; width: 100%;
    padding: .55rem 0 .55rem 1.1rem;
    background: transparent; border: 0; border-left: 2px solid rgba(201, 162, 75, .35);
    color: var(--cream); text-align: left; cursor: pointer;
    transition: border-color .2s;
}
.plan-tip-title { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; transition: color .2s; }
.plan-tip-text { display: block; margin-top: .25rem; font-size: .86rem; line-height: 1.55; color: var(--muted); }
.plan-tip:hover, .plan-tip.is-lit { border-left-color: var(--gold); }
.plan-tip:hover .plan-tip-title, .plan-tip.is-lit .plan-tip-title { color: var(--gold-light); }
@media (min-width: 600px) {
    .plan { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

/* Что взять с собой */
.kit { padding: 8px; }
.kit-list {
    list-style: none; margin: 0 auto; padding: clamp(1.3rem, 3.4vw, 2.4rem) clamp(1.2rem, 3.4vw, 2.6rem);
    max-width: 34rem;
    background: var(--cream); color: var(--paper-ink);
    border: 2px solid var(--gold);
    box-shadow: inset 0 0 0 5px var(--cream), inset 0 0 0 6px rgba(201, 162, 75, .55), 0 0 0 7px var(--graphite), 0 0 0 8px rgba(201, 162, 75, .7), 0 26px 46px rgba(0, 0, 0, .55);
}
.kit-list li + li { border-top: 1px dashed rgba(140, 106, 36, .35); }
.kit-item {
    display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); column-gap: .8rem; align-items: center;
    width: 100%; padding: .75rem 0;
    background: transparent; border: 0; color: var(--paper-ink); text-align: left; cursor: pointer;
}
.kit-dot { width: .8rem; height: .8rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 75, .25); justify-self: center; position: relative; transition: background .2s, transform .2s; }
.kit-name { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 600; line-height: 1.2; transition: color .2s; }
.kit-note { grid-column: 2; margin-top: .2rem; font-size: .84rem; line-height: 1.5; color: var(--paper-muted); }
.kit-item:hover .kit-name { color: var(--wine); }
.kit-item[aria-pressed="true"] .kit-dot { background: var(--wine); transform: scale(1.25); }
.kit-item[aria-pressed="true"] .kit-dot::after { content: ""; position: absolute; left: 50%; top: 45%; width: .22rem; height: .42rem; border: solid var(--cream); border-width: 0 1.5px 1.5px 0; transform: translate(-50%, -50%) rotate(45deg); }
.kit-item[aria-pressed="true"] .kit-name { color: var(--paper-muted); text-decoration: line-through; text-decoration-color: var(--gold); }
.kit-foot { margin: 1.6rem 0 0; text-align: center; font-size: .82rem; color: var(--muted); }

/* ---------- Внутренние страницы ---------- */
.inner { padding: 1.4rem 0 4.5rem; }
.crumbs {
    display: inline-flex; flex-wrap: wrap; align-items: center; gap: .2rem .45rem;
    margin: .4rem 0 2rem; padding: .45rem .9rem;
    background: rgba(20, 24, 26, .6); border: 1px solid rgba(201, 162, 75, .45);
    font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.crumbs a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(201, 162, 75, .6); }
.crumbs a:hover { color: var(--gold-light); }
.crumbs-sep { color: var(--gold); }
.crumbs [aria-current] { color: var(--line); }
.layout-single, .layout-with-sidebar { display: block; }
.content-area { min-width: 0; }
.sidebar { min-width: 0; margin-top: 3rem; }
@media (min-width: 960px) {
    .layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
    .layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; align-items: start; }
    .sidebar { margin-top: 0; }
}
.page-head { margin-bottom: 2.2rem; padding-bottom: 1.3rem; border-bottom: 1px solid rgba(201, 162, 75, .45); position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 4.5rem; height: 3px; background: var(--gold); }
.page-kicker { margin: 0 0 .5rem; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.page-kicker a { color: var(--gold); text-decoration: none; }
.page-title { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 600; line-height: 1.05; color: var(--cream); }
.page-lead { margin-top: 1rem; color: var(--line); }
.page-lead p:last-child { margin-bottom: 0; }

/* Запись */
.entry-head { margin-bottom: 1.8rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(201, 162, 75, .45); }
.entry-meta { margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.entry-author::before { content: "Автор: "; color: var(--gold); }
.entry-cover { margin: 0 0 2rem; }
.entry-content {
    padding: clamp(1.2rem, 3.4vw, 2.6rem) clamp(1.1rem, 3.4vw, 2.8rem);
    background: rgba(14, 20, 17, .6);
    border: 1px solid rgba(201, 162, 75, .35);
    box-shadow: inset 0 0 0 5px rgba(14, 20, 17, .6), inset 0 0 0 6px rgba(216, 205, 184, .12);
    font-size: 1.04rem; line-height: 1.8; color: var(--cream);
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { font-size: 2rem; color: var(--gold-light); padding-bottom: .35rem; border-bottom: 1px solid rgba(201, 162, 75, .35); }
.entry-content h3 { font-size: 1.55rem; color: var(--gold-light); }
.entry-content h4 { font-size: 1.3rem; }
.entry-content a { color: var(--gold-light); }
.entry-content a:hover { color: var(--cream); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: var(--gold); }
.entry-content blockquote {
    margin: 1.8em 0; padding: 1.1rem 1.5rem;
    background: rgba(122, 46, 53, .22); border-left: 3px solid var(--wine);
    font-family: var(--serif); font-size: 1.35rem; font-style: italic; line-height: 1.45; color: var(--cream);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .6rem; font-family: var(--sans); font-size: .8rem; font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .94rem; border: 1px solid rgba(216, 205, 184, .5); }
.entry-content th, .entry-content td { border: 1px solid rgba(216, 205, 184, .5); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.entry-content th { background: rgba(201, 162, 75, .18); font-family: var(--serif); font-size: 1.08rem; color: var(--gold-light); }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption, .wp-caption-text { margin-top: .6rem; font-size: .82rem; color: var(--muted); text-align: center; }
.entry-content pre { overflow-x: auto; padding: 1rem; background: var(--ink); border: 1px solid rgba(201, 162, 75, .3); font-size: .88rem; }
.entry-content code { background: rgba(20, 24, 26, .8); padding: .1rem .35rem; font-size: .9em; }
.entry-content hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 2.4em 0; }
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-image img { box-shadow: 0 0 0 1px rgba(201, 162, 75, .6); }
.entry-tags { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a { padding: .25rem .7rem; border: 1px solid rgba(201, 162, 75, .5); font-size: .8rem; text-decoration: none; color: var(--line); }
.entry-tags a:hover { background: rgba(201, 162, 75, .15); color: var(--cream); }
.page-links { margin-top: 1.4rem; font-size: .9rem; color: var(--muted); }
.post-navigation { margin-top: 2.6rem; }
.post-navigation .nav-links { display: grid; gap: 1rem; }
.post-navigation a { display: block; height: 100%; padding: 1rem 1.2rem; border: 1px solid rgba(201, 162, 75, .45); background: rgba(20, 24, 26, .45); text-decoration: none; transition: background .2s; }
.post-navigation a:hover { background: rgba(201, 162, 75, .12); }
.post-navigation .nav-next { text-align: right; }
.nav-kicker { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.nav-title { display: block; margin-top: .3rem; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--cream); }
@media (min-width: 600px) {
    .post-navigation .nav-links { grid-template-columns: 1fr 1fr; }
    .post-navigation .nav-next:only-child { grid-column: 2; }
}

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 3rem 0 0; }
.pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.7rem; height: 2.7rem; padding: 0 .85rem;
    border: 1px solid var(--gold); background: rgba(20, 24, 26, .5);
    font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--cream); text-decoration: none;
    transition: background .2s, color .2s;
}
.pager a.page-numbers:hover { background: rgba(201, 162, 75, .2); color: var(--gold-light); }
.pager .page-numbers.current { background: var(--gold); color: var(--green); }
.pager .page-numbers.dots { border-color: transparent; background: transparent; color: var(--muted); }
.pager .prev, .pager .next { font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

/* Сайдбар и виджеты */
.sidebar {
    padding: 1.6rem 1.4rem;
    background: var(--panel);
    border: 1px solid rgba(201, 162, 75, .45);
    box-shadow: inset 0 0 0 5px var(--panel), inset 0 0 0 6px rgba(216, 205, 184, .14);
    color: var(--cream);
}
.widget { margin-bottom: 2rem; font-size: .92rem; }
.widget:last-child { margin-bottom: 0; }
.widget-title { margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(201, 162, 75, .5); font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .45rem 0; border-bottom: 1px solid rgba(216, 205, 184, .12); }
.widget li:last-child { border-bottom: 0; }
.sidebar .widget-title { color: var(--gold-light); }
.sidebar .widget, .sidebar .widget p { color: var(--line); }
.sidebar .widget a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(201, 162, 75, .45); }
.sidebar .widget a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }
.sidebar .post-date, .sidebar .rss-date { display: block; font-size: .76rem; color: var(--muted); }
.sidebar .seek { flex-wrap: wrap; }

/* Подвал */
.basement { background: var(--ink); border-top: 1px solid var(--gold); padding: 3.2rem 0 1.6rem; color: var(--line); position: relative; }
.basement::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: rgba(216, 205, 184, .18); }
.basement-cols { display: grid; gap: 2.2rem; }
.basement-col { min-width: 0; }
.basement .widget-title { color: var(--gold); font-size: 1.15rem; border-bottom-color: rgba(201, 162, 75, .35); }
.basement .widget, .basement .widget p { color: var(--line); font-size: .88rem; }
.basement .widget a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(201, 162, 75, .6); }
.basement .widget a:hover { color: var(--gold-light); }
.basement .widget li { border-bottom-color: rgba(216, 205, 184, .08); padding: .3rem 0; }
.basement .widget_nav_menu a { text-decoration: none; }
.basement-copy { margin: 2.6rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(201, 162, 75, .3); font-size: .8rem; letter-spacing: .04em; color: var(--muted); }
@media (min-width: 600px) {
    .basement-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .basement-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
}

/* Поиск */
.seek { display: flex; gap: .5rem; margin: 1.4rem 0; }
.seek-field {
    flex: 1 1 12rem; min-width: 0;
    padding: .72rem .95rem;
    background: #101613; border: 1px solid rgba(201, 162, 75, .6); border-radius: 0;
    color: var(--cream); font: inherit; font-size: .95rem;
}
.seek-field::placeholder { color: var(--muted); }
.empty-box .seek { max-width: 32rem; }

/* Комментарии */
.comments { margin-top: 3rem; }
.comments-title, .comment-reply-title { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--gold-light); margin: 0 0 1.2rem; }
.comments-count { display: inline-block; min-width: 2rem; padding: 0 .4rem; margin-left: .4rem; background: var(--gold); color: var(--green); font-size: 1rem; text-align: center; vertical-align: middle; }
.notes, .notes .children { list-style: none; margin: 0; padding: 0; }
.notes .children { padding-left: clamp(1rem, 4vw, 2.4rem); }
.note-body { margin-bottom: 1rem; padding: 1rem 1.2rem; background: rgba(14, 20, 17, .6); border-left: 3px solid var(--gold); }
.note-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin-bottom: .6rem; }
.note-avatar { border-radius: 50%; border: 1px solid var(--gold); }
.note-author { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--cream); }
.note-date { font-size: .74rem; letter-spacing: .08em; color: var(--muted); }
.note-wait { font-size: .85rem; color: var(--gold); }
.note-text { color: var(--line); font-size: .95rem; }
.note-reply a { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.comment-respond { margin-top: 2rem; padding: clamp(1.2rem, 3vw, 2rem) clamp(1.1rem, 3vw, 2rem); background: rgba(20, 24, 26, .55); border: 1px solid rgba(201, 162, 75, .35); }
.comment-reply-title small { display: block; font-family: var(--sans); font-size: .78rem; margin-top: .4rem; }
.comment-reply-title small a { color: var(--gold); }
.form-note { font-size: .85rem; color: var(--muted); }
.comment-form label { display: block; margin-bottom: .3rem; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    display: block; width: 100%; padding: .7rem .9rem;
    background: #101613; border: 1px solid rgba(201, 162, 75, .55); border-radius: 0;
    color: var(--cream); font: inherit;
}
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--muted); }
.req { color: var(--gold); }

/* 404 */
.lost { text-align: center; }
.lost-frame { width: min(20rem, 80%); margin: 1rem auto 2.4rem; padding: 18px; background: var(--gilt-bg); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 0 0 1px #5a4316, inset 0 0 0 3px rgba(255, 236, 170, .45); }
.lost-frame span { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--ink) url("images/velvet.webp"); background-blend-mode: soft-light; box-shadow: inset 0 0 30px rgba(0, 0, 0, .8); font-family: var(--serif); font-size: clamp(3.4rem, 9vw, 5.4rem); font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.lost-text { max-width: 36rem; margin: 1.2rem auto; color: var(--line); }
.lost .seek { max-width: 30rem; margin-left: auto; margin-right: auto; }

/* Cookie-баннер */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
    max-width: 58rem; margin-left: auto; margin-right: auto;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.6rem;
    padding: 1rem 1.4rem;
    background: var(--ink); color: var(--cream);
    border: 1px solid var(--gold);
    box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px rgba(201, 162, 75, .35), 0 16px 40px rgba(0, 0, 0, .6);
}
.cookie-text { margin: 0; flex: 1 1 20rem; font-size: .88rem; line-height: 1.55; color: var(--line); }

/* Адаптив: мелкие экраны */
@media (max-width: 600px) {
    .card-thumb img, .card-img { aspect-ratio: 16 / 9; }
    .sign-board { padding: 1.4rem 1.2rem; }
    .entry-content { padding: 1.2rem 1.05rem; }
    .kit-list { padding: 1.3rem 1.2rem; }
    .cookie-banner { padding: 1rem 1.1rem; }
}
