/*
Theme Name: dds_grass-turf.ru
Theme URI: https://grass-turf.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: vzel
*/

/* ---------- Шрифты ---------- */
@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: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-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: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-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: "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+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+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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Палитра ---------- */
:root {
    --pine: #0E2418;
    --moss: #14301F;
    --needle: #1B3B26;
    --grass: #24492D;
    --fresh: #6FA53F;
    --young: #A7C957;
    --night: #0B1D13;
    --stem: #EDF3E4;
    --faded: #9BB08C;
    --lime: #D9F24A;
    --cork: #C98A3B;
    --dry: #46603F;
    --white: #FFFFFF;
    --ink: #0B1D13;
    --grid-line: rgba(237, 243, 228, 0.045);
    --grid-bold: rgba(237, 243, 228, 0.085);
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
    --f-body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

/* ---------- Скрытие по атрибуту hidden (до основных блоков) ---------- */
.cookie-banner[hidden] { display: none !important; }
[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(--f-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--stem);
    background-color: var(--pine);
    background-image:
        linear-gradient(var(--grid-bold) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-bold) 1px, transparent 1px),
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
}
img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
a { color: var(--young); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
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; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.15;
    margin: 1.4em 0 0.6em;
    color: var(--stem);
    overflow-wrap: break-word;
    hyphens: auto;
}
p, li, dd, td, th, figcaption, .card-title, .brand-desc { overflow-wrap: break-word; hyphens: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--dry); padding: 0.55em 0.75em; text-align: left; vertical-align: top; }

.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(--lime); color: var(--ink); padding: 0.6rem 1rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Кнопка-бирка ---------- */
.tag-btn {
    display: inline-block;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.03em;
    line-height: 1.2;
    color: var(--ink);
    background: var(--lime);
    border: 1px solid var(--ink);
    outline: 1px solid var(--lime);
    border-radius: 0;
    padding: 0.7em 1.5em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.tag-btn:hover, .tag-btn:focus-visible {
    color: var(--ink);
    background: var(--young);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--cork);
}

/* ---------- Шапка ---------- */
.topbar {
    background: var(--night);
    border-bottom: 2px solid var(--young);
    position: relative;
}
.topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
}
.brand {
    display: flex; align-items: center; gap: 0.85rem;
    color: var(--stem); text-decoration: none; min-width: 0;
}
.brand:hover { color: var(--stem); }
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-logo { max-height: 56px; width: auto; display: block; }
.brand-svg { display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--f-head); font-weight: 500; font-size: 1.65rem; line-height: 1.1; color: var(--stem);
}
.brand-desc { font-size: 0.82rem; color: var(--faded); line-height: 1.3; margin-top: 0.2rem; max-width: 34rem; }

.nav-toggle {
    display: none;
    align-items: center; gap: 0.5rem;
    background: transparent; color: var(--stem);
    border: 1px solid var(--dry); padding: 0.5rem 0.8rem;
    font-family: var(--f-head); font-size: 0.95rem; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--lime); position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.mainnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.mainnav-list li { display: flex; align-items: center; }
.mainnav-list li + li::before {
    content: ""; width: 1px; height: 1.1em; background: var(--dry); margin: 0 0.95rem;
}
.mainnav-list a {
    font-family: var(--f-head); font-weight: 400; font-size: 1rem; letter-spacing: 0.02em;
    color: var(--stem); text-decoration: none; padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
}
.mainnav-list a:hover { color: var(--lime); border-bottom-color: var(--lime); }
.mainnav-list .current-menu-item > a, .mainnav-list a[aria-current="page"] { color: var(--young); }

/* ---------- Общие полосы главной ---------- */
.band { padding: 3rem 0 3.4rem; position: relative; }
.band-head {
    display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap;
    margin-bottom: 1.8rem; position: relative;
}
.band-head::after {
    content: ""; flex: 1 1 6rem; height: 1px; background: var(--faded); margin-bottom: 0.55rem; min-width: 3rem;
}
.band-index, .kicker {
    display: block; width: 100%;
    font-family: var(--f-head); font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.32em; text-transform: uppercase; color: var(--lime);
}
.band-title {
    margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.02em;
}
.band-note { color: var(--faded); font-size: 0.88rem; margin: 1.4rem 0 0; }

