/*
Theme Name: dds_realfastsocialgraphics.com
Theme URI: https://realfastsocialgraphics.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: mrkpln
*/

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

/* ---------- Переменные ---------- */
:root {
    --bg: #101A2B;
    --grid: #24344D;
    --paper: #F2EEE4;
    --cream: #F5F1E8;
    --muted: #8FA3BF;
    --ink: #1B2430;
    --marker: #FFC93C;
    --coral: #FF6B4A;
    --mint: #4FD1B5;
    --line: #3A4D6B;
    --rule: #D8D0BE;
    --foot: #0B1220;
    --chalk: #EFE2AE;
    --paper-line: #CFDDE2;
    --sheet: #FFFDF7;
    --panel: #16233A;
    --link-ink: #23476E;
    --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    --sans: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --shell-w: min(92%, 1180px);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--cream);
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(36, 52, 77, .55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 52, 77, .55) 1px, transparent 1px);
    background-size: 32px 32px;
}
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
p, li, dd, td, th, figcaption, blockquote, .card__title, .card-excerpt { overflow-wrap: break-word; hyphens: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; }
ul, ol { padding-left: 1.3em; }
figure { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 2px solid var(--ink); }
th, td { border: 1px solid var(--ink); padding: .55em .75em; text-align: left; vertical-align: top; }
th { background: #E7E0CF; font-weight: 700; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--marker); color: var(--ink); padding: .6rem 1rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.shell { width: var(--shell-w); margin-inline: auto; }

/* ---------- Заголовки-блокнот ---------- */
.nb-title {
    position: relative;
    display: inline-block;
    font-family: var(--hand);
    font-weight: 700;
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    line-height: 1.05;
    color: var(--chalk);
    transform: rotate(-1.2deg);
    transform-origin: left center;
    margin: 0 0 1.4rem;
    padding-bottom: .2rem;
}
.nb-title::after {
    content: "";
    position: absolute;
    left: -.2rem; right: 18%; bottom: -.15rem;
    height: .32rem;
    background: var(--marker);
    border-radius: 3px 8px 4px 9px;
    opacity: .85;
    transform: skewX(-18deg);
}
.nb-title__no { font-size: .62em; color: var(--marker); vertical-align: .32em; margin-right: .1em; }
.nb-title--ink { color: var(--ink); }
.nb-title--ink .nb-title__no { color: var(--coral); }
.nb-title--ink::after { background: var(--mint); opacity: .7; }

/* ---------- Кнопка-стикер ---------- */
.sticker-btn {
    position: relative;
    isolation: isolate;
    display: inline-block;
    padding: .42em 1em .4em;
    font-family: var(--sans);
    font-weight: 700;
    font-size: .92rem;
    line-height: 1.2;
    color: var(--ink);
    text-decoration: none;
    transform: rotate(-2deg);
    filter: drop-shadow(3px 3px 0 rgba(11, 18, 32, .55));
    transition: transform .15s ease, filter .15s ease;
}
.sticker-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--marker);
    clip-path: polygon(0 6%, 9% 0, 30% 4%, 55% 0, 78% 3%, 100% 0, 98% 30%, 100% 62%, 97% 100%, 70% 96%, 44% 100%, 20% 97%, 0 100%, 2% 66%, 0 34%);
}
.sticker-btn:hover, .sticker-btn:focus-visible { transform: rotate(-2deg) translate(2px, 2px); filter: drop-shadow(1px 1px 0 rgba(11, 18, 32, .55)); }
.sticker-btn--mint::before { background: var(--mint); }
.sticker-btn--coral::before { background: var(--coral); }

