/*
Theme Name: dds_cocgiayviet.com
Theme URI: https://cocgiayviet.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: posatlas
*/

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

/* ---------- Переменные ---------- */
:root {
    --paper: #EDE7D8;
    --grid: #D8CFB8;
    --plate: #F3EEE2;
    --side: #E3DAC6;
    --pine: #23343B;
    --mustard: #F3B21E;
    --terra: #C9603C;
    --ink: #22302F;
    --muted: #7A7466;
    --cream: #F2EBDC;
    --cream-muted: #A9B4B3;
    --accent: #D94F2B;
    --line: #23343B;
    --line-soft: #B9AF97;
    --font-head: "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
    --font-body: "PT Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --rail: 34px;
}

/* ---------- Скрытые элементы (до основных блоков) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(35, 52, 59, .045) calc(50% - 1px), rgba(255, 255, 255, .35) 50%, transparent calc(50% + 2px)),
        linear-gradient(0deg, transparent calc(38% - 1px), rgba(35, 52, 59, .035) calc(38% - 1px), rgba(255, 255, 255, .3) 38%, transparent calc(38% + 2px)),
        linear-gradient(rgba(216, 207, 184, .9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216, 207, 184, .9) 1px, transparent 1px),
        linear-gradient(rgba(216, 207, 184, .45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216, 207, 184, .45) 1px, transparent 1px);
    background-size: 100% 100%, 100% 1400px, 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-attachment: scroll;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.15;
    margin: 1.4em 0 .55em;
    color: inherit;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p, li, dd, td, th, h1, h2, h3, h4, .card-title, .swatch__name {
    overflow-wrap: break-word;
    hyphens: auto;
}
h1, h2, h3, h4, .card-title, .swatch__name, .brand__name { hyphens: manual; }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px dashed var(--accent);
    outline-offset: 3px;
}

.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: 12px; top: -60px;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--pine);
    color: var(--cream);
    font-family: var(--font-head);
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Единственный контейнер ширины */
.shell {
    width: min(85%, 1240px);
    margin-inline: auto;
}