/* ---------- Обложка ---------- */
.cover {
    background: var(--needle);
    border-bottom: 1px solid var(--dry);
    padding: 2.6rem 0 2.2rem;
    overflow: hidden;
}
.cover-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 2rem;
}
.cover-text { min-width: 0; }
.cover-title {
    margin: 0.3rem 0 1rem;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    font-weight: 500;
    line-height: 1.06;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    color: var(--stem);
    hyphens: manual;
}
.cover-lead { font-size: 1.2rem; max-width: 26rem; color: var(--stem); margin-bottom: 1.5rem; }
.cover-legend {
    list-style: none; margin: 2rem 0 0; padding: 1rem 0 0;
    border-top: 1px dashed var(--dry);
    display: grid; gap: 0.4rem;
    font-size: 0.86rem; color: var(--faded); max-width: 30rem;
}
.cover-legend li { display: flex; gap: 0.6rem; }
.cover-legend span { font-family: var(--f-head); color: var(--lime); flex: 0 0 1.6rem; }
.cover-figure {
    margin: 0;
    position: relative;
    aspect-ratio: 1150 / 792;
    min-width: 0;
    border-right: 1px solid var(--faded);
}
.cover-img {
    position: absolute; top: 0; left: 12%; width: 88%; height: 100%;
    object-fit: contain; display: block;
}
.cover-marks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mark-lines path { fill: none; stroke: var(--young); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.mark-dots circle { fill: var(--lime); stroke: var(--needle); stroke-width: 3; }
.mark-nums text { font-family: var(--f-head); font-size: 34px; fill: var(--young); letter-spacing: 1px; }

/* ---------- Сравнение образцов ---------- */
.band-samples {
    background-color: var(--moss);
    background-image:
        linear-gradient(var(--grid-bold) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-bold) 1px, transparent 1px);
    background-size: 40px 40px;
    border-bottom: 1px solid var(--dry);
}
.samples { display: flex; gap: 1.2rem; }
.mm-ruler {
    flex: 0 0 26px;
    border-right: 1px solid var(--faded);
    background-image:
        repeating-linear-gradient(to bottom, var(--faded) 0 1px, transparent 1px 50px),
        repeating-linear-gradient(to bottom, rgba(155, 176, 140, 0.7) 0 1px, transparent 1px 10px);
    background-size: 100% 100%, 55% 100%;
    background-position: right top, right top;
    background-repeat: no-repeat;
    min-height: 100%;
}
.samples-row {
    flex: 1 1 auto; min-width: 0;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem;
}
.sample { margin: 0; min-width: 0; }
.sample-shot {
    position: relative;
    border: 1px solid var(--dry);
    outline: 1px solid rgba(167, 201, 87, 0.35);
    outline-offset: 3px;
    background: var(--night);
    transition: transform 0.15s ease, outline-color 0.15s ease;
}
.sample:hover .sample-shot { transform: translateY(-3px); outline-color: var(--lime); }
.sample-shot img { display: block; width: 100%; aspect-ratio: 104 / 67; object-fit: cover; }
.sample-no {
    position: absolute; top: 0; left: 0;
    background: var(--night); color: var(--lime);
    font-family: var(--f-head); font-size: 0.78rem; letter-spacing: 0.1em;
    padding: 0.1rem 0.45rem;
}
.sample figcaption { padding-top: 0.7rem; }
.sample-name {
    display: block; font-family: var(--f-head); font-weight: 500; font-size: 0.95rem;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--young); margin-bottom: 0.35rem;
}
.sample-spec { margin: 0; font-size: 0.85rem; line-height: 1.35; }
.sample-spec div { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.15rem 0; border-bottom: 1px dotted var(--dry); }
.sample-spec dt { color: var(--faded); }
.sample-spec dd { margin: 0; color: var(--stem); text-align: right; }

