/*
Theme Name: dds_kishoricreations.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: kshdec
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-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: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-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: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/cormorant-garamond-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: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/cormorant-garamond-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: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fira-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: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fira-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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/fira-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: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/fira-sans-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: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/fira-sans-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: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fira-sans-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: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fira-sans-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 {
    --kd-paper: #E7DED0;
    --kd-grid: #C9BCA8;
    --kd-plum: #3B2E2A;
    --kd-sage: #A8B09A;
    --kd-foot: #2A2320;
    --kd-ink: #2E2723;
    --kd-muted: #7A6A5C;
    --kd-terra: #C4644E;
    --kd-terra-dark: #A84F3B;
    --kd-mustard: #D9A441;
    --kd-line: #B7A78F;
    --kd-light: #EFE7DA;
    --kd-sheet: #F4EFE6;
    --kd-side: #EFE8DC;
    --kd-taupe: #C4B39A;
    --kd-mauve: #8C7F86;
    --kd-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --kd-sans: "Fira Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --kd-mm: linear-gradient(rgba(201, 188, 168, .55) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 188, 168, .55) 1px, transparent 1px);
}

/* ---------- Скрытые элементы (правило до основных стилей) ---------- */
.kd-cookie[hidden] { display: none !important; }
[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; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--kd-ink);
    font-family: var(--kd-sans);
    font-size: 16.5px;
    line-height: 1.7;
    background-color: var(--kd-paper);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"),
        linear-gradient(rgba(201, 188, 168, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 188, 168, .22) 1px, transparent 1px);
    background-size: 180px 180px, 12px 12px, 12px 12px;
}
img, svg { max-width: 100%; }
img { height: auto; }
p, li, dd, dt, blockquote, figcaption, td, th { overflow-wrap: break-word; hyphens: auto; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; hyphens: manual; font-variant-numeric: lining-nums; }
p { margin: 0 0 1.05em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--kd-serif);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.01em;
    margin: 1.4em 0 .55em;
    color: inherit;
}
a {
    color: var(--kd-terra-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .24em;
    transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { color: var(--kd-ink); text-decoration-color: var(--kd-terra); }
:focus-visible { outline: 2px solid var(--kd-terra); outline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }

.kd-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.kd-skip {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--kd-ink);
    color: var(--kd-light);
}
.kd-skip:focus { top: 1rem; color: var(--kd-light); }

.kd-shell { width: min(92%, 1180px); margin-inline: auto; }

/* ---------- Кнопки ---------- */
.kd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    min-height: 2.6rem;
    padding: .5rem 1.3rem;
    border: 1px solid var(--kd-terra);
    border-radius: 0;
    background: transparent;
    color: var(--kd-terra-dark);
    font-family: var(--kd-sans);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.kd-btn:hover { background: var(--kd-terra); color: #fff; transform: translateY(-2px); }
.kd-btn--fill { background: var(--kd-terra); color: #fff; }
.kd-btn--fill:hover { background: var(--kd-ink); border-color: var(--kd-ink); color: var(--kd-light); }

/* ---------- Шапка ---------- */
.kd-header { position: relative; padding: 2.2rem 0 1.6rem; }
.kd-header__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}
.kd-brand {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    min-width: 0;
    color: var(--kd-ink);
    text-decoration: none;
}
.kd-brand:hover { color: var(--kd-ink); }
.kd-brand__mark { flex: 0 0 auto; color: var(--kd-ink); line-height: 0; }
.kd-brand__spool { width: 64px; height: 64px; display: block; }
.kd-brand__logo { display: block; max-width: 96px; max-height: 96px; width: auto; }
.kd-brand__text { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.kd-brand__name {
    font-family: var(--kd-serif);
    font-weight: 600;
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    line-height: 1.04;
    letter-spacing: -.015em;
    max-width: 15em;
    overflow-wrap: break-word;
}
.kd-brand__desc { font-size: .98rem; line-height: 1.45; color: var(--kd-ink); max-width: 34em; }

.kd-nav { flex: 0 0 auto; position: relative; }
.kd-nav__toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .55rem .9rem;
    border: 1px solid var(--kd-ink);
    background: transparent;
    cursor: pointer;
    font-size: .95rem;
}
.kd-nav__bars, .kd-nav__bars::before, .kd-nav__bars::after {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    position: relative;
    transition: transform .2s ease;
}
.kd-nav__bars::before, .kd-nav__bars::after { content: ""; position: absolute; left: 0; }
.kd-nav__bars::before { top: -6px; }
.kd-nav__bars::after { top: 6px; }
.kd-nav.is-open .kd-nav__bars { background: transparent; }
.kd-nav.is-open .kd-nav__bars::before { transform: translateY(6px) rotate(45deg); }
.kd-nav.is-open .kd-nav__bars::after { transform: translateY(-6px) rotate(-45deg); }
.kd-nav__list {
    list-style: none;
    margin: 0;
    padding: 0 0 .9rem;
    border-bottom: 1px solid var(--kd-line);
    min-width: 13rem;
}
.kd-nav__list li { margin: 0; }
.kd-nav__list a {
    display: inline-block;
    padding: .18rem 0;
    color: var(--kd-ink);
    font-size: 1.06rem;
    text-decoration: none;
    background-image: linear-gradient(var(--kd-terra), var(--kd-terra));
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .2s ease, color .15s ease;
}
.kd-nav__list a:hover { background-size: 100% 1px; color: var(--kd-terra-dark); }
.kd-nav__list .current-menu-item > a,
.kd-nav__list .current_page_item > a { color: var(--kd-terra); }

/* ---------- Заголовки секций ---------- */
.kd-sec { padding: 2.6rem 0 3.2rem; }
.kd-sechead {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin: 0 0 2rem;
    font-family: var(--kd-serif);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    hyphens: manual;
}
.kd-sechead::before, .kd-sechead::after {
    content: "";
    flex: 1 1 0;
    min-width: 1.5rem;
    height: 1px;
    background: var(--kd-line);
}
.kd-sechead span { flex: 0 1 auto; min-width: 0; }
.kd-sechead--light::before, .kd-sechead--light::after { background: rgba(239, 231, 218, .45); }

/* ---------- Блок 1: пробы фактур ---------- */
.kd-textures { padding-top: 1rem; }
.kd-textures__board {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 14rem) minmax(0, 1fr);
    align-items: center;
    gap: 1.6rem;
    padding: 2.2rem 1.6rem 2rem;
    border-top: 1px solid var(--kd-grid);
    border-bottom: 1px solid var(--kd-grid);
    background-color: rgba(231, 222, 208, .6);
    background-image: var(--kd-mm);
    background-size: 14px 14px;
}
.kd-textures__side {
    margin: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: .9rem;
    border-right: 1px solid var(--kd-ink);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--kd-serif);
    font-size: 1.7rem;
    font-weight: 600;
    white-space: nowrap;
    hyphens: manual;
}
.kd-textures__intro { min-width: 0; }
.kd-textures__lead {
    margin: 0 0 .8rem;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 1.02;
}
.kd-textures__intro p { margin: 0; font-size: .95rem; color: var(--kd-ink); }