/* ---------- Шапка ---------- */
.masthead {
    position: relative;
    border-bottom: 1px solid var(--line-soft);
}
.masthead__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem 0 1.5rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark { flex: 0 0 auto; color: var(--ink); }
.brand-logo { width: 56px; height: auto; display: block; }
img.brand-logo { max-height: 72px; width: auto; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.15;
    max-width: 22em;
}
.brand__desc {
    margin-top: .35rem;
    font-size: .85rem;
    line-height: 1.35;
    color: var(--muted);
    max-width: 38em;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .55rem .9rem;
    border: 1px solid var(--line);
    border-bottom-width: 3px;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: .95rem;
    cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.site-nav__list li { position: relative; }
.site-nav__list li + li { border-left: 1px solid var(--line); }
.site-nav__list a {
    display: block;
    padding: .35rem 1rem;
    font-family: var(--font-head);
    font-size: .98rem;
    color: var(--ink);
    text-decoration: none;
    position: relative;
}
.site-nav__list li:last-child a { padding-right: 0; }
.site-nav__list a::after {
    content: "";
    position: absolute;
    left: 1rem; right: 1rem; bottom: -.15rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.site-nav__list li:last-child a::after { right: 0; }
.site-nav__list a:hover { color: var(--accent); }
.site-nav__list a:hover::after,
.site-nav__list .current-menu-item > a::after,
.site-nav__list .current_page_item > a::after { transform: scaleX(1); }
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a { color: var(--accent); }

/* ---------- Главная: полосы-секции ---------- */
.band { position: relative; }
.band__in {
    position: relative;
    padding: 3.2rem 0 3.4rem;
}
/* вертикальная направляющая схемы */
.band__in::before {
    content: "";
    position: absolute;
    left: calc(var(--rail) * -1);
    top: 0; bottom: 0;
    border-left: 1px solid var(--line);
    opacity: .7;
}
.band--pine .band__in::before { border-color: var(--cream-muted); }
.band--terra .band__in::before { bottom: auto; height: calc(3.2rem + 1.9rem); }

.band--pine {
    background-color: var(--pine);
    background-image:
        linear-gradient(rgba(242, 235, 220, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242, 235, 220, .035) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--cream);
}
.band--paper { color: var(--ink); }
.band--posts .band__in { padding-top: 1rem; }
.band--mustard {
    background-color: var(--mustard);
    background-image: repeating-linear-gradient(-45deg, rgba(34, 48, 47, .035) 0 1px, transparent 1px 9px);
    color: var(--ink);
}
.band--terra {
    background-color: var(--terra);
    color: var(--ink);
}

/* Заголовок секции: выноска + номер в кружке */
.atlas-title {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin: 0 0 1.6rem;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: clamp(2.1rem, 5.2vw, 3.9rem);
    line-height: 1.02;
    letter-spacing: -.01em;
}
.band--pine .atlas-title, .band--terra .atlas-title { color: var(--cream); }
.atlas-title::before {
    content: "";
    position: absolute;
    left: calc(var(--rail) * -1);
    top: calc(50% - 16px);
    width: 22px;
    height: 16px;
    border-left: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    border-bottom-left-radius: 10px;
    opacity: .75;
}
.atlas-title::after {
    content: "";
    position: absolute;
    left: calc(var(--rail) * -1 + 20px);
    top: calc(50% - 4px);
    width: 7px; height: 7px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: inherit;
}
.atlas-title--arrow::after, .atlas-title--line::after {
    border-radius: 0;
    border-width: 0 1px 1px 0;
    transform: rotate(-45deg);
    background: none;
}
.atlas-title__text { min-width: 0; }
.atlas-num {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.6rem; height: 2.6rem;
    margin-left: 1.1rem;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0;
}
.atlas-num::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    width: .9rem;
    border-top: 1.5px solid currentColor;
}
.atlas-title--arrow, .atlas-title--line { flex-wrap: nowrap; }
.atlas-title--arrow::before, .atlas-title--line::before { opacity: .75; }
.atlas-lead {
    position: relative;
    flex: 1 1 3rem;
    min-width: 2rem;
    align-self: center;
    border-top: 1.5px solid currentColor;
}
.atlas-title--arrow .atlas-lead::after {
    content: "";
    position: absolute;
    right: 0; top: -6px;
    width: 10px; height: 10px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.band__lead {
    max-width: 46em;
    margin: -.6rem 0 1.8rem;
    font-size: .98rem;
    color: var(--cream-muted);
}
.band__more { margin: 1.8rem 0 0; }

/* Блок 1: образцы материалов */
.swatches {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.1rem;
}
.swatch {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem 1.1rem;
    border: 1px solid rgba(242, 235, 220, .7);
    border-radius: 3px;
    transition: background-color .2s ease, transform .2s ease;
}
.swatch:hover { background-color: rgba(242, 235, 220, .06); transform: translateY(-3px); }
.swatch__code {
    position: absolute;
    top: -.75rem;
    right: .8rem;
    padding: .05rem .45rem;
    background: var(--pine);
    border: 1px solid rgba(242, 235, 220, .7);
    font-family: var(--font-head);
    font-size: .72rem;
    letter-spacing: .04em;
    color: var(--mustard);
}
.swatch__name {
    margin: 0 0 .8rem;
    min-height: 2.3em;
    font-weight: 500;
    font-size: 1.18rem;
    line-height: 1.15;
    color: var(--cream);
}
.swatch__icon {
    display: block;
    width: 34px; height: 34px;
    margin: auto 0 1.4rem;
    color: var(--cream);
}
.swatch__icon svg,
.limit__icon svg {
    width: 100%; height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.swatch__line {
    margin: 0;
    font-family: var(--font-head);
    font-size: .86rem;
    line-height: 1.35;
    color: var(--cream);
}
.swatch__line:first-of-type {
    margin-top: .2rem;
    padding-top: .7rem;
    border-top: 1px dashed rgba(242, 235, 220, .45);
}
.swatch__line + .swatch__line { color: var(--cream-muted); margin-top: .2rem; }

/* Блок 2: развёртка стаканчика */
.unfold {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr) minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 1.5rem;
    align-items: stretch;
    padding: 1.6rem 1.8rem;
    background: var(--plate);
    border: 1px solid var(--grid);
    box-shadow: 0 0 0 6px rgba(243, 238, 226, .5);
}
.unfold__side {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 1.5rem;
    min-width: 0;
}
.tag { position: relative; }
.tag__name {
    position: relative;
    display: inline-block;
    margin: 0 0 .3rem;
    font-weight: 500;
    font-size: 1.45rem;
}
.tag__name::after {
    content: "";
    position: absolute;
    top: 55%;
    width: 2.4rem;
    border-top: 1px solid var(--ink);
}
.tag--to-right .tag__name::after { left: calc(100% + .5rem); }
.tag--to-left .tag__name::before {
    content: "";
    position: absolute;
    top: 55%;
    right: calc(100% + .5rem);
    width: 2.4rem;
    border-top: 1px solid var(--ink);
}
.tag--to-left .tag__name::after { display: none; }
.tag__text {
    margin: 0;
    font-size: .88rem;
    line-height: 1.4;
    color: var(--ink);
}
.unfold__fig {
    position: relative;
    margin: 0;
    min-width: 0;
    align-self: center;
}
.unfold__fig img {
    width: 100%;
    height: auto;
    aspect-ratio: 846 / 680;
}
.dim {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 0 .3rem;
    background: var(--plate);
    font-family: var(--font-head);
    font-size: clamp(.68rem, 1vw, .82rem);
    line-height: 1.1;
    color: var(--muted);
    white-space: nowrap;
}
.dim--top { left: 41.5%; top: 6.6%; }
.dim--wrap { left: 81.3%; top: 6.6%; }
.dim--h1 { left: 8.8%; top: 48.5%; transform: translate(-50%, -50%) rotate(-90deg); }
.dim--h2 { left: 14.7%; top: 48.5%; transform: translate(-50%, -50%) rotate(-90deg); }
.dim--bottom { left: 42%; top: 90%; }
.dim--seam { left: 88.5%; top: 93.5%; }
.unfold__cap {
    margin-top: .4rem;
    text-align: center;
    font-size: .78rem;
    color: var(--muted);
}
.unfold__check {
    min-width: 0;
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
}
.unfold__check-title {
    margin: 0 0 1rem;
    font-weight: 500;
    font-size: 1.35rem;
}
.squares {
    list-style: none;
    margin: 0;
    padding: 0;
}
.squares li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: .75rem;
    font-size: .9rem;
    line-height: 1.35;
}
.squares li::before {
    content: "";
    position: absolute;
    left: 0; top: .3em;
    width: .7rem; height: .7rem;
    border: 1.5px solid var(--ink);
    background: linear-gradient(var(--accent), var(--accent)) center / 0 0 no-repeat;
    transition: background-size .2s ease;
}
.squares li:hover::before { background-size: 55% 55%; }

/* ---------- Карточки записей ---------- */
.cards {
    display: grid;
    gap: 1.6rem;
}
.cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: .8rem;
    background: var(--plate);
    border: 1.5px solid var(--line);
    border-radius: 3px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--line); }
