/*
Theme Name: dds_tangemancustomcabinets.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: tgcab
*/

/* ---------- Шрифты ---------- */
@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+2074, 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+2074, 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+2074, 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+2074, 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: italic; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-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: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, 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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
    --paper: #E8E2D6;
    --grid: #C9C2B4;
    --ink: #22201C;
    --muted: #7A7264;
    --accent: #C4501E;
    --felt: #3E5C4B;
    --board: #2B2B28;
    --board-text: #EDE7D9;
    --bench: #24352C;
    --sheet: #F3EEE4;
    --sheet-line: #B9B1A1;
    --aside: #DDD5C4;
    --head: "Oswald", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
    --noise: 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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .22 0 0 0 -.06'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: .015em;
    background-color: var(--paper);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='420'%3E%3Cg fill='none' stroke='%237A7264' stroke-linecap='round' opacity='.22'%3E%3Cpath d='M18 40 C120 30 210 52 330 36' stroke-width='1.4'/%3E%3Cpath d='M40 70 L170 64' stroke-width='.9'/%3E%3Cpath d='M560 20 L600 120 M578 18 L622 110' stroke-width='1.1'/%3E%3Cpath d='M480 300 C520 330 560 340 620 330' stroke-width='1'/%3E%3Cpath d='M30 360 L120 300' stroke-width='.8'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(to right, rgba(201, 194, 180, .7) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(201, 194, 180, .7) 1px, transparent 1px);
    background-size: 640px 420px, 24px 24px, 24px 24px;
    background-position: 0 0, -1px -1px, -1px -1px;
}

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

p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--head);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: .02em;
    margin: 0 0 .6em;
    overflow-wrap: break-word;
    hyphens: auto;
}

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

p, li, dd, td, th, figcaption, .card-body, .widget { overflow-wrap: break-word; hyphens: auto; }

.sr-only {
    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;
    background: var(--ink);
    color: var(--paper);
    padding: .6rem 1rem;
    font-family: var(--head);
    text-transform: uppercase;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

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

/* ---------- Размерная линия с засечками ---------- */
.dim-rule {
    display: block;
    position: relative;
    height: 1px;
    background: var(--accent);
}
.dim-rule::before, .dim-rule::after {
    content: "";
    position: absolute;
    top: -5px;
    width: 1px;
    height: 11px;
    background: var(--accent);
}
.dim-rule::before { left: 0; }
.dim-rule::after { right: 0; }

/* ---------- Кнопка-штамп ---------- */
.stamp-btn {
    display: inline-block;
    font-family: var(--head);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    border: 1.5px solid currentColor;
    outline: 1px solid currentColor;
    outline-offset: -5px;
    padding: .6rem 1.05rem;
    background: transparent;
    cursor: pointer;
    transition: transform .12s ease, background-color .12s ease, color .12s ease, box-shadow .12s ease;
}
.stamp-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    outline-color: rgba(255, 255, 255, .7);
    color: #fff;
    transform: translate(2px, -2px);
    box-shadow: -3px 3px 0 var(--ink);
}
.stamp-btn:focus-visible { outline: 2px dashed var(--accent); outline-offset: 3px; }

/* ---------- Шапка ---------- */
.masthead { padding: 1.8rem 0 0; }

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-logo { display: block; width: 56px; height: 56px; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-name {
    font-family: var(--head);
    font-weight: 500;
    font-size: clamp(1.25rem, 4.6vw, 2.5rem);
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0 0 .35rem;
}
.brand-name a { text-decoration: none; }
.brand-name a:hover { color: var(--ink); }
.brand-desc {
    margin: 0;
    font-size: .86rem;
    line-height: 1.5;
    color: #4A453D;
    max-width: 64ch;
}

.topnav {
    position: relative;
    margin-top: 1.4rem;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}
.topnav::before, .topnav::after {
    content: "";
    position: absolute;
    top: -6px;
    bottom: -6px;
    width: 1px;
    background: var(--ink);
}
.topnav::before { left: 0; }
.topnav::after { right: 0; }

.topnav-toggle {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .7rem .4rem;
    background: none;
    border: 0;
    color: var(--ink);
    font-family: var(--head);
    font-size: .95rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
}
.topnav-bars, .topnav-bars::before, .topnav-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    position: relative;
}
.topnav-bars::before, .topnav-bars::after { content: ""; position: absolute; left: 0; }
.topnav-bars::before { top: -6px; }
.topnav-bars::after { top: 6px; }

