/*
Theme Name: dds_zingerpro.ru
Theme URI: https://zingerpro.ru/
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: zngr
*/

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

/* ---------- Переменные ---------- */
:root {
    --graphite: #1C1F22;
    --grid: #3A4045;
    --paper: #E8E9E6;
    --white: #FFFFFF;
    --steel: #7FA6B8;
    --lime: #B7E21C;
    --navy: #17263A;
    --brass: #C9A227;
    --frame: #4A5057;
    --night: #101214;
    --panel: #24292D;
    --ink: #101214;
    --muted: #8E969B;
    --link-dark: #1E5A73;
    --shell-w: min(85%, 1200px);
    --gut: 5.5rem;
    --head: "Oswald", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --text: "Roboto", "Segoe UI", Arial, sans-serif;
}

/* ---------- Служебные правила hidden ---------- */
.cookie-banner[hidden] { display: none !important; }
.anat-zoom[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--text);
    font-size: 16px;
    line-height: 1.6;
    color: var(--paper);
    background-color: var(--graphite);
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 5px, rgba(0, 0, 0, 0.05) 5px 6px, transparent 6px 13px),
        linear-gradient(rgba(58, 64, 69, 0.32) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58, 64, 69, 0.32) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(255, 255, 255, 0.025) 45%, rgba(0, 0, 0, 0.18));
    background-size: auto, 22px 22px, 22px 22px, auto;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--white); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.15s, background-color 0.15s, border-color 0.15s, transform 0.15s; }
a:hover { color: var(--lime); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); font-weight: 500; line-height: 1.15; margin: 0 0 0.6em; overflow-wrap: break-word; hyphens: auto; }
p, li, td, th, dd, dt, figcaption { overflow-wrap: break-word; hyphens: auto; }
.card-title, .brand-name, .sheet-title, .fs-title, .list-title, .kit-list b, .care-name { hyphens: manual; }

.shell { width: var(--shell-w); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--lime); color: var(--ink); padding: 0.6rem 1rem; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Кнопки ---------- */
.zg-btn {
    display: inline-block;
    font-family: var(--head);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    background: var(--lime);
    border: 1px solid var(--lime);
    border-radius: 2px;
    padding: 0.55rem 1.2rem;
    box-shadow: 0 0 0 0 var(--white);
}
.zg-btn:hover { color: var(--ink); background: var(--white); border-color: var(--white); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 0 var(--lime); }

/* ---------- Шапка ---------- */
.masthead { padding-top: 1.1rem; }
.masthead-inner { border-bottom: 1px solid var(--white); padding-bottom: 1.6rem; display: flex; flex-direction: column; gap: 1.2rem; }
.topnav { display: flex; justify-content: flex-end; position: relative; }
.topnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.topnav-list a {
    font-family: var(--head);
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
}
.topnav-list a:hover { color: var(--lime); border-bottom-color: var(--lime); }
.topnav-list .current-menu-item > a, .topnav-list .current_page_item > a { color: var(--lime); }
.topnav-toggle { display: none; }
.brand { display: flex; align-items: center; gap: 1.6rem; }
.brand-logo-link { flex: 0 0 auto; display: block; line-height: 0; }
.brand-mark { width: 84px; height: 84px; display: block; }
.brand-logo { width: 84px; height: auto; display: block; }
.brand-text { min-width: 0; }
.brand-name { font-family: var(--head); font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: 0.01em; margin: 0 0 0.45rem; max-width: 15em; }
.brand-name a { color: var(--white); text-decoration: none; }
.brand-name a:hover { color: var(--lime); }
.brand-desc { color: var(--steel); font-size: 0.98rem; line-height: 1.4; margin: 0; max-width: 34em; }

/* ---------- Секции главной ---------- */
.fs { padding: 2.6rem 0 3rem; position: relative; }
.fs-title {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--white);
    margin: 0 0 1.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.6rem;
}
.fs-num { color: var(--lime); font-weight: 400; }
.fs-title-gut .fs-num { min-width: var(--gut); }