.card-thumb {
    display: block;
    border-radius: 2px;
    overflow: hidden;
    background: var(--grid);
}
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 720 / 330;
    object-fit: cover;
    transition: transform .4s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: .9rem .25rem .2rem;
}
.card-pin {
    align-self: flex-start;
    margin-bottom: .4rem;
    padding: 0 .45rem;
    border: 1px solid var(--accent);
    font-family: var(--font-head);
    font-size: .75rem;
    color: var(--accent);
}
.card-title {
    margin: 0 0 .4rem;
    font-weight: 500;
    font-size: 1.32rem;
    line-height: 1.2;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt {
    font-size: .9rem;
    line-height: 1.45;
    color: var(--ink);
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-date {
    display: block;
    margin: .1rem 0 .9rem;
    font-family: var(--font-head);
    font-size: .85rem;
    color: var(--muted);
}
.card-more, .btn-line {
    align-self: flex-start;
    display: inline-block;
    margin-top: auto;
    padding: .42rem .9rem .36rem;
    border: 1px solid var(--line);
    border-bottom-width: 4px;
    background: var(--plate);
    font-family: var(--font-head);
    font-weight: 500;
    font-size: .92rem;
    color: var(--ink);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.card-more:hover, .btn-line:hover {
    background: var(--pine);
    color: var(--cream);
    transform: translateY(2px);
}
.empty-note { font-family: var(--font-head); font-size: 1.15rem; color: var(--muted); }

/* Блок 3: шкала температуры */
.thermo { margin: .4rem 0 2.2rem; }
.thermo__labels {
    display: flex;
    justify-content: space-between;
    padding: 0 1.4rem .4rem;
    font-family: var(--font-head);
    font-size: 1.02rem;
}
.thermo__tube {
    position: relative;
    height: 26px;
    margin: 0 4px;
    border: 2px solid var(--ink);
    border-radius: 13px;
    background: linear-gradient(90deg, #E6EEF0 0%, #F2E9D2 32%, #F1C58C 52%, #E8894F 72%, var(--accent) 100%);
}
.thermo__tube::before, .thermo__tube::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 36px; height: 36px;
    margin-top: -18px;
    border: 2px solid var(--ink);
    border-radius: 50%;
}
.thermo__tube::before { left: -8px; background: #DDE8EC; }
.thermo__tube::after { right: -8px; background: var(--accent); }
.thermo__ticks {
    position: absolute;
    left: 34px; right: 34px;
    top: 6px; bottom: 6px;
    background: repeating-linear-gradient(90deg, rgba(34, 48, 47, .6) 0 1px, transparent 1px 11px);
}
.thermo__marks {
    position: relative;
    height: 1.6rem;
    font-family: var(--font-head);
    font-size: .85rem;
}
.thermo__mark {
    position: absolute;
    top: .35rem;
    transform: translateX(-50%);
    padding-top: .35rem;
    color: var(--ink);
}
.thermo__mark::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -.4rem;
    height: .6rem;
    border-left: 2px solid var(--accent);
}
.thermo__mark--a { left: 33%; }
.thermo__mark--b { left: 66%; }

.limits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.limit {
    min-width: 0;
    padding: .2rem 0 .2rem 1rem;
    border-left: 1.5px solid var(--ink);
}
.limit__icon { display: block; width: 32px; height: 32px; margin-bottom: .6rem; color: var(--ink); }
.limit__title {
    margin: 0 0 .35rem;
    font-weight: 700;
    font-size: 1.12rem;
}
.limit__text { margin: 0; font-size: .92rem; line-height: 1.45; }

/* Блок 4: сравнение форматов */
.formats {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.9fr) minmax(0, .85fr);
    gap: 2rem;
    align-items: start;
}
.formats__fig { position: relative; margin: 0; min-width: 0; }
.formats__fig img { width: 100%; height: auto; aspect-ratio: 740 / 464; }
.bubble {
    position: absolute;
    padding: .05rem .55rem .1rem;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--terra);
    font-family: var(--font-head);
    font-size: clamp(.7rem, 1vw, .85rem);
    line-height: 1.3;
    white-space: nowrap;
    color: var(--ink);
}
.bubble::after {
    content: "";
    position: absolute;
    width: 7px; height: 7px;
    background: var(--terra);
    border-right: 1.5px solid var(--ink);
    border-bottom: 1.5px solid var(--ink);
}
.bubble--box { left: 46%; top: 6%; }
.bubble--box::after { left: 14px; bottom: -5px; transform: rotate(45deg); }
.bubble--cup { left: 82%; top: 20%; }
.bubble--cup::after { left: 12px; bottom: -5px; transform: rotate(45deg); }
.bubble--plate { left: 3%; top: 82%; }
.bubble--plate::after { left: 40%; top: -5px; transform: rotate(-135deg); }

.formats__table { min-width: 0; overflow-x: auto; }
.grid-table {
    width: 100%;
    border-collapse: collapse;
    border: 0;
    border-bottom: 1.5px solid var(--ink);
    font-family: var(--font-head);
}
.grid-table th, .grid-table td {
    padding: .55rem .5rem;
    border: 0;
    border-bottom: 1.5px solid var(--ink);
    text-align: left;
    vertical-align: middle;
    font-size: .95rem;
    color: var(--ink);
}
.grid-table thead th { font-weight: 500; font-size: 1.05rem; }
.grid-table tbody th { font-weight: 500; font-size: 1.05rem; }
.grid-table tbody td { font-size: .88rem; }
.grid-table th, .grid-table td { hyphens: manual; }
.dot {
    display: inline-block;
    width: .62rem; height: .62rem;
    margin-right: .35rem;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    vertical-align: .02em;
}
.dot--yes { background: var(--ink); }
.dot--part { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.formats__legend {
    margin: .8rem 0 0;
    font-family: var(--font-head);
    font-size: .82rem;
}
.formats__legend .dot + .dot, .formats__legend .dot { margin-left: .6rem; }
.formats__legend .dot:first-child { margin-left: 0; }
.formats__note {
    margin: 0;
    font-size: .95rem;
    line-height: 1.5;
}

/* ---------- Внутренние страницы ---------- */
.inner { padding: 1.4rem 0 3.5rem; }
.crumbs {
    margin: 0 0 1.6rem;
    font-family: var(--font-head);
    font-size: .9rem;
    color: var(--muted);
}
.crumbs a { color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line-soft); }
.crumbs a:hover { color: var(--accent); border-color: var(--accent); }
.crumbs__sep { margin: 0 .35rem; color: var(--accent); }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.content-area { min-width: 0; }

.inner-head { margin-bottom: 1.8rem; }
.inner-title {
    position: relative;
    margin: 0 0 .6rem;
    padding-bottom: .6rem;
    font-weight: 500;
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    line-height: 1.05;
    color: var(--ink);
}
.inner-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 4.5rem;
    border-top: 3px solid var(--accent);
}
.inner-lead { color: var(--muted); }

