/*
Theme Name: dds_ventanadeco.ru
Theme URI: https://ventanadeco.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: vntd
*/

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

/* ---------- Переменные ---------- */
:root {
    --vt-table: #1C1B22;
    --vt-linen: #C9BDA8;
    --vt-plum: #3E1F2E;
    --vt-pearl: #D6D2CB;
    --vt-olive: #6B6A4A;
    --vt-terra: #A6512F;
    --vt-ink: #23212A;
    --vt-milk: #F2EEE6;
    --vt-mute-light: #8C8678;
    --vt-mute-dark: #B9AFA0;
    --vt-teal: #3FE0C5;
    --vt-copper: #B87A4B;
    --vt-tag: #E3D3B4;
    --vt-tag-edge: #CDB993;
    --vt-paper: #EEEBE5;
    --vt-ink-soft: #4A4651;
    --vt-thread: #8F897F;
    --vt-head: "Oswald", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --vt-text: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    --vt-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    --vt-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cline x1='5' y1='36' x2='27' y2='12' stroke='%239C978E' stroke-width='1.8' stroke-linecap='round'/%3E%3Cline x1='5' y1='36' x2='12' y2='28' stroke='%235E5A55' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='29' cy='10' r='6.5' fill='%233FE0C5'/%3E%3Ccircle cx='31' cy='8' r='2' fill='%23D9FFF8' opacity='.8'/%3E%3Ccircle cx='29' cy='10' r='6.5' fill='none' stroke='%231E9C88' stroke-width='1'/%3E%3C/svg%3E");
    --vt-pin-copper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cline x1='5' y1='36' x2='27' y2='12' stroke='%239C978E' stroke-width='1.8' stroke-linecap='round'/%3E%3Cline x1='5' y1='36' x2='12' y2='28' stroke='%235E5A55' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='29' cy='10' r='6.5' fill='%23B87A4B'/%3E%3Ccircle cx='31' cy='8' r='2' fill='%23F2D3B4' opacity='.8'/%3E%3Ccircle cx='29' cy='10' r='6.5' fill='none' stroke='%237E4F2D' stroke-width='1'/%3E%3C/svg%3E");
    --vt-gap: clamp(1.4rem, 2.6vw, 2.4rem);
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--vt-table);
    background-image: url("images/grain-graphite.jpg");
    background-blend-mode: overlay;
    color: var(--vt-milk);
    font-family: var(--vt-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-wrap: break-word;
    hyphens: auto;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--vt-head); font-weight: 500; line-height: 1.15; margin: 0 0 .6em; overflow-wrap: break-word; hyphens: manual; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--vt-teal); 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: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--vt-teal); color: var(--vt-ink); font-family: var(--vt-head); text-decoration: none; }
.skip-link:focus { top: 1rem; }

.shell { width: min(94%, 1240px); margin-inline: auto; }
@media (min-width: 960px) { .shell { width: min(85%, 1240px); } }

/* ---------- Шапка ---------- */
.topbar { padding: 1.8rem 0 1.4rem; }
.topbar-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: flex-start; gap: 1rem; min-width: 0; }
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-spool { display: block; width: 58px; height: 58px; }
.brand-logo { display: block; max-width: 72px; max-height: 72px; width: auto; height: auto; }
.brand-text { min-width: 0; }
.brand-name { margin: 0; hyphens: manual; font-family: var(--vt-head); font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 500; line-height: 1.08; max-width: 17ch; }
.brand-name a { color: var(--vt-milk); text-decoration: none; }
.brand-name a:hover { color: var(--vt-teal); }
.brand-desc { margin: .55rem 0 0; max-width: 52ch; color: var(--vt-mute-dark); font-size: .88rem; line-height: 1.45; }

.topnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.topnav-list a {
    display: inline-block;
    padding: .25rem 0;
    color: var(--vt-milk);
    font-family: var(--vt-head);
    font-size: .9rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .2s, border-color .2s;
}
.topnav-list a:hover { color: var(--vt-teal); border-bottom-color: var(--vt-copper); }
.topnav-list .current-menu-item > a, .topnav-list .current_page_item > a { color: var(--vt-teal); }

.menu-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .55rem .9rem;
    background: var(--vt-tag);
    color: var(--vt-ink);
    border: 2px solid var(--vt-teal);
    font-family: var(--vt-head);
    text-transform: uppercase;
    letter-spacing: .05em;
    cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--vt-ink); position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }

@media (max-width: 959px) {
    .topbar-inner { flex-wrap: wrap; }
    .brand { flex: 1 1 calc(100% - 9rem); }
    .menu-toggle { display: inline-flex; flex: 0 0 auto; }
    .topnav { display: none; flex: 1 1 100%; }
    .topnav.is-open { display: block; }
    .topnav-list { flex-direction: column; gap: 0; border-top: 1px solid #34323C; }
    .topnav-list a { display: block; padding: .75rem 0; border-bottom: 1px solid #34323C; }
}
@media (max-width: 600px) {
    .brand-spool { width: 46px; height: 46px; }
    .brand { flex-basis: 100%; }
    .brand-desc { font-size: .82rem; }
}

/* ---------- Лоскуты ---------- */
.patch-wrap { position: relative; min-width: 0; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .45)) drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.patch {
    position: relative;
    padding: clamp(1.7rem, 3vw, 2.7rem) clamp(1.3rem, 3vw, 2.7rem);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='9' viewBox='0 0 160 9'%3E%3Cpath  d='M0 9 L0 3.6 L4 1.5 L8 2.1 L10 6.1 L11 4.3 L16 5.4 L17 8.0 L24 2.1 L25 3.3 L26 6.8 L30 5.1 L37 1.7 L41 5.4 L48 2.3 L49 2.3 L62 3.5 L67 2.0 L76 1.6 L78 6.3 L82 3.0 L84 8.0 L102 1.9 L108 4.1 L113 6.5 L115 4.4 L116 5.5 L119 2.9 L120 6.2 L122 3.9 L131 3.7 L132 1.6 L136 4.4 L138 8.0 L144 2.4 L151 6.4 L152 1.6 L153 4.8 L156 4.9 L159 6.3 L160 3.6 L160 9 Z'/%3E%3C/svg%3E") top left / 160px 9px repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='9' viewBox='0 0 160 9'%3E%3Cpath  d='M0 0 L0 5.4 L4 7.5 L8 6.9 L10 2.9 L11 4.7 L16 3.6 L17 1.0 L24 6.9 L25 5.7 L26 2.2 L30 3.9 L37 7.3 L41 3.6 L48 6.7 L49 6.7 L62 5.5 L67 7.0 L76 7.4 L78 2.7 L82 6.0 L84 1.0 L102 7.1 L108 4.9 L113 2.5 L115 4.6 L116 3.5 L119 6.1 L120 2.8 L122 5.1 L131 5.3 L132 7.4 L136 4.6 L138 1.0 L144 6.6 L151 2.6 L152 7.4 L153 4.2 L156 4.1 L159 2.7 L160 5.4 L160 0 Z'/%3E%3C/svg%3E") bottom left / 160px 9px repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='160' viewBox='0 0 9 160'%3E%3Cpath  d='M9 0 L5.3 0 L7.7 1 L5.4 3 L8.3 5 L7.7 15 L5.4 16 L5.1 18 L2.1 20 L5.8 23 L6.2 24 L4.8 37 L5.8 38 L5.3 42 L6.0 52 L2.1 54 L2.8 55 L7.0 57 L3.3 58 L8.1 59 L7.6 69 L4.2 71 L3.7 85 L3.3 87 L3.8 90 L4.1 95 L5.5 96 L6.9 98 L2.8 104 L4.2 109 L7.5 113 L1.7 118 L1.7 122 L6.2 124 L1.8 132 L2.9 136 L5.8 139 L6.8 141 L3.0 143 L2.0 159 L5.3 160 L9 160 Z'/%3E%3C/svg%3E") top left / 9px 160px repeat-y, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='160' viewBox='0 0 9 160'%3E%3Cpath  d='M0 0 L3.7 0 L1.3 1 L3.6 3 L0.7 5 L1.3 15 L3.6 16 L3.9 18 L6.9 20 L3.2 23 L2.8 24 L4.2 37 L3.2 38 L3.7 42 L3.0 52 L6.9 54 L6.2 55 L2.0 57 L5.7 58 L0.9 59 L1.4 69 L4.8 71 L5.3 85 L5.7 87 L5.2 90 L4.9 95 L3.5 96 L2.1 98 L6.2 104 L4.8 109 L1.5 113 L7.3 118 L7.3 122 L2.8 124 L7.2 132 L6.1 136 L3.2 139 L2.2 141 L6.0 143 L7.0 159 L3.7 160 L0 160 Z'/%3E%3C/svg%3E") top right / 9px 160px repeat-y, linear-gradient(#000, #000) center / calc(100% - 16px) calc(100% - 16px) no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='9' viewBox='0 0 160 9'%3E%3Cpath  d='M0 9 L0 3.6 L4 1.5 L8 2.1 L10 6.1 L11 4.3 L16 5.4 L17 8.0 L24 2.1 L25 3.3 L26 6.8 L30 5.1 L37 1.7 L41 5.4 L48 2.3 L49 2.3 L62 3.5 L67 2.0 L76 1.6 L78 6.3 L82 3.0 L84 8.0 L102 1.9 L108 4.1 L113 6.5 L115 4.4 L116 5.5 L119 2.9 L120 6.2 L122 3.9 L131 3.7 L132 1.6 L136 4.4 L138 8.0 L144 2.4 L151 6.4 L152 1.6 L153 4.8 L156 4.9 L159 6.3 L160 3.6 L160 9 Z'/%3E%3C/svg%3E") top left / 160px 9px repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='9' viewBox='0 0 160 9'%3E%3Cpath  d='M0 0 L0 5.4 L4 7.5 L8 6.9 L10 2.9 L11 4.7 L16 3.6 L17 1.0 L24 6.9 L25 5.7 L26 2.2 L30 3.9 L37 7.3 L41 3.6 L48 6.7 L49 6.7 L62 5.5 L67 7.0 L76 7.4 L78 2.7 L82 6.0 L84 1.0 L102 7.1 L108 4.9 L113 2.5 L115 4.6 L116 3.5 L119 6.1 L120 2.8 L122 5.1 L131 5.3 L132 7.4 L136 4.6 L138 1.0 L144 6.6 L151 2.6 L152 7.4 L153 4.2 L156 4.1 L159 2.7 L160 5.4 L160 0 Z'/%3E%3C/svg%3E") bottom left / 160px 9px repeat-x, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='160' viewBox='0 0 9 160'%3E%3Cpath  d='M9 0 L5.3 0 L7.7 1 L5.4 3 L8.3 5 L7.7 15 L5.4 16 L5.1 18 L2.1 20 L5.8 23 L6.2 24 L4.8 37 L5.8 38 L5.3 42 L6.0 52 L2.1 54 L2.8 55 L7.0 57 L3.3 58 L8.1 59 L7.6 69 L4.2 71 L3.7 85 L3.3 87 L3.8 90 L4.1 95 L5.5 96 L6.9 98 L2.8 104 L4.2 109 L7.5 113 L1.7 118 L1.7 122 L6.2 124 L1.8 132 L2.9 136 L5.8 139 L6.8 141 L3.0 143 L2.0 159 L5.3 160 L9 160 Z'/%3E%3C/svg%3E") top left / 9px 160px repeat-y, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='160' viewBox='0 0 9 160'%3E%3Cpath  d='M0 0 L3.7 0 L1.3 1 L3.6 3 L0.7 5 L1.3 15 L3.6 16 L3.9 18 L6.9 20 L3.2 23 L2.8 24 L4.2 37 L3.2 38 L3.7 42 L3.0 52 L6.9 54 L6.2 55 L2.0 57 L5.7 58 L0.9 59 L1.4 69 L4.8 71 L5.3 85 L5.7 87 L5.2 90 L4.9 95 L3.5 96 L2.1 98 L6.2 104 L4.8 109 L1.5 113 L7.3 118 L7.3 122 L2.8 124 L7.2 132 L6.1 136 L3.2 139 L2.2 141 L6.0 143 L7.0 159 L3.7 160 L0 160 Z'/%3E%3C/svg%3E") top right / 9px 160px repeat-y, linear-gradient(#000, #000) center / calc(100% - 16px) calc(100% - 16px) no-repeat;
    background-blend-mode: soft-light, overlay;
}
.patch-linen { background-color: var(--vt-linen); background-image: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .35), rgba(0, 0, 0, .12) 85%), url("images/grain-linen.jpg"); color: var(--vt-ink); }
.patch-velvet { background-color: var(--vt-plum); background-image: radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, .14), rgba(0, 0, 0, .35) 90%), url("images/grain-velvet.jpg"); color: var(--vt-milk); }
.patch-pearl { background-color: var(--vt-pearl); background-image: linear-gradient(115deg, rgba(255, 255, 255, .45), rgba(0, 0, 0, .06) 45%, rgba(255, 255, 255, .3) 70%, rgba(0, 0, 0, .1)), url("images/grain-pearl.jpg"); color: var(--vt-ink); }
.patch-olive { background-color: var(--vt-olive); background-image: radial-gradient(ellipse at 40% 30%, rgba(255, 255, 255, .16), rgba(0, 0, 0, .2) 90%), url("images/grain-olive.jpg"); color: var(--vt-milk); }
.patch-terra { background-color: var(--vt-terra); background-image: radial-gradient(ellipse at 60% 25%, rgba(255, 255, 255, .2), rgba(0, 0, 0, .25) 95%), url("images/grain-terracotta.jpg"); color: var(--vt-milk); }