/* ---------- Шапка ---------- */
.masthead {
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(58, 77, 107, .45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58, 77, 107, .45) 1px, transparent 1px);
    background-size: 32px 32px;
    border-bottom: 3px solid #0B1220;
    padding: 1.4rem 0;
}
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.brand { display: flex; align-items: flex-start; gap: 1rem; flex: 1 1 520px; min-width: 0; }
.brand__mark { flex: 0 0 auto; display: block; margin-top: .3rem; }
.brand__svg, .brand-logo { width: 64px; height: 64px; object-fit: contain; }
.brand__text { min-width: 0; }
.brand__name {
    margin: 0 0 .35rem;
    font-family: var(--hand);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.2vw, 2.45rem);
    line-height: 1.02;
    color: var(--chalk);
}
.brand__name a { text-decoration: none; }
.brand__desc { margin: 0; max-width: 46rem; font-size: .98rem; line-height: 1.4; color: rgba(245, 241, 232, .8); }

.menu-toggle {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .5rem .9rem;
    font: 700 1.25rem/1 var(--hand);
    color: var(--ink);
    background: var(--paper);
    border: 0;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, .45);
    cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 20px; height: 2px; background: var(--ink); position: relative;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }

.site-nav { flex: 0 0 100%; display: none; }
.site-nav.is-open { display: block; }
.tags-menu { list-style: none; margin: 0; padding: .4rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.tags-menu li { margin: 0; min-width: 0; }
.tags-menu a {
    position: relative;
    display: block;
    padding: .28rem 2.2rem .22rem .9rem;
    font-family: var(--hand);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.15;
    color: var(--ink);
    text-decoration: none;
    background: var(--paper);
    background-image: linear-gradient(transparent 82%, rgba(143, 163, 191, .35) 82%, rgba(143, 163, 191, .35) 86%, transparent 86%);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, .45);
    transform: rotate(-.8deg);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.tags-menu li:nth-child(even) a { transform: rotate(.7deg); }
.tags-menu a::after {
    content: "";
    position: absolute;
    right: .55rem; top: -.55rem;
    width: 14px; height: 34px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 34'%3E%3Cpath d='M4 30V7a3 3 0 0 1 6 0v21a5 5 0 0 1-10 0V5' fill='none' stroke='%23C3CAD3' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.tags-menu a:hover, .tags-menu a:focus-visible { background-color: var(--mint); transform: rotate(0) translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .45); }
.tags-menu .current-menu-item > a, .tags-menu .current_page_item > a { background-color: var(--marker); }

/* ---------- Доски главной ---------- */
.board { position: relative; overflow: hidden; padding: clamp(2.6rem, 5vw, 4rem) 0; }
.board--dark { background: var(--bg); color: var(--cream); }
.board--paper {
    background-color: var(--paper);
    background-image: repeating-linear-gradient(180deg, transparent 0, transparent 27px, var(--paper-line) 27px, var(--paper-line) 28px);
    color: var(--ink);
}
.board > .shell { position: relative; z-index: 1; }

/* Блок 1 — карта аудитории */
.audience__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    align-items: start;
}
.audience__head { min-width: 0; }
.audience__lead { color: var(--muted); max-width: 22rem; font-size: 1rem; }
.audience__pencil, .audience__clip { position: absolute; z-index: 0; pointer-events: none; display: none; }
.audience__pencil { left: 0; bottom: 0; width: clamp(150px, 19vw, 250px); filter: drop-shadow(6px 8px 6px rgba(0, 0, 0, .35)); }
.audience__clip { left: clamp(190px, 19vw, 260px); top: 60%; width: 62px; transform: rotate(-8deg); }

.target {
    position: relative;
    container-type: inline-size;
    min-width: 0;
    width: 100%;
    max-width: 760px;
    justify-self: center;
}
.target__img, .funnel__fig img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}
.target__ring {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: var(--hand);
    font-weight: 700;
    font-size: 5cqw;
    line-height: 1;
    color: var(--chalk);
    text-align: center;
    white-space: nowrap;
}
.target__ring--1 { left: 32.9%; top: 13.6%; }
.target__ring--2 { left: 32.4%; top: 31.4%; transform: translate(-50%, -50%) rotate(7deg); }
.target__ring--core { left: 32.3%; top: 51%; white-space: normal; line-height: 1.05; }
.target__ring--3 { left: 32.6%; top: 86.6%; transform: translate(-50%, -50%) rotate(-5deg); }