/* Блок 01 — разбор инструмента */
.anat { margin-left: var(--gut); max-width: 860px; }
.anat-figure { position: relative; margin: 0; aspect-ratio: 512 / 150; container-type: inline-size; }
.anat-photo { position: absolute; left: 0.2%; top: 2%; width: 65%; height: 84.7%; object-fit: contain; display: block; }
.anat-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.anat-dot { position: absolute; left: var(--x); top: var(--y); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 2px rgba(28, 31, 34, 0.35); }
.anat-label {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translateY(-50%);
    font-family: var(--head);
    font-size: clamp(0.72rem, 2.05cqw, 1.15rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--white);
}
.anat-legend { display: none; }
.anat-note { max-width: 27rem; margin-top: 0.6rem; }
.anat-caption { color: var(--paper); font-size: 1rem; font-weight: 500; margin-bottom: 0.4rem; }
.anat-text { color: var(--steel); font-size: 0.9rem; margin-bottom: 1.1rem; }

.anat-zoom { position: fixed; inset: 0; z-index: 150; background: rgba(16, 18, 20, 0.94); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.anat-zoom-box { position: relative; width: min(100%, 1100px); background: var(--graphite); border: 1px solid var(--frame); padding: 2.6rem 1.6rem 1.4rem; }
.anat-zoom-stage .anat-figure { width: 100%; }
.anat-zoom-close { position: absolute; top: 0.4rem; right: 0.6rem; width: 2.2rem; height: 2.2rem; background: transparent; color: var(--white); border: 1px solid var(--frame); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.anat-zoom-close:hover { border-color: var(--lime); color: var(--lime); }
.anat-zoom-list { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.05em; color: var(--white); }
.anat-zoom-list span { color: var(--lime); margin-right: 0.3rem; }

/* Блок 02 — материалы */
.fs-materials { background: var(--paper); color: var(--ink); padding-bottom: 4rem; overflow: hidden; }
.fs-materials .fs-title, .fs-materials .fs-num { color: var(--ink); }
.fs-materials::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: calc((100% - var(--shell-w)) / 2 + var(--gut));
    height: 16px;
    background: var(--steel);
}
.mat-scroll { margin-left: var(--gut); overflow-x: auto; }
.mat-table { width: 100%; min-width: 640px; border-collapse: collapse; border: 1px solid #C3C7C6; font-size: 0.86rem; line-height: 1.4; }
.mat-table th, .mat-table td { border: 1px solid #C3C7C6; padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; }
.mat-table thead th {
    font-family: var(--head);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--ink);
    color: var(--ink);
}
.mat-table tbody th { font-family: var(--head); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: #3E4E58; width: 15%; }
.mat-table tbody tr:nth-child(2) td { font-family: var(--head); font-size: 0.95rem; letter-spacing: 0.03em; text-transform: uppercase; }
.mat-table tbody tr:hover td { background: rgba(127, 166, 184, 0.14); }
.mat-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Последние записи */
.latest-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3.3fr); gap: 2rem; align-items: start; }
.latest-title { flex-direction: column; gap: 0; }
.latest-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; min-width: 0; }
.latest-cards > .card:nth-child(n+4) { display: none; }

/* Карточки записей */
.card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.card-thumb { display: block; border-radius: 4px; overflow: hidden; background: var(--frame); }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.3s, filter 0.3s; }
.card:hover .card-thumb img { transform: scale(1.04); filter: contrast(1.08); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 0.9rem 0 0; min-width: 0; }
.card-title { font-size: 1.08rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 0.4rem; }
.card-title a { color: var(--white); text-decoration: none; }
.card-title a:hover { color: var(--lime); }
.card-excerpt { color: var(--steel); font-size: 0.9rem; line-height: 1.45; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--steel); }
.card-date { display: block; color: var(--muted); font-size: 0.78rem; margin: 0.1rem 0 0.8rem; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--head);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    border: 1px solid var(--lime);
    border-radius: 2px;
    padding: 0.32rem 1.1rem;
}
.card-more:hover { background: var(--lime); color: var(--ink); transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--white); }