.kd-swatches {
    list-style: none;
    margin: 0;
    padding: 1.4rem 0 0;
    display: flex;
    align-items: flex-start;
    min-width: 0;
}
.kd-swatch {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    margin-left: -.9rem;
    transform: rotate(var(--tilt, 0deg));
    transition: transform .2s ease;
    cursor: pointer;
    outline-offset: 6px;
}
.kd-swatch:first-child { margin-left: 0; }
.kd-swatch:hover, .kd-swatch:focus-visible, .kd-swatch.is-active { z-index: 3; transform: rotate(0deg) translateY(-8px); }
.kd-swatch__cloth {
    aspect-ratio: 1 / 1;
    -webkit-mask-image: url("images/pinked-mask.svg");
    mask-image: url("images/pinked-mask.svg");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}
.kd-swatch__cloth img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kd-swatch__pin {
    position: absolute;
    top: 9%;
    left: 50%;
    z-index: 2;
    width: 15px;
    height: 15px;
    margin-left: -7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #E9E1D4 0 18%, #9E9384 45%, #6F665B 100%);
    box-shadow: 1px 2px 0 rgba(46, 39, 35, .35);
}
.kd-swatch__tag {
    position: absolute;
    top: 15%;
    left: 14%;
    right: 10%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: .6rem .5rem .45rem;
    transform: rotate(-6deg);
    text-align: center;
    line-height: 1.15;
}
.kd-swatch:nth-child(even) .kd-swatch__tag { transform: rotate(5deg); }
.kd-swatch__name { font-size: 1.05rem; font-weight: 600; }
.kd-swatch__tone { font-size: .74rem; letter-spacing: .04em; opacity: .85; }
.kd-swatch__tag--paper { background: #F3EFE7; color: var(--kd-ink); }
.kd-swatch__tag--taupe { background: var(--kd-taupe); color: var(--kd-ink); }
.kd-swatch__tag--terra { background: var(--kd-terra); color: #FFF7EF; }
.kd-swatch__tag--mustard { background: var(--kd-mustard); color: var(--kd-ink); }
.kd-swatch__tag--mauve { background: var(--kd-mauve); color: #FBF6F1; }
.kd-swatch__note {
    margin: .7rem .4rem 0 .9rem;
    font-size: .8rem;
    line-height: 1.4;
    color: var(--kd-muted);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease;
}
.kd-swatch:hover .kd-swatch__note,
.kd-swatch:focus-visible .kd-swatch__note,
.kd-swatch.is-active .kd-swatch__note { opacity: 1; transform: none; }

/* ---------- Блок 2: свет по слоям ---------- */
.kd-light {
    background: var(--kd-plum);
    color: var(--kd-light);
    padding: 2.6rem 0 3.4rem;
}
.kd-light__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}
.kd-light__fig { position: relative; margin: 0; min-width: 0; }
.kd-light__pic { position: relative; width: 62%; }
.kd-light__pic img { display: block; width: 100%; height: auto; }
.kd-light__dot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 1.35rem;
    height: 1.35rem;
    margin: -.675rem 0 0 -.2rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--kd-light);
    border-radius: 50%;
    background: var(--kd-plum);
    font-size: .7rem;
    line-height: 1;
}
.kd-light__notes { list-style: none; margin: 0; padding: 0; counter-reset: kdlight; }
.kd-light__notes li {
    position: absolute;
    top: var(--y);
    left: calc(var(--x) * .62 + 1.3rem);
    right: 0;
    display: flex;
    align-items: center;
    transform: translateY(-50%);
    counter-increment: kdlight;
}
.kd-light__lead { flex: 1 1 auto; min-width: .8rem; height: 1px; background: rgba(239, 231, 218, .55); }
.kd-light__tag {
    flex: 0 0 auto;
    padding: .32rem .95rem;
    border: 1px solid rgba(239, 231, 218, .75);
    border-radius: 999px;
    font-size: .92rem;
    white-space: nowrap;
}
.kd-light__tag::before { content: counter(kdlight) " · "; opacity: .6; }
.kd-light__title {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.04;
    color: #F6EFE4;
}
.kd-light__text p { color: var(--kd-light); font-size: .98rem; }
.kd-light__levels { list-style: none; margin: 1.2rem 0 0; padding: 0; border-top: 1px solid rgba(239, 231, 218, .25); }
.kd-light__levels li { padding: .55rem 0 .55rem 1.4rem; border-bottom: 1px solid rgba(239, 231, 218, .25); position: relative; font-size: .94rem; }
.kd-light__levels li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: .55rem;
    height: .55rem;
    background: var(--kd-mustard);
}
.kd-light__levels b { color: var(--kd-mustard); font-weight: 600; }