.memo {
    display: block;
    font-family: var(--hand);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.05;
    text-align: center;
    padding: .5em .7em;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, .35);
}
.memo--yellow { background: var(--marker); }
.memo--coral { background: var(--coral); }
.memo--mint { background: var(--mint); }
.target__memo {
    position: absolute;
    display: flex; align-items: center; justify-content: center;
    font-size: 4.2cqw;
}
.target__memo--1 { left: 65%; top: 2.2%; width: 26.6%; height: 21%; transform: rotate(-3deg); }
.target__memo--2 { left: 72.9%; top: 33.8%; width: 24%; height: 24%; transform: rotate(-2deg); }
.target__memo--3 { left: 68.2%; top: 71%; width: 25.4%; height: 24%; transform: rotate(-2.5deg); }

.touch-scale { display: flex; align-items: flex-start; gap: 1rem; font-family: var(--hand); font-weight: 700; color: var(--cream); }
.touch-scale__title { margin: 0; font-size: 1.45rem; line-height: 1.05; text-align: center; }
.touch-scale__ruler {
    position: relative;
    height: 230px;
    width: 28px;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    flex: 0 0 auto;
}
.touch-scale__ruler::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--cream); }
.touch-scale__mark { position: relative; width: 18px; height: 2px; background: var(--cream); }
.touch-scale__mark--hit { width: 28px; height: 4px; background: var(--marker); border-radius: 2px; }
.touch-scale__note { position: absolute; left: calc(100% + .8rem); top: 50%; transform: translateY(-50%); width: 7rem; font-size: 1.35rem; line-height: 1.05; color: var(--chalk); }

/* Бумажная зона: блок 2 + записи */
.paper__pen { position: absolute; z-index: 0; pointer-events: none; display: none; }
.paper__pen--left { left: 0; top: 4.5rem; width: clamp(70px, 9vw, 110px); filter: drop-shadow(4px 6px 4px rgba(27, 36, 48, .25)); }
.paper__pen--right { right: 0; top: 46%; width: clamp(60px, 7vw, 92px); filter: drop-shadow(4px 6px 4px rgba(27, 36, 48, .25)); }
.board--paper > .shell { position: relative; z-index: 1; }