/* Блок 04 — комплектация */
.fs-kit { background: var(--navy); }
.kit { margin-left: var(--gut); display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 2.4rem; align-items: center; }
.kit-figure { position: relative; margin: 0; container-type: inline-size; }
.kit-figure img { display: block; width: 100%; height: auto; }
.kit-pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); font-family: var(--head); font-weight: 600; font-size: clamp(0.8rem, 3.1cqw, 1.45rem); color: var(--lime); line-height: 1; }
.kit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.kit-list li { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); column-gap: 0.4rem; align-items: baseline; }
.kit-n { font-family: var(--head); font-weight: 600; color: var(--lime); grid-row: span 2; }
.kit-list b { font-family: var(--head); font-weight: 500; font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--white); line-height: 1.2; }
.kit-list small { grid-column: 2; color: var(--steel); font-size: 0.82rem; line-height: 1.35; }

/* Блок 05 — уход */
.fs-care { background: var(--brass); color: var(--ink); }
.fs-care .fs-title { color: var(--ink); justify-content: center; text-align: center; }
.fs-care .fs-num { color: var(--ink); }
.care-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.care-step { position: relative; text-align: center; padding: 0 0.9rem; min-width: 0; }
.care-step:not(:last-child)::after { content: ""; position: absolute; top: 31px; left: calc(50% + 44px); width: calc(100% - 88px); border-top: 1.5px solid var(--ink); }
.care-step:not(:last-child)::before { content: ""; position: absolute; top: 27px; left: calc(150% - 52px); width: 8px; height: 8px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: rotate(45deg); }
.care-ico { width: 64px; height: 64px; display: block; margin: 0 auto 0.7rem; }
.care-name { font-size: 1.1rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.35rem; }
.care-text { font-size: 0.86rem; line-height: 1.45; color: var(--ink); margin: 0; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 1.6rem 0 3.4rem; }
.crumbs { font-size: 0.82rem; color: var(--steel); margin-bottom: 1.6rem; }
.crumbs a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--frame); }
.crumbs a:hover { color: var(--lime); border-bottom-color: var(--lime); }
.crumbs .sep { color: var(--lime); margin: 0 0.25rem; }

.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67%) minmax(0, 27%); justify-content: space-between; align-items: start; }
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

.list-head { margin-bottom: 1.6rem; border-bottom: 1px solid var(--frame); padding-bottom: 1rem; }
.list-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); text-transform: uppercase; letter-spacing: 0.03em; color: var(--white); margin-bottom: 0.4rem; }
.list-lead { color: var(--steel); margin: 0; }
.list-lead p { margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2rem 1.4rem; }
.empty-note { color: var(--steel); }
.empty-box { background: var(--panel); border: 1px solid var(--frame); padding: 1.6rem 1.8rem; }