.topnav-list {
    list-style: none;
    margin: 0;
    padding: 0 0 .6rem;
    display: none;
}
.topnav-list.is-open { display: block; }
.topnav-list li { border-top: 1px dashed var(--grid); }
.topnav-list a {
    display: block;
    padding: .6rem .4rem;
    font-family: var(--head);
    font-size: .98rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
}
.topnav-list .current-menu-item > a,
.topnav-list a:hover { color: var(--accent); }

/* ---------- Заголовки секций ---------- */
.sec-head {
    position: relative;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .2rem .6rem;
    padding-bottom: .7rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--ink);
}
.sec-head::before, .sec-head::after {
    content: "";
    position: absolute;
    bottom: -6px;
    width: 1px;
    height: 11px;
    background: var(--ink);
}
.sec-head::before { left: 0; }
.sec-head::after { right: 0; }
.sec-num {
    font-family: var(--head);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
    color: var(--accent);
}
.sec-title {
    font-size: clamp(1.6rem, 4.4vw, 3.1rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.05;
    margin: 0;
    min-width: 0;
}

.front-block { padding: 2.6rem 0; }

/* ---------- Блок 1: спецификация ---------- */
.spec-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
    align-items: center;
}

.spec-drawing {
    position: relative;
    margin: 0;
    container-type: inline-size;
    min-width: 0;
}
.spec-drawing img { display: block; width: 100%; height: auto; }
.dim {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: var(--head);
    font-size: 10px;
    font-size: max(9px, 1.75cqw);
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1;
    color: var(--accent);
    background: var(--paper);
    padding: 1px 3px;
    white-space: nowrap;
}
.dim-v { transform: translate(-50%, -50%) rotate(-90deg); }

.callouts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}
.callouts li {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: .9rem;
    align-items: baseline;
    padding-left: 2.1rem;
}
.callouts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 1.5rem;
    height: 1px;
    background: var(--accent);
}
.callouts li::after {
    content: "";
    position: absolute;
    left: 1.15rem;
    top: calc(1.05rem - 4px);
    border-left: 7px solid var(--accent);
    border-top: 4.5px solid transparent;
    border-bottom: 4.5px solid transparent;
}
.callout-num {
    grid-row: span 2;
    font-family: var(--head);
    font-weight: 400;
    font-size: 2.1rem;
    line-height: 1;
    color: var(--accent);
}
.callout-name {
    font-family: var(--head);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: .03em;
}
.callout-note { font-size: .82rem; line-height: 1.45; color: var(--muted); }

.spec-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    align-items: end;
    margin-top: 1.6rem;
}
.spec-foot .dim-rule { background: var(--ink); }
.spec-foot .dim-rule::before, .spec-foot .dim-rule::after { background: var(--ink); }

