/*
Theme Name: dds_vincerewears.com
Theme URI: https://vincerewears.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: vincer
*/

/* ---------- Шрифты ---------- */
@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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-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; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-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; }

/* ---------- Переменные ---------- */
:root {
    --paper: #E8E2D6;
    --grid: #C9C0AE;
    --linen: #D6CDBC;
    --ink: #1E2A38;
    --ink-2: #243447;
    --text: #2B2B2B;
    --muted: #7A6F5C;
    --chalk: #C63A2E;
    --chalk-dark: #A62D23;
    --green: #3E5C4B;
    --line: #A89B84;
    --sheet: #F0ECE1;
    --card: #EDE7DA;
    --pinhead: #717662;
    --blue-line: #4F86AE;
    --blue-soft: #9CC3DE;
    --on-ink: #EEF2F5;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --f-body: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --f-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--paper);
    background-image:
        linear-gradient(to right, rgba(201, 192, 174, .55) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(201, 192, 174, .55) 1px, transparent 1px),
        linear-gradient(to right, rgba(201, 192, 174, .28) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(201, 192, 174, .28) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 500;
    line-height: 1.15;
    margin: 1.4em 0 .6em;
    color: var(--text);
    letter-spacing: .01em;
}
h1, h2, h3, p, li, td, th, dd, dt, figcaption, blockquote { overflow-wrap: break-word; hyphens: auto; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--chalk); text-decoration-color: var(--chalk); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--chalk); outline-offset: 2px; }
.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 { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--chalk); color: #fff; padding: .6em 1em; }
.skip:focus { left: 1rem; top: 1rem; }

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    padding: .7em 1.3em;
    border: 1px solid var(--chalk);
    border-radius: 0;
    cursor: pointer;
    transition: background-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn--fill { background: var(--chalk); color: #fff; }
.btn--fill:hover { background: var(--chalk-dark); border-color: var(--chalk-dark); color: #fff; transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--text); }
.btn--line { background: transparent; color: var(--chalk); }
.btn--line:hover { background: var(--chalk); color: #fff; }

/* ---------- Шапка ---------- */
.masthead { background: var(--linen); position: relative; }
.masthead__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem 2.5rem;
    padding: 1.8rem 0 1.6rem;
}
.brand { display: flex; align-items: flex-start; gap: 1.1rem; text-decoration: none; color: var(--text); min-width: 0; flex: 1 1 auto; max-width: 640px; }
.brand:hover { color: var(--text); }
.brand__mark { flex: 0 0 64px; }
.brand__mark img, .brand__svg { width: 64px; height: auto; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: clamp(1.45rem, 2.6vw, 2.15rem);
    line-height: 1.12;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.brand__desc { margin-top: .6rem; font-size: .88rem; line-height: 1.55; color: var(--text); max-width: 520px; }
.menu-toggle { display: none; }
.topnav__list { list-style: none; margin: 0; padding: .35rem 0 0; display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; }
.topnav__list a {
    display: inline-block;
    font-size: .92rem;
    text-decoration: none;
    color: var(--text);
    padding: .15rem 0;
    border-bottom: 1px solid transparent;
}
.topnav__list a:hover, .topnav__list .current-menu-item > a { color: var(--chalk); border-bottom-color: var(--chalk); }

/* Миллиметровая полоса-линейка */
.mm-strip {
    height: 14px;
    background-color: var(--linen);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background-image:
        repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(to right, rgba(168, 155, 132, .75) 0 1px, transparent 1px 8px);
    background-size: 100% 100%, 100% 55%;
    background-repeat: no-repeat;
    background-position: 0 0, 0 0;
}

/* ---------- Секции главной ---------- */
.front { display: block; }
.sect { padding: 3.2rem 0 3.6rem; position: relative; }
.sect--ink {
    background-color: var(--ink);
    background-image:
        linear-gradient(to right, rgba(156, 195, 222, .06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(156, 195, 222, .06) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--on-ink);
}
.sect--ink .sect__title, .sect--ink h2, .sect--ink h3 { color: #fff; }
.fold {
    height: 18px;
    background-color: var(--linen);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background-image:
        linear-gradient(to bottom, transparent 8px, rgba(168, 155, 132, .8) 8px 9px, transparent 9px),
        repeating-linear-gradient(to right, rgba(168, 155, 132, .8) 0 1px, transparent 1px 10px);
    background-size: 100% 100%, 100% 6px;
    background-repeat: no-repeat;
    background-position: 0 0, 0 100%;
}

.sect__head { display: flex; align-items: baseline; gap: .7rem; margin: 0 0 2rem; position: relative; padding-bottom: .55rem; }
.sect__head::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(340px, 100%); height: 1px; background: currentColor; opacity: .55; }
.sect__num { font-family: var(--f-head); font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1; color: inherit; }
.sect__num::after { content: "."; }
.sect__title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.sect__head--page { margin-top: .5rem; }

/* Блок 01. Мерки и посадка */
.fit .sect__head { margin-bottom: 4.6rem; }
.fit__sheet {
    position: relative;
    background: var(--sheet);
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 2.2rem 2.4rem 0;
    align-items: start;
}
.fit__tab {
    position: absolute;
    left: 50%;
    bottom: calc(100% - 1px);
    transform: translateX(-50%);
    width: min(400px, 40%);
    height: 60px;
    display: block;
}
.fit__tab path { stroke-linejoin: round; }
.fit__notes { list-style: none; margin: 2.2rem 0 2rem; padding: 0; font-size: .9rem; line-height: 1.6; }
.fit__notes li { position: relative; padding-left: 1.9rem; margin-bottom: 1.15rem; }
.fit__notes li::before {
    content: "";
    position: absolute;
    left: 0; top: .2em;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #E2685C, var(--chalk) 55%, #8E241C);
}
.fit__notes li::after {
    content: "";
    position: absolute;
    left: 9px; top: calc(.2em + 9px);
    width: 1px; height: 13px;
    background: #6E6658;
    transform: rotate(-35deg);
    transform-origin: top;
}
.fit__figure { position: relative; margin: -5.2rem auto 0; width: 100%; max-width: 330px; }
.fit__figure img { width: 100%; height: auto; }
.fit__marks { position: absolute; inset: 0; pointer-events: none; }
.fit__mark {
    position: absolute;
    left: 39.4%;
    top: var(--y);
    transform: translate(-50%, -125%);
    font-size: .82rem;
    line-height: 1;
    background: var(--sheet);
    padding: .1em .35em;
    color: var(--text);
    white-space: nowrap;
}
.fit__mark--v { left: 94%; top: 60%; transform: translate(-50%, -50%) rotate(-90deg); background: transparent; }
.fit__aside { position: relative; align-self: stretch; min-height: 340px; }
.fit__chalk { position: absolute; right: -3.2rem; top: -4.8rem; width: 150px; height: auto; }
.fit__quote {
    position: relative;
    margin: 9.5rem 0 0;
    font-family: var(--f-body);
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    line-height: 1.3;
    text-align: center;
    color: var(--text);
}
.fit__quote::after { content: ""; display: block; width: 70px; height: 3px; background: var(--chalk); margin: .8rem auto 0; }
.fit__tape { position: absolute; right: -3.6rem; bottom: .6rem; width: 220px; height: auto; transform: rotate(-6deg); }
.pin { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #A7AB98, var(--pinhead) 60%, #4E5244); }
.pin::after { content: ""; position: absolute; left: 5px; top: 9px; width: 1px; height: 34px; background: #6E6658; transform-origin: top; }
.pin--a { left: -2.6rem; top: 3rem; }
.pin--a::after { transform: rotate(-35deg); }
.pin--b { right: 1.5rem; top: 55%; }
.pin--b::after { transform: rotate(70deg); height: 26px; }

/* Блок 02. Палитра */
.palette__grid {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) auto minmax(0, 1.25fr);
    gap: 2.2rem;
    align-items: stretch;
}
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 1.1rem; }
.swatch { margin: 0; text-align: center; min-width: 0; }
.swatch img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--blue-line);
    transition: transform .2s, outline-color .2s;
    outline: 1px solid transparent;
    outline-offset: 3px;
}
.swatch:hover img { transform: translateY(-3px); outline-color: var(--blue-soft); }
.swatch__name { display: block; margin-top: .5rem; font-size: .86rem; color: var(--on-ink); }
.tscale {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: auto auto;
    column-gap: .4rem;
    justify-items: start;
    min-height: 260px;
}
.tscale__end { grid-column: 2; font-family: var(--f-mono); font-size: .72rem; color: var(--blue-soft); }
.tscale__rule {
    grid-column: 2;
    width: 24px;
    margin: .4rem 0;
    border-left: 1px solid var(--blue-soft);
    background-image:
        repeating-linear-gradient(to bottom, var(--blue-soft) 0 1px, transparent 1px 12px),
        repeating-linear-gradient(to bottom, var(--blue-soft) 0 1px, transparent 1px 48px),
        linear-gradient(to bottom, #C9734B, #8C8F8F 50%, #4F86AE);
    background-size: 12px 100%, 22px 100%, 4px 100%;
    background-repeat: no-repeat;
    background-position: 0 0, 0 0, 18px 0;
}
.tscale__caption {
    grid-column: 1;
    grid-row: 1 / 4;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    align-self: center;
    font-family: var(--f-mono);
    font-size: .7rem;
    letter-spacing: .08em;
    color: var(--blue-soft);
    text-transform: uppercase;
}
.combos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.combo { margin: 0; display: flex; flex-direction: column; min-width: 0; transition: opacity .2s; }
.combo__bar { flex: 1; display: flex; flex-direction: column; min-height: 260px; border: 1px solid var(--blue-line); padding: 3px; gap: 3px; }
.combo__part { flex: var(--f) 1 0; background: var(--c); position: relative; min-height: 34px; }
.combo__part i {
    position: absolute;
    left: 4px; bottom: 4px;
    font-style: normal;
    font-family: var(--f-mono);
    font-size: .64rem;
    line-height: 1;
    padding: .2em .3em;
    background: rgba(30, 42, 56, .78);
    color: #fff;
}
.combo figcaption { text-align: center; margin-top: .55rem; font-size: .86rem; color: var(--on-ink); }
.combos.is-focus .combo { opacity: .45; }
.combos.is-focus .combo.is-on { opacity: 1; }
.palette__note { margin: 2rem 0 0; max-width: 760px; font-size: .9rem; color: #C5D3DF; padding-left: 1rem; border-left: 2px solid var(--chalk); }

/* Блок 03. Последние записи и карточки */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem 1.8rem; padding-top: 1.2rem; }
.layout-with-sidebar .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    padding: 1.1rem 1.1rem 1.3rem;
    min-width: 0;
    overflow: visible;
    transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--line); }
.card__pin {
    position: absolute;
    top: 0; left: 50%;
    width: 13px; height: 13px;
    margin-left: -6px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #A7AB98, var(--pinhead) 60%, #4E5244);
    z-index: 2;
}
.card__pin::after { content: ""; position: absolute; left: 1px; top: 10px; width: 1px; height: 20px; background: #6E6658; transform: rotate(35deg); transform-origin: top; }
.card-thumb { display: block; overflow: hidden; border: 1px solid rgba(168, 155, 132, .6); }
.card-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform .35s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding-top: .9rem; }
.card__no { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); letter-spacing: .05em; }
.card__title { margin: .25rem 0 .5rem; font-family: var(--f-body); font-weight: 600; font-size: 1.06rem; line-height: 1.35; }
.card__title a { text-decoration: none; color: var(--text); }
.card__title a:hover { color: var(--chalk); }
.card-excerpt { font-size: .86rem; line-height: 1.55; color: #44403A; flex: 1; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card__date { display: block; font-size: .82rem; color: var(--muted); margin: .4rem 0 .9rem; }
.card__btn { align-self: flex-start; font-size: .85rem; padding: .6em 1.1em; }
.cards--three { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; }
.latest__more { margin: 2.2rem 0 0; text-align: center; }
.empty { padding: 1.6rem 1.8rem; background: var(--sheet); border: 1px dashed var(--line); }

/* Блок 04. Разбор по слоям */
.layers__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2.6rem; align-items: start; }
.cut { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 0; align-items: center; }
.cut__shirt { width: 100%; height: auto; }
.cut__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.cut__row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .9rem; align-items: start; }
.cut__label { display: flex; align-items: center; gap: .5rem; height: 36px; font-size: .88rem; white-space: nowrap; margin-left: -3.5rem; }
.cut__label::before { content: ""; flex: 1 1 auto; min-width: 1rem; height: 1px; background: var(--text); opacity: .75; }
.cut__sample { display: block; min-width: 0; }
.cut__sample img { width: 100%; height: 36px; object-fit: cover; border: 1px solid var(--line); display: block; }
.cut__sample small { display: block; font-size: .78rem; color: var(--muted); margin-top: .25rem; line-height: 1.4; }
.rules { list-style: none; counter-reset: rule; margin: 0; padding: 1.2rem 1.4rem 1.2rem 1.6rem; border-left: 1px solid var(--line); }
.rules li { counter-increment: rule; position: relative; padding-left: 2.8rem; margin-bottom: 1.05rem; font-size: .9rem; line-height: 1.55; min-height: 1.9rem; }
.rules li:last-child { margin-bottom: 0; }
.rules li::before {
    content: counter(rule);
    position: absolute;
    left: 0; top: .05rem;
    width: 1.9rem; height: 1.9rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--chalk);
    color: #fff;
    font-family: var(--f-head);
    font-size: .95rem;
}

