/*
Theme Name: dds_callahancc.com
Theme URI: https://callahancc.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: clhcc
*/

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

/* ---------- Переменные ---------- */
:root {
    --ink: #0E1B2C;
    --ink-2: #122238;
    --grid: #1C3350;
    --sand: #EFE6D2;
    --sheet: #FBF8F1;
    --deep-teal: #123A3C;
    --graphite: #0A0F16;
    --warm: #F5F0E6;
    --muted: #8FA3B8;
    --ink-muted: #5C6B7A;
    --lime: #C8F04A;
    --coral: #FF6B4A;
    --mustard: #E8B23A;
    --teal: #2FB5A8;
    --line: #33475F;
    --head: "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
    --body: "Fira Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --slant: 3.2rem;
}

/* ---------- Служебные правила hidden (до основных блоков) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--warm);
    background-color: var(--ink);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        linear-gradient(rgba(28, 51, 80, .45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 51, 80, .45) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
}
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--head);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 .6em;
    letter-spacing: -.005em;
    overflow-wrap: break-word;
    hyphens: auto;
}
p, li, td, th, dd, blockquote, figcaption, .card-title, .brand__name { overflow-wrap: break-word; hyphens: auto; }
a { color: inherit; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
button, input, textarea, select { font: inherit; }
.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(--lime); color: var(--ink); padding: .6rem 1rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px dashed var(--lime); outline-offset: 3px; }

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

/* ---------- Общие элементы ---------- */
.tag-btn {
    display: inline-block;
    padding: .55rem 1.15rem .5rem;
    background: var(--lime);
    color: var(--ink);
    font-family: var(--head);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .01em;
    line-height: 1.2;
    text-decoration: none;
    border: 0;
    border-radius: 0;
    transform: rotate(-1.5deg);
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
    white-space: normal;
}
.tag-btn:hover, .tag-btn:focus-visible {
    background: var(--ink);
    color: var(--lime);
    transform: rotate(0) translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--lime);
}
.dash-link {
    color: var(--warm);
    text-decoration: none;
    border-bottom: 2px dashed var(--lime);
    padding-bottom: 1px;
    transition: color .15s ease, border-color .15s ease;
}
.dash-link:hover { color: var(--lime); border-bottom-style: solid; }

.sec-title {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 0 0 2.2rem;
    font-family: var(--head);
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--warm);
    text-align: center;
}
.sec-title::before, .sec-title::after {
    content: "";
    flex: 1 1 0;
    min-width: 1.5rem;
    height: 1px;
    background: var(--line);
}
.sec-title span { position: relative; padding-left: 1.4rem; min-width: 0; }
.sec-title span::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: .7rem; height: .7rem;
    margin-top: -.35rem;
    background: var(--lime);
}
.sec-title--ink { color: var(--ink); }
.sec-title--ink::before, .sec-title--ink::after { background: rgba(14, 27, 44, .3); }
.sec-title--ink span::before { background: var(--ink); box-shadow: 3px 3px 0 var(--lime); }

.paper {
    background-color: var(--sand);
    background-image: url("images/paper-tile.jpg");
    background-size: 320px 320px;
    color: var(--ink);
}

