/*
Theme Name: dds_benfranklincolorprintingandcopies.com
Theme URI: https://benfranklincolorprintingandcopies.com/
Author: Егорова Нелли Константиновна
Description: Тема информационного справочника о полиграфии: подготовка макетов, выбор бумаги и способы печати. Оформление в духе технического справочника печатника — миллиметровка, линейки, выкраски и штампы.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pchspr
*/

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

/* ---------- Переменные ---------- */
:root {
    --paper: #EFE7D6;
    --grid: #C9BBA1;
    --sage: #DCE3D6;
    --ivory: #E8DCC8;
    --graphite: #2B3438;
    --ink: #23211E;
    --faded: #7A6F5C;
    --magenta: #C2185B;
    --magenta-dark: #9A1248;
    --blue: #1F3A93;
    --yellow: #F2B705;
    --tape: rgba(224, 190, 105, .88);
    --sheet: #F7F2E6;
    --c: #0097D2;
    --m: #B2175B;
    --y: #E9B402;
    --k: #21201C;
    --head: "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --body: "PT Serif", Georgia, "Times New Roman", serif;
    --mono: "IBM Plex Mono", "Courier New", monospace;
    --rule: 3px solid var(--ink);
}

/* ---------- Скрытие через hidden ---------- */
.cookie-banner[hidden] { display: none !important; }
.topnav-toggle[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(201, 187, 161, .7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 187, 161, .7) 1px, transparent 1px),
        linear-gradient(rgba(201, 187, 161, .32) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 187, 161, .32) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--head);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: .01em;
    margin: 1.4em 0 .55em;
    color: var(--ink);
}
h1, h2, h3, h4, h5, h6, p, li, td, th, dd, .card-title, .brand-name {
    overflow-wrap: break-word;
    hyphens: auto;
}
h1, h2, h3, .card-title, .brand-name, .page-title, .entry-title { hyphens: manual; }
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--magenta); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}
table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; border: 2px solid var(--ink); }
th, td { border: 1px solid var(--faded); padding: .55em .8em; text-align: start; vertical-align: top; }
th { font-family: var(--head); font-weight: 500; letter-spacing: .03em; text-transform: uppercase; font-size: .9rem; }
hr { border: 0; border-top: var(--rule); margin: 2em 0; }

.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;
    top: -100px;
    inset-inline-start: 1rem;
    z-index: 100;
    background: var(--ink);
    color: var(--paper);
    padding: .6rem 1rem;
    font-family: var(--head);
}
.skip-link:focus { top: 1rem; color: var(--paper); }

/* ---------- Контейнер ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }
@media (min-width: 960px) {
    .shell { width: min(85%, 1180px); }
}

/* ---------- Кнопки ---------- */
.btn, .search-submit, .form-submit .submit, .cookie-accept {
    display: inline-block;
    font-family: var(--head);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    color: #fff;
    background: var(--magenta);
    border: 3px solid var(--ink);
    border-radius: 0;
    padding: .65em 1.3em;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover, .search-submit:hover, .form-submit .submit:hover, .cookie-accept:hover {
    color: #fff;
    background: var(--magenta-dark);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink);
}
.btn:active, .search-submit:active, .form-submit .submit:active, .cookie-accept:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--ink);
}

/* ---------- Шапка ---------- */
.masthead { background: var(--paper); border-bottom: 4px solid var(--ink); }
.masthead-in {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.4rem 0 1.2rem;
}
.brand { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--head);
    font-weight: 600;
    font-size: clamp(1.25rem, 2.6vw, 2rem);
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--ink);
    text-decoration: none;
}
.brand-name:hover { color: var(--ink); text-decoration: none; }
.brand-desc {
    margin: .4rem 0 0;
    font-size: .88rem;
    line-height: 1.4;
    color: var(--faded);
    max-width: 46rem;
}