.sheet {
    position: relative;
    padding: 2rem 2.3rem 2.2rem;
    background: var(--plate);
    border: 1px solid var(--line-soft);
    border-radius: 3px;
}
.sheet::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(185, 175, 151, .7);
    pointer-events: none;
}
.sheet > * { position: relative; }
.sheet__head { margin-bottom: 1.4rem; }
.sheet__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    margin: .6rem 0 0;
    font-family: var(--font-head);
    font-size: .92rem;
    color: var(--muted);
}
.sheet__cats a {
    margin-right: .4rem;
    padding: 0 .45rem;
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}
.sheet__cats a:hover { background: var(--pine); color: var(--cream); }
.sheet__cover { margin: 0 0 1.6rem; }
.sheet__cover img { width: 100%; height: auto; border: 1px solid var(--line); }
.sheet__tags { margin: 1.6rem 0 0; font-family: var(--font-head); }
.sheet__tags a { margin-right: .6rem; color: var(--accent); }

.entry { font-size: 1.06rem; }
.entry h2, .entry h3, .entry h4 { color: var(--ink); }
.entry h2 {
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
    font-weight: 500;
}
.entry ul, .entry ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry ul { list-style: none; padding-left: 1.3rem; }
.entry ul > li { position: relative; }
.entry ul > li::before {
    content: "";
    position: absolute;
    left: -1.2rem; top: .55em;
    width: .55rem; height: .55rem;
    border: 1.5px solid var(--ink);
}
.entry li { margin-bottom: .4em; }
.entry blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.5rem;
    background: var(--pine);
    color: var(--cream);
    border-left: 6px solid var(--accent);
    font-family: var(--font-head);
    font-size: 1.2rem;
    line-height: 1.4;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry blockquote a { color: var(--mustard); }