.rings {
    position: absolute;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle at center, transparent 0 30px, rgba(143, 163, 184, .16) 30px 44px);
    -webkit-mask: radial-gradient(circle, #000 0 70%, transparent 71%);
    mask: radial-gradient(circle, #000 0 70%, transparent 71%);
    pointer-events: none;
    z-index: 0;
}
.rings--left { left: -200px; top: 55%; }
.rings--right { right: -190px; top: 8%; }

.empty-note { color: var(--muted); font-style: italic; }
.empty-note--ink { color: var(--ink-muted); }

/* ---------- Шапка ---------- */
.masthead {
    position: relative;
    z-index: 5;
    border-bottom: 1px solid var(--line);
    background: rgba(14, 27, 44, .86);
}
.masthead__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.3rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--warm);
    min-width: 0;
    flex: 1 1 22rem;
    max-width: 36rem;
}
.brand__mark { flex: 0 0 auto; display: block; width: 58px; }
.brand__mark svg, .brand__mark img { display: block; width: 58px; height: auto; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
    font-family: var(--head);
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.15;
}
.brand__desc {
    margin-top: .35rem;
    font-size: .84rem;
    line-height: 1.4;
    color: var(--muted);
}
.brand:hover .brand__name { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .9rem;
    background: transparent;
    color: var(--warm);
    border: 1px solid var(--line);
    cursor: pointer;
    font-family: var(--head);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .9rem;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 2px; background: var(--lime); position: relative; content: "";
}
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.topnav { display: none; flex-basis: 100%; }
.topnav.is-open { display: block; }
.topnav__list { list-style: none; margin: 0; padding: .4rem 0 0; }
.topnav__list li { border-top: 1px dashed var(--line); }
.topnav__list a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 0;
    color: var(--warm);
    text-decoration: none;
    font-weight: 500;
    font-size: .88rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.topnav__list a::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--lime);
    flex: 0 0 auto;
}
.topnav__list a:hover, .topnav__list .current-menu-item > a { color: var(--lime); }

/* ---------- Секции главной: база ---------- */
.fs { position: relative; padding: 3.5rem 0; overflow: hidden; }
.fs > .clh-shell { position: relative; z-index: 1; }