.pin { position: absolute; z-index: 3; width: 38px; height: 38px; background: var(--vt-pin) center / contain no-repeat; pointer-events: none; }
.pin-corner { top: -16px; right: -8px; }
.pin-left { top: -16px; left: -8px; transform: scaleX(-1); }

.patch-title {
    margin: 0 0 clamp(1.2rem, 2.4vw, 1.9rem);
    font-family: var(--vt-head);
    font-weight: 500;
    font-size: clamp(2rem, 3.7vw, 3.35rem);
    line-height: 1.06;
    letter-spacing: .015em;
    text-transform: uppercase;
}
.patch-title-line { position: relative; display: inline-block; padding-bottom: .22em; padding-right: .1em; }
.patch-title-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--vt-teal); box-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.patch-title-line::before { content: ""; position: absolute; right: -1.15em; bottom: .05em; width: .62em; height: .62em; min-width: 22px; min-height: 22px; background: var(--vt-pin) center / contain no-repeat; }
.patch-title-center { text-align: center; }

/* ---------- Главная: раскладка ---------- */
.front { display: flex; flex-direction: column; gap: var(--vt-gap); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.front-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--vt-gap); }
@media (min-width: 960px) {
    .front-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
    .front-pair > .patch-wrap > .patch { height: 100%; }
}
.empty-note { margin: 0; font-size: 1.05rem; }