.entry table {
    width: 100%;
    margin: 1.4rem 0;
    border-collapse: collapse;
    border: 1.5px solid var(--line);
    font-size: .95rem;
}
.entry th, .entry td {
    padding: .55rem .7rem;
    border: 1px solid var(--line-soft);
    text-align: left;
}
.entry th { background: var(--pine); color: var(--cream); font-family: var(--font-head); font-weight: 500; }
.entry img { max-width: 100%; height: auto; }
.entry figure { margin: 1.4rem 0; }
.entry figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.entry pre, .entry code {
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: .9em;
    background: var(--side);
}
.entry pre { padding: 1rem; overflow-x: auto; }
.entry hr { border: 0; border-top: 1px dashed var(--line); margin: 2rem 0; }
.page-links { margin-top: 1.4rem; font-family: var(--font-head); }
.page-links a, .page-links > span { margin-left: .4rem; }

.post-navigation { margin: 2rem 0 0; }
.post-navigation .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.post-navigation a {
    display: block;
    height: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    border-bottom-width: 4px;
    background: var(--plate);
    color: var(--ink);
    text-decoration: none;
}
.post-navigation a:hover { background: var(--pine); color: var(--cream); }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-next:only-child { grid-column: 2; }
.post-nav__label { display: block; font-family: var(--font-head); font-size: .85rem; color: var(--accent); }
.post-nav__title { display: block; font-family: var(--font-head); font-size: 1.1rem; }