/* Блок 1 — Карта цели */
.fs-route { padding: 3.2rem 0 3.8rem; }
.route-board {
    position: relative;
    padding: 2rem 1.4rem 2.4rem;
    background: rgba(18, 34, 56, .9);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.route-board .sec-title { margin-bottom: 1.6rem; }
.route-board__intro { max-width: 30rem; }
.route-board__head {
    font-size: clamp(1.7rem, 3.6vw, 2.45rem);
    font-weight: 800;
    color: var(--warm);
    margin-bottom: .5rem;
}
.route-board__head::after {
    content: "";
    display: block;
    width: 5.5rem; height: 6px;
    margin-top: .5rem;
    background: var(--lime);
    transform: rotate(-1.5deg);
    border-radius: 3px 1px 4px 2px;
}
.route-board__lead { color: #D9DEE5; font-size: 1.02rem; margin-bottom: 0; }

.sticker {
    position: absolute;
    top: -1.2rem;
    right: 1rem;
    width: 6.4rem;
    padding: 1rem .7rem 1.1rem;
    background: var(--mustard);
    color: var(--ink);
    font-family: var(--head);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.12;
    text-align: center;
    transform: rotate(6deg);
    box-shadow: 4px 5px 0 rgba(0, 0, 0, .35);
    z-index: 2;
}
.sticker::before {
    content: "";
    position: absolute;
    top: -9px; left: 50%;
    width: 46px; height: 16px;
    margin-left: -23px;
    background: rgba(245, 240, 230, .55);
    transform: rotate(-4deg);
}

/* Маршрут — мобильная версия (вертикальная) */
.track { margin-top: 2.2rem; display: grid; gap: 1.6rem; }
.track__bar { position: relative; padding-left: 2.2rem; }
.track__bar::before {
    content: "";
    position: absolute;
    left: 1.05rem; top: .6rem; bottom: -.8rem;
    width: 14px;
    background: var(--teal);
}
.track__bar::after {
    content: "";
    position: absolute;
    left: calc(1.05rem - 10px); bottom: -1.9rem;
    border-left: 17px solid transparent;
    border-right: 17px solid transparent;
    border-top: 20px solid var(--teal);
}
.track__stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; position: relative; }
.track__stop { display: flex; align-items: center; gap: 1rem; position: relative; }
.track__num, .track__pin {
    flex: 0 0 auto;
    margin-left: -2.55rem;
    display: grid;
    place-items: center;
    width: 2.8rem; height: 2.8rem;
    border-radius: 50%;
    background: var(--coral);
    border: 2px solid var(--ink);
    color: var(--ink);
    font-family: var(--head);
    font-weight: 700;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}
.track__pin { background: var(--ink); border: 3px solid var(--teal); width: 1.6rem; height: 1.6rem; margin-left: -1.95rem; }
.track__label { font-weight: 500; font-size: 1.02rem; color: var(--warm); }
.track__goal {
    position: relative;
    margin: 1.2rem 0 0;
    justify-self: center;
    width: 9rem;
    text-align: center;
}
.track__goal img { width: 100%; height: auto; }
.track__goal-cap { font-weight: 500; margin-bottom: .5rem; color: var(--warm); }
.stamp {
    position: absolute;
    right: -1.6rem; bottom: .2rem;
    padding: .1rem .6rem;
    border: 3px solid var(--coral);
    outline: 1px solid var(--coral);
    outline-offset: 2px;
    color: var(--coral);
    font-family: var(--head);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    transform: rotate(-12deg);
    background: rgba(14, 27, 44, .55);
    opacity: .92;
}

/* Блок 2 — Два формата */
.fs-formats { padding: 3.4rem 0 calc(3.4rem + var(--slant)); }
.formats { display: grid; gap: 2.4rem; }
.formats__side { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.formats__name { font-size: clamp(2.3rem, 5vw, 3.3rem); font-weight: 800; color: var(--ink); margin-bottom: .15rem; letter-spacing: -.01em; }
.formats__sub { font-size: 1.22rem; font-weight: 500; margin-bottom: 1rem; }
.formats__note { font-size: .95rem; color: var(--ink-muted); max-width: 26rem; margin: 1.2rem 0 0; }
.marker-list, .check-list { list-style: none; margin: 0; padding: 0; text-align: left; }
.marker-list li { margin: .35rem 0; font-size: 1.2rem; }
.marker-list li span {
    padding: 0 .15rem;
    background-image: linear-gradient(176deg, transparent 62%, var(--lime) 62%, var(--lime) 84%, transparent 84%);
}
.check-list li {
    position: relative;
    padding-left: 2rem;
    margin: .35rem 0;
    font-size: 1.2rem;
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 0; top: .28em;
    width: 1.15rem; height: 1.15rem;
    border: 2px solid var(--coral);
    background: var(--sheet);
}
.check-list li::after {
    content: "";
    position: absolute;
    left: .28rem; top: .05em;
    width: .55rem; height: .95rem;
    border: solid var(--coral);
    border-width: 0 3px 3px 0;
    transform: rotate(40deg);
}
.formats__divider {
    position: relative;
    height: 3rem;
    width: 2px;
    justify-self: center;
    background-image: linear-gradient(var(--ink) 55%, transparent 55%);
    background-size: 2px 10px;
}
.formats__divider::after {
    content: "";
    position: absolute;
    left: -6px; bottom: -4px;
    width: 10px; height: 10px;
    border: solid var(--ink);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Блок «Последние записи» */
.fs-latest {
    margin-top: calc(-1 * var(--slant));
    padding: calc(3rem + var(--slant)) 0 calc(3.6rem + var(--slant));
    background-color: var(--ink-2);
    background-image:
        linear-gradient(rgba(28, 51, 80, .7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 51, 80, .7) 1px, transparent 1px);
    background-size: 60px 60px;
    clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.fs-latest__all { text-align: center; margin: 2.6rem 0 0; }

/* ---------- Карточки записей ---------- */
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.6rem 2rem; }
.card-holder { position: relative; min-width: 0; transform: rotate(-.8deg); transition: transform .18s ease; }
.card-holder:nth-child(3n+2) { transform: rotate(.9deg); }
.card-holder:nth-child(3n) { transform: rotate(-.4deg); }
.card-holder::before {
    content: "";
    position: absolute;
    inset: 6px -6px -6px 6px;
    background: var(--sand);
    border: 1px solid rgba(14, 27, 44, .55);
    transform: rotate(2.2deg);
    z-index: 0;
}
.card-holder:hover, .card-holder:focus-within { transform: rotate(0) translate(-3px, -4px); }
.card-clip { position: absolute; top: -18px; left: 22px; width: 20px; height: 48px; z-index: 3; }
.card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--sheet);
    color: var(--ink);
    border: 1px solid var(--ink);
    padding: 14px 14px 22px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 94% 100%, 86% calc(100% - 5px), 77% 100%, 68% calc(100% - 4px), 58% 100%, 49% calc(100% - 6px), 39% 100%, 30% calc(100% - 4px), 20% 100%, 11% calc(100% - 5px), 4% 100%, 0 calc(100% - 7px));
}
.card-holder:nth-child(even) .card { background: var(--sand); }
.card-thumb { display: block; border: 1px solid var(--ink); overflow: hidden; background: var(--sand); }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease; }
.card-holder:hover .card-thumb img { transform: scale(1.03); }
.card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding-top: .9rem; }
.card-title { font-size: 1.22rem; margin: 0 0 .45rem; line-height: 1.2; }
.card-title a { text-decoration: none; color: var(--ink); background-image: linear-gradient(var(--lime), var(--lime)); background-size: 0 35%; background-position: 0 88%; background-repeat: no-repeat; transition: background-size .2s ease; }
.card-title a:hover { background-size: 100% 35%; }
.card-excerpt { font-size: .93rem; line-height: 1.5; color: #24324A; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--ink); }
.card-date { display: block; margin: .2rem 0 1rem; font-size: .85rem; color: var(--ink-muted); }
.card-more { margin-top: auto; }

/* Блок 3 — Разбор задачи по частям */
.fs-parts {
    z-index: 2;
    margin-top: calc(-1 * var(--slant));
    padding: calc(3rem + var(--slant)) 0 calc(3rem + var(--slant));
    background-color: var(--deep-teal);
    background-image:
        linear-gradient(rgba(47, 181, 168, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 181, 168, .07) 1px, transparent 1px);
    background-size: 30px 30px;
    clip-path: polygon(0 0, 100% var(--slant), 100% calc(100% - var(--slant)), 0 100%);
}
.parts { display: grid; gap: 2rem; align-items: center; }
.wheel { position: relative; min-width: 0; }
.wheel__lines { display: none; }
.wheel__disc { position: relative; width: min(86%, 380px); margin: 0 auto; }
.wheel__disc img { width: 100%; height: auto; }
.wheel__tag {
    position: absolute;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: clamp(.72rem, 2.6vw, .95rem);
    color: var(--warm);
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}
.wheel__tag--tl { left: 34%; top: 34%; }
.wheel__tag--tr { left: 66%; top: 34%; }
.wheel__tag--bl { left: 34%; top: 66%; white-space: normal; width: 4.6rem; }
.wheel__tag--br { left: 66%; top: 66%; }
.wheel__notes { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1rem; }
.wheel__note {
    position: relative;
    background: var(--sheet);
    color: var(--ink);
    border: 1px solid var(--ink);
    padding: .75rem 1.6rem .8rem .9rem;
    font-size: .9rem;
    line-height: 1.4;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.wheel__note::after {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 16px; height: 16px;
    background: linear-gradient(225deg, var(--deep-teal) 50%, #D8D0BD 50%);
}
.wheel__note b { font-family: var(--head); font-weight: 700; }
.wheel__note--tl, .wheel__note--br { transform: rotate(-1.2deg); }
.wheel__note--tr, .wheel__note--bl { transform: rotate(1.1deg); }
.parts__stat { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-items: center; min-width: 0; }
.parts__num {
    grid-row: span 2;
    font-family: var(--head);
    font-weight: 800;
    font-size: clamp(6rem, 14vw, 9rem);
    line-height: .85;
    color: var(--coral);
}
.parts__caption { font-family: var(--head); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.1; margin: 0; color: var(--warm); }
.parts__hint { margin: .6rem 0 0; color: #B9C9CF; font-size: .95rem; }

/* Блок 4 — Практика обсуждения */
.fs-diary { margin-top: calc(-1 * var(--slant)); padding: calc(3.2rem + var(--slant)) 0 4rem; }
.diary { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.diary thead { display: none; }
.diary tr { display: block; padding: .9rem 0; border-bottom: 2px dashed rgba(14, 27, 44, .35); }
.diary td { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .8rem; padding: .25rem 0; border: 0; }
.diary td::before { content: attr(data-label); font-family: var(--head); font-weight: 700; color: var(--ink-muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.diary td:first-child { font-weight: 600; }
.diary__next { display: inline-flex; align-items: center; gap: .7rem; }
.diary__next::after {
    content: "";
    width: 30px; height: 12px;
    flex: 0 0 auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'%3E%3Cpath d='M1 6h26M21 1l6 5-6 5' fill='none' stroke='%23FF6B4A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Подвал ---------- */
.colophon {
    position: relative;
    background: var(--graphite);
    color: #C3CCD6;
    padding: 3rem 0 1.6rem;
    border-top: 4px solid var(--lime);
    font-size: .95rem;
}
.colophon__cols { display: grid; gap: 2rem; }
.colophon__col { min-width: 0; }
.colophon .widget { margin: 0; }
.colophon .widget-title { font-size: 1.2rem; color: var(--warm); margin-bottom: .8rem; }
.colophon .widget p, .colophon .textwidget { color: #C3CCD6; }
.colophon a { color: var(--warm); text-decoration: none; border-bottom: 1px dashed rgba(200, 240, 74, .6); }
.colophon a:hover { color: var(--lime); border-bottom-color: var(--lime); }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin: 0 0 .45rem; }
.colophon__copy {
    margin: 2.4rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid #1E2A38;
    text-align: center;
    font-size: .84rem;
    color: var(--muted);
}

/* ---------- Внутренние страницы ---------- */
.inner { padding: 1.6rem 0 4rem; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin: 0 0 1.8rem; }
.breadcrumbs a { color: var(--warm); text-decoration: none; border-bottom: 1px dashed var(--lime); }
.breadcrumbs a:hover { color: var(--lime); }
.breadcrumbs .sep { color: var(--lime); margin: 0 .35rem; }
.layout-single { width: 85%; margin-left: auto; margin-right: auto; }
.layout-with-sidebar { display: block; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 2.2rem; }
.page-head__title {
    font-size: clamp(2rem, 4.4vw, 3rem);
    font-weight: 800;
    color: var(--warm);
    display: inline;
    background-image: linear-gradient(176deg, transparent 70%, var(--lime) 70%, var(--lime) 82%, transparent 82%);
}
.page-head__intro { margin-top: 1rem; color: #D2D9E2; max-width: 46rem; }

.sheet {
    position: relative;
    background-color: var(--sheet);
    background-image: url("images/paper-tile.jpg");
    background-size: 320px 320px;
    color: var(--ink);
    border: 1px solid var(--ink);
    padding: 1.6rem 1.3rem 2rem;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, .35);
}
.entry__title { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; color: var(--ink); }
.entry__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--ink-muted); font-size: .9rem; }
.entry__cat a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--coral); }
.entry__thumb { margin: 0 0 1.6rem; border: 1px solid var(--ink); }
.entry__thumb img { width: 100%; }
.entry__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; }
.entry__tags a { display: inline-block; padding: .2rem .6rem; background: var(--mustard); color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 500; transform: rotate(-1deg); }
.entry__tags a:hover { background: var(--lime); }

.entry-content { font-size: 1.06rem; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 1.75rem; margin-top: 1.8em; }
.entry-content h2::after { content: ""; display: block; width: 3.5rem; height: 5px; margin-top: .35rem; background: var(--lime); }
.entry-content h3 { font-size: 1.4rem; margin-top: 1.5em; }
.entry-content h4 { font-size: 1.2rem; margin-top: 1.3em; }
.entry-content a { color: var(--ink); text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #7FA012; text-underline-offset: 3px; }
.entry-content a:hover { background: var(--lime); text-decoration-style: solid; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--coral); }
.entry-content ol li::marker { color: var(--coral); font-family: var(--head); font-weight: 700; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.4rem 1.2rem 1.6rem;
    background: var(--ink);
    color: var(--warm);
    border-left: 6px solid var(--lime);
    font-size: 1.12rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .6rem; font-size: .9rem; color: var(--muted); font-style: normal; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .96rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--ink); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--ink); color: var(--warm); font-family: var(--head); font-weight: 700; }
.entry-content tr:nth-child(even) td { background: rgba(239, 230, 210, .6); }
.entry-content img { max-width: 100%; height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .88rem; color: var(--ink-muted); margin-top: .4rem; }
.entry-content pre { background: var(--ink); color: var(--warm); padding: 1rem; overflow-x: auto; font-size: .9rem; }
.entry-content code { background: rgba(14, 27, 44, .08); padding: .05em .3em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content hr { border: 0; border-top: 2px dashed rgba(14, 27, 44, .35); margin: 2em 0; }

.neighbors { display: grid; gap: 1rem; margin: 2rem 0 0; }
.neighbors__link {
    display: block;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    background: var(--ink-2);
    color: var(--warm);
    text-decoration: none;
    font-family: var(--head);
    font-weight: 700;
    font-size: 1.05rem;
    transition: transform .15s ease, border-color .15s ease;
}
.neighbors__link span { display: block; font-family: var(--body); font-weight: 400; font-size: .82rem; color: var(--muted); margin-bottom: .2rem; }
.neighbors__link:hover { border-color: var(--lime); transform: translate(-2px, -2px); }
.neighbors__link--next { text-align: right; }

/* ---------- Сайдбар ---------- */
.sidebar {
    margin-top: 3rem;
    background: var(--ink-2);
    border: 1px solid var(--line);
    padding: 1.4rem 1.3rem;
    color: #D2D9E2;
    min-width: 0;
}
.sidebar .widget { margin: 0 0 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    position: relative;
    padding-left: 1.2rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--warm);
    margin-bottom: 1rem;
}
.sidebar .widget-title::before { content: ""; position: absolute; left: 0; top: .3em; width: .62rem; height: .62rem; background: var(--lime); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed var(--line); line-height: 1.4; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--warm); text-decoration: none; }
.sidebar a:hover { color: var(--lime); }
.sidebar .post-date { display: block; font-size: .8rem; color: var(--muted); }
.sidebar p, .sidebar .textwidget { color: #D2D9E2; }

/* ---------- Пагинация (type => plain) ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .55rem; margin: 3rem 0 0; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    padding: .45rem .8rem;
    background: var(--sand);
    color: var(--ink);
    border: 1px solid var(--ink);
    font-family: var(--head);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, .4);
    transform: rotate(-1deg);
    transition: transform .15s ease, background-color .15s ease;
}
.pager .page-numbers:nth-child(even) { transform: rotate(1deg); }
.pager a.page-numbers:hover { background: var(--lime); transform: translate(-2px, -2px); }
.pager .page-numbers.current { background: var(--lime); box-shadow: 3px 3px 0 var(--coral); }
.pager .page-numbers.dots { background: none; border: 0; box-shadow: none; color: var(--warm); min-width: 0; }
.pager--inline { justify-content: flex-start; margin: 1.5rem 0 0; }

/* ---------- Поиск ---------- */
.seek { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }
.seek__field {
    flex: 1 1 14rem;
    min-width: 0;
    padding: .65rem .9rem;
    border: 1px solid var(--ink);
    background: var(--sheet);
    color: var(--ink);
    border-radius: 0;
}
.seek__field:focus { outline: 2px solid var(--lime); outline-offset: 0; border-color: var(--ink); }
.sidebar .seek__field, .colophon .seek__field { border-color: var(--line); }

/* ---------- 404 ---------- */
.lost { text-align: left; }
.lost__code { font-family: var(--head); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: .9; color: var(--coral); margin: 0 0 .4rem; }
.lost__title { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.lost__home { margin: 1.6rem 0 0; }

/* ---------- Комментарии ---------- */
.talk { margin-top: 2.4rem; }
.talk__title, .comment-reply-title { font-size: 1.5rem; }
.talk__list, .talk__list .children { list-style: none; margin: 0; padding: 0; }
.talk__list .children { padding-left: 1.4rem; border-left: 2px dashed rgba(14, 27, 44, .25); }
.note-comment__body { padding: 1rem 0; border-bottom: 1px dashed rgba(14, 27, 44, .3); }
.note-comment__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; margin-bottom: .5rem; }
.note-comment__meta img { border-radius: 50%; border: 2px solid var(--ink); display: block; }
.note-comment__author { font-weight: 600; }
.note-comment__meta time { color: var(--ink-muted); font-size: .85rem; }
.note-comment__wait { color: var(--coral); font-style: italic; }
.note-comment__reply a { font-size: .9rem; color: var(--ink); text-decoration: none; border-bottom: 2px dashed #7FA012; }
.comment-respond { margin-top: 1.6rem; }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; font-weight: 500; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .6rem .8rem;
    border: 1px solid var(--ink);
    background: var(--sheet);
    color: var(--ink);
    border-radius: 0;
}
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; font-size: .92rem; }
.comment-notes, .logged-in-as, .must-log-in { color: var(--ink-muted); font-size: .92rem; }
.comment-notes a, .logged-in-as a, .must-log-in a { color: var(--ink); }
#cancel-comment-reply-link { margin-left: .6rem; font-size: .9rem; color: var(--coral); }
.talk__closed { color: var(--ink-muted); }
.comments-pagination, .comment-navigation { margin-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .8rem 1.6rem;
    padding: 1rem 1.4rem;
    background: var(--ink);
    color: var(--warm);
    border-top: 3px solid var(--lime);
    font-size: .92rem;
}
.cookie-banner__text { margin: 0; max-width: 46rem; }
.cookie-banner__btn:hover, .cookie-banner__btn:focus-visible { background: var(--warm); color: var(--ink); box-shadow: 5px 5px 0 var(--lime); }