/* ---------- Слои пирога ---------- */
.band-layers {
    background-color: var(--pine);
    background-image:
        linear-gradient(var(--grid-bold) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-bold) 1px, transparent 1px),
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
}
.layers {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: center;
}
.layers-figure { margin: 0; position: relative; min-width: 0; }
.layers-figure img { display: block; width: 100%; aspect-ratio: 1092 / 664; object-fit: contain; }
.layer-pin {
    position: absolute;
    width: 1.55rem; height: 1.55rem; margin: -0.78rem 0 0 -0.78rem;
    border-radius: 50%;
    background: var(--lime); color: var(--ink);
    font-family: var(--f-head); font-weight: 600; font-size: 0.82rem; line-height: 1.55rem; text-align: center;
    box-shadow: 0 0 0 3px var(--pine);
}
.layer-pin::after {
    content: ""; position: absolute; left: 100%; top: 50%; width: 2.4rem; height: 1px; background: var(--young);
}
.layer-pin-under::after { display: none; }
.layers-list {
    list-style: none; margin: 0; padding: 0;
    counter-reset: layer;
    border-left: 1px solid var(--young);
}
.layers-list li {
    counter-increment: layer;
    position: relative;
    padding: 0.55rem 0 0.55rem 3rem;
    font-size: 0.95rem; color: var(--faded);
    border-bottom: 1px solid rgba(70, 96, 63, 0.6);
}
.layers-list li::before {
    content: counter(layer);
    position: absolute; left: 0.9rem; top: 0.6rem;
    font-family: var(--f-head); color: var(--lime); font-size: 1rem;
}
.layers-list li::after {
    content: ""; position: absolute; left: -1px; top: 1.25rem; width: 0.6rem; height: 1px; background: var(--young);
}
.layers-list b { color: var(--young); font-weight: 500; font-family: var(--f-head); letter-spacing: 0.02em; }

/* ---------- Последние записи ---------- */
.band-posts {
    background: var(--grass);
    border-top: 1px solid var(--fresh);
    border-bottom: 1px solid var(--fresh);
}
.cards { display: grid; gap: 1.6rem; }
.cards-front { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-front > .card:nth-child(n+4) { display: none; }
.cards-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-single .cards-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--needle);
    border: 1px solid var(--young);
    border-radius: 2px;
    padding: 0.7rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--night); }
.card-thumb { display: block; overflow: hidden; border: 1px solid var(--dry); }
.card-thumb img { display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 0.8rem 0.25rem 0.3rem; min-width: 0; }
.card-date { font-size: 0.8rem; color: var(--faded); letter-spacing: 0.04em; }
.card-title { margin: 0.25rem 0 0.45rem; font-size: 1.3rem; font-weight: 500; line-height: 1.2; }
.card-title a { color: var(--stem); text-decoration: none; }
.card-title a:hover { color: var(--lime); }
.card-excerpt { font-size: 0.93rem; color: var(--stem); opacity: 0.88; margin-bottom: 0.8rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto; align-self: flex-start;
    font-family: var(--f-head); font-size: 0.95rem; color: var(--young);
    text-decoration: underline; text-decoration-color: var(--young); text-underline-offset: 4px;
}
.card-more:hover { color: var(--lime); text-decoration-color: var(--lime); }
.empty-state { color: var(--faded); font-size: 1.05rem; }