.topnav { position: relative; }
.topnav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--head);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: var(--paper);
    color: var(--ink);
    border: 3px solid var(--ink);
    padding: .45rem .9rem;
    cursor: pointer;
}
.topnav-bars, .topnav-bars::before, .topnav-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    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 {
    list-style: none;
    margin: .8rem 0 0;
    padding: 0;
    display: none;
    border-top: 3px solid var(--ink);
}
.topnav.is-open .topnav-list { display: block; }
.topnav-list li { border-bottom: 1px solid var(--faded); }
.topnav-list a {
    display: block;
    padding: .55rem 0;
    font-family: var(--head);
    font-weight: 500;
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink);
    text-decoration: none;
}
.topnav-list a:hover { color: var(--magenta); }
.topnav-list .current-menu-item > a,
.topnav-list .current_page_item > a,
.topnav-list .current-menu-ancestor > a { color: var(--magenta); }

@media (min-width: 960px) {
    .masthead-in { flex-direction: row; align-items: center; justify-content: space-between; gap: 2.5rem; }
    .brand-logo { width: 68px; height: 68px; }
    .topnav { flex: 0 0 auto; width: 300px; }
    .topnav-toggle { display: none; }
    .topnav-list {
        display: flex;
        flex-wrap: wrap;
        margin: 0;
        border-top: 3px solid var(--ink);
        border-bottom: 3px solid var(--ink);
    }
    .topnav-list li { border-bottom: 1px solid var(--faded); flex: 1 1 100%; }
    .topnav-list li:last-child { border-bottom: 0; }
    .topnav-list li:nth-child(n+3) { flex: 1 1 auto; border-bottom: 0; }
    .topnav-list li:nth-child(n+3) + li { border-inline-start: 1px solid var(--faded); }
    .topnav-list li:nth-child(n+3) + li a { padding-inline-start: .8rem; }
    .topnav-list a { padding: .3rem 0; font-size: .98rem; }
}

/* ---------- Секции главной ---------- */
.front { padding: 0 0 3rem; }
.fs {
    position: relative;
    border-top: 4px solid var(--ink);
    padding: 2rem 1.3rem 2.3rem;
}
.fs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .2rem .6rem;
    margin: 0 0 1.6rem;
    padding-bottom: .7rem;
    border-bottom: 2px solid currentColor;
}
.fs-head h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.1;
    flex: 1 1 14rem;
    min-width: 0;
}
.fs-num, .fs-slash {
    font-family: var(--head);
    font-weight: 600;
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
    line-height: 1.1;
}
.fs-num { color: var(--magenta); }
.fs-more {
    font-family: var(--head);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .95rem;
}