/* Блок 1: шкала светопроницаемости */
.lightscale { list-style: none; margin: 0; padding: 1.2rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.4%; }
.lightscale-item { position: relative; min-width: 0; }
.lightscale-item::before { content: ""; position: absolute; z-index: 2; left: 50%; top: -14px; width: 1.5px; height: 22px; background: var(--vt-thread); }
.lightscale-item::after { content: ""; position: absolute; z-index: 3; left: calc(50% - 5px); top: -19px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #B9FFF1, var(--vt-teal) 55%, #1E9C88); }
.lightscale-item img { display: block; width: 100%; height: auto; aspect-ratio: 196 / 572; object-fit: cover; box-shadow: 0 6px 10px rgba(35, 33, 42, .35), 0 1px 1px rgba(35, 33, 42, .3); }
.lightscale-tag {
    position: absolute;
    left: 25%;
    top: 3%;
    width: 52%;
    height: 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #EADCC0, var(--vt-tag) 60%, #D9C7A3);
    color: var(--vt-ink);
    font-family: var(--vt-head);
    font-weight: 500;
    font-size: clamp(.68rem, 1.05vw, .98rem);
    letter-spacing: .02em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .28);
    white-space: nowrap;
    overflow: hidden;
}
.lightscale-note { margin: 1.3rem 0 0; font-family: var(--vt-text); font-weight: 500; font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--vt-ink); }