/* ---------- Карточки записей ---------- */
.kd-latest__more { margin: 2.6rem 0 0; text-align: center; }
.kd-cards { display: grid; gap: 2.4rem 2rem; }
.kd-cards--front {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 2.4rem 2rem;
    background-image: var(--kd-mm);
    background-size: 14px 14px;
    border-top: 1px solid var(--kd-grid);
    border-bottom: 1px solid var(--kd-grid);
}
.kd-cards--list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); padding-top: .8rem; }
.kd-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: .95rem .95rem 1.15rem;
    background: var(--kd-sheet);
    border: 1px solid var(--kd-line);
    transform: rotate(-1.4deg);
    transition: transform .2s ease;
}
.kd-card::before {
    content: "";
    position: absolute;
    inset: 6px -6px -6px 6px;
    z-index: -1;
    background: #EAE3D6;
    border: 1px solid var(--kd-line);
    transform: rotate(2.2deg);
}
.kd-cards > .kd-card:nth-child(3n+2) { transform: rotate(1.1deg); }
.kd-cards > .kd-card:nth-child(3n) { transform: rotate(-.8deg); }
.kd-cards > .kd-card:hover { transform: rotate(0deg) translateY(-6px); }
.kd-card__tape {
    position: absolute;
    top: -12px;
    left: 50%;
    z-index: 2;
    width: 42%;
    height: 24px;
    margin-left: -21%;
    opacity: .92;
    clip-path: polygon(0 8%, 6% 0, 14% 10%, 24% 2%, 36% 9%, 50% 1%, 63% 8%, 76% 0, 88% 9%, 100% 2%, 97% 50%, 100% 92%, 88% 100%, 75% 91%, 62% 100%, 49% 92%, 35% 100%, 22% 92%, 10% 100%, 0 93%, 3% 50%);
}
.kd-card--terra .kd-card__tape { background: var(--kd-terra); }
.kd-card--sage .kd-card__tape { background: var(--kd-sage); }
.kd-card--mustard .kd-card__tape { background: var(--kd-mustard); }
.kd-card__thumb { display: block; overflow: hidden; background: #DDD5C7; }
.kd-card__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .4s ease;
}
.kd-card:hover .kd-card__thumb img { transform: scale(1.04); }
.kd-card__body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding-top: .9rem; }
.kd-card__flag {
    align-self: flex-start;
    margin-bottom: .4rem;
    padding: .05rem .5rem;
    background: var(--kd-mustard);
    color: var(--kd-ink);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.kd-card__title { margin: 0 0 .45rem; font-size: 1.5rem; line-height: 1.08; }
.kd-card__title a { color: var(--kd-ink); text-decoration: none; }
.kd-card__title a:hover { color: var(--kd-terra-dark); text-decoration: underline; text-decoration-thickness: 1px; }
.kd-card__excerpt { font-size: .93rem; line-height: 1.55; color: var(--kd-ink); }
.kd-card__excerpt p { margin: 0 0 .5em; background: none; }
.kd-card__date { display: block; margin: .2rem 0 .9rem; font-size: .84rem; color: var(--kd-muted); }
.kd-card__more { margin-top: auto; width: 100%; }
.kd-cards--front .kd-card:first-child .kd-card__more { background: var(--kd-terra); color: #fff; }
.kd-cards--front .kd-card:first-child .kd-card__more:hover { background: var(--kd-ink); border-color: var(--kd-ink); }

/* ---------- Блок 3: сочетания по цвету ---------- */
.kd-fan { position: relative; }
.kd-fan__text { position: absolute; top: 0; left: 0; width: 22%; z-index: 1; }
.kd-fan__lead { margin: 0; font-size: clamp(1.45rem, 2.3vw, 2.15rem); line-height: 1.02; }
.kd-colors__foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    gap: 2.4rem;
    margin-top: 2rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--kd-line);
}
.kd-colors__note { margin: 0; font-size: .93rem; color: var(--kd-ink); }
.kd-fan__svg { display: block; width: 100%; height: auto; overflow: visible; }
.kd-fan__ray polygon { stroke: var(--kd-paper); stroke-width: 3; stroke-linejoin: round; transition: transform .2s ease; }
.kd-fan__ray text { font-family: var(--kd-sans); font-size: 23px; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.kd-fan__ray:hover polygon { transform: translateY(-6px); }
.kd-tones {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem 2rem;
}
.kd-tones li { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; font-size: .9rem; color: var(--kd-muted); min-width: 0; }
.kd-tones b { color: var(--kd-ink); font-weight: 600; }
.kd-tones__chip { flex: 0 0 auto; width: 14px; height: 14px; background: var(--c); border: 1px solid rgba(46, 39, 35, .3); transform: translateY(1px); }

/* ---------- Блок 4: масштаб предметов ---------- */
.kd-scale { background: var(--kd-sage); color: var(--kd-ink); --u: 2px; }
.kd-scale__intro { max-width: 46rem; margin: -.6rem auto 1.8rem; text-align: center; font-size: .97rem; }
.kd-scale__wrap { overflow-x: auto; overflow-y: hidden; padding: 0 .2rem 3.6rem; -webkit-overflow-scrolling: touch; }
.kd-scale__stage {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: calc(var(--u) * 190);
    padding: 0 1.4rem;
    border-bottom: 2px solid var(--kd-ink);
    background-image:
        linear-gradient(rgba(46, 39, 35, .17) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 39, 35, .17) 1px, transparent 1px);
    background-size: calc(var(--u) * 10) calc(var(--u) * 10);
    background-position: 0 100%;
}
.kd-scale__item { position: relative; margin: 0; flex: 1 0 auto; min-width: 7.5rem; display: flex; justify-content: center; }
.kd-scale__item img {
    display: block;
    height: calc(var(--h) * var(--u));
    width: auto;
    max-width: none;
    transition: transform .2s ease;
    transform-origin: 50% 100%;
}
.kd-scale__item:hover img { transform: scale(1.04); }
.kd-scale__item figcaption {
    position: absolute;
    top: calc(100% + .55rem);
    left: .2rem;
    right: .2rem;
    text-align: center;
    font-size: .84rem;
    line-height: 1.3;
}
.kd-scale__item figcaption b { display: block; font-weight: 600; }