/* ---------- WordPress ---------- */
.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .88rem; color: var(--ink-muted); }
.sticky .card { box-shadow: inset 0 4px 0 var(--coral); }
.bypostauthor .note-comment__author::after { content: " · автор"; color: var(--ink-muted); font-weight: 400; }

/* =================================================
   ≥ 600px
   ================================================= */
@media (min-width: 600px) {
    .route-board { padding: 2.2rem 2.4rem 2.6rem; }
    .sticker { right: 2rem; width: 7rem; font-size: 1.15rem; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wheel__notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sheet { padding: 2.2rem 2.4rem 2.6rem; }
    .neighbors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .neighbors__link--next { grid-column: 2; }
    .colophon__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .diary thead { display: table-header-group; }
    .diary tr { display: table-row; padding: 0; }
    .diary td { display: table-cell; padding: 1.05rem 1.2rem; border-bottom: 2px dashed rgba(14, 27, 44, .35); border-left: 2px dashed rgba(14, 27, 44, .35); }
    .diary td:first-child, .diary th:first-child { border-left: 0; padding-left: 0; }
    .diary td::before { content: none; }
    .diary th {
        text-align: left;
        padding: .7rem 1.2rem;
        font-family: var(--head);
        font-weight: 700;
        font-size: 1.15rem;
        border-bottom: 2px solid var(--ink);
        border-left: 2px dashed rgba(14, 27, 44, .35);
    }
    .diary__next { display: flex; justify-content: space-between; }
}

/* =================================================
   ≥ 960px
   ================================================= */
@media (min-width: 960px) {
    .masthead__row { flex-wrap: nowrap; padding: 1.5rem 0; }
    .nav-toggle { display: none; }
    .topnav, .topnav.is-open { display: block; flex-basis: auto; }
    .topnav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem 1.4rem; padding: 0; }
    .topnav__list li { border-top: 0; }
    .topnav__list a { padding: .3rem 0; font-size: .82rem; }
    .topnav__list li:first-child a::before { display: none; }

    .route-board { padding: 2.4rem 3rem 3.2rem; }
    .sticker { top: -1.4rem; right: 2.6rem; width: 8rem; font-size: 1.3rem; padding: 1.2rem .8rem 1.3rem; }

    /* Горизонтальный маршрут */
    .track { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 3.4rem; margin-top: 3.4rem; padding-bottom: 2.4rem; }
    .track__bar { padding: 0; height: 44px; background: var(--teal); }
    .track__bar::before {
        left: 0; right: 0; top: 50%; bottom: auto;
        width: auto; height: 0;
        background: none;
        border-top: 2px dashed var(--ink);
    }
    .track__bar::after {
        left: 100%; bottom: auto; top: 50%;
        transform: translateY(-50%);
        border-top: 36px solid transparent;
        border-bottom: 36px solid transparent;
        border-left: 40px solid var(--teal);
        border-right: 0;
    }
    .track__stops { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
    .track__stop { justify-content: center; }
    .track__stop--start { justify-content: flex-start; }
    .track__num { margin: 0; width: 3.4rem; height: 3.4rem; font-size: 1.55rem; }
    .track__pin { display: none; }
    .track__label { position: absolute; top: calc(100% + 1.2rem); left: 50%; transform: translateX(-50%); white-space: nowrap; }
    .track__stop--start .track__label { left: 0; transform: none; }
    .track__goal { margin: 0; width: 9.5rem; }
    .track__goal-cap { position: absolute; bottom: calc(100% + .3rem); left: 0; right: 0; margin: 0; }

    .formats { grid-template-columns: minmax(0, 1fr) 4rem minmax(0, 1.1fr); gap: 0; align-items: start; }
    .formats__divider { height: 100%; min-height: 15rem; }

    .card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .layout-single .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .parts { grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: 2.4rem; }
    .wheel { aspect-ratio: 16 / 10; }
    .wheel__lines {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%; height: 100%;
        overflow: visible;
    }
    .wheel__lines path { fill: none; stroke: var(--teal); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
    .wheel__disc { position: absolute; left: 50%; top: 50%; width: 46%; margin: 0; transform: translate(-50%, -50%); }
    .wheel__notes { margin: 0; display: block; }
    .wheel__note { position: absolute; width: 26%; font-size: .84rem; }
    .wheel__note--tl { left: 0; top: 2%; }
    .wheel__note--tr { right: 0; top: 2%; }
    .wheel__note--bl { left: 0; bottom: 4%; }
    .wheel__note--br { right: 0; bottom: 4%; }
    .parts__stat { grid-template-columns: auto minmax(0, 1fr); }

    .layout-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        column-gap: 6%;
        align-items: start;
    }
    .layout-with-sidebar .sidebar { margin-top: 0; }
    .colophon__cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
}

@media (min-width: 1200px) {
    .layout-single .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
    :root { --slant: 1.8rem; }
    .clh-shell--front { width: 92%; }
    .layout-single { width: 100%; }
    .route-board { padding: 2rem 1.2rem 2.2rem; }
    .sticker { position: relative; top: auto; right: auto; margin: 1.4rem 0 0 auto; display: block; }
    .stamp { right: -1rem; }
    .fs-formats { padding-left: 0; padding-right: 0; }
    .diary td { grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); }
    .cookie-banner { padding: .9rem 1rem; }
    .sec-title { gap: .5rem; }
    .sec-title::before, .sec-title::after { min-width: .8rem; }
}

/* На главной — ровно три карточки (закреплённая запись идёт первой) */
.card-grid--three .card-holder:nth-child(n+4) { display: none; }