/* Блок 2: сочетания */
.combo-board { position: relative; margin: 0; container-type: inline-size; }
.combo-board img { display: block; width: 100%; height: auto; aspect-ratio: 870 / 684; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.combo-arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.combo-arrows path { fill: none; stroke: var(--vt-copper); stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.combo-captions { position: absolute; inset: 0; pointer-events: none; }
.combo-tag {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 .4em 0 .8em;
    background: linear-gradient(180deg, #EADCC0, var(--vt-tag) 60%, #DACAA8);
    color: var(--vt-ink);
    font-family: var(--vt-head);
    font-weight: 500;
    font-size: 4.3cqw;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: 0 3px 7px rgba(0, 0, 0, .45);
}
.combo-tag::before { content: ""; position: absolute; top: 50%; width: .3em; height: .3em; border-radius: 50%; background: #5E5A55; transform: translateY(-50%); }
.combo-tag::after { content: ""; position: absolute; top: 50%; height: 1.5px; width: 1.6em; background: var(--vt-thread); }
.combo-tag-a { left: 4.2%; top: 12.8%; width: 30.4%; height: 18.2%; transform: rotate(-3deg); }
.combo-tag-a::before { left: .35em; }
.combo-tag-a::after { right: 100%; }
.combo-tag-b { left: 55.9%; top: 6.6%; width: 37.4%; height: 13.6%; transform: rotate(-.5deg); padding: 0 .9em 0 .4em; }
.combo-tag-b::before { right: .35em; }
.combo-tag-b::after { left: 100%; }
.combo-tag-c { left: 55.2%; top: 29.4%; width: 38.6%; height: 17%; transform: rotate(-2deg); }
.combo-tag-c::before { left: .35em; }
.combo-tag-c::after { right: 100%; width: 1.2em; }
.combo-note { position: absolute; left: 4%; top: 79%; color: #EDE3D6; font-family: var(--vt-hand); font-weight: 600; font-size: 6cqw; line-height: .95; transform: rotate(-5deg); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }

/* Блок записей */
.patch-wrap-wide > .patch { padding-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.pin-left + .pin-corner { right: -8px; }
.latest-row > .card:nth-child(n+4) { display: none; }
.latest-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem; padding-top: .8rem; }
@media (min-width: 700px) { .latest-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.6vw, 2.6rem); } }

/* ---------- Карточки ---------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--vt-paper);
    background-image: linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(0, 0, 0, .04));
    color: var(--vt-ink);
    padding: .8rem .8rem 1.1rem;
    box-shadow: 0 10px 18px rgba(35, 33, 42, .28), 0 1px 2px rgba(35, 33, 42, .3);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card-pin { position: absolute; z-index: 2; top: -18px; left: calc(50% - 6px); width: 34px; height: 34px; background: var(--vt-pin-copper) center / contain no-repeat; }
.card-thumb { position: relative; overflow: hidden; background: #CFC9BF; }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: .85rem .2rem 0; }
.card-title { margin: 0 0 .4rem; font-family: var(--vt-head); font-weight: 500; font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.2; }
.card-title a { color: var(--vt-ink); text-decoration: none; }
.card-title a:hover { color: #6A3A50; }
.card-excerpt { flex: 1; color: var(--vt-ink-soft); font-size: .93rem; line-height: 1.45; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; margin-top: .4rem; }
.card-date { color: var(--vt-mute-light); font-size: .85rem; letter-spacing: .02em; }
.card-more {
    display: inline-block;
    padding: .28rem 1.1rem .32rem;
    border: 1.5px solid var(--vt-ink);
    border-radius: 999px;
    color: var(--vt-ink);
    font-family: var(--vt-head);
    font-size: .88rem;
    letter-spacing: .02em;
    text-decoration: none;
    transition: background-color .2s, border-color .2s;
}
.card-more:hover { background: var(--vt-teal); border-color: var(--vt-teal); }
.card:hover { box-shadow: 0 16px 26px rgba(35, 33, 42, .36), 0 2px 3px rgba(35, 33, 42, .3); }
.card:hover .card-thumb img { transform: scale(1.04); }

.card-pinned:nth-child(3n+1) { transform: rotate(-2.2deg); }
.card-pinned:nth-child(3n+2) { transform: rotate(1.6deg) translateY(-6px); }
.card-pinned:nth-child(3n) { transform: rotate(2.4deg); }
.card-pinned:hover { transform: rotate(0deg) translateY(-4px); }
.card-pinned .card-title { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }

.card-plain .card-pin { display: none; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.8rem 1.6rem; }
.card-plain:nth-child(odd) { transform: rotate(-.6deg); }
.card-plain:nth-child(even) { transform: rotate(.6deg); }
.card-plain:hover { transform: translateY(-4px); }

/* Блок 3: разбор по слоям */
.layers { display: flex; flex-direction: column; }
.layers-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1rem, 2.4vw, 2rem); align-items: center; }
.layers-scheme { position: relative; margin: 0; container-type: inline-size; }
.layers-scheme img { display: block; width: 100%; height: auto; aspect-ratio: 892 / 808; }
.layers-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.layers-leaders polyline { fill: none; stroke: var(--vt-teal); stroke-width: 1.3; opacity: .85; vector-effect: non-scaling-stroke; }
.layers-labels { position: absolute; inset: 0; pointer-events: none; }
.layers-label { position: absolute; transform: translateY(-112%); color: var(--vt-milk); font-family: var(--vt-head); font-size: 4.9cqw; letter-spacing: .03em; line-height: 1; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.layers-label-rod { left: 83.6%; top: 15.3%; }
.layers-label-drape { left: 83.8%; top: 47.5%; }
.layers-label-tie { left: 79.6%; top: 64.4%; }
.layers-label-tulle { left: 38.8%; top: 98%; }
.layers-facts { margin: 0; padding: .6rem 0 .6rem clamp(1rem, 2vw, 1.6rem); border-left: 3px solid var(--vt-teal); display: flex; flex-direction: column; gap: clamp(.8rem, 2vw, 1.6rem); }
.layers-fact { text-align: center; }
.layers-fact dt { font-family: var(--vt-head); font-weight: 500; font-size: clamp(2.6rem, 4.6vw, 4.1rem); line-height: 1; }
.layers-fact dd { margin: .2rem 0 0; font-family: var(--vt-head); font-size: clamp(.95rem, 1.5vw, 1.25rem); letter-spacing: .04em; text-transform: uppercase; }

/* Блок 4: палитра */
.palette { display: flex; flex-direction: column; padding-bottom: 0; }
.palette-title-rest { display: block; margin-top: .22em; }
.palette-fan { position: relative; margin: auto calc(-1 * clamp(1.3rem, 3vw, 2.7rem)) 0; container-type: inline-size; }
.palette-fan img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1148 / 788;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 10%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 10%);
    mask-composite: intersect;
}
.palette-tags { position: absolute; inset: 0; pointer-events: none; }
.palette-tag {
    position: absolute;
    color: var(--vt-ink);
    font-family: var(--vt-head);
    font-weight: 500;
    font-size: 3.5cqw;
    line-height: 1;
    letter-spacing: .02em;
    white-space: nowrap;
    writing-mode: vertical-rl;
}
.palette-tag-1 { left: 13.8%; top: 32.4%; transform: translate(-50%, -50%) rotate(-23deg); }
.palette-tag-2 { left: 27.9%; top: 22.8%; transform: translate(-50%, -50%) rotate(-13deg); }
.palette-tag-3 { left: 43.3%; top: 18.4%; transform: translate(-50%, -50%) rotate(-4deg); }
.palette-tag-4 { left: 58.8%; top: 19%; transform: translate(-50%, -50%) rotate(3deg); }
.palette-tag-5 { left: 73.7%; top: 23.5%; transform: translate(-50%, -50%) rotate(12deg); }
.palette-tag-6 { left: 87.8%; top: 32%; transform: translate(-50%, -50%) rotate(22deg); }