/* Блок 1 — разбор макета */
.fs-layers { background: var(--sage); }
.layers-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.layers-fig { position: relative; margin: 0; min-width: 0; }
.layers-fig img { width: 100%; }
.fig-tag {
    position: absolute;
    font-family: var(--mono);
    font-weight: 500;
    font-size: .72rem;
    line-height: 1.2;
    letter-spacing: .02em;
    color: var(--ink);
    background: var(--sheet);
    border: 1.5px solid var(--ink);
    padding: .2em .45em;
    white-space: nowrap;
}
.fig-tag-bleed { top: 22%; right: 0; transform: translateX(10%); }
.fig-tag-reg { top: 52%; right: 0; transform: translateX(12%); background: var(--yellow); }
.fig-tag-trim { top: 67%; right: 0; transform: translateX(10%); }
.fig-tag-safe { top: 87%; left: 25%; }
.layers-side { display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }
.layers-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.layers-list li { padding: 0 0 .9rem; margin: 0 0 .9rem; border-bottom: 2px solid var(--blue); }
.layers-list li:last-child { margin-bottom: 0; }
.layers-list h3 {
    margin: 0 0 .25rem;
    font-size: 1.32rem;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.layers-n { color: var(--blue); }
.layers-list p { margin: 0; font-size: .95rem; line-height: 1.5; color: #3A362F; }
.ruler {
    height: 22px;
    border-bottom: 2px solid var(--ink);
    background-image:
        linear-gradient(90deg, var(--ink) 1.5px, transparent 1.5px),
        linear-gradient(90deg, var(--ink) 1px, transparent 1px);
    background-size: 50px 22px, 10px 9px;
    background-position: 0 100%, 0 100%;
    background-repeat: repeat-x;
}
@media (max-width: 599px) {
    .fig-tag { font-size: .62rem; }
    .fig-tag-safe { left: 18%; }
}
@media (min-width: 960px) {
    .layers-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
}

/* Блок 2 — образцы бумаги */
.fs-papers { background: var(--ivory); }
.swatches {
    list-style: none;
    margin: 0 0 2rem;
    padding: 1rem 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.2rem;
}
.swatch {
    position: relative;
    min-width: 0;
    box-shadow: 0 2px 0 rgba(35, 33, 30, .25), 3px 5px 10px rgba(35, 33, 30, .18);
    transition: transform .15s ease;
}
.swatch:nth-child(odd) { transform: rotate(-1.2deg); }
.swatch:nth-child(even) { transform: rotate(1deg); }
.swatch:hover { transform: rotate(0) translateY(-3px); }
.swatch img { width: 100%; aspect-ratio: 102 / 69; object-fit: cover; }
.swatch-tape {
    position: absolute;
    top: -12px;
    left: 50%;
    width: 46%;
    height: 22px;
    transform: translateX(-50%) rotate(-2deg);
    background: var(--tape);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .12);
    z-index: 2;
}
.swatch:nth-child(4) .swatch-tape { background: rgba(200, 200, 196, .85); }
.swatch-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: .5rem;
    font-family: var(--head);
    color: var(--ink);
    line-height: 1.15;
}
.swatch-name { font-weight: 600; text-transform: uppercase; font-size: clamp(.86rem, 1.5vw, 1.12rem); letter-spacing: .02em; }
.swatch-gsm { font-weight: 500; font-size: clamp(.86rem, 1.4vw, 1.08rem); }
@media (min-width: 600px) {
    .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; }
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.props {
    min-width: 780px;
    margin: 0;
    border: 0;
    border-top: 3px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    font-size: .92rem;
}
.props th, .props td { border: 0; border-bottom: 1px solid rgba(122, 111, 92, .55); padding: .55rem .6rem; }
.props thead th { border-bottom: 2px solid var(--ink); font-size: .95rem; }
.props tbody th { font-family: var(--head); font-weight: 500; text-transform: none; font-size: .95rem; letter-spacing: .02em; color: var(--faded); white-space: nowrap; }
.props td, .props thead th:not(:first-child) { text-align: center; }

/* Блок 3 — последние записи */
.fs-latest { background: transparent; }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem 1.6rem; padding-top: .9rem; }
@media (min-width: 600px) {
    .cards-2, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--sheet);
    border: 3px solid var(--ink);
    padding: .75rem;
    transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.card-tape {
    position: absolute;
    top: -14px;
    left: 50%;
    width: 34%;
    height: 26px;
    transform: translateX(-50%) rotate(-1.5deg);
    background: var(--tape);
    z-index: 2;
}
.card:nth-child(3n+2) .card-tape { transform: translateX(-50%) rotate(1.8deg); }
.card-thumb { border: 2px solid var(--ink); overflow: hidden; background: var(--ivory); }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 17 / 9; object-fit: cover; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: .9rem .2rem .2rem; min-width: 0; }
.card-title {
    margin: 0 0 .5rem;
    font-size: 1.32rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--magenta); }