/* Сайдбар */
.sidebar {
    min-width: 0;
    padding: 1.6rem 1.5rem;
    background: var(--side);
    border: 1px solid var(--line-soft);
    border-top: 4px solid var(--pine);
    color: var(--ink);
}
.sidebar .widget + .widget { margin-top: 2rem; }
.sidebar .widget-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 1rem;
    font-weight: 500;
    font-size: 1.3rem;
    color: var(--ink);
}
.sidebar .widget-title::before {
    content: "";
    width: .75rem; height: .75rem;
    flex: 0 0 auto;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0 2px, transparent 2.5px);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li {
    padding: .55rem 0;
    border-bottom: 1px dashed var(--line-soft);
    color: var(--ink);
}
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--accent); }
.sidebar .post-date { display: block; font-size: .82rem; color: var(--muted); }
.sidebar p { color: var(--ink); }

/* Пагинация */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.4rem 0 0;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    padding: .4rem .8rem .3rem;
    border: 1px solid var(--line);
    border-bottom-width: 4px;
    background: var(--plate);
    font-family: var(--font-head);
    font-size: .98rem;
    color: var(--ink);
    text-decoration: none;
}
.pager a.page-numbers:hover { background: var(--pine); color: var(--cream); }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding-inline: .2rem; }

/* Поиск */
.search-form {
    display: flex;
    gap: .5rem;
    max-width: 520px;
    margin: 1rem 0;
}
.search-form__field {
    flex: 1;
    min-width: 0;
    padding: .6rem .8rem;
    border: 1px solid var(--line);
    background: var(--plate);
    font: inherit;
    color: var(--ink);
}
.search-form__btn, .form-submit .submit, .cookie-banner__btn {
    padding: .55rem 1.1rem .45rem;
    border: 1px solid var(--line);
    border-bottom-width: 4px;
    background: var(--pine);
    font-family: var(--font-head);
    font-weight: 500;
    font-size: .98rem;
    color: var(--cream);
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
}
.search-form__btn:hover, .form-submit .submit:hover { background: var(--accent); transform: translateY(2px); }
.empty-plate {
    padding: 1.6rem 1.8rem;
    background: var(--plate);
    border: 1px solid var(--line-soft);
}

/* 404 */
.sheet--404 { text-align: left; }
.code404 {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(5rem, 16vw, 10rem);
    line-height: .9;
    color: transparent;
    -webkit-text-stroke: 2px var(--line);
}

/* Комментарии */
.notes { margin-top: 2.4rem; }
.notes__title, .comment-reply-title {
    font-weight: 500;
    font-size: 1.7rem;
    margin: 0 0 1rem;
}
.notes__list, .notes__list .children { list-style: none; margin: 0; padding: 0; }
.notes__list .children { margin-left: 1.6rem; padding-left: 1rem; border-left: 1px dashed var(--line-soft); }
.note__body {
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    background: var(--plate);
    border: 1px solid var(--line-soft);
}
.note__head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .5rem; }
.note__avatar { border-radius: 50%; }
.note__author { font-family: var(--font-head); font-weight: 700; }
.note__date { font-size: .85rem; color: var(--muted); }
.note__wait { font-style: italic; color: var(--accent); }
.note__reply a { font-family: var(--font-head); font-size: .9rem; }
.comment-respond {
    margin-top: 1.6rem;
    padding: 1.6rem 1.8rem;
    background: var(--plate);
    border: 1px solid var(--line-soft);
}
.comment-form label { display: block; margin-bottom: .3rem; font-family: var(--font-head); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .6rem .8rem;
    border: 1px solid var(--line);
    background: #FBF8F1;
    font: inherit;
    color: var(--ink);
}
.comment-form-cookies-consent label { display: inline; }
.comment-notes, .logged-in-as { font-size: .9rem; color: var(--muted); }
.req { color: var(--accent); }