/* Лист записи и страницы — «страница справочника» */
.sheet { background: var(--paper); color: var(--ink); padding: 2.2rem 2.4rem 2rem; border-top: 4px solid var(--lime); }
.sheet-head { margin-bottom: 1.4rem; }
.sheet-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); margin-bottom: 0.5rem; }
.sheet-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.82rem; color: #4E5A61; }
.sheet-cat a { color: var(--link-dark); font-family: var(--head); text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; border-bottom: 1px solid currentColor; }
.sheet-cover { margin: 0 0 1.6rem; }
.sheet-cover img { display: block; width: 100%; height: auto; }
.sheet-tags { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sheet-tags a { font-size: 0.8rem; color: var(--ink); text-decoration: none; border: 1px solid var(--frame); padding: 0.15rem 0.6rem; }
.sheet-tags a:hover { background: var(--ink); color: var(--lime); }

.entry { font-size: 1.02rem; line-height: 1.7; color: #1E2226; }
.entry > *:last-child { margin-bottom: 0; }
.entry p { margin: 0 0 1.1em; }
.entry a { color: var(--link-dark); }
.entry a:hover { color: var(--ink); background: var(--lime); }
.entry h2, .entry h3, .entry h4 { color: var(--ink); text-transform: uppercase; letter-spacing: 0.03em; margin: 1.6em 0 0.6em; }
.entry h2 { font-size: 1.6rem; }
.entry h2::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; background: var(--navy); margin-right: 0.45em; vertical-align: 0.12em; }
.entry h3 { font-size: 1.3rem; }
.entry h4 { font-size: 1.1rem; }
.entry ul, .entry ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry li { margin-bottom: 0.35em; }
.entry ul li::marker { color: var(--navy); }
.entry ol li::marker { font-family: var(--head); font-weight: 600; color: var(--navy); }
.entry blockquote { margin: 1.6em 0; padding: 1.2rem 1.6rem; background: var(--navy); color: var(--paper); border-left: 5px solid var(--lime); }
.entry blockquote p:last-child { margin-bottom: 0; }
.entry blockquote a { color: var(--lime); }
.entry table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.92rem; border: 1px solid var(--frame); }
.entry th, .entry td { border: 1px solid var(--frame); padding: 0.55rem 0.75rem; text-align: left; }
.entry th { background: #D3D6D4; font-family: var(--head); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.entry img { display: block; height: auto; }
.entry figure { margin: 1.4em 0; }
.entry figcaption { font-size: 0.82rem; color: #4E5A61; margin-top: 0.4rem; }
.entry code { background: #D3D6D4; padding: 0.1em 0.35em; font-size: 0.9em; }
.entry pre { background: var(--graphite); color: var(--paper); padding: 1rem 1.2rem; overflow-x: auto; }
.entry hr { border: 0; border-top: 1px dashed var(--frame); margin: 2em 0; }
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }

.neighbors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; margin-top: 1.6rem; }
.neighbors a { display: block; background: var(--panel); border: 1px solid var(--frame); padding: 0.9rem 1.1rem; text-decoration: none; color: var(--white); font-family: var(--head); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.3; }
.neighbors a span { display: block; color: var(--lime); font-size: 0.78rem; margin-bottom: 0.25rem; }
.neighbors a:hover { border-color: var(--lime); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--lime); color: var(--white); }
.neighbors-next { grid-column: 2; text-align: right; }

