/*
Theme Name: dds_artisapractice.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: artisa
*/

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

/* ---------- Переменные ---------- */
:root {
    --paper: #EDE6D6;
    --sheet: #F2ECDE;
    --calque: #ECE9DF;
    --head-bg: #F4EFE3;
    --sage: #C9D6C4;
    --forest: #2E3B33;
    --ink: #2B2B26;
    --muted: #7A7364;
    --terra: #C4552D;
    --terra-dark: #A3431F;
    --blue: #3E5C76;
    --ochre: #D9A441;
    --line: rgba(62, 92, 118, .38);
    --tape: rgba(217, 196, 140, .62);
    --foot-text: #E6E0D0;
    --foot-link: #AFC6D8;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --f-body: "PT Sans", "Segoe UI", Arial, sans-serif;
    --f-mono: "PT Mono", "Courier New", monospace;
    --grain: url("images/paper-grain.png");
    --fibre: url("images/cardboard-fibre.png");
    --mm: linear-gradient(rgba(62, 92, 118, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(62, 92, 118, .055) 1px, transparent 1px);
}

/* ---------- Правила hidden (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }
[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::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: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        var(--grain),
        linear-gradient(rgba(62, 92, 118, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 92, 118, .09) 1px, transparent 1px),
        var(--mm);
    background-size: 180px 180px, 50px 50px, 50px 50px, 10px 10px, 10px 10px;
}
p, li, h1, h2, h3, h4, h5, h6, td, th, figcaption, blockquote, dd, dt {
    overflow-wrap: break-word;
    hyphens: auto;
}
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 600; line-height: 1.15; margin: 1.4em 0 .6em; color: var(--ink); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: underline; text-decoration-style: dashed; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--terra); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px dashed var(--terra); outline-offset: 3px; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--ink); }
th, td { border: 1px solid rgba(43, 43, 38, .55); padding: .55rem .75rem; text-align: left; vertical-align: top; }
th { background: rgba(201, 214, 196, .55); font-family: var(--f-mono); font-weight: 400; font-size: .9rem; letter-spacing: .04em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--forest); color: #fff; }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Контейнер ---------- */
.shell { width: min(92%, 1200px); margin-inline: auto; }
.shell-front { width: min(92%, 1240px); }
@media (min-width: 960px) {
    .shell-front { width: min(85%, 1240px); }
}

/* ---------- Кнопки и ссылки ---------- */
.btn-stamp {
    display: inline-block;
    padding: .55rem 1.15rem;
    border: 0;
    background: var(--terra);
    color: #fff;
    font-family: var(--f-body);
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .04em;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 0 0 2px var(--terra), inset 0 0 0 3px rgba(255, 255, 255, .78);
    transform: rotate(-1.2deg);
    transition: background .15s, transform .15s, box-shadow .15s;
}
.btn-stamp:hover, .btn-stamp:focus-visible {
    background: var(--terra-dark);
    color: #fff;
    box-shadow: inset 0 0 0 2px var(--terra-dark), inset 0 0 0 3px rgba(255, 255, 255, .9), 2px 2px 0 var(--ink);
    transform: rotate(-1.2deg) translate(-1px, -1px);
}
.ink-link { font-family: var(--f-mono); font-size: .9rem; letter-spacing: .05em; color: var(--blue); }

/* ---------- Кнопки, пины, скотч ---------- */
.pin {
    position: absolute;
    z-index: 3;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #F0A285 0, #C4552D 48%, #7E2F14 100%);
    box-shadow: 3px 4px 3px rgba(43, 43, 38, .28);
}
.pin-tl { top: 12px; left: 16px; }
.pin-tr { top: 16px; right: 20px; }
.pin-brass { width: 20px; height: 20px; background: radial-gradient(circle at 38% 34%, #F3DDA4 0, #B99256 50%, #6E5427 100%); }
.pin-dot { width: 9px; height: 9px; background: radial-gradient(circle at 35% 35%, #9A9488, #57534A); }

/* ---------- Шапка ---------- */
.masthead {
    background-color: var(--head-bg);
    background-image: var(--grain);
    border-bottom: 1px solid var(--forest);
    box-shadow: 0 3px 0 -2px rgba(46, 59, 51, .35);
    position: relative;
}
.masthead-row { display: flex; align-items: center; gap: 1.2rem 2rem; padding-block: 1.1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 1.1rem; flex: 1 1 420px; min-width: 0; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; display: block; width: 76px; }
.brand-mark .brand-logo { display: block; width: 76px; height: auto; max-height: 90px; object-fit: contain; }
.brand-text { min-width: 0; display: flex; flex-direction: column; gap: .3rem; max-width: 640px; }
.brand-name { font-family: var(--f-head); font-weight: 500; font-size: 1rem; line-height: 1.3; letter-spacing: .05em; }
.brand-desc {
    font-family: var(--f-mono);
    font-size: .74rem;
    line-height: 1.45;
    letter-spacing: .05em;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nav-toggle {
    display: none;
    align-items: center;
    gap: .55rem;
    padding: .5rem .8rem;
    background: transparent;
    border: 1px solid var(--forest);
    font-family: var(--f-mono);
    font-size: .85rem;
    letter-spacing: .06em;
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.topnav { flex: none; }
.topnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 2rem; }
.topnav-list a {
    display: inline-block;
    padding: .3rem 0;
    font-family: var(--f-mono);
    font-size: .92rem;
    letter-spacing: .07em;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px dotted transparent;
}
.topnav-list a:hover { color: var(--terra); }
.topnav-list .current-menu-item > a, .topnav-list a[aria-current="page"] { border-bottom-color: var(--blue); }

/* ---------- Лист, стенсил ---------- */
.sheet {
    position: relative;
    background-color: var(--sheet);
    background-image: var(--grain), var(--mm);
    background-size: 180px 180px, 10px 10px, 10px 10px;
    padding: clamp(1.4rem, 3vw, 2.6rem);
    box-shadow: 0 1px 0 rgba(43, 43, 38, .12), 0 16px 26px -20px rgba(43, 43, 38, .55);
}
.sheet-wrap { position: relative; filter: drop-shadow(0 8px 10px rgba(43, 43, 38, .2)); }
.sheet-wrap .sheet { box-shadow: none; }
.sheet-torn {
    padding-bottom: calc(clamp(1.4rem, 3vw, 2.6rem) + 12px);
    clip-path: polygon(0 0,100% 0,100.00% calc(100% - 8px),97.50% calc(100% - 6px),95.00% calc(100% - 8px),92.50% calc(100% - 1px),90.00% calc(100% - 10px),87.50% calc(100% - 4px),85.00% calc(100% - 4px),82.50% calc(100% - 1px),80.00% calc(100% - 1px),77.50% calc(100% - 2px),75.00% calc(100% - 9px),72.50% calc(100% - 1px),70.00% calc(100% - 10px),67.50% calc(100% - 3px),65.00% calc(100% - 11px),62.50% calc(100% - 10px),60.00% calc(100% - 11px),57.50% calc(100% - 8px),55.00% calc(100% - 7px),52.50% calc(100% - 10px),50.00% calc(100% - 1px),47.50% calc(100% - 11px),45.00% calc(100% - 9px),42.50% calc(100% - 2px),40.00% calc(100% - 3px),37.50% calc(100% - 5px),35.00% calc(100% - 8px),32.50% calc(100% - 2px),30.00% calc(100% - 3px),27.50% calc(100% - 10px),25.00% calc(100% - 11px),22.50% calc(100% - 8px),20.00% calc(100% - 9px),17.50% calc(100% - 3px),15.00% calc(100% - 4px),12.50% calc(100% - 10px),10.00% calc(100% - 9px),7.50% calc(100% - 8px),5.00% calc(100% - 8px),2.50% calc(100% - 9px),0.00% calc(100% - 8px));
}
.stencil {
    font-family: var(--f-head);
    font-weight: 600;
    text-transform: uppercase;
    font-size: clamp(1.9rem, 4.4vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: .005em;
    margin: 0 0 1.4rem;
    color: var(--ink);
    hyphens: manual;
}
.stencil-tilt { transform: rotate(-1deg); transform-origin: left bottom; }
.pencil-note { margin: 0; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; color: var(--muted); max-width: 30ch; }

/* ---------- Главная: общие секции ---------- */
.fs { padding-block: clamp(2.2rem, 5vw, 4rem); position: relative; }
.fs-section, .fs-day {
    background-image:
        linear-gradient(13deg, transparent 49.85%, rgba(43, 43, 38, .07) 50%, transparent 50.15%),
        linear-gradient(-8deg, transparent 49.85%, rgba(62, 92, 118, .07) 50%, transparent 50.15%);
}
.band-sage {
    background-color: var(--sage);
    background-image: var(--fibre), var(--grain);
    background-size: 240px 240px, 180px 180px;
    box-shadow: inset 0 10px 14px -12px rgba(46, 59, 51, .45), inset 0 -10px 14px -12px rgba(46, 59, 51, .45);
}

/* Блок 1 — разрез */
.fs-section .sheet { padding-top: clamp(2rem, 4vw, 3rem); }
.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
    align-items: start;
}
.cut { position: relative; margin: 0; padding-top: 4.6rem; min-width: 0; }
.cut img { display: block; width: 100%; height: auto; aspect-ratio: 1740 / 572; object-fit: cover; mix-blend-mode: multiply; }
.cut-callouts { list-style: none; margin: 0; padding: 0; }
.cut-callouts li {
    position: absolute;
    top: 0;
    left: var(--x);
    transform: translateX(-50%);
    font-family: var(--f-mono);
    font-size: .8rem;
    letter-spacing: .06em;
    white-space: nowrap;
    padding: 0 .3rem .15rem;
    border-bottom: 1px solid var(--blue);
    color: var(--ink);
    z-index: 2;
}
.cut-callouts li::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    height: calc(3.1rem + var(--drop));
    border-left: 1px solid var(--blue);
}
.cut-callouts li::before {
    content: "";
    position: absolute;
    left: calc(50% - 4px);
    top: calc(100% + 3.1rem + var(--drop) - 4px);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid var(--blue);
    background: rgba(242, 236, 222, .85);
}
.scale {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    border-top: 1px solid var(--blue);
    padding-top: 1rem;
}
.scale li { position: relative; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.scale li::before { content: ""; position: absolute; top: calc(-1rem - 5px); left: 0; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--blue); background: var(--sheet); }
.scale b { white-space: nowrap; font-family: var(--f-mono); font-weight: 400; font-size: 1rem; letter-spacing: .04em; color: var(--blue); }
.scale b::first-letter { color: var(--terra); }
.scale span { font-size: .82rem; line-height: 1.35; color: var(--muted); }
.section-note { min-width: 0; }
.section-lead { font-family: var(--f-head); font-weight: 500; font-size: 1.45rem; line-height: 1.25; letter-spacing: .03em; margin-bottom: .9rem; }
.section-note p:not(.section-lead) { font-size: .95rem; color: var(--ink); }
.section-note p:last-child { margin-bottom: 0; color: var(--muted); }

@media (min-width: 960px) {
    .section-grid { grid-template-columns: minmax(0, 1fr) 150px minmax(0, 220px); gap: 0 2rem; }
    .scale {
        grid-template-columns: 1fr;
        border-top: 0;
        border-left: 1px solid var(--blue);
        padding: 0 0 0 1.1rem;
        gap: 2.4rem;
        align-self: stretch;
        align-content: center;
        margin-top: 4.6rem;
        min-height: calc(100% - 4.6rem);
    }
    .scale li::before { top: .35rem; left: calc(-1.1rem - 5px); }
    .section-note { border-left: 1px dashed var(--line); padding-left: 1.8rem; align-self: stretch; padding-top: 3.4rem; }
}
@media (max-width: 600px) {
    .cut { padding-top: 0; }
    .cut-callouts { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: .8rem; }
    .cut-callouts li { position: static; transform: none; font-size: .78rem; }
    .cut-callouts li::after, .cut-callouts li::before { display: none; }
    .scale { grid-template-columns: 1fr; gap: 1.1rem; border-top: 0; border-left: 1px solid var(--blue); padding: 0 0 0 1rem; }
    .scale li::before { top: .35rem; left: calc(-1rem - 5px); }
}

/* Блок 2 — палитра */
.sheet-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .6rem 2rem; margin-bottom: 1.6rem; }
.sheet-head .stencil { margin: 0; }
.swatches {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.swatches li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: 1rem .8rem 1.1rem;
    border-right: 1px dashed rgba(43, 43, 38, .18);
    border-bottom: 1px dashed rgba(43, 43, 38, .18);
    min-width: 0;
}
.swatches li::before, .swatches li::after { content: ""; position: absolute; background: rgba(43, 43, 38, .35); }
.swatches li::before { right: -6px; bottom: -1px; width: 12px; height: 1px; }
.swatches li::after { right: -1px; bottom: -6px; width: 1px; height: 12px; }
.swatches img { display: block; width: 100%; max-width: 260px; aspect-ratio: 7 / 4; object-fit: cover; mix-blend-mode: multiply; transition: transform .25s; -webkit-mask-image: radial-gradient(ellipse 78% 74% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 78% 74% at 50% 50%, #000 62%, transparent 100%); }
.swatches li:hover img { transform: rotate(-2deg) scale(1.04); }
.swatches span { font-family: var(--f-mono); font-size: .92rem; letter-spacing: .1em; }
@media (min-width: 720px) {
    .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .swatches li:nth-child(4n) { border-right: 0; }
    .swatches li:nth-child(n+5) { border-bottom: 0; }
    .swatches li:nth-child(4n)::before, .swatches li:nth-child(4n)::after, .swatches li:nth-child(n+5)::before, .swatches li:nth-child(n+5)::after { display: none; }
}
@media (max-width: 719px) {
    .swatches li:nth-child(2n) { border-right: 0; }
    .swatches li:nth-child(n+7) { border-bottom: 0; }
    .swatches li:nth-child(2n)::before, .swatches li:nth-child(2n)::after, .swatches li:nth-child(n+7)::before, .swatches li:nth-child(n+7)::after { display: none; }
}

/* Блок «Из мастерской» */
.posts-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 2rem; margin-bottom: 1.6rem; }
.posts-head .stencil { margin: 0; }
.empty-note { font-family: var(--f-mono); font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- Карточки записей ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 2.2rem 1.8rem;
    isolation: isolate;
    margin-bottom: 2.4rem;
}
.card-grid-front { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }
@media (min-width: 720px) { .card-grid-front { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .card-grid-front { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--calque);
    background-image: var(--grain), var(--mm);
    background-size: 180px 180px, 12px 12px, 12px 12px;
    border: 1px solid rgba(62, 92, 118, .5);
    transition: border-color .2s;
}
.card::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 9px;
    left: 9px;
    right: -9px;
    bottom: -9px;
    background: repeating-linear-gradient(135deg, rgba(43, 43, 38, .32) 0 1px, transparent 1px 4px);
}
.card::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(62, 92, 118, .25);
    pointer-events: none;
}
.card::after { transition: inset .2s, top .2s, left .2s, right .2s, bottom .2s; }
.card:hover { border-color: var(--terra); }
.card:hover::after { top: 13px; left: 13px; right: -13px; bottom: -13px; }
.pin-card { top: -6px; left: 22px; }
.card-body { flex: 1; container-type: inline-size; display: flex; flex-direction: column; gap: 1.1rem; padding: 1.6rem 1.4rem 1.3rem; position: relative; z-index: 1; min-width: 0; }
.card-top { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.card-thumb { display: block; border: 1px solid rgba(62, 92, 118, .35); background: var(--sheet); }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.card-text { min-width: 0; }
.card-title { font-family: var(--f-head); font-weight: 500; font-size: 1.28rem; line-height: 1.22; letter-spacing: .02em; margin: 0 0 .7rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--terra); }
.card-excerpt { font-size: .88rem; line-height: 1.5; color: var(--ink); }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; border-top: 1px dashed rgba(62, 92, 118, .3); padding-top: .9rem; }
.card-date { font-family: var(--f-mono); font-size: .85rem; letter-spacing: .05em; color: var(--ink); }
@container (max-width: 330px) {
    .card-top { grid-template-columns: minmax(0, 1fr); }
    .card-thumb img { aspect-ratio: 16 / 10; }
}

/* Блок 3 — инструменты */
.fs-tools .stencil { margin-bottom: 2rem; }
.tools {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.1rem;
}
@media (min-width: 720px) { .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tools { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; } }
.tool {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1rem 1rem 1.1rem;
    min-width: 0;
    background-color: #EFEADB;
    background-image: var(--grain), var(--mm);
    background-size: 180px 180px, 12px 12px, 12px 12px;
    box-shadow: 0 1px 0 rgba(43, 43, 38, .18), 0 12px 16px -12px rgba(43, 43, 38, .55);
    transition: transform .2s;
}
.tool::before {
    content: "";
    position: absolute;
    top: -10px;
    left: calc(50% - 36px);
    width: 72px;
    height: 20px;
    background: var(--tape);
    transform: rotate(-2deg);
    box-shadow: 0 1px 1px rgba(43, 43, 38, .08);
}
.tool:nth-child(even) { transform: rotate(.6deg); }
.tool:nth-child(odd) { transform: rotate(-.4deg); }
.tool:hover { transform: translateY(-4px) rotate(0); }
.tool-num { font-family: var(--f-head); font-weight: 500; font-size: 1.6rem; line-height: 1; color: var(--ink); }
.tool img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; mix-blend-mode: multiply; margin-block: .3rem; -webkit-mask-image: radial-gradient(ellipse 82% 80% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 82% 80% at 50% 50%, #000 70%, transparent 100%); }
.tool-name { font-family: var(--f-mono); font-size: .9rem; letter-spacing: .06em; text-align: right; }
.tool-use { font-size: .8rem; line-height: 1.35; color: var(--muted); text-align: right; }

/* Блок 4 — день в студии */
.day-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem; align-items: start; }
@media (min-width: 960px) { .day-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 3rem; align-items: center; } }
.axis { list-style: none; margin: 1rem 0 0; padding: .4rem 0 .4rem 0; position: relative; border-left: 1px solid var(--ink); margin-left: .6rem; }
.axis::before, .axis::after { content: ""; position: absolute; left: -6px; width: 11px; height: 1px; background: var(--ink); }
.axis::before { top: 0; }
.axis::after { bottom: 0; }
.axis li { position: relative; display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: .1rem 1rem; padding: .9rem 0 .9rem 1.6rem; }
.axis li::before { content: ""; position: absolute; left: -6px; top: 1.32rem; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--ink); background: var(--paper); }
.axis li::after { content: ""; position: absolute; left: 5px; top: 1.67rem; width: 12px; height: 1px; background: var(--ink); }
.axis time { font-family: var(--f-mono); font-size: 1rem; letter-spacing: .08em; color: var(--ink); }
.axis b { font-family: var(--f-mono); font-weight: 400; font-size: 1rem; letter-spacing: .08em; }
.axis li:hover::before { background: var(--ochre); }
.axis span { grid-column: 2; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.day-figure { position: relative; margin: 0; padding: 14px; }
.day-figure::before, .day-figure::after { content: ""; position: absolute; pointer-events: none; }
.day-figure::before { left: -18px; right: -18px; top: 14px; bottom: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.day-figure::after { top: -18px; bottom: -18px; left: 14px; right: 14px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.day-figure img { display: block; width: 100%; height: auto; aspect-ratio: 1448 / 616; object-fit: cover; mix-blend-mode: multiply; position: relative; z-index: 1; }
@media (max-width: 600px) {
    .axis li { grid-template-columns: 1fr; padding-left: 1.3rem; }
    .axis span { grid-column: 1; }
    .day-figure::before { left: -6px; right: -6px; }
}

/* ---------- Внутренние страницы ---------- */
.inner { padding-block: 1.6rem 3.5rem; }
.crumbs { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .04em; color: var(--muted); margin-bottom: 1.8rem; overflow-wrap: break-word; }
.crumbs a { color: var(--blue); }
.crumbs-sep { margin: 0 .35rem; color: var(--terra); }
.layout-with-sidebar, .layout-single { display: block; }
.content-area { min-width: 0; }
@media (min-width: 960px) {
    .layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; align-items: start; }
    .layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
}
.page-head { margin-bottom: 2rem; }
.page-head .stencil { margin-bottom: .8rem; }
.page-intro { color: var(--muted); max-width: 62ch; }

.entry-sheet { padding: clamp(1.6rem, 4vw, 3rem); margin-bottom: 2.4rem; }
.entry-head { margin-bottom: 1.6rem; border-bottom: 1px dashed var(--line); padding-bottom: 1rem; }
.entry-title { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.08; margin: 0 0 .6rem; }
.entry-meta { margin: 0; font-family: var(--f-mono); font-size: .85rem; letter-spacing: .05em; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.entry-cover { margin: 0 0 1.8rem; border: 1px solid var(--line); padding: 6px; background: var(--calque); }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry h2 { font-size: 1.7rem; text-transform: uppercase; }
.entry h3 { font-size: 1.35rem; }
.entry h4 { font-size: 1.15rem; }
.entry ul, .entry ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry li { margin-bottom: .35em; }
.entry ul li::marker { color: var(--terra); }
.entry ol li::marker { font-family: var(--f-mono); color: var(--blue); }
.entry blockquote {
    margin: 1.6em 0;
    padding: 1.3rem 1.6rem;
    background-color: var(--sage);
    background-image: var(--fibre);
    border-left: 4px solid var(--terra);
    font-style: italic;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry img { display: block; height: auto; }
.entry figure { margin: 1.6em 0; max-width: 100%; }
.entry figcaption { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.entry pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--forest); color: var(--foot-text); font-family: var(--f-mono); font-size: .88rem; }
.entry code { font-family: var(--f-mono); font-size: .9em; }
.entry hr { border: 0; border-top: 1px dashed var(--line); margin: 2em 0; }
.entry-tags { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a { font-family: var(--f-mono); font-size: .8rem; padding: .2rem .55rem; border: 1px solid var(--line); text-decoration: none; }

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; margin-top: 2.4rem; }
@media (min-width: 960px) { .sidebar { margin-top: 0; } }
.sidebar .widget {
    position: relative;
    background-color: var(--calque);
    background-image: var(--grain), var(--mm);
    background-size: 180px 180px, 12px 12px, 12px 12px;
    border: 1px solid rgba(62, 92, 118, .45);
    padding: 1.7rem 1.4rem 1.4rem;
    margin-bottom: 1.8rem;
    color: var(--ink);
    box-shadow: 7px 7px 0 -1px rgba(201, 214, 196, .9);
}
.sidebar .widget::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 20px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #F0A285 0, #C4552D 48%, #7E2F14 100%);
    box-shadow: 2px 3px 3px rgba(43, 43, 38, .25);
}
.sidebar .widget-title { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 1.25rem; margin: 0 0 1rem; color: var(--ink); }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .5rem 0 .5rem 1.2rem; border-bottom: 1px dashed rgba(62, 92, 118, .25); position: relative; font-size: .95rem; line-height: 1.4; color: var(--ink); }
.sidebar .widget li::before { content: "—"; position: absolute; left: 0; color: var(--terra); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); text-decoration-color: rgba(62, 92, 118, .6); }
.sidebar .widget a:hover { color: var(--terra); }
.sidebar .widget .post-date, .sidebar .widget .rss-date { display: block; font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.sidebar .widget p { color: var(--ink); }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0 2rem; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .8rem;
    font-family: var(--f-mono);
    font-size: .92rem;
    letter-spacing: .04em;
    color: var(--ink);
    background: var(--sheet);
    border: 1px solid var(--ink);
    text-decoration: none;
    transition: background .15s, color .15s, transform .15s;
}
.pager a.page-numbers:hover { background: var(--sage); color: var(--ink); transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--ink); }
.pager .page-numbers.current { background: var(--terra); color: #fff; border-color: var(--terra); box-shadow: inset 0 0 0 2px var(--terra), inset 0 0 0 3px rgba(255, 255, 255, .78); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .3rem; }
.pager > a:not(.page-numbers), .pager > span:not(.page-numbers) { font-family: var(--f-mono); padding: .4rem .8rem; border: 1px solid var(--ink); text-decoration: none; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.4rem 0; }
.search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .65rem .9rem;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: #FBF8F0;
    border: 1px solid var(--ink);
    border-radius: 0;
}
.search-form .btn-stamp { transform: none; }