/* ---------- Подвал ---------- */
.colophon {
    background: var(--pine);
    color: var(--cream-muted);
    padding: 3rem 0 1.4rem;
}
.colophon__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}
.colophon__col { min-width: 0; }
.colophon .widget-title {
    margin: 0 0 .8rem;
    font-weight: 500;
    font-size: 1.35rem;
    color: var(--cream);
}
.colophon .widget,
.colophon .widget p,
.colophon .textwidget { color: var(--cream-muted); font-size: .95rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: .35rem; color: var(--cream-muted); }
.colophon a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(242, 235, 220, .45); }
.colophon a:hover { color: var(--mustard); text-decoration-color: var(--mustard); }
.colophon__copy {
    margin: 2.4rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(169, 180, 179, .45);
    text-align: center;
    font-family: var(--font-head);
    font-size: .9rem;
    color: var(--cream-muted);
}

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.6rem;
    max-width: 960px;
    margin-inline: auto;
    padding: 1rem 1.4rem;
    background: var(--pine);
    border: 1px solid var(--cream-muted);
    border-left: 6px solid var(--accent);
    color: var(--cream);
    box-shadow: 6px 6px 0 rgba(34, 48, 47, .35);
}
.cookie-banner__text { margin: 0; font-size: .92rem; color: var(--cream); }
.cookie-banner__btn { flex: 0 0 auto; background: var(--accent); border-color: var(--cream); color: #FFFFFF; }
.cookie-banner__btn:hover { background: var(--mustard); color: var(--ink); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .unfold { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
    .unfold__check { grid-column: 1 / -1; padding: 1.2rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .squares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.6rem; }
    .formats { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
    .formats__note { grid-column: 1 / -1; max-width: 46em; }
}

@media (max-width: 960px) {
    .band__in::before, .atlas-title::before, .atlas-title::after { display: none; }
    .nav-toggle { display: inline-flex; }
    .masthead__row { flex-wrap: wrap; }
    .site-nav { display: none; width: 100%; }
    .site-nav.is-open { display: block; }
    .site-nav__list { flex-direction: column; align-items: stretch; border-top: 1px solid var(--line); }
    .site-nav__list li + li { border-left: 0; border-top: 1px dashed var(--line-soft); }
    .site-nav__list a, .site-nav__list li:last-child a { padding: .7rem 0; }
    .site-nav__list a::after { left: 0; right: auto; width: 3rem; }
    .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.6rem; }
    .cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar { display: block; }
    .sidebar { margin-top: 2.4rem; }
    .colophon__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .limits { gap: 1.4rem; }
}

@media (max-width: 760px) {
    .unfold { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 1.2rem 1.2rem; }
    .unfold__fig { grid-column: 1 / -1; order: -1; }
    .tag__name::after, .tag--to-left .tag__name::before { display: none; }
    .limits { grid-template-columns: minmax(0, 1fr); }
    .formats { grid-template-columns: minmax(0, 1fr); }
    .formats__fig { max-width: 440px; }
}

@media (max-width: 600px) {
    .shell { width: 92%; }
    body { font-size: 1rem; }
    .masthead__row { padding: 1.1rem 0; }
    .brand { gap: .7rem; }
    .brand-logo { width: 44px; }
    .brand__desc { display: none; }
    .band__in { padding: 2.4rem 0 2.6rem; }
    .atlas-title { font-size: clamp(1.8rem, 9vw, 2.4rem); gap: .6rem; }
    .atlas-title--arrow, .atlas-title--line { flex-wrap: wrap; }
    .atlas-num { width: 2.2rem; height: 2.2rem; font-size: .9rem; margin-left: .9rem; }
    .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem .9rem; }
    .swatch { padding: .9rem .8rem 1rem; }
    .swatch__name { font-size: 1.05rem; }
    .unfold { grid-template-columns: minmax(0, 1fr); padding: 1.2rem 1.1rem; }
    .squares { grid-template-columns: minmax(0, 1fr); }
    .cards--three, .cards--two { grid-template-columns: minmax(0, 1fr); }
    .thermo__labels { padding: 0 .4rem .4rem; font-size: .9rem; }
    .thermo__tube::before, .thermo__tube::after { width: 28px; height: 28px; margin-top: -14px; }
    .grid-table th, .grid-table td { padding: .45rem .35rem; }
    .grid-table { min-width: 520px; }
    .grid-table tbody td { font-size: .82rem; }
    .sheet { padding: 1.4rem 1.2rem 1.6rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .empty-plate, .comment-respond { padding: 1.2rem 1.1rem; }
    .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
    .post-navigation .nav-next:only-child { grid-column: auto; }
    .colophon__cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem; }
    .search-form { flex-direction: column; }
}