/* Сайдбар */
.sidebar { background: var(--panel); border: 1px solid var(--frame); padding: 1.4rem 1.4rem 0.6rem; color: var(--paper); min-width: 0; }
.sidebar .widget { margin-bottom: 1.6rem; }
.sidebar .widget-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--white); padding-left: 0.8rem; border-left: 3px solid var(--lime); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.5rem 0; border-bottom: 1px dashed var(--frame); line-height: 1.4; }
.sidebar a { color: var(--paper); text-decoration: none; }
.sidebar a:hover { color: var(--lime); }
.sidebar .post-date { display: block; color: var(--muted); font-size: 0.78rem; }
.sidebar p, .sidebar .textwidget { color: var(--paper); }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 2.4rem; align-items: center; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 0.8rem; border: 1px solid var(--frame); color: var(--white); text-decoration: none; font-family: var(--head); font-size: 0.95rem; letter-spacing: 0.04em; }
.pager a.page-numbers:hover { border-color: var(--lime); color: var(--lime); transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--lime); }
.pager .page-numbers.current { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.pager .page-numbers.dots { border: 0; min-width: 1.5rem; padding: 0; }
.sheet .pager { margin-top: 1.4rem; color: var(--ink); }

/* Поиск */
.seek { margin: 1.2rem 0; }
.seek-label { display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; color: var(--steel); margin-bottom: 0.4rem; }
.seek-row { display: flex; gap: 0; }
.seek-field { flex: 1; min-width: 0; font: inherit; color: var(--white); background: var(--night); border: 1px solid var(--frame); border-right: 0; padding: 0.6rem 0.9rem; border-radius: 0; }
.seek-field::placeholder { color: var(--muted); }
.seek-btn { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.92rem; background: var(--lime); color: var(--ink); border: 1px solid var(--lime); padding: 0.6rem 1.2rem; cursor: pointer; border-radius: 0; }
.seek-btn:hover { background: var(--white); border-color: var(--white); }

/* 404 */
.lost { background: var(--panel); border: 1px solid var(--frame); padding: 2.4rem 2.4rem 2.6rem; }
.lost-code { font-family: var(--head); font-size: clamp(4rem, 12vw, 7.5rem); line-height: 1; color: var(--lime); margin: 0 0 0.4rem; letter-spacing: 0.04em; }
.lost-title { font-size: 1.8rem; text-transform: uppercase; color: var(--white); }
.lost-text { color: var(--steel); max-width: 36em; }

/* Комментарии */
.talk { margin-top: 2rem; background: var(--panel); border: 1px solid var(--frame); padding: 1.8rem 2rem; color: var(--paper); }
.talk-title, .comment-reply-title { font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--white); }
.talk-list, .talk-list .children { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.talk-list .children { margin: 1rem 0 0 1.6rem; }
.note { margin-bottom: 1rem; }
.note-body { border-left: 3px solid var(--frame); padding: 0.4rem 0 0.4rem 1rem; }
.note-head { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; align-items: baseline; margin-bottom: 0.4rem; }
.note-author { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.04em; color: var(--white); }
.note-head time { color: var(--muted); font-size: 0.8rem; }
.note-wait { color: var(--lime); font-size: 0.85rem; }
.note-text p { margin-bottom: 0.6em; }
.note-reply a { font-family: var(--head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--lime); text-decoration: none; }
.talk-closed, .form-note { color: var(--steel); font-size: 0.88rem; }
.comment-form p { margin-bottom: 0.9rem; }
.comment-form label { display: block; font-size: 0.85rem; color: var(--steel); margin-bottom: 0.25rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    font: inherit;
    color: var(--white);
    background: var(--night);
    border: 1px solid var(--frame);
    padding: 0.6rem 0.8rem;
    border-radius: 0;
}
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; }
.comment-form .submit { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.06em; background: var(--lime); color: var(--ink); border: 1px solid var(--lime); padding: 0.6rem 1.4rem; cursor: pointer; border-radius: 2px; }
.comment-form .submit:hover { background: var(--white); border-color: var(--white); }
.comment-reply-title small a { color: var(--lime); font-size: 0.8rem; margin-left: 0.6rem; }