/* ---------- Внутренние страницы ---------- */
.kd-page { padding: 1rem 0 4rem; }
.kd-crumbs { margin: 0 0 1.8rem; font-size: .88rem; color: var(--kd-muted); }
.kd-crumbs a { color: var(--kd-ink); }
.kd-crumbs__sep { margin: 0 .35rem; color: var(--kd-terra); }
.kd-layout--sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.kd-layout--single { display: block; }
.kd-layout--single > .kd-content { width: 85%; margin-left: auto; margin-right: auto; }
.kd-content { min-width: 0; }
.kd-page__head { margin-bottom: 1.6rem; }
.kd-page__title, .kd-entry__title { margin: 0 0 .6rem; font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.02; }
.kd-page__sub { color: var(--kd-muted); max-width: 40rem; }
.kd-empty { padding: 1.4rem 1.6rem; background: var(--kd-sheet); border: 1px dashed var(--kd-line); }

.kd-entry {
    padding: 2.2rem 2.4rem 2.4rem;
    background: var(--kd-sheet);
    border: 1px solid var(--kd-line);
}
.kd-entry__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0 0 1.4rem; font-size: .88rem; color: var(--kd-muted); }
.kd-entry__cat a { color: var(--kd-terra-dark); }
.kd-entry__cover { margin: 0 0 1.8rem; border: 1px solid var(--kd-line); }
.kd-entry__cover img { display: block; width: 100%; }
.kd-entry__content > *:first-child { margin-top: 0; }
.kd-entry__content h2 { font-size: 2rem; }
.kd-entry__content h3 { font-size: 1.6rem; }
.kd-entry__content h4 { font-size: 1.3rem; }
.kd-entry__content ul, .kd-entry__content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.kd-entry__content ul { list-style: none; padding-left: 1.3rem; }
.kd-entry__content ul > li { position: relative; }
.kd-entry__content ul > li::before {
    content: "";
    position: absolute;
    left: -1.15rem;
    top: .68em;
    width: .45rem;
    height: .45rem;
    background: var(--kd-terra);
}
.kd-entry__content ol > li::marker { color: var(--kd-terra); font-weight: 600; }
.kd-entry__content li { margin-bottom: .35em; }
.kd-entry__content blockquote {
    margin: 1.8rem 0;
    padding: 1.3rem 1.6rem 1.3rem 1.8rem;
    background: rgba(168, 176, 154, .35);
    border-left: 4px solid var(--kd-terra);
    font-family: var(--kd-serif);
    font-size: 1.35rem;
    line-height: 1.35;
}
.kd-entry__content blockquote p:last-child { margin-bottom: 0; }
.kd-entry__content blockquote cite { display: block; margin-top: .6rem; font-family: var(--kd-sans); font-size: .85rem; font-style: normal; color: var(--kd-muted); }
.kd-entry__content img { display: block; }
.kd-entry__content figure { margin: 1.6rem 0; }
.kd-entry__content figcaption { font-size: .85rem; color: var(--kd-muted); margin-top: .5rem; }
.kd-entry__content table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .94rem; border: 1px solid var(--kd-line); }
.kd-entry__content th, .kd-entry__content td { padding: .6rem .8rem; border: 1px solid var(--kd-line); text-align: left; vertical-align: top; }
.kd-entry__content th { background: #E6DCCB; font-weight: 600; }
.kd-entry__content tr:nth-child(even) td { background: rgba(231, 222, 208, .45); }
.kd-entry__content pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--kd-foot); color: var(--kd-light); font-size: .88rem; }
.kd-entry__content code { font-size: .9em; background: rgba(183, 167, 143, .25); padding: .05em .3em; }
.kd-entry__content pre code { background: none; padding: 0; }
.kd-entry__content hr { border: 0; border-top: 1px solid var(--kd-line); margin: 2rem 0; }
.kd-entry__content .wp-block-table { overflow-x: auto; }
.kd-entry__content .alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.kd-entry__content .alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.kd-entry__content .aligncenter { margin-left: auto; margin-right: auto; }
.kd-entry__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.8rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--kd-line); }
.kd-entry__tags a { padding: .15rem .7rem; border: 1px solid var(--kd-line); color: var(--kd-ink); text-decoration: none; font-size: .85rem; }
.kd-entry__tags a:hover { background: var(--kd-ink); color: var(--kd-light); }