.builder__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem; align-items: center; }
.parts {
    position: relative;
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    counter-reset: none;
}
.parts__item {
    position: relative;
    display: flex; align-items: stretch;
    min-width: 0;
    border: 2px solid var(--ink);
    background: rgba(255, 253, 247, .65);
    font-family: var(--hand);
    font-weight: 700;
    font-size: 1.55rem;
    line-height: 1.15;
}
.parts__no { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 2.1rem; border-right: 2px solid var(--ink); background: var(--coral); }
.parts__item--1 .parts__no, .parts__item--3 .parts__no { background: var(--marker); }
.parts__item--3 .parts__no { background: #FF9A45; }
.parts__name { padding: .35rem .8rem; min-width: 0; }

.builder__rule { text-align: center; min-width: 0; }
.builder__motto { font-family: var(--hand); font-weight: 700; font-size: clamp(2.3rem, 4.4vw, 3.4rem); line-height: 1; margin: 0 0 .9rem; color: var(--ink); }
.aida { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .1rem .45rem; margin: 0; font-family: var(--hand); font-weight: 700; font-size: 1.5rem; }
.aida__arrow { color: var(--coral); }

.latest { padding-top: clamp(2.6rem, 5vw, 3.6rem); }
.cards--three .card:nth-child(n+4) { display: none; }
.latest__all { margin: 2.6rem 0 0; text-align: center; }
.empty-note { font-size: 1.1rem; }

/* ---------- Карточки записей ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.6rem 1.8rem; padding-top: .8rem; }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem 1rem 1.1rem;
    color: var(--ink);
    background: linear-gradient(315deg, transparent 22px, var(--sheet) 22px);
    filter: drop-shadow(6px 8px 0 rgba(11, 18, 32, .22));
    transition: transform .18s ease, filter .18s ease;
}
.card::after {
    content: "";
    position: absolute;
    right: 0; bottom: 0;
    width: 31px; height: 31px;
    background: linear-gradient(315deg, transparent 50%, #E1D9C6 50%, #CFC6B1 100%);
}
.card:hover { transform: translate(-2px, -3px); filter: drop-shadow(9px 12px 0 rgba(11, 18, 32, .22)); }
.card__pin {
    position: absolute;
    left: 50%; top: -11px;
    width: 22px; height: 22px;
    margin-left: -11px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #8193B0 0 18%, #3A4D6B 22%, #1B2430 78%);
    box-shadow: 2px 3px 2px rgba(0, 0, 0, .3);
    z-index: 2;
}
.card__thumb { display: block; border-radius: 5px; overflow: hidden; margin-bottom: .9rem; background: #E7E0CF; }
.card__thumb img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; display: block; transition: transform .3s ease; }
.card:hover .card__thumb img { transform: scale(1.03); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.card__title { margin: 0 0 .4rem; font-family: var(--sans); font-weight: 700; font-size: 1.25rem; line-height: 1.22; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline wavy var(--mint); text-underline-offset: 4px; }
.card-excerpt { flex: 1; font-size: .98rem; line-height: 1.45; color: #3A4352; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--link-ink); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; margin-top: .7rem; padding-right: 1.4rem; }
.card__date { font-size: .92rem; color: #4E5868; }

/* Блок 3 — воронка */
.funnel__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.facts { list-style: none; margin: 0; padding: 0; font-family: var(--hand); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.25; color: var(--chalk); }
.facts b { font-weight: 700; }
.facts__key { text-decoration: underline double var(--mint); text-decoration-thickness: 2px; text-underline-offset: 10px; }
.funnel__fig { position: relative; container-type: inline-size; min-width: 0; width: 100%; max-width: 560px; justify-self: center; }
.funnel__label {
    position: absolute; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--hand); font-weight: 700;
    font-size: 6.2cqw; line-height: 1; white-space: nowrap;
    color: var(--chalk);
}
.funnel__label--1 { top: 20%; }
.funnel__label--2 { top: 43%; font-size: 5.8cqw; }
.funnel__label--3 { top: 65.5%; }
.funnel__label--4 { top: 87%; }
.funnel__memo {
    position: relative;
    justify-self: center;
    max-width: 15rem;
    padding: 1.4rem 1.4rem 1.6rem;
    transform: rotate(4deg);
    background: linear-gradient(315deg, transparent 20px, var(--coral) 20px);
    box-shadow: none;
    filter: drop-shadow(5px 6px 0 rgba(0, 0, 0, .35));
}
.funnel__memo::after { content: ""; position: absolute; right: 0; bottom: 0; width: 28px; height: 28px; background: linear-gradient(315deg, transparent 50%, #D9533A 50%); }
.funnel__memo p { margin: 0 0 .5rem; font-size: 2rem; line-height: 1.05; }
.funnel__memo small { display: block; font-family: var(--sans); font-weight: 400; font-size: .9rem; line-height: 1.35; }

/* Блок 4 — неделя */
.week__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 3rem; }
.week__head .nb-title { margin-bottom: .6rem; }
.week__sub { margin: 0; font-family: var(--hand); font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.05; color: var(--ink); }
.week__line { position: relative; height: 4px; margin: .9rem 1.2rem 1.6rem 0; background: var(--mint); border-radius: 2px; transform: rotate(-.4deg); }
.week__line::after {
    content: ""; position: absolute; right: -16px; top: 50%;
    width: 18px; height: 18px; margin-top: -9px;
    border-top: 4px solid var(--mint); border-right: 4px solid var(--mint);
    transform: rotate(45deg); border-radius: 2px;
}
.week__days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.week__days li {
    position: relative;
    min-width: 0;
    min-height: 7.5rem;
    display: flex; align-items: center; justify-content: center;
    padding: 1.4rem .4rem .8rem;
    border: 2px solid var(--ink);
    border-radius: 3px 7px 4px 6px / 6px 3px 7px 4px;
    background: rgba(255, 253, 247, .55);
    transition: background-color .15s ease, transform .15s ease;
}
.week__days li:nth-child(odd) { transform: rotate(-.4deg); }
.week__days li:hover { background: #FFF2C2; transform: translateY(-3px); }
.week__no { position: absolute; left: .45rem; top: .25rem; font-size: .78rem; font-weight: 700; color: #5B6577; letter-spacing: .04em; }
.week__task { font-family: var(--hand); font-weight: 700; font-size: 1.45rem; line-height: 1.05; text-align: center; overflow-wrap: anywhere; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 1.6rem 0 4rem; }
.crumbs { margin: 0 0 1.6rem; font-size: .95rem; color: var(--muted); }
.crumbs a { color: var(--cream); text-decoration: underline wavy var(--mint); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.crumbs a:hover { color: var(--marker); }
.crumbs__sep { margin: 0 .35rem; color: var(--marker); }
.crumbs__current { color: var(--muted); }

.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.6rem; align-items: start; }
.layout-single { display: block; }
.content-area { min-width: 0; }

.list-head { margin-bottom: 1.6rem; }
.list-head__intro { color: rgba(245, 241, 232, .85); max-width: 46rem; }

.sheet {
    position: relative;
    padding: clamp(1.6rem, 4vw, 2.8rem) clamp(1.2rem, 4vw, 2.8rem);
    color: var(--ink);
    background-color: var(--paper);
    background-image: repeating-linear-gradient(180deg, transparent 0, transparent 31px, rgba(207, 221, 226, .7) 31px, rgba(207, 221, 226, .7) 32px);
    box-shadow: 8px 10px 0 rgba(0, 0, 0, .35);
    margin-bottom: 2.4rem;
}
.sheet__pin {
    position: absolute; left: 50%; top: -12px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #FFE59A 0 16%, var(--coral) 20%, #B8432C 80%);
    box-shadow: 2px 3px 2px rgba(0, 0, 0, .35);
}
.entry__title { font-family: var(--hand); font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 3rem); line-height: 1.05; color: var(--ink); margin: 0 0 .6rem; }
.entry__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .95rem; color: #4E5868; margin: 0 0 1.6rem; }
.entry__cats a { display: inline-block; margin-right: .4rem; padding: 0 .5rem; background: var(--marker); color: var(--ink); text-decoration: none; font-weight: 700; }
.entry__cover { margin: 0 0 1.6rem; }
.entry__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 2px solid var(--ink); }
.entry__content { font-size: 1.08rem; line-height: 1.7; }
.entry__content h2, .entry__content h3, .entry__content h4 { font-family: var(--sans); font-weight: 700; margin: 1.6em 0 .6em; }
.entry__content h2 { font-size: 1.6rem; display: inline-block; background: linear-gradient(transparent 62%, rgba(255, 201, 60, .65) 62%); padding-right: .2em; }
.entry__content h3 { font-size: 1.3rem; }
.entry__content a, .comments a, .list-head__intro a { color: var(--link-ink); text-decoration: underline wavy var(--mint); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.entry__content a:hover, .comments a:hover { color: #C9442A; }
.entry__content ul li::marker { color: var(--coral); }
.entry__content ol li::marker { color: var(--coral); font-weight: 700; }
.entry__content blockquote {
    margin: 1.6em 0;
    padding: 1.1rem 1.4rem;
    background: #FFF4CC;
    border-left: 5px solid var(--marker);
    font-family: var(--hand);
    font-weight: 700;
    font-size: 1.55rem;
    line-height: 1.2;
}
.entry__content blockquote p:last-child { margin-bottom: 0; }
.entry__content pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--ink); color: var(--cream); font-size: .92rem; }
.entry__content code { background: #E7E0CF; padding: .05em .3em; }
.entry__content pre code { background: none; padding: 0; }
.entry__content figcaption { font-size: .9rem; color: #4E5868; margin-top: .4rem; }
.entry__content img { border: 2px solid var(--ink); }
.entry__content .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry__content .alignright { float: right; margin: .3em 0 1em 1.4em; }
.entry__content .aligncenter { margin-inline: auto; }
.entry__tags { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry__tags a { padding: .1rem .55rem; border: 2px solid var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; }
.entry__tags a:hover { background: var(--mint); }

.post-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 0 0 2.4rem; }
.post-nav__link {
    display: block; padding: .9rem 1.1rem; min-width: 0;
    background: var(--panel); border: 1px solid var(--line); color: var(--cream); text-decoration: none; font-weight: 700;
}
.post-nav__link span { display: block; font-family: var(--hand); font-size: 1.3rem; color: var(--marker); }
.post-nav__link:hover { border-color: var(--mint); transform: translate(2px, 2px); }
.post-nav__link--next { text-align: right; }

/* Сайдбар */
.sidebar { min-width: 0; }
.sidebar .widget {
    margin: 0 0 1.8rem;
    padding: 1.3rem 1.4rem 1.2rem;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, .3);
    color: var(--cream);
}
.sidebar .widget-title {
    display: inline-block; margin: 0 0 .9rem;
    font-family: var(--hand); font-weight: 700; font-size: 1.75rem; line-height: 1.05; color: var(--chalk);
    background: linear-gradient(transparent 70%, rgba(255, 201, 60, .45) 70%);
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--cream); text-decoration: none; }
.sidebar .widget a:hover { color: var(--marker); text-decoration: underline wavy var(--mint); text-underline-offset: 4px; }
.sidebar .widget .post-date, .sidebar .widget .rss-date { display: block; font-size: .85rem; color: var(--muted); }
.sidebar .widget p { color: rgba(245, 241, 232, .85); }
.sidebar .widget select { width: 100%; padding: .4rem; }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .55rem; margin: 2.8rem 0 0; }
.pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.7rem; height: 2.7rem; padding: 0 .75rem;
    font-weight: 700; color: var(--ink); text-decoration: none;
    background: var(--paper);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, .45);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.pager a.page-numbers:hover { background: var(--mint); transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .45); }