/* ---------- Подвал ---------- */
.basement { background: var(--night); color: #C9CDD0; padding: 2.6rem 0 1.4rem; margin-top: 0; }
.basement-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.basement-col { min-width: 0; }
.basement .widget { margin-bottom: 1rem; }
.basement .widget-title { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--white); margin-bottom: 0.6rem; }
.basement p, .basement .textwidget { color: #C9CDD0; font-size: 0.88rem; line-height: 1.5; }
.basement a { color: var(--paper); text-decoration: none; border-bottom: 1px solid transparent; }
.basement a:hover { color: var(--lime); border-bottom-color: var(--lime); }
.basement ul { list-style: none; margin: 0; padding: 0; }
.basement li { font-size: 0.88rem; padding: 0.12rem 0; }
.basement .post-date { color: var(--muted); }
.basement-copy { border-top: 1px solid var(--frame); margin: 1.4rem 0 0; padding-top: 1.1rem; text-align: center; color: var(--muted); font-size: 0.8rem; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 120;
    margin-left: auto;
    max-width: 560px;
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--night);
    border: 1px solid var(--lime);
    padding: 1rem 1.2rem;
    box-shadow: 5px 5px 0 rgba(183, 226, 28, 0.25);
}
.cookie-text { margin: 0; font-size: 0.85rem; line-height: 1.45; color: var(--paper); }
.cookie-accept { flex: 0 0 auto; font-family: var(--head); text-transform: uppercase; letter-spacing: 0.06em; background: var(--lime); color: var(--ink); border: 1px solid var(--lime); padding: 0.5rem 1.1rem; cursor: pointer; border-radius: 2px; }
.cookie-accept:hover { background: var(--white); border-color: var(--white); }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    :root { --gut: 0rem; }
    .latest-grid { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
    .latest-title { flex-direction: row; gap: 0 0.6rem; }
    .kit { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .kit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1.4rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.4rem; }
    .layout-single .content-area { width: 100%; }
    .fs-materials::after { left: 0; }
}

@media (max-width: 760px) {
    .anat-lines, .anat-dot, .anat-label { display: none; }
    .anat-figure { aspect-ratio: auto; }
    .anat-photo { position: static; width: 100%; height: auto; }
    .anat-legend { display: block; margin: 1rem 0 0; padding-left: 1.4rem; color: var(--steel); font-size: 0.9rem; }
    .anat-legend li { margin-bottom: 0.4rem; }
    .anat-legend li::marker { color: var(--lime); font-family: var(--head); }
    .anat-legend b { color: var(--white); font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
    .anat-note { max-width: none; margin-top: 1.2rem; }
    .latest-cards { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .care-line { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 0; }
    .care-step::after, .care-step::before { display: none; }
    .basement-cols { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
}

@media (max-width: 600px) {
    :root { --shell-w: 92%; }
    .masthead-inner { gap: 1rem; padding-bottom: 1.2rem; }
    .topnav { justify-content: flex-end; }
    .topnav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        background: transparent;
        color: var(--white);
        border: 1px solid var(--frame);
        padding: 0.45rem 0.8rem;
        font-family: var(--head);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-size: 0.85rem;
        cursor: pointer;
    }
    .topnav-bars, .topnav-bars::before, .topnav-bars::after { display: block; width: 18px; height: 2px; background: var(--lime); position: relative; }
    .topnav-bars::before, .topnav-bars::after { content: ""; position: absolute; left: 0; }
    .topnav-bars::before { top: -6px; }
    .topnav-bars::after { top: 6px; }
    .topnav-list { display: none; position: absolute; top: calc(100% + 0.5rem); right: 0; left: 0; z-index: 60; flex-direction: column; gap: 0; background: var(--night); border: 1px solid var(--frame); padding: 0.4rem 1rem; }
    .topnav-list.is-open { display: flex; }
    .topnav-list li { border-bottom: 1px dashed var(--frame); }
    .topnav-list li:last-child { border-bottom: 0; }
    .topnav-list a { display: block; padding: 0.7rem 0; border: 0; }
    .brand { gap: 1rem; align-items: flex-start; }
    .brand-mark, .brand-logo { width: 58px; height: 58px; }
    .brand-desc { font-size: 0.9rem; }
    .fs { padding: 2rem 0 2.4rem; }
    .kit-list { grid-template-columns: minmax(0, 1fr); }
    .care-line { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .sheet { padding: 1.5rem 1.2rem 1.4rem; }
    .talk { padding: 1.4rem 1.2rem; }
    .lost { padding: 1.8rem 1.3rem; }
    .empty-box { padding: 1.3rem 1.2rem; }
    .neighbors { grid-template-columns: minmax(0, 1fr); }
    .neighbors-next { grid-column: 1; }
    .cookie-banner { flex-direction: column; align-items: flex-start; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; padding: 1rem 1rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