/* ---------- Требования к основанию ---------- */
.band-base {
    background-color: var(--young);
    background-image:
        linear-gradient(rgba(11, 29, 19, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 29, 19, 0.06) 1px, transparent 1px);
    background-size: 12px 12px;
    color: var(--ink);
}
.band-base .band-title { color: var(--ink); }
.band-base .band-index { color: var(--needle); }
.band-base .band-head::after { background: var(--ink); }
.spec-sheet { overflow-x: auto; }
.spec-table { min-width: 560px; color: var(--ink); background: rgba(237, 243, 228, 0.18); }
.spec-table th, .spec-table td { border: 1px solid var(--needle); padding: 0.45rem 0.8rem; font-size: 0.95rem; }
.spec-table thead th {
    font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 0.78rem; background: rgba(11, 29, 19, 0.1); color: var(--ink);
}
.spec-table tbody th { font-weight: 500; color: var(--ink); }
.spec-table td:last-child { color: var(--grass); font-size: 0.88rem; }
.spec-ico { width: 58px; text-align: center; vertical-align: middle; }
.spec-ico svg { width: 38px; height: 19px; display: block; margin: 0 auto; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.spec-table tbody tr:hover { background: rgba(217, 242, 74, 0.45); }

/* ---------- Сезонный уход ---------- */
.band-season { background: var(--moss); border-top: 1px solid var(--dry); }
.season-scroll { overflow-x: auto; padding-bottom: 0.4rem; }
.season { min-width: 640px; }
.season-marks {
    list-style: none; margin: 0 0 0.35rem; padding: 0;
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
}
.season-marks li {
    grid-row: 1;
    text-align: center; font-family: var(--f-head); font-size: 0.88rem; color: var(--stem);
    position: relative; padding-bottom: 0.7rem; white-space: nowrap;
}
.season-marks li::after {
    content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--young);
}
.season-bar {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
    border-top: 1px solid var(--young); border-bottom: 1px solid var(--young);
}
.season-bar li {
    position: relative;
    padding: 1.55rem 0.2rem 0.35rem;
    text-align: center; font-size: 0.82rem; color: var(--stem);
    background: var(--night);
    border-left: 1px solid var(--dry);
}
.season-bar li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.15rem; }
.season-bar li:first-child { border-left: 0; }
.season-bar .m-winter::before { background: var(--young); }
.season-bar .m-spring::before { background: #7A9A5A; }
.season-bar .m-summer::before { background: var(--fresh); }
.season-bar .m-hot::before { background: var(--cork); }
.season-bar .m-autumn::before { background: #5E7C47; }
.season-notes {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem;
    margin-top: 1.5rem;
}
.season-note {
    background: var(--stem); color: var(--ink);
    padding: 1rem 1.2rem;
    border: 1px solid var(--dry);
    box-shadow: 4px 4px 0 var(--night);
    position: relative;
    transform: rotate(-0.6deg);
}
.season-note:nth-child(2) { transform: rotate(0.5deg); }
.season-note::before {
    content: ""; position: absolute; top: -8px; left: 1.4rem;
    border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid var(--stem);
}
.season-note p { margin: 0; font-size: 0.93rem; }
.season-when {
    display: inline-block; font-family: var(--f-head); font-size: 0.78rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--ink); background: var(--lime); padding: 0.05rem 0.5rem; margin-bottom: 0.45rem;
}

/* ---------- Внутренние страницы ---------- */
.inner-page { padding: 1.6rem 0 3.5rem; }
.crumbs {
    font-size: 0.86rem; color: var(--faded);
    padding: 0.55rem 0.9rem; margin-bottom: 1.6rem;
    border: 1px solid var(--dry); background: var(--night);
    display: inline-block; max-width: 100%;
}
.crumbs a { color: var(--young); text-decoration: none; }
.crumbs a:hover { color: var(--lime); text-decoration: underline; }
.crumbs-sep { color: var(--dry); margin: 0 0.25rem; }
.crumbs span:last-child { color: var(--stem); }

.layout-with-sidebar {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem;
}
.layout-with-sidebar .content-area { flex: 0 0 67%; min-width: 0; }
.layout-with-sidebar .sidebar { flex: 0 0 27%; min-width: 0; }
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }

.content-area .entry, .content-area .notes, .lost {
    background: var(--moss);
    border: 1px solid var(--dry);
    padding: 2rem 2.2rem;
}
.page-head { margin-bottom: 1.6rem; }
.page-title {
    margin: 0.2rem 0 0; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 500;
    text-transform: uppercase; line-height: 1.05;
}
.archive-desc { color: var(--faded); margin-top: 0.6rem; }
.page-intro { margin-bottom: 1.6rem; }
.entry-head { margin-bottom: 1.4rem; border-bottom: 1px solid var(--dry); padding-bottom: 1rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 0.8rem; font-size: 0.85rem; color: var(--faded); }
.entry-cat {
    font-family: var(--f-head); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink); background: var(--young); padding: 0.05rem 0.5rem; text-decoration: none;
}
.entry-cat:hover { background: var(--lime); color: var(--ink); }
.entry-cover { margin: 0 0 1.5rem; border: 1px solid var(--young); padding: 0.5rem; }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 1.05rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.7rem; text-transform: uppercase; font-weight: 500; border-bottom: 1px solid var(--dry); padding-bottom: 0.3rem; }
.entry-content h3 { font-size: 1.35rem; color: var(--young); font-weight: 500; }
.entry-content h4 { font-size: 1.15rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.1em; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content ul li::marker { color: var(--lime); }
.entry-content ol li::marker { color: var(--lime); font-family: var(--f-head); }
.entry-content blockquote {
    margin: 1.6em 0; padding: 1.2rem 1.5rem;
    background: var(--needle); border-left: 4px solid var(--lime);
    font-family: var(--f-head); font-size: 1.2rem; font-weight: 400; color: var(--stem);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { margin: 1.4em 0; font-size: 0.95rem; }
.entry-content th { background: var(--needle); font-family: var(--f-head); font-weight: 500; color: var(--young); }
.entry-content td, .entry-content th { border: 1px solid var(--dry); }
.entry-content img { display: block; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-size: 0.85rem; color: var(--faded); margin-top: 0.4rem; }
.entry-content code, .entry-content pre { font-family: Consolas, Menlo, monospace; background: var(--night); color: var(--young); }
.entry-content code { padding: 0.1em 0.35em; }
.entry-content pre { padding: 1rem; overflow-x: auto; }
.entry-content hr { border: 0; border-top: 1px dashed var(--dry); margin: 2em 0; }
.entry-content .alignleft { float: left; margin: 0.3em 1.2em 1em 0; }
.entry-content .alignright { float: right; margin: 0.3em 0 1em 1.2em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-tags { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.entry-tags a { display: inline-block; border: 1px solid var(--young); padding: 0.15rem 0.6rem; font-size: 0.85rem; text-decoration: none; }
.entry-tags a:hover { background: var(--young); color: var(--ink); }

/* ---------- Сайдбар ---------- */
.sidebar {
    background: var(--night);
    border-top: 3px solid var(--young);
    padding: 1.4rem 1.4rem 0.6rem;
    color: var(--stem);
}
.sidebar .widget { margin-bottom: 1.6rem; }
.sidebar .widget-title {
    margin: 0 0 0.8rem; font-size: 0.95rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lime);
    border-bottom: 1px solid var(--dry); padding-bottom: 0.45rem;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.45rem 0; border-bottom: 1px dotted var(--dry); color: var(--faded); }
.sidebar a { color: var(--stem); text-decoration: none; }
.sidebar a:hover { color: var(--lime); text-decoration: underline; }
.sidebar .post-date { display: block; font-size: 0.8rem; color: var(--faded); }
.sidebar p, .sidebar .textwidget { color: var(--faded); }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2.2rem; align-items: center; }
.pager .page-numbers {
    display: inline-block; min-width: 2.4rem; text-align: center;
    padding: 0.45rem 0.7rem; font-family: var(--f-head); font-size: 0.95rem;
    color: var(--stem); background: var(--needle); border: 1px solid var(--dry); text-decoration: none;
}
.pager a.page-numbers:hover { background: var(--young); color: var(--ink); border-color: var(--young); }
.pager .page-numbers.current { background: var(--lime); color: var(--ink); border-color: var(--ink); outline: 1px solid var(--lime); }
.pager .page-numbers.dots { background: none; border: 0; color: var(--faded); min-width: 0; }

/* ---------- Поиск ---------- */
.seek { display: flex; gap: 0.5rem; margin: 1.2rem 0; max-width: 34rem; }
.seek-field {
    flex: 1 1 auto; min-width: 0;
    background: var(--night); color: var(--stem);
    border: 1px solid var(--dry); border-radius: 0; padding: 0.65rem 0.85rem;
    font-family: var(--f-body); font-size: 1rem;
}
.seek-field::placeholder { color: var(--faded); }
.seek-btn { flex: 0 0 auto; }

/* ---------- 404 ---------- */
.lost { text-align: left; }
.lost .page-title { margin-bottom: 1rem; }
.lost-code {
    display: block; font-family: var(--f-head); font-weight: 700; font-size: clamp(5rem, 16vw, 9rem); line-height: 1;
    color: transparent; -webkit-text-stroke: 2px var(--young);
}

/* ---------- Комментарии ---------- */
.notes { margin-top: 2rem; }
.notes-title { margin-top: 0; font-size: 1.4rem; text-transform: uppercase; font-weight: 500; }
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { padding-left: 1.6rem; border-left: 1px solid var(--dry); }
.note-body { padding: 1rem 0; border-bottom: 1px dashed var(--dry); }
.note-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.note-head img { border-radius: 0; border: 1px solid var(--young); display: block; }
.note-author { font-family: var(--f-head); color: var(--young); }
.note-date { font-size: 0.8rem; color: var(--faded); }
.note-wait { font-size: 0.85rem; color: var(--cork); }
.note-reply a { font-size: 0.88rem; font-family: var(--f-head); }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { font-size: 1.3rem; text-transform: uppercase; font-weight: 500; }
.comment-reply-title small { margin-left: 0.6rem; font-size: 0.8rem; }
.comment-form label { display: block; font-size: 0.88rem; color: var(--faded); margin-bottom: 0.25rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; background: var(--night); color: var(--stem);
    border: 1px solid var(--dry); border-radius: 0; padding: 0.6rem 0.75rem;
    font-family: var(--f-body); font-size: 1rem;
}
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; }
.comment-form .submit {
    font-family: var(--f-head); font-size: 1rem; color: var(--ink); background: var(--lime);
    border: 1px solid var(--ink); outline: 1px solid var(--lime); border-radius: 0;
    padding: 0.7em 1.5em; cursor: pointer;
}
.comment-form .submit:hover { background: var(--young); }
.comment-notes, .logged-in-as, .must-log-in { font-size: 0.88rem; color: var(--faded); }

/* ---------- Подвал ---------- */
.basefoot {
    background: var(--night);
    border-top: 2px solid var(--young);
    padding: 2.6rem 0 1.2rem;
    color: var(--stem);
}
.basefoot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem; }
.basefoot-col { min-width: 0; }
.basefoot .widget { margin-bottom: 1rem; }
.basefoot .widget-title { margin: 0 0 0.7rem; font-size: 1.35rem; font-weight: 500; color: var(--stem); }
.basefoot .textwidget, .basefoot p { color: var(--faded); font-size: 0.93rem; }
.basefoot ul { list-style: none; margin: 0; padding: 0; }
.basefoot li { padding: 0.12rem 0; }
.basefoot a { color: var(--stem); text-decoration: none; font-size: 0.95rem; }
.basefoot a:hover { color: var(--lime); text-decoration: underline; }
.basefoot-copy {
    margin: 2rem 0 0; padding-top: 1rem;
    border-top: 1px solid var(--dry);
    text-align: center; font-size: 0.85rem; color: var(--faded);
}

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
    display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
    max-width: 880px; margin-left: auto; margin-right: auto;
    background: var(--night); color: var(--stem);
    border: 1px solid var(--young);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
    padding: 1rem 1.3rem;
}
.cookie-text { margin: 0; font-size: 0.9rem; color: var(--stem); }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .cover-grid { grid-template-columns: minmax(0, 1fr); }
    .cover-figure { max-width: 640px; justify-self: center; width: 100%; }
    .samples-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .layers { grid-template-columns: minmax(0, 1fr); }
    .layers-figure { max-width: 620px; justify-self: center; width: 100%; }
    .cards-front { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards-front > .card:nth-child(n+3) { display: flex; }
    .cards-front > .card:nth-child(n+4) { display: none; }
    .layout-single .cards-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar { flex-direction: column; }
    .layout-with-sidebar .content-area, .layout-with-sidebar .sidebar { flex: none; width: 100%; }
    .layout-single .content-area { width: 100%; }
    .season-notes { grid-template-columns: minmax(0, 1fr); }
    .season-note, .season-note:nth-child(2) { transform: none; }
    .basefoot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-toggle { display: inline-flex; }
    .topbar-row { flex-wrap: wrap; }
    .mainnav { display: none; width: 100%; }
    .mainnav.is-open { display: block; }
    .mainnav-list { flex-direction: column; align-items: stretch; border-top: 1px solid var(--dry); }
    .mainnav-list li + li::before { display: none; }
    .mainnav-list a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--dry); width: 100%; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .shell-front { width: 92%; }
    .band { padding: 2.2rem 0 2.6rem; }
    .brand-name { font-size: 1.3rem; }
    .brand-desc { font-size: 0.75rem; }
    .samples { gap: 0.6rem; }
    .mm-ruler { flex-basis: 14px; }
    .samples-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
    .cover-figure { border-right: 0; }
    .mark-nums text { font-size: 44px; }
    .cards-front, .cards-list, .layout-single .cards-list { grid-template-columns: minmax(0, 1fr); }
    .cards-front > .card:nth-child(n+4) { display: none; }
    .content-area .entry, .content-area .notes, .lost { padding: 1.3rem 1.2rem; }
    .basefoot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; }
    .season-note { padding: 0.9rem 1rem; }
    .layer-pin::after { display: none; }
    .layer-pin { width: 1.3rem; height: 1.3rem; margin: -0.65rem 0 0 -0.65rem; line-height: 1.3rem; font-size: 0.72rem; }
    .seek { flex-direction: column; }
    .spec-table { min-width: 0; }
    .spec-table thead { display: none; }
    .spec-table tbody, .spec-table tr { display: block; }
    .spec-table tr {
        display: grid; grid-template-columns: 52px minmax(0, 1fr);
        border: 1px solid var(--needle); margin-bottom: -1px;
    }
    .spec-table tbody th, .spec-table td { border: 0; display: block; padding: 0.3rem 0.7rem; }
    .spec-table td.spec-ico { grid-row: 1 / span 3; border-right: 1px solid var(--needle); padding: 0.6rem 0.3rem; display: flex; align-items: center; }
    .spec-table tbody th { padding-top: 0.55rem; }
    .spec-table td:last-child { padding-bottom: 0.55rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