/* ---------- 404 ---------- */
.sheet-404 { text-align: center; padding-block: 3rem; }
.code-404 { font-family: var(--f-head); font-weight: 600; font-size: clamp(5rem, 16vw, 10rem); line-height: 1; margin: 0; color: transparent; -webkit-text-stroke: 2px var(--blue); letter-spacing: .04em; }
.sheet-404 .search-form { max-width: 480px; margin-inline: auto; }

/* ---------- Комментарии ---------- */
.comments { padding: clamp(1.4rem, 3vw, 2.4rem); margin-bottom: 2rem; }
.comments-title { font-family: var(--f-head); text-transform: uppercase; font-size: 1.5rem; margin-top: 0; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: clamp(1rem, 4vw, 2.4rem); border-left: 1px dashed var(--line); }
.note-body { padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.note-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .5rem; }
.note-head img { display: block; border-radius: 50%; border: 1px solid var(--line); }
.note-author { font-weight: 700; }
.note-date { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.note-wait { font-family: var(--f-mono); font-size: .85rem; color: var(--terra); }
.note-reply a { font-family: var(--f-mono); font-size: .82rem; }
.comment-respond { margin-top: 1.8rem; }
.comment-reply-title { font-family: var(--f-head); text-transform: uppercase; font-size: 1.35rem; }
.comment-reply-title small { font-family: var(--f-mono); font-size: .8rem; text-transform: none; margin-left: .6rem; }
.form-note { font-size: .88rem; color: var(--muted); }
.comment-form label { display: block; font-family: var(--f-mono); font-size: .85rem; letter-spacing: .04em; 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;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: #FBF8F0;
    border: 1px solid var(--ink);
    border-radius: 0;
}
.comment-form .comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; font-family: var(--f-body); font-size: .88rem; letter-spacing: 0; }
.req { color: var(--terra); }
.comment-navigation, .comments-pagination { margin: 1rem 0; font-family: var(--f-mono); font-size: .85rem; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; }