.pager .page-numbers.current { background: var(--marker); transform: rotate(-3deg); }
.pager .page-numbers.dots { background: none; box-shadow: none; color: var(--cream); min-width: auto; padding: 0 .2rem; }

/* Поиск */
.search-form { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.2rem 0; }
.search-form__field {
    flex: 1 1 220px; min-width: 0;
    padding: .6rem .8rem;
    font: inherit; color: var(--ink);
    background: var(--sheet);
    border: 2px solid var(--ink); border-radius: 0;
}
.search-form__btn, .comment-form .submit, .cookie-banner__btn {
    padding: .6rem 1.2rem;
    font: 700 1rem/1.2 var(--sans);
    color: var(--ink);
    background: var(--marker);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.search-form__btn:hover, .comment-form .submit:hover, .cookie-banner__btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.sidebar .search-form__field { border-color: var(--line); }

/* 404 */
.lost { text-align: center; }
.lost__code { margin: 0; font-family: var(--hand); font-weight: 700; font-size: clamp(5rem, 16vw, 9rem); line-height: .9; color: var(--coral); transform: rotate(-4deg); }
.lost .search-form { max-width: 32rem; margin-inline: auto; }
.lost__home { margin: 1.4rem 0 0; }

/* Комментарии */
.comments__title, .comment-reply-title { font-family: var(--hand); font-weight: 700; font-size: 2rem; line-height: 1.1; margin: 0 0 1rem; }
.comments__list, .comments__list .children { list-style: none; margin: 0; padding: 0; }
.comments__list .children { padding-left: clamp(1rem, 4vw, 2.4rem); }
.note__body { padding: 1rem 1.1rem; margin: 0 0 1rem; background: rgba(255, 253, 247, .85); border: 1px solid var(--rule); border-left: 4px solid var(--mint); }
.note__head { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.note__avatar { border-radius: 50%; }
.note__author { display: block; font-weight: 700; }
.note__date { font-size: .85rem; color: #4E5868; }
.note__wait { font-style: italic; color: #8A3A26; }
.note__reply a { font-weight: 700; font-size: .92rem; }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; font-weight: 700; margin-bottom: .25rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: .6rem .8rem; font: inherit; color: var(--ink);
    background: var(--sheet); border: 2px solid var(--ink); border-radius: 0;
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-notes, .logged-in-as { font-size: .92rem; color: #4E5868; }
.comments .comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }

/* ---------- Подвал ---------- */
.site-foot {
    background: var(--foot);
    color: #C9D2DE;
    padding: 3rem 0 1.4rem;
    border-top: 3px solid #1C2A40;
}
.site-foot__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.site-foot__col { min-width: 0; }
.site-foot .widget { margin: 0; color: #C9D2DE; }
.site-foot .widget-title { margin: 0 0 .7rem; font-family: var(--sans); font-weight: 700; font-size: 1.3rem; color: var(--cream); }
.site-foot .widget p { color: #C9D2DE; margin: 0 0 .8em; }
.site-foot .widget ul { list-style: none; margin: 0; padding: 0; }
.site-foot .widget li { margin: 0 0 .35rem; }
.site-foot .widget a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(245, 241, 232, .45); text-underline-offset: 3px; }
.site-foot .widget a:hover { color: var(--marker); text-decoration: underline wavy var(--mint); }
.site-foot__copy { margin: 2.4rem 0 0; padding-top: 1.1rem; border-top: 1px solid #1F2C42; font-size: .9rem; color: var(--muted); }

/* ---------- Cookie ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 90;
    max-width: 640px;
    margin-inline: auto;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: 1rem 1.3rem;
    color: var(--ink);
    background: var(--paper);
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, .45);
}
.cookie-banner__text { flex: 1 1 260px; margin: 0; font-size: .95rem; line-height: 1.4; }

/* ---------- Адаптив ---------- */
@media (min-width: 600px) {
    .cards, .cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.6rem; row-gap: 2.6rem; }
    .parts__item--1::after, .parts__item--3::after {
        content: ""; position: absolute; left: 100%; top: 50%; width: 2.6rem; border-top: 2px dashed var(--ink);
    }
    .parts__item--2::after {
        content: ""; position: absolute; left: 50%; top: 100%; height: 1.3rem; border-left: 2px dashed var(--ink);
    }
    .parts__item--3::before {
        content: ""; position: absolute; left: 50%; bottom: 100%; height: 1.3rem; border-left: 2px dashed var(--ink);
    }
    .parts::before {
        content: ""; position: absolute; left: 25%; right: 25%; top: 50%; border-top: 2px dashed var(--ink);
        margin-left: -.65rem; margin-right: -.65rem;
    }
    .week__days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-nav__link--next { grid-column: 2; }
    .site-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
    body.home { --shell-w: min(85%, 1180px); }
    .menu-toggle { display: none; }
    .site-nav { display: block; flex: 0 0 auto; }
    .tags-menu { grid-template-columns: minmax(0, 1fr); gap: .55rem; padding: 0; min-width: 10.5rem; }
    .masthead__inner { flex-wrap: nowrap; align-items: center; }

    .audience__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 2.5fr) minmax(0, .65fr); gap: 1.4rem; }
    .audience__pencil, .audience__clip, .paper__pen { display: block; }
    .touch-scale { flex-direction: column; align-items: center; padding-top: .6rem; }
    .touch-scale__ruler { margin-right: 5.5rem; }

    .builder__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; }
    .cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .funnel__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr) minmax(0, .8fr); }
    .week__days { grid-template-columns: repeat(7, minmax(0, 1fr)); }

    .layout-with-sidebar { grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; }
    .layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
    .layout-with-sidebar .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-single .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site-foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .board { padding: 2.2rem 0; }
    .sheet { padding: 1.5rem 1.2rem; }
    .funnel__memo { padding: 1.2rem 1.2rem 1.4rem; }
    .cookie-banner { padding: .9rem 1rem; }
    .touch-scale__ruler { height: 170px; }
    .card__foot { padding-right: 1.2rem; }
}

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