/* Блок 05. Уход */
.care__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 1.4rem; }
.care__head .sect__head { margin-bottom: 0; }
.care__motto { margin: 0; font-family: var(--f-body); font-size: clamp(1.2rem, 2.2vw, 1.75rem); line-height: 1.2; color: #E8584B; }
.care__line { font-family: var(--f-mono); font-size: .82rem; color: var(--blue-soft); margin: 0 0 .8rem; }
.care__wrap { overflow-x: auto; }
.care__table { width: 100%; border-collapse: collapse; border: 1px solid var(--blue-line); font-size: .86rem; line-height: 1.5; }
.care__table th, .care__table td { border: 1px solid var(--blue-line); padding: .7rem .9rem; text-align: left; vertical-align: top; color: var(--on-ink); }
.care__table thead th { font-weight: 400; color: var(--blue-soft); text-align: center; font-size: .84rem; background: rgba(79, 134, 174, .08); }
.care__table tbody th { font-weight: 600; white-space: nowrap; }
.care__fabric { display: inline-flex; align-items: center; gap: .65rem; }
.care__fabric img { width: 30px; height: 30px; object-fit: cover; border: 1px solid var(--blue-soft); }
.care__table tbody tr:hover td, .care__table tbody tr:hover th { background: rgba(156, 195, 222, .07); }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 1.6rem 0 3.6rem; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 1.6rem; font-family: var(--f-mono); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--chalk); }
.crumbs__sep { margin: 0 .25rem; color: var(--chalk); }
.crumbs span:last-child { color: var(--text); }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); gap: 6%; align-items: start; }
.layout-single { display: block; width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }
.sheet { background: var(--sheet); border: 1px solid var(--line); padding: 2.2rem 2.4rem; position: relative; }
.entry__head { margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.entry__cat { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--chalk); text-decoration: none; }
.entry__title { margin: .3rem 0 .4rem; font-size: clamp(1.7rem, 3.4vw, 2.6rem); text-transform: uppercase; line-height: 1.1; }
.entry__meta { margin: 0; font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.entry__thumb { margin: 0 0 1.6rem; border: 1px solid var(--line); }
.entry__thumb img { width: 100%; height: auto; }
.entry__content { font-size: 1rem; }
.entry__content > *:first-child { margin-top: 0; }
.entry__content h2 { font-size: 1.6rem; text-transform: uppercase; padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
.entry__content h3 { font-size: 1.3rem; }
.entry__content ul, .entry__content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry__content li { margin-bottom: .35em; }
.entry__content ul li::marker { color: var(--chalk); }
.entry__content blockquote { margin: 1.6em 0; padding: 1.1rem 1.4rem; background: var(--linen); border-left: 4px solid var(--chalk); font-size: 1.05rem; }
.entry__content blockquote p:last-child { margin-bottom: 0; }
.entry__content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .92rem; border: 1px solid var(--line); }
.entry__content th, .entry__content td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; }
.entry__content th { background: var(--linen); font-weight: 600; }
.entry__content img { max-width: 100%; height: auto; }
.entry__content figure { margin: 1.4em 0; }
.entry__content figcaption { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.entry__content pre { overflow-x: auto; background: var(--ink); color: var(--on-ink); padding: 1rem 1.2rem; font-family: var(--f-mono); font-size: .86rem; }
.entry__content code { font-family: var(--f-mono); font-size: .9em; }
.entry__content a { color: var(--chalk-dark); }
.entry__tags { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.entry__tags a { font-family: var(--f-mono); font-size: .78rem; text-decoration: none; padding: .25em .6em; border: 1px solid var(--line); }
.entry__tags a:hover { border-color: var(--chalk); }
.entry-intro { margin-bottom: 1.6rem; }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.8rem 0; }
.post-nav__link { display: block; padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.4; }
.post-nav__link small { display: block; font-weight: 400; color: var(--muted); font-family: var(--f-mono); font-size: .72rem; margin-bottom: .3rem; }
.post-nav__link--next { grid-column: 2; text-align: right; }
.post-nav__link:hover { border-color: var(--chalk); }

/* Пагинация (type => plain) */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; margin: 2.6rem 0 0; align-items: center; }
.pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.5rem; height: 2.5rem; padding: 0 .8rem;
    border: 1px solid var(--line); background: var(--sheet);
    font-family: var(--f-head); font-size: .95rem; text-decoration: none; color: var(--text);
}
.pager a.page-numbers:hover { border-color: var(--chalk); color: var(--chalk); }
.pager .page-numbers.current { background: var(--chalk); border-color: var(--chalk); color: #fff; }
.pager .page-numbers.dots { border: 0; background: none; min-width: 1.4rem; padding: 0; }
.pager--inner { margin-top: 1.6rem; }
.pager--inner .post-page-numbers { display: inline-flex; min-width: 2.2rem; height: 2.2rem; align-items: center; justify-content: center; border: 1px solid var(--line); text-decoration: none; }
.pager--inner .post-page-numbers.current { background: var(--chalk); color: #fff; border-color: var(--chalk); }

/* Сайдбар */
.sidebar { background: var(--linen); border: 1px solid var(--line); padding: 1.6rem 1.5rem; color: var(--text); min-width: 0; }
.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title { margin: 0 0 .9rem; font-size: 1.15rem; text-transform: uppercase; color: var(--text); padding-bottom: .35rem; border-bottom: 1px solid var(--line); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .5rem 0 .5rem 1rem; border-bottom: 1px dashed var(--line); position: relative; font-size: .9rem; line-height: 1.45; color: var(--text); }
.sidebar li::before { content: ""; position: absolute; left: 0; top: 1rem; width: 6px; height: 6px; background: var(--chalk); }
.sidebar a { color: var(--text); text-decoration: none; }
.sidebar a:hover { color: var(--chalk); }
.sidebar .post-date { display: block; font-size: .76rem; color: var(--muted); }
.sidebar p, .sidebar .textwidget { font-size: .9rem; color: var(--text); }

/* Поиск */
.search-form { display: flex; gap: .5rem; margin: 1rem 0 1.4rem; max-width: 520px; }
.search-form__field { flex: 1; min-width: 0; padding: .7rem .9rem; border: 1px solid var(--line); background: #FBF9F4; font: inherit; color: var(--text); border-radius: 0; }
.search-form__btn { flex: 0 0 auto; }

/* 404 */
.lost { text-align: left; }
.lost__code { font-family: var(--f-head); font-size: clamp(5rem, 16vw, 9rem); line-height: .9; margin: 0 0 .4rem; color: var(--chalk); letter-spacing: .02em; }

/* Комментарии */
.comments { margin-top: 2rem; }
.comments__title { margin-top: 0; text-transform: uppercase; font-size: 1.4rem; }
.comments__list, .comments__list .children { list-style: none; margin: 0; padding: 0; }
.comments__list .children { padding-left: 1.6rem; border-left: 1px dashed var(--line); }
.note__body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.note__meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.note__meta img { border-radius: 0; border: 1px solid var(--line); }
.note__meta time { font-size: .78rem; color: var(--muted); }
.note__text { margin-top: .5rem; font-size: .94rem; }
.note__wait { font-size: .82rem; color: var(--chalk); margin: .4rem 0 0; }
.note__reply a { font-family: var(--f-mono); font-size: .78rem; color: var(--chalk); }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { font-size: 1.3rem; text-transform: uppercase; margin-top: 0; }
.comment-form label { display: block; font-size: .85rem; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); background: #FBF9F4; font: inherit; color: var(--text); border-radius: 0;
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; }
.comment-form .submit { background: var(--chalk); color: #fff; border: 1px solid var(--chalk); padding: .75em 1.4em; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; border-radius: 0; }
.comment-form .submit:hover { background: var(--chalk-dark); }

/* ---------- Подвал ---------- */
.colophon { background: var(--linen); color: var(--text); padding: 2.6rem 0 1.4rem; }
.colophon__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.colophon__col { min-width: 0; }
.colophon .widget { margin-bottom: 1rem; color: var(--text); font-size: .88rem; line-height: 1.6; }
.colophon .widget-title { margin: 0 0 .7rem; font-size: 1.05rem; text-transform: uppercase; color: var(--text); }
.colophon .widget p, .colophon .textwidget { color: var(--text); }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: .3rem; }
.colophon a { color: var(--text); text-decoration: underline; text-decoration-color: var(--muted); }
.colophon a:hover { color: var(--chalk); text-decoration-color: var(--chalk); }
.colophon__copy { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; font-size: .82rem; color: var(--text); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 1rem 1.6rem;
    max-width: 980px;
    margin: 0 auto;
    padding: 1rem 1.4rem;
    background: var(--ink);
    color: var(--on-ink);
    border: 1px solid var(--blue-line);
    box-shadow: 4px 4px 0 var(--chalk);
}
.cookie-banner__text { margin: 0; font-size: .86rem; line-height: 1.5; flex: 1; min-width: 0; color: var(--on-ink); }
.cookie-banner__btn { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .masthead__row { flex-wrap: wrap; }
    .shell--front { width: 92%; }
    .fit__sheet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 2rem 1.8rem 0; }
    .fit__figure { grid-column: 2; grid-row: 1 / 3; }
    .fit__notes { grid-column: 1; grid-row: 1; margin-top: 1rem; }
    .fit__aside { grid-column: 1; grid-row: 2; min-height: 220px; }
    .fit__quote { margin-top: 1rem; text-align: left; }
    .fit__quote::after { margin-left: 0; }
    .fit__chalk { display: none; }
    .fit__tab { left: 75%; }
    .fit__tape { right: auto; left: 0; bottom: 1rem; width: 180px; }
    .palette__grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
    .swatches { grid-column: 1 / -1; }
    .tscale { min-height: 220px; }
    .combos { grid-column: 2 / 4; }
    .combo__bar { min-height: 220px; }
    .cards, .layout-with-sidebar .cards, .cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; }
    .layers__grid { grid-template-columns: minmax(0, 1fr); }
    .rules { border-left: 0; border-top: 1px solid var(--line); padding: 1.4rem 0 0; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .layout-single { width: 100%; }
}

@media (max-width: 600px) {
    body { font-size: 15px; }
    .masthead__row { padding: 1.2rem 0; gap: 1rem; }
    .brand__mark { flex-basis: 46px; }
    .brand__mark img, .brand__svg { width: 46px; }
    .brand__desc { font-size: .8rem; }
    .menu-toggle {
        display: inline-flex; align-items: center; gap: .55rem;
        background: transparent; border: 1px solid var(--text); color: var(--text);
        font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem;
        padding: .45rem .8rem; cursor: pointer; border-radius: 0;
    }
    .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; 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; }
    .topnav { display: none; width: 100%; }
    .topnav.is-open { display: block; }
    .topnav__list { flex-direction: column; gap: 0; padding: 0; border-top: 1px solid var(--line); }
    .topnav__list a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
    .sect { padding: 2.4rem 0 2.8rem; }
    .fit .sect__head { margin-bottom: 1.6rem; }
    .fit__sheet { grid-template-columns: minmax(0, 1fr); padding: 1.6rem 1.3rem 0; }
    .fit__tab { display: none; }
    .fit__figure, .fit__notes, .fit__aside { grid-column: 1; grid-row: auto; }
    .fit__figure { margin: 0 auto; max-width: 260px; }
    .fit__aside { min-height: 160px; }
    .fit__tape { width: 150px; left: auto; right: -1rem; bottom: .2rem; }
    .pin--a { display: none; }
    .palette__grid { grid-template-columns: minmax(0, 1fr); }
    .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tscale { grid-column: 1; grid-template-rows: none; grid-template-columns: auto 1fr auto; min-height: 0; align-items: center; gap: .5rem; }
    .tscale__end, .tscale__rule, .tscale__caption { grid-column: auto; grid-row: auto; }
    .tscale__caption { grid-column: 1 / -1; writing-mode: horizontal-tb; transform: none; order: -1; }
    .tscale__rule {
        width: 100%; height: 24px; margin: 0; border-left: 0; border-top: 1px solid var(--blue-soft);
        background-image:
            repeating-linear-gradient(to right, var(--blue-soft) 0 1px, transparent 1px 12px),
            linear-gradient(to right, #C9734B, #8C8F8F 50%, #4F86AE);
        background-size: 100% 10px, 100% 4px;
        background-position: 0 0, 0 18px;
    }
    .combos { grid-column: 1; }
    .combo__bar { min-height: 190px; }
    .cards, .layout-with-sidebar .cards, .cards--three { grid-template-columns: minmax(0, 1fr); }
    .cut { grid-template-columns: minmax(0, 1fr); }
    .cut__shirt { max-width: 170px; margin: 0 auto 1rem; }
    .cut__row { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
    .cut__label { margin-left: 0; height: auto; }
    .cut__label::before { display: none; }
    .care__table thead { display: none; }
    .care__table, .care__table tbody, .care__table tr, .care__table th, .care__table td { display: block; width: 100%; }
    .care__table tr { border-bottom: 2px solid var(--blue-line); }
    .care__table td::before { content: attr(data-label); display: block; font-family: var(--f-mono); font-size: .72rem; color: var(--blue-soft); }
    .sheet { padding: 1.5rem 1.3rem; }
    .colophon__cols { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav__link--next { grid-column: 1; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem; }
    .search-form { flex-direction: column; }
}