.samples {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.4rem 1.2rem 1rem;
    background: #F6F3EC;
    border: 1px solid #DCD5C6;
    box-shadow: 0 10px 18px -8px rgba(34, 32, 28, .35);
}
.sample {
    position: relative;
    margin: 0;
    flex: 1 1 0;
    min-width: 0;
    max-width: 120px;
    text-align: center;
}
.sample::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #9FB3C4, #4F6B85 70%);
    box-shadow: 1px 3px 4px rgba(0, 0, 0, .35);
    z-index: 1;
}
.sample:nth-child(2)::before, .sample:nth-child(3)::before { background: radial-gradient(circle at 35% 35%, #B5AC9A, #7A705E 70%); }
.sample img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
}
.sample figcaption {
    margin-top: .55rem;
    font-family: var(--head);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- Блок 2: вопросы перед замером ---------- */
.measure-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
    align-items: center;
}
.measure-head { min-width: 0; }
.measure-num {
    display: block;
    font-family: var(--head);
    font-weight: 400;
    font-size: clamp(3.4rem, 9vw, 5.6rem);
    line-height: .95;
    color: var(--accent);
}
.measure-title {
    font-size: clamp(1.7rem, 4.2vw, 2.6rem);
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.08;
    margin: .4rem 0 1rem;
}

.tech-list {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 2.1rem;
    border-left: 1px solid var(--ink);
    min-width: 0;
}
.tech-list li {
    position: relative;
    padding: .45rem 0 .45rem .6rem;
    font-size: .95rem;
    line-height: 1.45;
}
.tech-list li::before {
    content: "";
    position: absolute;
    left: -2.1rem;
    top: 1.12em;
    width: 1.35rem;
    height: 1px;
    background: var(--ink);
}
.tech-list li::after {
    content: "";
    position: absolute;
    left: -.78rem;
    top: calc(1.12em - 4px);
    width: 9px;
    height: 9px;
    border: 1px solid var(--ink);
    background: var(--paper);
}
.measure-art { min-width: 0; }
.measure-art img { display: block; width: 100%; max-width: 360px; margin-inline: auto; }

/* ---------- Последние записи: грифельная доска ---------- */
.board {
    color: var(--board-text);
    background-color: var(--board);
    background-image:
        var(--noise),
        radial-gradient(ellipse 40% 60% at 15% 30%, rgba(237, 231, 217, .06), transparent 70%),
        radial-gradient(ellipse 35% 50% at 80% 70%, rgba(237, 231, 217, .05), transparent 70%);
    padding: 3.2rem 0 3.6rem;
}
.board-head {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .6rem 1.4rem;
    padding-bottom: .6rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(237, 231, 217, .55);
}
.board-head::before, .board-head::after {
    content: "";
    position: absolute;
    bottom: -6px;
    width: 1px;
    height: 11px;
    background: rgba(237, 231, 217, .55);
}
.board-head::before { left: 0; }
.board-head::after { right: 0; }
.board-title {
    margin: 0;
    font-size: clamp(1.5rem, 3.6vw, 2.2rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.board-all { font-size: .88rem; color: var(--board-text); }
.board-all:hover { color: #F08A5D; }
.board .empty-note { color: var(--board-text); }

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

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 1rem 1rem 1.2rem;
    border: 1px solid var(--sheet-line);
    background: var(--sheet);
    transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translate(2px, -3px); box-shadow: -4px 4px 0 rgba(34, 32, 28, .85); }

.card-pos {
    position: absolute;
    top: .3rem;
    right: .55rem;
    z-index: 2;
    font-family: var(--head);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.card-photo {
    position: relative;
    padding: 9px;
    margin-top: .7rem;
    background: repeating-linear-gradient(45deg, rgba(34, 32, 28, .28) 0 1px, transparent 1px 6px);
}
.card-photo a { display: block; position: relative; }
.card-photo a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 26px;
    height: 26px;
    background: linear-gradient(to top left, transparent 50%, #F7F4EE 50%);
    filter: drop-shadow(-2px -2px 2px rgba(0, 0, 0, .25));
}
.card-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: .9rem;
}
.card-date {
    font-family: var(--head);
    font-size: .8rem;
    letter-spacing: .1em;
    color: var(--muted);
}
.card-title {
    font-size: 1.28rem;
    font-weight: 500;
    line-height: 1.2;
    margin: .25rem 0 .55rem;
}
.card-title a { text-decoration: none; }
.card-excerpt { font-size: .9rem; line-height: 1.55; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin-top: auto; align-self: flex-start; }

.cards-board .card {
    background: rgba(237, 231, 217, .025);
    border-color: rgba(237, 231, 217, .42);
    color: var(--board-text);
}
.cards-board .card:hover { box-shadow: -4px 4px 0 var(--accent); }
.cards-board .card-pos, .cards-board .card-date { color: #B8B09F; }
.cards-board .card-title a { color: var(--board-text); }
.cards-board .card-title a:hover { color: #F08A5D; }
.cards-board .card-photo { background: repeating-linear-gradient(45deg, rgba(237, 231, 217, .3) 0 1px, transparent 1px 6px); }
.cards-board .card-photo a::after { background: linear-gradient(to top left, transparent 50%, #D9D2C2 50%); }
.cards-board .card-excerpt { color: #D8D1C1; }
.cards-board .card-excerpt a { color: var(--board-text); }

/* ---------- Блоки 3 и 4 ---------- */
.duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
    padding: 3rem 0 3.4rem;
}
.duo .front-block { padding: 0; min-width: 0; }

.duo .wear {
    color: #F2EEE4;
    background-color: var(--felt);
    background-image: var(--noise), radial-gradient(ellipse 70% 80% at 30% 30%, rgba(255, 255, 255, .05), transparent 70%);
    padding: 2rem 1.5rem 1.8rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 24px -14px rgba(0, 0, 0, .5);
}
.sec-head-light { border-bottom-color: rgba(242, 238, 228, .7); }
.sec-head-light::before, .sec-head-light::after { background: rgba(242, 238, 228, .7); }
.wear .sec-num { color: #E0773F; }
.wear .sec-title { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }

.wear-axis {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-family: var(--head);
    font-size: .9rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.wear-arrow { position: relative; flex: 1; height: 1px; background: #E0773F; }
.wear-arrow::after {
    content: "";
    position: absolute;
    right: -1px;
    top: -4px;
    border-left: 9px solid #E0773F;
    border-top: 4.5px solid transparent;
    border-bottom: 4.5px solid transparent;
}
.wear-ruler {
    height: 16px;
    margin: .9rem 0 1.1rem;
    border-bottom: 1.5px solid #F2EEE4;
    border-right: 1.5px solid #F2EEE4;
    background-image:
        repeating-linear-gradient(90deg, #F2EEE4 0 1.5px, transparent 1.5px 25%),
        repeating-linear-gradient(90deg, rgba(242, 238, 228, .65) 0 1px, transparent 1px 6.25%);
    background-size: 100% 100%, 100% 45%;
    background-position: 0 0, 0 100%;
    background-repeat: no-repeat;
}
.wear-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .5rem;
    text-align: center;
}
.wear-steps li { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.wear-steps svg { width: 44px; height: 44px; display: block; color: #F2EEE4; margin-bottom: .45rem; }
.wear-label {
    font-family: var(--head);
    font-size: .86rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.wear-note { font-size: .72rem; line-height: 1.35; color: #CFD9D1; }
.wear-tip {
    margin: 1.4rem 0 0;
    text-align: center;
    font-size: .88rem;
    color: #E7EDE8;
}

.duo .layers { position: relative; padding-left: 1.4rem; border-left: 1px solid var(--accent); }
.layers .sec-title { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.layer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.layer {
    margin: 0;
    padding: 0 .7rem;
    text-align: center;
    min-width: 0;
}
.layer + .layer { border-left: 1px solid var(--muted); }
.layer-thick {
    display: block;
    font-family: var(--head);
    font-size: .74rem;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: .5rem;
}
.layer-slab {
    position: relative;
    width: 62%;
    margin: 0 auto 4px;
    box-shadow: 4px 0 0 #D4C6A8, 7px 0 0 #A99877, 0 6px 10px -6px rgba(0, 0, 0, .45);
}
.layer-slab::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 4px;
    background: rgba(255, 255, 255, .35);
}
.layer-slab img { display: block; width: 100%; aspect-ratio: 6 / 11; object-fit: cover; }
.layer figcaption { margin-top: .8rem; }
.layer figcaption strong {
    display: block;
    font-family: var(--head);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.layer figcaption span { display: block; font-size: .76rem; line-height: 1.4; color: #5A5347; margin-top: .25rem; }
.layers-tip { margin: 1.3rem 0 0; text-align: center; font-size: .88rem; }

/* ---------- Внутренние страницы ---------- */
.inner-page { padding: 1.4rem 0 3.4rem; }

.crumbs {
    font-size: .8rem;
    letter-spacing: .04em;
    color: var(--muted);
    margin-bottom: 1.4rem;
    padding-bottom: .5rem;
    border-bottom: 1px dashed var(--grid);
}
.crumbs a { color: var(--ink); }
.crumbs a:hover { color: var(--accent); }
.crumbs-sep { color: var(--accent); margin: 0 .2rem; }
.crumbs [aria-current] { color: #4A453D; }

.layout-single { display: block; }
.layout-with-sidebar { display: block; }
.content-area { min-width: 0; }

.page-head { margin-bottom: 1.6rem; }
.page-title {
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0 0 .4rem;
}
.page-lead { color: #4A453D; max-width: 70ch; }

.sheet {
    position: relative;
    background: var(--sheet);
    border: 1px solid var(--sheet-line);
    padding: 1.4rem 1.2rem;
    box-shadow: 0 1px 0 rgba(34, 32, 28, .06);
}
.sheet::before {
    content: "";
    position: absolute;
    left: -1px;
    top: -1px;
    width: 34px;
    height: 34px;
    border-left: 3px solid var(--accent);
    border-top: 3px solid var(--accent);
    pointer-events: none;
}

.entry-head { margin-bottom: 1.2rem; padding-bottom: .9rem; border-bottom: 1px solid var(--sheet-line); }
.entry-title { font-size: clamp(1.6rem, 3.6vw, 2.5rem); margin: 0 0 .5rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-family: var(--head); font-size: .82rem; letter-spacing: .08em; color: var(--muted); }
.entry-cats a { color: var(--accent); margin-right: .5rem; }
.entry-cover { margin: 0 0 1.4rem; }
.entry-cover img { display: block; width: 100%; height: auto; }

.entry-content { font-size: 1rem; line-height: 1.75; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 {
    font-size: 1.6rem;
    margin: 1.8em 0 .7em;
    padding-bottom: .35rem;
    border-bottom: 1px solid var(--grid);
}
.entry-content h3 { font-size: 1.3rem; margin: 1.5em 0 .6em; }
.entry-content h4 { font-size: 1.1rem; margin: 1.3em 0 .5em; }
.entry-content a { color: var(--accent); }
.entry-content a:hover { color: var(--ink); }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4rem; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul { list-style: square; }
.entry-content li::marker { color: var(--accent); }
.entry-content ol li::marker { font-family: var(--head); font-weight: 500; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1rem 1.3rem;
    border-left: 3px solid var(--accent);
    background: rgba(232, 226, 214, .8);
    font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { display: block; max-width: 100%; height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.entry-content pre { overflow-x: auto; padding: 1rem; background: #EAE4D7; border: 1px solid var(--sheet-line); font-size: .88rem; }
.entry-content table, .comments table, .widget table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: .92rem;
    border: 1px solid var(--ink);
}
.entry-content th, .entry-content td, .widget th, .widget td {
    border: 1px solid var(--ink);
    padding: .5rem .7rem;
    text-align: left;
    vertical-align: top;
}
.entry-content th { font-family: var(--head); font-weight: 500; letter-spacing: .04em; background: #E5DECF; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-tags { margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; }
.entry-tags a { text-decoration: none; border: 1px solid var(--sheet-line); padding: .15rem .55rem; }
.entry-tags a:hover { border-color: var(--accent); }
.page-links { margin-top: 1.2rem; font-family: var(--head); }

.post-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin: 1.6rem 0;
}
.post-nav a {
    display: block;
    padding: .9rem 1.1rem;
    border: 1px solid var(--ink);
    text-decoration: none;
    background: rgba(243, 238, 228, .7);
    font-family: var(--head);
    font-size: 1.02rem;
    line-height: 1.3;
}
.post-nav a span { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.post-nav a:hover { border-color: var(--accent); }
.post-nav-next { text-align: right; }

.cards-paper { grid-template-columns: minmax(0, 1fr); }

.empty-note { font-size: 1rem; }
.empty-sheet .search-form { margin-top: 1rem; }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-top: 2.2rem;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 2.5rem;
    padding: .45rem .75rem;
    text-align: center;
    font-family: var(--head);
    font-size: .95rem;
    letter-spacing: .05em;
    text-decoration: none;
    border: 1px solid var(--ink);
    background: rgba(243, 238, 228, .8);
    color: var(--ink);
}
.pager a.page-numbers:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .page-numbers.current { background: var(--ink); color: var(--paper); }
.pager .page-numbers.dots { border: 0; background: none; min-width: 0; padding-inline: .2rem; }

/* ---------- Сайдбар ---------- */
.sidebar {
    margin-top: 2.2rem;
    padding: 1.4rem 1.3rem;
    background: var(--aside);
    border: 1px solid var(--sheet-line);
    color: var(--ink);
    align-self: start;
}
.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink);
    padding-bottom: .4rem;
    margin-bottom: .8rem;
    border-bottom: 1px solid var(--ink);
}
.sidebar a { color: var(--ink); }
.sidebar a:hover { color: var(--accent); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li {
    position: relative;
    padding: .45rem 0 .45rem 1.1rem;
    border-bottom: 1px dashed var(--sheet-line);
    font-size: .92rem;
    line-height: 1.45;
}
.sidebar li:last-child { border-bottom: 0; }
.sidebar li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .95em;
    width: 6px;
    height: 6px;
    background: var(--accent);
}
.sidebar .post-date { display: block; font-size: .78rem; color: #5A5347; }
.sidebar p { color: var(--ink); }

/* ---------- Подвал ---------- */
.sitefoot {
    color: #E7E2D4;
    background-color: var(--bench);
    background-image: var(--noise);
    padding: 3rem 0 1.6rem;
}
.sitefoot-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}
.sitefoot-col { min-width: 0; }
.sitefoot .widget-title {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #F2EEE4;
    margin-bottom: .8rem;
}
.sitefoot .widget, .sitefoot .widget p, .sitefoot .textwidget { color: #D9D4C5; font-size: .88rem; line-height: 1.6; }
.sitefoot a { color: #F2EEE4; }
.sitefoot a:hover { color: #F08A5D; }
.sitefoot ul { list-style: none; margin: 0; padding: 0; }
.sitefoot li { padding: .18rem 0; font-size: .9rem; }
.sitefoot .post-date { color: #B9C4BB; font-size: .78rem; }
.copyright {
    position: relative;
    margin: 2.4rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(231, 226, 212, .35);
    font-size: .8rem;
    letter-spacing: .03em;
    color: #CFCAB9;
}

/* ---------- Комментарии ---------- */
.comments { margin-top: 1.8rem; }
.comments-title { font-size: 1.4rem; text-transform: uppercase; letter-spacing: .05em; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 1.4rem; border-left: 1px dashed var(--sheet-line); }
.note { padding: 1rem 0; border-bottom: 1px solid var(--sheet-line); }
.note-head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: .5rem; }
.note-head img { display: block; border-radius: 0; border: 1px solid var(--sheet-line); }
.note-author { font-family: var(--head); font-size: 1rem; letter-spacing: .04em; }
.note-date { font-size: .78rem; color: var(--muted); }
.note-wait { font-size: .85rem; color: var(--accent); }
.note-text p:last-child { margin-bottom: .4rem; }
.note-reply a { font-family: var(--head); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.comments .comments-pagination, .comments .comment-navigation { margin: 1rem 0; display: flex; gap: 1rem; justify-content: space-between; }

.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .05em; }
.comment-reply-title small { margin-left: .6rem; font-family: var(--body); font-size: .8rem; text-transform: none; letter-spacing: 0; }
.form-note { font-size: .85rem; color: #5A5347; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-family: var(--head); font-size: .86rem; letter-spacing: .06em; margin-bottom: .3rem; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-family: var(--body); font-size: .85rem; letter-spacing: 0; }
.req { color: var(--accent); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea, .search-field {
    width: 100%;
    padding: .6rem .75rem;
    font: inherit;
    color: var(--ink);
    background: #FBF8F2;
    border: 1px solid var(--ink);
    border-radius: 0;
}
.comment-form .submit {
    font-family: var(--head);
    font-size: .88rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink);
    background: transparent;
    border: 1.5px solid var(--ink);
    outline: 1px solid var(--ink);
    outline-offset: -5px;
    padding: .7rem 1.2rem;
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--accent); border-color: var(--accent); color: #fff; outline-color: rgba(255, 255, 255, .7); }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: .5rem; max-width: 520px; }
.search-field { flex: 1; min-width: 0; }
.search-submit { flex: 0 0 auto; }

/* ---------- 404 ---------- */
.lost { text-align: left; }
.lost-code {
    margin: 0 0 .3rem;
    font-family: var(--head);
    font-size: clamp(4rem, 14vw, 8rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent);
}
.lost .search-form { margin: 1.2rem 0 1.4rem; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    max-width: 780px;
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem 1.2rem;
    padding: 1rem 1.2rem;
    background: #F6F2EA;
    color: var(--ink);
    border: 1.5px solid var(--ink);
    box-shadow: 6px 6px 0 rgba(34, 32, 28, .25);
}
.cookie-text { flex: 1 1 280px; margin: 0; font-size: .86rem; line-height: 1.5; }
.cookie-accept {
    font-family: var(--head);
    font-size: .88rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border: 1.5px solid var(--accent);
    padding: .6rem 1.4rem;
    cursor: pointer;
}
.cookie-accept:hover { background: var(--ink); border-color: var(--ink); }

/* ---------- Планшет ---------- */
@media (min-width: 600px) {
    body { font-size: 15.5px; }
    .brand { gap: 1.3rem; }
    .brand-logo { width: 72px; height: 72px; }

    .cards, .cards-paper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spec-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
    .samples { justify-content: space-between; }

    .sheet { padding: 2rem 2.2rem; }
    .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-nav-next { grid-column: 2; }

    .sitefoot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .duo .wear { padding: 2.3rem 2.2rem 2rem; }
}

/* ---------- Десктоп ---------- */
@media (min-width: 960px) {
    body { font-size: 16px; }

    .topnav-toggle { display: none; }
    .topnav-list,
    .topnav-list.is-open {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0 1.4rem;
    }
    .topnav-list li { border-top: 0; }
    .topnav-list a { padding: .75rem 0; font-size: 1.02rem; }

    .front-block { padding: 3.2rem 0; }

    .spec-grid { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); gap: 2.4rem; }
    .spec-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); margin-top: -2.6rem; position: relative; z-index: 1; }

    .measure-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.45fr) minmax(0, .8fr); gap: 2.4rem; }
    .tech-list::before {
        content: "";
        position: absolute;
        left: -2.6rem;
        top: 50%;
        width: 2.6rem;
        height: 1px;
        background: var(--ink);
    }
    .measure-art img { max-width: 100%; }

    .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }
    .cards-paper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-single .cards-paper { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: stretch; }
    .duo .layers { padding-left: 2.4rem; }

    .layout-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        column-gap: 6%;
        align-items: start;
    }
    .sidebar { margin-top: 0; }
    .sheet { padding: 2.4rem 2.8rem; }
}

@media (max-width: 420px) {
    .wear-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.1rem; }
    .layer { padding: 0 .35rem; }
    .layer-slab { width: 78%; }
    .samples { gap: .6rem; padding-inline: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