/* ---------- Подвал ---------- */
.basement {
    margin-top: 0;
    background-color: var(--forest);
    background-image: var(--fibre), var(--grain);
    background-size: 240px 240px, 180px 180px;
    color: var(--foot-text);
    padding-top: 3rem;
}
.basement-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-bottom: 2.4rem; }
@media (min-width: 720px) {
    .basement-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
    .basement-col { padding: 0 2.2rem; border-left: 1px solid rgba(230, 224, 208, .22); }
    .basement-col:first-child { padding-left: 0; border-left: 0; }
}
.basement-col { min-width: 0; }
.basement .widget { color: var(--foot-text); margin-bottom: 1.4rem; }
.basement .widget:last-child { margin-bottom: 0; }
.basement .widget-title { font-family: var(--f-mono); font-weight: 400; font-size: 1.1rem; letter-spacing: .08em; color: #F4EFE3; margin: 0 0 .8rem; }
.basement .widget p, .basement .textwidget { color: var(--foot-text); font-family: var(--f-mono); font-size: .88rem; line-height: 1.7; letter-spacing: .03em; }
.basement .widget ul { list-style: none; margin: 0; padding: 0; }
.basement .widget li { margin-bottom: .45rem; color: var(--foot-text); }
.basement .widget a { color: var(--foot-link); font-family: var(--f-mono); font-size: .9rem; letter-spacing: .03em; text-decoration: none; border-bottom: 1px dotted rgba(175, 198, 216, .75); }
.basement .widget a:hover { color: #F4EFE3; border-bottom-color: var(--ochre); }
.basement-copy {
    margin: 0;
    padding: 1.4rem 0 1.8rem;
    border-top: 1px solid rgba(230, 224, 208, .25);
    text-align: center;
    font-family: var(--f-mono);
    font-size: .78rem;
    letter-spacing: .06em;
    color: rgba(230, 224, 208, .82);
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    z-index: 90;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(760px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 1rem 1.6rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.4rem;
    background-color: var(--forest);
    background-image: var(--fibre);
    color: var(--foot-text);
    border: 1px dashed rgba(230, 224, 208, .45);
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
}
.cookie-text { margin: 0; flex: 1 1 300px; font-size: .9rem; line-height: 1.5; color: var(--foot-text); }

/* ---------- Адаптив шапки ---------- */
@media (max-width: 959px) {
    .nav-toggle { display: inline-flex; }
    .topnav { flex: 1 1 100%; display: none; }
    .topnav.is-open { display: block; }
    .topnav-list { flex-direction: column; gap: 0; border-top: 1px dashed var(--line); padding-top: .4rem; }
    .topnav-list a { padding: .55rem 0; display: block; }
    .brand { flex: 1 1 0; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .brand-mark, .brand-mark .brand-logo { width: 56px; }
    .brand { gap: .8rem; }
    .brand-name { font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
    .brand-desc { -webkit-line-clamp: 2; font-size: .7rem; }
    .masthead-row { gap: 1rem; }
    .fs-section .sheet, .fs-palette .sheet { padding: 1.4rem 1.1rem 1.8rem; }
    .entry-sheet, .comments, .sidebar .widget { padding-left: 1.1rem; padding-right: 1.1rem; }
    .card-body { padding: 1.5rem 1.1rem 1.2rem; }
    .tool { padding: .9rem .8rem 1rem; }
    .cookie-banner { padding: 1rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