/* ---------- Внутренние страницы ---------- */
.inner { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.crumbs { margin: .2rem 0 1.4rem; color: var(--vt-mute-dark); font-size: .92rem; }
.crumbs a { color: var(--vt-milk); text-decoration: underline; text-decoration-color: var(--vt-copper); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--vt-teal); }
.crumbs-sep { color: var(--vt-copper); margin: 0 .2rem; }

.layout-single { display: block; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--vt-gap); }
@media (min-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 67%) minmax(0, 27%); justify-content: space-between; column-gap: 6%; }
}
.content-area { min-width: 0; display: flex; flex-direction: column; gap: var(--vt-gap); }
.sidebar { min-width: 0; }

.page-sheet { padding: clamp(1.8rem, 3.4vw, 3rem) clamp(1.4rem, 3.4vw, 3rem); }
.sheet-head { margin-bottom: 1.6rem; }
.sheet-title { margin: 0 0 .5rem; font-family: var(--vt-head); font-weight: 500; font-size: clamp(1.8rem, 3.3vw, 2.8rem); line-height: 1.12; }
.sheet-title::after { content: ""; display: block; width: min(220px, 50%); height: 3px; margin-top: .45em; border-radius: 2px; background: var(--vt-teal); }
.sheet-lead { margin: .8rem 0 0; max-width: 62ch; color: var(--vt-ink-soft); }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .6rem 0 0; color: var(--vt-mute-light); font-size: .92rem; }
.entry-cat a { color: var(--vt-ink); text-decoration: underline; text-decoration-color: var(--vt-copper); text-underline-offset: 3px; }
.entry-cover { margin: 0 0 1.8rem; }
.entry-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 8px 16px rgba(35, 33, 42, .3); }

.entry-content { max-width: 74ch; color: var(--vt-ink); }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content h2 { margin: 1.6em 0 .6em; font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.entry-content h3 { margin: 1.4em 0 .5em; font-size: clamp(1.2rem, 2vw, 1.45rem); }
.entry-content h4 { margin: 1.2em 0 .5em; font-size: 1.15rem; }
.entry-content a { color: #5C2E43; text-decoration: underline; text-decoration-color: var(--vt-copper); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--vt-ink); text-decoration-color: var(--vt-teal); }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--vt-copper); }
.entry-content ol li::marker { color: var(--vt-copper); font-family: var(--vt-head); }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.5rem 1.2rem 1.6rem;
    background: var(--vt-linen);
    border-left: 4px solid var(--vt-teal);
    font-size: 1.08rem;
    font-style: normal;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .6rem; color: var(--vt-ink-soft); font-size: .9rem; font-style: normal; }
.entry-content table { width: 100%; margin: 1.4em 0; border-collapse: collapse; border: 1px solid #9C968A; font-size: .96rem; }
.entry-content th, .entry-content td { padding: .6rem .8rem; border: 1px solid #9C968A; text-align: left; vertical-align: top; }
.entry-content th { background: var(--vt-linen); font-family: var(--vt-head); font-weight: 500; }
.entry-content tr:nth-child(even) td { background: rgba(255, 255, 255, .28); }
.entry-content figure { margin: 1.6em 0; }
.entry-content img { display: block; height: auto; }
.entry-content figcaption, .wp-caption-text { margin-top: .5rem; color: var(--vt-ink-soft); font-size: .88rem; }
.entry-content pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--vt-ink); color: var(--vt-milk); font-size: .9rem; }
.entry-content code { padding: .1em .35em; background: rgba(35, 33, 42, .1); font-size: .92em; }
.entry-content pre code { padding: 0; background: none; }
.entry-content hr { height: 0; margin: 2em 0; border: 0; border-top: 2px dashed var(--vt-mute-light); }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.8rem 0 0; }
.entry-tags a { padding: .2rem .7rem; background: var(--vt-tag); color: var(--vt-ink); font-family: var(--vt-head); font-size: .85rem; text-decoration: none; box-shadow: 0 2px 4px rgba(35, 33, 42, .2); }
.entry-tags a:hover { background: var(--vt-teal); }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .8rem; }
.bypostauthor { position: relative; }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.2rem; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: .45rem .85rem;
    background: var(--vt-tag);
    color: var(--vt-ink);
    border: 1.5px solid var(--vt-tag-edge);
    font-family: var(--vt-head);
    font-size: .95rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(35, 33, 42, .2);
    transition: border-color .2s, background-color .2s;
}
.pager a.page-numbers:hover { border-color: var(--vt-teal); }
.pager .page-numbers.current { background: var(--vt-teal); border-color: var(--vt-teal); }
.pager .page-numbers.dots { background: none; border: 0; box-shadow: none; min-width: 0; padding: .45rem .2rem; }