.kd-postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin: 2rem 0 0; }
.kd-postnav__link {
    display: block;
    padding: 1rem 1.2rem;
    border: 1px solid var(--kd-line);
    background: rgba(244, 239, 230, .7);
    color: var(--kd-ink);
    text-decoration: none;
    font-family: var(--kd-serif);
    font-size: 1.2rem;
    line-height: 1.2;
}
.kd-postnav__link span { display: block; margin-bottom: .3rem; font-family: var(--kd-sans); font-size: .8rem; color: var(--kd-muted); }
.kd-postnav__link--next { grid-column: 2; text-align: right; }
.kd-postnav__link:hover { border-color: var(--kd-terra); color: var(--kd-terra-dark); }

/* ---------- Пагинация ---------- */
.kd-pager { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 2.6rem 0 0; }
.kd-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: .2rem .8rem;
    border: 1px solid var(--kd-line);
    background: var(--kd-sheet);
    color: var(--kd-ink);
    text-decoration: none;
    font-size: .94rem;
}
.kd-pager a.page-numbers:hover { border-color: var(--kd-terra); background: var(--kd-terra); color: #fff; }
.kd-pager .page-numbers.current { background: var(--kd-ink); border-color: var(--kd-ink); color: var(--kd-light); }
.kd-pager .page-numbers.dots { border: 0; background: none; min-width: 1.2rem; padding: 0; }
.kd-pager--inner { margin-top: 1.6rem; }
.kd-pager--inner > a, .kd-pager--inner > span { display: inline-flex; min-width: 2.2rem; min-height: 2.2rem; align-items: center; justify-content: center; border: 1px solid var(--kd-line); }

/* ---------- Сайдбар ---------- */
.kd-sidebar {
    min-width: 0;
    padding: 1.5rem 1.4rem;
    background: var(--kd-side);
    border: 1px solid var(--kd-line);
    color: var(--kd-ink);
}
.kd-sidebar .kd-widget + .kd-widget { margin-top: 1.8rem; }
.kd-sidebar .kd-widget__title {
    margin: 0 0 .9rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--kd-line);
    font-size: 1.1rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--kd-ink);
}
.kd-sidebar ul { list-style: none; margin: 0; padding: 0; }
.kd-sidebar li { padding: .5rem 0; border-bottom: 1px dashed var(--kd-line); line-height: 1.4; }
.kd-sidebar li:last-child { border-bottom: 0; }
.kd-sidebar a { color: var(--kd-ink); text-decoration-color: var(--kd-line); }
.kd-sidebar a:hover { color: var(--kd-terra-dark); text-decoration-color: var(--kd-terra); }
.kd-sidebar .post-date { display: block; font-size: .8rem; color: var(--kd-muted); }
.kd-sidebar p, .kd-sidebar .textwidget { color: var(--kd-ink); font-size: .94rem; }