.card-excerpt { font-size: .92rem; line-height: 1.5; color: #3A362F; margin-bottom: .9rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
}
.card-date { font-family: var(--head); font-weight: 500; font-size: 1rem; color: var(--faded); letter-spacing: .03em; }
.card-more {
    font-family: var(--head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .95rem;
    color: var(--magenta);
    text-decoration: none;
    border: 3px solid var(--magenta);
    padding: .3em .7em;
    background: var(--sheet);
    transition: background-color .12s ease, color .12s ease;
}
.card-more:hover { color: #fff; background: var(--magenta); text-decoration: none; }
.empty-note { font-style: italic; color: var(--faded); }

/* Блок 4 — способы печати */
.fs-methods { background: var(--graphite); color: var(--paper); border-top-color: var(--ink); }
.fs-methods .fs-head { border-bottom-color: rgba(239, 231, 214, .5); }
.fs-methods .fs-head h2, .fs-methods .fs-slash { color: var(--paper); }
.fs-methods .fs-num { color: var(--yellow); }
.methods { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.method {
    min-width: 0;
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(239, 231, 214, .3);
    text-align: center;
}
.method:last-child { border-bottom: 0; }
.method-icon { display: inline-block; width: 52px; height: 52px; }
.method-icon svg { width: 52px; height: 52px; }
.method-name {
    margin: .6rem 0 .15rem;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #FFFFFF;
}
.method-tag {
    margin: 0 0 .9rem;
    padding-bottom: .8rem;
    border-bottom: 2px solid var(--yellow);
    font-family: var(--mono);
    font-weight: 500;
    font-size: .85rem;
    letter-spacing: .04em;
    color: var(--yellow);
}
.method-text { font-size: .93rem; line-height: 1.55; color: #E6DFD0; text-align: start; }
.method-facts { margin: 1rem 0 0; text-align: start; border-top: 1px dashed rgba(239, 231, 214, .35); }
.method-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed rgba(239, 231, 214, .35); }
.method-facts dt { font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; color: var(--yellow); }
.method-facts dd { margin: 0; font-size: .9rem; color: #FFFFFF; text-align: end; }
@media (min-width: 960px) {
    .methods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .method { border-bottom: 0; padding: .4rem 1.8rem; border-inline-start: 1px solid rgba(239, 231, 214, .35); }
    .method:first-child { border-inline-start: 0; padding-inline-start: 0; }
    .method:last-child { padding-inline-end: 0; }
}

/* Блок 5 — шкала цветового охвата */
.fs-gamut {
    background-color: var(--paper);
    background-image: repeating-linear-gradient(-45deg, rgba(122, 111, 92, .22) 0 3px, transparent 3px 14px);
}
.fs-gamut .fs-head h2 { background: var(--paper); padding-inline-end: .5rem; flex: 0 1 auto; }
.fs-gamut .fs-head .fs-num, .fs-gamut .fs-head .fs-slash { background: var(--paper); }
.gamut-lead {
    max-width: 52rem;
    background: var(--paper);
    border-inline-start: 4px solid var(--blue);
    padding: .7rem 1rem;
    margin: 0 0 1.6rem;
    font-size: .98rem;
}
.gamut {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    background: var(--paper);
    border: 2px solid var(--ink);
    padding: 1.3rem 1.2rem 1.5rem;
}
.gamut-col { min-width: 0; }
.gamut-col h3 { margin: .8rem 0 .25rem; font-size: 1.7rem; letter-spacing: .02em; }
.gamut-col p { margin: 0; font-size: .92rem; line-height: 1.5; color: #3A362F; }
.gamut-strip { display: flex; height: 44px; border: 2px solid var(--ink); }
.gamut-strip span { flex: 1; }
.gamut-cmyk span:nth-child(1) { background: var(--c); }
.gamut-cmyk span:nth-child(2) { background: var(--y); }
.gamut-cmyk span:nth-child(3) { background: var(--m); }
.gamut-cmyk span:nth-child(4) { background: var(--k); }
.gamut-rgb { background: linear-gradient(90deg, #7A1FD8, #2340FF 16%, #00B4F0 30%, #00D45A 46%, #E8F000 62%, #FF9800 78%, #F2231C); }
.gamut-pantone span:nth-child(1) { background: #A8327F; }
.gamut-pantone span:nth-child(2) { background: #E0553A; }
.gamut-pantone span:nth-child(3) { background: #E8902E; }
.gamut-pantone span:nth-child(4) { background: #E5C429; }
.gamut-pantone span:nth-child(5) { background: #6EAC47; }
.gamut-pantone span:nth-child(6) { background: #1C9EBB; }
.gamut-pantone span:nth-child(7) { background: #476EAF; }
.stamp {
    justify-self: end;
    display: inline-block;
    transform: rotate(-8deg);
    border: 4px solid var(--magenta);
    outline: 2px solid var(--magenta);
    outline-offset: 3px;
    padding: .2rem .9rem;
    font-family: var(--head);
    font-weight: 600;
    font-size: 1.9rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--magenta);
    background: rgba(247, 242, 230, .7);
    opacity: .92;
}
@media (min-width: 960px) {
    .gamut { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-bottom: 4.2rem; }
    .stamp { position: absolute; right: 1.2rem; bottom: -1.2rem; font-size: 2.2rem; }
}

@media (max-width: 599px) {
    .fs { padding: 1.6rem 1rem 1.8rem; }
}

/* ---------- Внутренние страницы ---------- */
.inner { padding: 1.4rem 0 3.5rem; }
.crumbs {
    font-family: var(--head);
    font-weight: 500;
    font-size: .92rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--faded);
    margin: 0 0 1.6rem;
    padding: .5rem .9rem;
    background: var(--sheet);
    border: 2px solid var(--ink);
    display: inline-block;
    max-width: 100%;
}
.crumbs a { color: var(--blue); }
.crumbs-sep { color: var(--magenta); margin: 0 .25rem; }

.layout-single > .content-area,
.layout-with-sidebar > .content-area {
    min-width: 0;
    background: var(--sheet);
    border: 3px solid var(--ink);
    padding: 1.5rem 1.2rem 2rem;
}
.layout-with-sidebar { display: block; }
.layout-with-sidebar > .sidebar { margin-top: 2rem; }
@media (min-width: 600px) {
    .layout-single > .content-area,
    .layout-with-sidebar > .content-area { padding: 2rem 2.2rem 2.5rem; }
}
@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;
    }
    .layout-with-sidebar > .sidebar { margin-top: 0; }
}
.page-head { border-bottom: 3px solid var(--ink); margin-bottom: 1.8rem; padding-bottom: .9rem; }
.page-title, .entry-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    text-transform: uppercase;
    letter-spacing: .015em;
}
.page-lead { margin: .6rem 0 0; color: var(--faded); }
.page-lead p:last-child { margin: 0; }

.entry-head { border-bottom: 3px solid var(--ink); padding-bottom: .9rem; margin-bottom: 1.6rem; }
.entry-meta {
    margin-top: .7rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    font-family: var(--head);
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--faded);
}
.entry-cats { display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-cats a {
    color: #fff;
    background: var(--blue);
    padding: 0 .5em;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .85rem;
}
.entry-cats a:hover { background: var(--magenta); color: #fff; }
.entry-cover { margin: 0 0 1.6rem; border: 2px solid var(--ink); }
.entry-cover img { width: 100%; height: auto; }
.entry-content { min-width: 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 {
    font-size: 1.75rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--ink);
    padding-bottom: .3rem;
}
.entry-content h3 { font-size: 1.35rem; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.5rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--magenta); }
.entry-content ol li::marker { color: var(--blue); font-family: var(--head); font-weight: 600; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.1rem 1.4rem;
    background: var(--sage);
    border: 2px solid var(--ink);
    border-inline-start: 8px solid var(--magenta);
    font-style: italic;
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content img { height: auto; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--faded); margin-top: .4rem; }
.entry-content table { font-size: .95rem; }
.entry-content thead th { background: var(--ivory); }
.entry-content code, .entry-content pre { font-family: var(--mono); font-size: .9em; background: var(--ivory); }
.entry-content pre { padding: 1rem; overflow-x: auto; border: 1px solid var(--faded); }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed var(--faded); }
.entry-tags a { font-family: var(--mono); font-size: .85rem; }
.page-links { margin-top: 1.5rem; font-family: var(--head); }

.entry-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 2rem 0 0; }
.entry-nav a {
    display: block;
    border: 2px solid var(--ink);
    background: var(--paper);
    padding: .8rem 1rem;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--head);
    font-weight: 500;
    font-size: 1.05rem;
}
.entry-nav a span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--magenta); }
.entry-nav a:hover { box-shadow: 4px 4px 0 var(--ink); }
.entry-nav-next { text-align: end; }
@media (min-width: 600px) { .entry-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } .entry-nav-next { grid-column: 2; } }

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; }
.sidebar .widget {
    background: var(--ivory);
    border: 3px solid var(--ink);
    padding: 1.1rem 1.2rem 1.2rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}
.sidebar .widget-title {
    margin: 0 0 .8rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--ink);
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--ink);
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .45rem 0; border-bottom: 1px dashed var(--faded); line-height: 1.4; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--blue); }
.sidebar .widget a:hover { color: var(--magenta); }
.sidebar .post-date, .sidebar .widget .rss-date { display: block; font-size: .82rem; color: var(--faded); }
.sidebar .widget p { color: var(--ink); }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.4rem 0 0;
    align-items: center;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 2.6rem;
    padding: .45rem .7rem;
    text-align: center;
    font-family: var(--head);
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    text-decoration: none;
    background: var(--paper);
    border: 2px solid var(--ink);
}
.pager a.page-numbers:hover { background: var(--yellow); color: var(--ink); }
.pager .page-numbers.current { background: var(--magenta); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.pager .page-numbers.dots { border: 0; background: none; min-width: 0; padding-inline: .2rem; }

/* ---------- Поиск ---------- */
.search-form { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.4rem; }
.search-field {
    flex: 1 1 14rem;
    min-width: 0;
    font: inherit;
    font-size: 1rem;
    padding: .65rem .8rem;
    background: #FFFDF8;
    color: var(--ink);
    border: 3px solid var(--ink);
    border-radius: 0;
}
.search-submit { box-shadow: none; }
.search-submit:hover { box-shadow: none; transform: none; }
.empty-box { padding: 1rem 0; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 1rem 0; }
.lost-code {
    font-family: var(--head);
    font-weight: 600;
    font-size: clamp(5rem, 18vw, 9rem);
    line-height: 1;
    margin: 0 0 .5rem;
    color: var(--sage);
    -webkit-text-stroke: 3px var(--ink);
}
.lost .page-title { margin-bottom: 1rem; }
.lost .search-form { max-width: 34rem; margin-inline: auto; }

/* ---------- Комментарии ---------- */
.comments { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 3px solid var(--ink); }
.comments-title, .comment-reply-title { font-size: 1.5rem; text-transform: uppercase; margin: 0 0 1rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-inline-start: 1.4rem; border-inline-start: 2px solid var(--faded); }
.note-body { background: var(--paper); border: 2px solid var(--ink); padding: .9rem 1.1rem; margin-bottom: 1rem; }
.note-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; }
.note-author { font-family: var(--head); font-weight: 600; text-transform: uppercase; }
.note-date { color: var(--faded); font-size: .85rem; }
.note-wait { color: var(--magenta); font-style: italic; }
.note-text p:last-child { margin-bottom: 0; }
.note-reply a { font-family: var(--head); text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; }
.comment-respond { margin-top: 1.6rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-family: var(--head); font-weight: 500; letter-spacing: .03em; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    font: inherit;
    padding: .6rem .8rem;
    background: #FFFDF8;
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 0;
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-family: var(--body); font-weight: 400; font-size: .9rem; }
.req { color: var(--magenta); }
.comment-notes, .logged-in-as { font-size: .9rem; color: var(--faded); }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }

/* ---------- Подвал ---------- */
.colophon { background: var(--graphite); color: #E6DFD0; border-top: 6px solid var(--ink); padding: 2.6rem 0 1.4rem; }
.colophon-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 600px) { .colophon-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .colophon-cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.colophon-col { min-width: 0; }
.colophon .widget { color: #E6DFD0; }
.colophon .widget-title {
    margin: 0 0 .8rem;
    font-size: 1.45rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #FFFFFF;
}
.colophon .widget p { color: #D8D0BF; font-size: .93rem; line-height: 1.55; }
.colophon .widget ul { list-style: none; margin: 0; padding: 0; }
.colophon .widget li { margin: 0 0 .35rem; }
.colophon .widget a {
    font-family: var(--head);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #FFFFFF;
    text-decoration: none;
}
.colophon .widget a:hover { color: var(--yellow); text-decoration: underline; }
.colophon .widget .post-date { color: #B9B09E; }
.colophon-copy {
    margin: 2.2rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(239, 231, 214, .3);
    font-family: var(--head);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .88rem;
    color: #E6DFD0;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem 1.4rem;
    max-width: 56rem;
    margin-inline: auto;
    padding: 1rem 1.3rem;
    background: var(--sheet);
    color: var(--ink);
    border: 3px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
}
.cookie-text { margin: 0; flex: 1 1 18rem; font-size: .92rem; line-height: 1.45; }
.cookie-accept { box-shadow: none; padding: .5em 1.4em; }
.cookie-accept:hover { box-shadow: none; transform: none; }