/* Боковая колонка */
.sidebar-sheet { padding: 1.8rem 1.6rem; color: var(--vt-ink); }
.sidebar-sheet .widget + .widget { margin-top: 1.8rem; }
.sidebar-sheet .widget-title { margin: 0 0 .9rem; padding-bottom: .4rem; border-bottom: 2px solid var(--vt-teal); color: var(--vt-ink); font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase; }
.sidebar-sheet ul { list-style: none; margin: 0; padding: 0; }
.sidebar-sheet li { padding: .5rem 0; border-bottom: 1px dashed rgba(35, 33, 42, .3); }
.sidebar-sheet li:last-child { border-bottom: 0; }
.sidebar-sheet a { color: var(--vt-ink); text-decoration: none; }
.sidebar-sheet a:hover { color: #5C2E43; text-decoration: underline; text-decoration-color: var(--vt-copper); text-underline-offset: 3px; }
.sidebar-sheet .post-date, .sidebar-sheet .rss-date { display: block; color: #5E5848; font-size: .85rem; }
.sidebar-sheet p { color: var(--vt-ink); }

/* Поиск */
.seek { margin: 0; }
.seek-label { display: block; margin-bottom: .4rem; font-family: var(--vt-head); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.seek-row { display: flex; gap: .5rem; }
.seek-input { flex: 1; min-width: 0; padding: .6rem .8rem; background: var(--vt-milk); color: var(--vt-ink); border: 1.5px solid #9C968A; border-radius: 0; }
.seek-input:focus { border-color: var(--vt-teal); outline: none; box-shadow: 0 0 0 2px rgba(63, 224, 197, .35); }
.seek-btn, .tag-btn, .comment-form .submit, .cookie-banner-btn {
    position: relative;
    display: inline-block;
    padding: .6rem 1.2rem .6rem 1.6rem;
    background: var(--vt-tag);
    color: var(--vt-ink);
    border: 2px solid var(--vt-teal);
    font-family: var(--vt-head);
    font-size: .95rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    clip-path: polygon(0 4px, 12% 0, 26% 3px, 41% 0, 57% 4px, 72% 1px, 86% 4px, 100% 0, 100% 100%, 0 100%);
    transition: background-color .2s, transform .15s;
}
.seek-btn::before, .tag-btn::before, .comment-form .submit::before, .cookie-banner-btn::before { content: ""; position: absolute; left: .6rem; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--vt-ink); transform: translateY(-50%); opacity: .7; }
.seek-btn:hover, .tag-btn:hover, .comment-form .submit:hover, .cookie-banner-btn:hover { background: var(--vt-teal); }
.seek-btn:active, .tag-btn:active, .cookie-banner-btn:active { transform: translateY(1px); }
.comment-form .submit { padding-left: 1.2rem; }

/* 404 */
.lost { text-align: left; }
.lost-code { margin: 0; font-family: var(--vt-head); font-weight: 600; font-size: clamp(5rem, 14vw, 9rem); line-height: .9; color: var(--vt-milk); opacity: .9; }
.lost .sheet-title { color: var(--vt-milk); }
.lost-text { max-width: 54ch; margin: 1rem 0 1.6rem; }
.lost .seek { max-width: 520px; }
.lost .seek-label { color: var(--vt-milk); }
.lost-home { margin: 1.6rem 0 0; }

/* Комментарии */
.notes { padding: clamp(1.6rem, 3vw, 2.6rem); color: var(--vt-ink); }
.notes-title, .comment-reply-title { margin: 0 0 1rem; font-family: var(--vt-head); font-weight: 500; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .03em; }
.comment-reply-title small { margin-left: .6rem; font-size: .85rem; text-transform: none; }
.comment-reply-title small a { color: #5C2E43; }
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { margin-left: clamp(1rem, 4vw, 2.4rem); }
.note-item { margin-bottom: 1rem; }
.note-body { padding: 1rem 1.2rem; background: var(--vt-paper); box-shadow: 0 3px 8px rgba(35, 33, 42, .2); }
.note-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; margin-bottom: .5rem; }
.note-avatar { border-radius: 50%; }
.note-author { font-family: var(--vt-head); font-weight: 500; }
.note-date { color: var(--vt-mute-light); font-size: .85rem; }
.note-wait { color: #7A3A1E; font-size: .9rem; }
.note-text p { margin: 0 0 .6em; }
.note-reply a { color: #5C2E43; font-family: var(--vt-head); font-size: .9rem; text-decoration: underline; text-decoration-color: var(--vt-copper); }
.notes-closed { color: var(--vt-ink-soft); }
.comment-respond { margin-top: 1.6rem; }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-size: .95rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .6rem .8rem; background: var(--vt-milk); color: var(--vt-ink); border: 1.5px solid #9C968A; border-radius: 0; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--vt-teal); outline: none; box-shadow: 0 0 0 2px rgba(63, 224, 197, .35); }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; }
.comment-notes, .logged-in-as { color: var(--vt-ink-soft); font-size: .9rem; }
.logged-in-as a, .must-log-in a { color: #5C2E43; }
.req { color: #8A2E12; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }

/* ---------- Подвал ---------- */
.basefoot { padding: clamp(2.4rem, 4vw, 3.2rem) 0 1.6rem; background: var(--vt-table); color: var(--vt-mute-dark); border-top: 1px solid #2C2A33; }
.basefoot-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 760px) { .basefoot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); } }
.basefoot-col { min-width: 0; }
.basefoot .widget + .widget { margin-top: 1.5rem; }
.basefoot .widget-title { margin: 0 0 .8rem; color: var(--vt-milk); font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase; }
.basefoot p, .basefoot .textwidget { color: var(--vt-mute-dark); font-size: .95rem; }
.basefoot a { color: var(--vt-milk); text-decoration: underline; text-decoration-color: var(--vt-copper); text-underline-offset: 3px; }
.basefoot a:hover { color: var(--vt-teal); }
.basefoot ul { list-style: none; margin: 0; padding: 0; }
.basefoot li { margin: 0 0 .35rem; }
.basefoot li a { text-decoration: none; }
.basefoot li a:hover { text-decoration: underline; text-decoration-color: var(--vt-copper); }
.basefoot .post-date { display: block; color: var(--vt-mute-dark); font-size: .82rem; }
.basefoot-copy { margin: 2.2rem 0 0; padding-top: 1.2rem; border-top: 1px solid #34323C; color: var(--vt-mute-dark); font-size: .88rem; text-align: center; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    z-index: 90;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 780px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.4rem;
    background: var(--vt-linen);
    color: var(--vt-ink);
    border-top: 3px solid var(--vt-teal);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.cookie-banner-text { margin: 0; flex: 1; min-width: 0; font-size: .92rem; line-height: 1.45; }
.cookie-banner-btn { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 959px) {
    .front-pair > .patch-wrap > .patch { height: auto; }
}
@media (max-width: 700px) {
    .latest-row .card-pinned:nth-child(n) { transform: rotate(-1deg); }
    .latest-row .card-pinned:nth-child(even) { transform: rotate(1deg); }
    .latest-row { gap: 2.6rem; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .patch { padding: 1.6rem 1.2rem; }
    .page-sheet { padding: 1.6rem 1.2rem; }
    .patch-wrap-wide > .patch { padding-bottom: 2rem; }
    .notes { padding: 1.6rem 1.2rem; }
    .sidebar-sheet { padding: 1.6rem 1.2rem; }
    .palette { padding-bottom: 0; }
    .palette-fan { margin-left: -1.2rem; margin-right: -1.2rem; }
    .patch-title-line::before { right: -.95em; }
    .patch-title { padding-right: 1rem; }
    .layers-grid { grid-template-columns: minmax(0, 1fr); }
    .layers-facts { flex-direction: row; justify-content: space-around; border-left: 0; border-top: 3px solid var(--vt-teal); padding: 1rem 0 0; }
    .lightscale-item::before { top: -10px; height: 16px; }
    .lightscale-item::after { top: -14px; width: 8px; height: 8px; left: calc(50% - 4px); }
    .cookie-banner { flex-direction: column; align-items: flex-start; left: .6rem; right: .6rem; bottom: .6rem; padding: 1rem 1.1rem; }
    .seek-row { flex-wrap: wrap; }
    .seek-btn { flex: 0 0 auto; }
    .card-plain:nth-child(n) { transform: none; }
}