/* ---------- Поиск ---------- */
.kd-search { display: flex; gap: .5rem; max-width: 34rem; margin: 1.2rem 0; }
.kd-search__field {
    flex: 1 1 auto;
    min-width: 0;
    padding: .55rem .8rem;
    border: 1px solid var(--kd-line);
    border-radius: 0;
    background: var(--kd-sheet);
    color: var(--kd-ink);
}
.kd-search__field:focus { outline: 2px solid var(--kd-terra); outline-offset: 0; }
.kd-search__btn { flex: 0 0 auto; }
.kd-search-again { margin-bottom: 1.4rem; }

/* ---------- 404 ---------- */
.kd-404 { padding: 1rem 0 2rem; }
.kd-404__code {
    margin: 0;
    font-family: var(--kd-serif);
    font-size: clamp(5rem, 16vw, 9rem);
    font-weight: 700;
    line-height: .9;
    color: var(--kd-terra);
}
.kd-404__home { margin-top: 1.6rem; }

/* ---------- Комментарии ---------- */
.kd-comments { margin-top: 2.6rem; padding: 2rem 2.2rem; background: var(--kd-sheet); border: 1px solid var(--kd-line); }
.kd-comments__title, .kd-comments .comment-reply-title { margin: 0 0 1.2rem; font-size: 1.8rem; }
.kd-comments__list, .kd-comments .children { list-style: none; margin: 0; padding: 0; }
.kd-comments .children { padding-left: 1.6rem; border-left: 1px solid var(--kd-line); }
.kd-comment__body { padding: 1rem 0; border-bottom: 1px dashed var(--kd-line); }
.kd-comment__head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: .5rem; }
.kd-comment__avatar { display: block; border-radius: 0; }
.kd-comment__author { font-weight: 600; }
.kd-comment__date { font-size: .82rem; color: var(--kd-muted); }
.kd-comment__wait { font-size: .88rem; color: var(--kd-terra-dark); }
.kd-comment__reply a { font-size: .86rem; }
.kd-comments .comment-respond { margin-top: 1.6rem; }
.kd-comments label { display: block; margin-bottom: .3rem; font-size: .9rem; font-weight: 500; }
.kd-comments input[type="text"], .kd-comments input[type="email"], .kd-comments input[type="url"], .kd-comments textarea {
    width: 100%;
    padding: .55rem .75rem;
    border: 1px solid var(--kd-line);
    border-radius: 0;
    background: #FBF8F3;
}
.kd-comments .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .5rem; }
.kd-comments .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.kd-form-note { font-size: .86rem; color: var(--kd-muted); }
.kd-req { color: var(--kd-terra-dark); }
.kd-comments .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }

/* ---------- Подвал ---------- */
.kd-footer { background: var(--kd-foot); color: var(--kd-light); padding: 3.2rem 0 1.6rem; }
.kd-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.kd-footer__col { min-width: 0; }
.kd-footer .kd-widget__title { margin: 0 0 .8rem; font-size: 1.55rem; color: #F6EFE4; }
.kd-footer .kd-widget, .kd-footer p, .kd-footer .textwidget { color: #D8CDBD; font-size: .93rem; line-height: 1.6; }
.kd-footer a { color: var(--kd-light); text-decoration-color: rgba(239, 231, 218, .4); }
.kd-footer a:hover { color: var(--kd-mustard); text-decoration-color: var(--kd-mustard); }
.kd-footer ul { list-style: none; margin: 0; padding: 0; }
.kd-footer li { padding: .18rem 0; }
.kd-footer__copy {
    margin: 2.6rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(183, 167, 143, .35);
    text-align: center;
    font-size: .85rem;
    color: #CBBFAE;
}

/* ---------- Cookie-баннер ---------- */
.kd-cookie {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 1rem 1.4rem;
    max-width: 46rem;
    margin: 0 auto;
    padding: 1rem 1.3rem;
    background: var(--kd-foot);
    color: var(--kd-light);
    border: 1px solid var(--kd-line);
}
.kd-cookie__text { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--kd-light); }
.kd-cookie__btn { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .kd-textures__board { grid-template-columns: 3rem minmax(0, 1fr); }
    .kd-swatches { grid-column: 1 / -1; padding-top: .6rem; }
}
@media (max-width: 960px) {
    .kd-header__inner { align-items: center; }
    .kd-nav__toggle { display: inline-flex; }
    .kd-nav__panel {
        display: none;
        position: absolute;
        right: 0;
        top: calc(100% + .6rem);
        z-index: 50;
        min-width: 15rem;
        padding: 1rem 1.2rem .4rem;
        background: var(--kd-sheet);
        border: 1px solid var(--kd-line);
    }
    .kd-nav.is-open .kd-nav__panel { display: block; }
    .kd-brand__spool { width: 52px; height: 52px; }

    .kd-light__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .kd-light__pic { width: 100%; max-width: 34rem; }
    .kd-light__notes { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
    .kd-light__notes li { position: static; transform: none; }
    .kd-light__lead { display: none; }

    .kd-cards--front { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 2rem 1.4rem; }
    .kd-fan__text { position: static; width: auto; margin-bottom: 1.2rem; }
    .kd-colors__foot { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
    .kd-scale { --u: 1.6px; }
    .kd-scale__stage { min-width: 980px; }

    .kd-layout--sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .kd-layout--single > .kd-content { width: 100%; }
    .kd-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .kd-header { padding: 1.4rem 0 1.2rem; }
    .kd-brand { gap: .7rem; }
    .kd-brand__spool { width: 42px; height: 42px; }
    .kd-brand__name { font-size: 1.55rem; }
    .kd-brand__desc { font-size: .88rem; }
    .kd-nav__label { display: none; }
    .kd-header__inner { align-items: flex-start; gap: 1rem; }
    .kd-fan__ray text { display: none; }
    .kd-sec { padding: 2rem 0 2.4rem; }
    .kd-sechead { gap: .8rem; letter-spacing: .14em; }
    .kd-textures__board { grid-template-columns: minmax(0, 1fr); padding: 1.6rem 1.1rem; }
    .kd-textures__side { display: none; }
    .kd-swatches { flex-wrap: wrap; gap: 1.2rem 0; }
    .kd-swatch { flex: 0 0 50%; margin-left: 0; padding: 0 .4rem; }
    .kd-swatch__note { opacity: 1; transform: none; margin-left: .4rem; }
    .kd-light { padding: 2rem 0 2.6rem; }
    .kd-cards--front { grid-template-columns: minmax(0, 1fr); padding: 1.8rem 1rem; }
    .kd-tones { grid-template-columns: minmax(0, 1fr); }
    .kd-scale { --u: 1.25px; }
    .kd-scale__stage { min-width: 820px; padding: 0 .8rem; }
    .kd-scale__item { min-width: 6.5rem; }
    .kd-scale__item figcaption { font-size: .78rem; }
    .kd-entry { padding: 1.4rem 1.1rem 1.6rem; }
    .kd-comments { padding: 1.4rem 1.1rem; }
    .kd-postnav { grid-template-columns: minmax(0, 1fr); }
    .kd-postnav__link--next { grid-column: auto; }
    .kd-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .kd-search { flex-direction: column; }
    .kd-cookie { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem; }
}
