/*
Theme Name: dds_rickgoldschmidt.com
Theme URI: https://rickgoldschmidt.com/
Author: Рик Гольдшмидт
Author URI: https://rickgoldschmidt.com/
Description: Контентный образовательный сайт о финансовой грамотности с авторской визуальной подачей: статьи, иллюстрированные разборы, комиксы о деньгах, привычках, бюджете и безопасном обращении с личными финансами.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dds_rickgoldschmidt
*/

/* ============================================
   Базовая переменная-палитра
   ============================================ */
:root {
    --paper: #FEF9E8;
    --paper-deep: #F4EDD0;
    --ink: #2A2620;
    --ink-soft: #4F4A40;
    --terra: #E15A3D;
    --terra-deep: #B8462E;
    --indigo: #2E5A7F;
    --ochre: #D49A2A;
    --olive: #8F9E6B;
    --cloud: #FFFFFF;
    --line: #D8CFA8;
    --shadow-soft: 0 4px 14px rgba(46, 90, 127, 0.08);
    --shadow-pop: 0 6px 0 -2px rgba(225, 90, 61, 0.18), 0 10px 22px rgba(46, 38, 32, 0.10);
    --radius-handmade: 14px 6px 14px 6px;
    --radius-handmade-alt: 6px 14px 6px 14px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Georgia", "PT Serif", "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(rgba(143, 158, 107, 0.05) 1px, transparent 1px),
        radial-gradient(rgba(212, 154, 42, 0.04) 1px, transparent 1px);
    background-size: 28px 28px, 41px 41px;
    background-position: 0 0, 14px 21px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    margin: 0 0 1.1em;
}

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

a {
    color: var(--terra-deep);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s ease;
}

a:hover {
    color: var(--terra);
}

/* Заголовки — рукописная подача */
h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", "Georgia", serif;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    margin: 1.4em 0 0.5em;
    letter-spacing: -0.005em;
}

h1 { font-size: 2.1rem; font-style: italic; }
h2 { font-size: 1.6rem; font-style: italic; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

/* Таблицы */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.4em 0;
    border: 1px solid var(--line);
    background: var(--cloud);
}

th, td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
}

th {
    background: var(--paper-deep);
    font-family: "Playfair Display", "Georgia", serif;
}

blockquote {
    margin: 1.6em 0;
    padding: 0.8em 1.2em;
    border-left: 4px solid var(--indigo);
    color: var(--indigo);
    font-style: italic;
    background: rgba(46, 90, 127, 0.04);
    border-radius: var(--radius-handmade-alt);
}

code, pre {
    background: var(--paper-deep);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.92em;
}

pre {
    padding: 14px 16px;
    overflow-x: auto;
}

/* ============================================
   Сетка-обёртка
   ============================================ */
.shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    margin: 36px 0 60px;
}

.layout--with-aside {
    grid-template-columns: 67% 27%;
    gap: 6%;
}

.layout--wide .layout-main {
    width: 85%;
    margin: 0 auto;
}

@media (max-width: 960px) {
    .layout--with-aside {
        grid-template-columns: 1fr;
    }
    .layout--wide .layout-main {
        width: 100%;
    }
}

/* ============================================
   Шапка
   ============================================ */
.top-bar {
    background: linear-gradient(180deg, var(--paper) 0%, rgba(254, 249, 232, 0) 100%);
    border-bottom: 1px dashed var(--line);
    padding: 22px 0 18px;
    position: relative;
}

.top-bar::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -3px;
    height: 3px;
    background-image:
        radial-gradient(circle at 8px 1.5px, var(--ochre) 1px, transparent 1.5px),
        radial-gradient(circle at 24px 1.5px, var(--terra) 1px, transparent 1.5px),
        radial-gradient(circle at 40px 1.5px, var(--indigo) 1px, transparent 1.5px),
        radial-gradient(circle at 56px 1.5px, var(--olive) 1px, transparent 1.5px);
    background-repeat: repeat-x;
    background-size: 64px 3px;
    opacity: .6;
}

.top-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex: 0 1 auto;
}

.brand:hover { color: inherit; }

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex: 0 0 56px;
}

.brand-logo--svg {
    width: 56px;
    height: 56px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--terra);
    line-height: 1.15;
    font-weight: 700;
    margin: 0;
    max-width: 540px;
}

.brand-tagline {
    font-size: 0.83rem;
    color: var(--ink-soft);
    line-height: 1.4;
    margin-top: 4px;
    max-width: 620px;
}

.nav-primary {
    margin-left: auto;
}

.nav-primary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.nav-primary a {
    color: var(--ink);
    text-decoration: none;
    font-family: "Playfair Display", "Georgia", serif;
    font-style: italic;
    font-size: 1.02rem;
    padding: 6px 4px 8px;
    position: relative;
    transition: color .2s ease;
}

.nav-primary a::after {
    content: "";
    position: absolute;
    left: 4px; right: 4px; bottom: 3px;
    height: 1px;
    background: var(--terra);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease, height .2s ease;
}

.nav-primary a:hover {
    color: var(--terra-deep);
}

.nav-primary a:hover::after {
    transform: scaleX(1);
    height: 2px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-handmade);
    padding: 8px 12px;
    font-family: inherit;
    cursor: pointer;
    color: var(--ink);
    margin-left: auto;
}

@media (max-width: 760px) {
    .nav-toggle { display: inline-block; }
    .nav-primary {
        flex-basis: 100%;
        margin-left: 0;
        display: none;
    }
    .nav-primary.is-open { display: block; }
    .nav-primary ul {
        flex-direction: column;
        gap: 4px;
        padding: 8px 0;
    }
    .brand-tagline { display: none; }
}

/* ============================================
   Хлебные крошки
   ============================================ */
.crumbs {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin: 22px 0 4px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-handmade);
    border: 1px dashed var(--line);
    display: inline-block;
}

.crumbs a {
    color: var(--indigo);
    text-decoration: none;
}

.crumbs a:hover { text-decoration: underline; }

.crumbs-sep {
    margin: 0 8px;
    color: var(--ochre);
}

/* ============================================
   Главная — тематические секции
   ============================================ */
.front-hero {
    background: linear-gradient(135deg, rgba(225, 90, 61, 0.07) 0%, rgba(212, 154, 42, 0.06) 100%);
    border-radius: 18px 8px 18px 8px;
    padding: 48px 40px;
    margin: 30px 0 38px;
    position: relative;
    border: 1px solid var(--line);
    overflow: hidden;
}

.front-hero::before {
    content: "₽";
    position: absolute;
    right: -10px; top: -30px;
    font-size: 240px;
    color: rgba(225, 90, 61, 0.06);
    font-family: "Playfair Display", serif;
    pointer-events: none;
    line-height: 1;
}

.front-hero h1 {
    margin-top: 0;
    font-size: 2.4rem;
    max-width: 720px;
    position: relative;
}

.front-hero p {
    max-width: 680px;
    font-size: 1.08rem;
    color: var(--ink-soft);
    position: relative;
}

.front-section {
    margin: 50px 0;
}

.front-section-title {
    display: inline-block;
    position: relative;
    margin-bottom: 24px;
    padding-bottom: 6px;
}

.front-section-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 64%;
    height: 6px;
    background: var(--ochre);
    border-radius: 3px;
    opacity: .5;
    z-index: -1;
}

.front-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 760px) {
    .front-cols { grid-template-columns: 1fr; }
}

.front-card {
    background: var(--cloud);
    padding: 24px 22px;
    border-radius: var(--radius-handmade);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
    position: relative;
}

.front-card-num {
    position: absolute;
    top: -14px;
    left: 18px;
    background: var(--terra);
    color: var(--cloud);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(225, 90, 61, 0.35);
}

.front-card h3 {
    margin-top: 8px;
    color: var(--indigo);
}

.front-callout {
    background: var(--cloud);
    border-radius: 24px;
    padding: 30px 36px;
    margin: 40px 0;
    box-shadow: 0 8px 22px rgba(46, 90, 127, 0.10);
    position: relative;
    border: 0;
}

.front-callout::before {
    content: "";
    position: absolute;
    bottom: -16px; left: 64px;
    width: 28px; height: 28px;
    background: var(--cloud);
    transform: rotate(45deg);
    box-shadow: 6px 6px 14px rgba(46, 90, 127, 0.10);
    border-radius: 0 0 4px 0;
}

.front-callout h2 {
    margin-top: 0;
    color: var(--terra-deep);
}

.front-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 18px;
}

@media (max-width: 760px) {
    .front-stats { grid-template-columns: 1fr; }
}

.front-stat {
    text-align: center;
    padding: 10px;
}

.front-stat-num {
    font-family: "Playfair Display", serif;
    font-size: 2.4rem;
    color: var(--indigo);
    font-style: italic;
    display: block;
    line-height: 1;
}

.front-stat-label {
    color: var(--ink-soft);
    font-size: 0.93rem;
    margin-top: 6px;
    display: block;
}

/* ============================================
   Карточки записей
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    margin: 24px 0 30px;
}

@media (max-width: 760px) {
    .cards-grid { grid-template-columns: 1fr; }
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--cloud);
    border-radius: var(--radius-handmade);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(46, 38, 32, 0.10);
}

/* Лента-метка категории слева */
.card-cat-tape {
    position: absolute;
    left: 0;
    top: 18px;
    width: 6px;
    height: 33%;
    background: var(--ochre);
    border-radius: 0 3px 3px 0;
    z-index: 2;
}

.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-thumb-link {
    display: block;
    line-height: 0;
}

.card-thumb-link img {
    display: block;
}

.card-body {
    flex: 1;
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.card-meta a {
    color: var(--olive);
    text-decoration: none;
}

.card-meta a:hover { text-decoration: underline; }

.card-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.card-title a {
    color: var(--ink);
    text-decoration: none;
    background-image: linear-gradient(transparent 92%, rgba(225, 90, 61, 0.25) 92%);
    background-size: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .3s ease;
}

.card-title a:hover {
    color: var(--terra-deep);
    background-size: 100% 100%;
}

.card-excerpt {
    color: var(--ink-soft);
    font-size: 0.97rem;
    margin-bottom: 14px;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-readmore {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--indigo);
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 1rem;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--indigo);
    transition: border-bottom-width .2s ease, color .2s ease;
    align-self: flex-start;
}

.card-readmore:hover {
    color: var(--terra-deep);
    border-bottom: 3px solid var(--terra);
}

.card-readmore::after {
    content: "→";
    transition: transform .2s ease;
}

.card-readmore:hover::after {
    transform: translateX(3px);
}

/* ============================================
   Контент записи / страницы
   ============================================ */
.entry {
    background: var(--cloud);
    border-radius: var(--radius-handmade);
    padding: 38px 44px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
}

.entry-title {
    margin-top: 0;
    font-size: 2.05rem;
    color: var(--ink);
}

.entry-meta {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
}

.entry-meta a {
    color: var(--olive);
    text-decoration: none;
}

.entry-content img {
    border-radius: var(--radius-handmade-alt);
}

.entry-thumb {
    width: 100%;
    border-radius: var(--radius-handmade-alt);
    margin-bottom: 22px;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    display: block;
}

@media (max-width: 600px) {
    .entry { padding: 24px 20px; }
    .entry-title { font-size: 1.55rem; }
}

/* ============================================
   Кнопки
   ============================================ */
.btn,
button.btn,
input[type="submit"].btn,
.wp-block-button__link {
    display: inline-block;
    background: var(--terra);
    color: var(--cloud);
    padding: 11px 22px;
    border-radius: var(--radius-handmade);
    border: 0;
    font-family: "Playfair Display", "Georgia", serif;
    font-style: italic;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: 0 4px 0 -1px var(--terra-deep);
}

.btn:hover,
button.btn:hover,
input[type="submit"].btn:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 -1px var(--terra-deep), 0 6px 12px rgba(225, 90, 61, 0.25);
    color: var(--cloud);
}

.btn--ghost {
    background: transparent;
    color: var(--terra-deep);
    border: 2px dashed var(--terra);
    box-shadow: none;
}

.btn--ghost:hover {
    background: rgba(225, 90, 61, 0.08);
    color: var(--terra-deep);
    box-shadow: none;
    transform: translateY(1px);
}

/* ============================================
   Боковая колонка
   ============================================ */
.sidebar {
    align-self: start;
}

.widget {
    background: var(--cloud);
    border-radius: var(--radius-handmade);
    padding: 22px 22px 18px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
}

.widget-title,
.widget h2,
.widget h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ochre);
    display: inline-block;
    color: var(--indigo);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.96rem;
}

.widget li:last-child { border-bottom: 0; }

.widget a {
    color: var(--ink);
    text-decoration: none;
}

.widget a:hover { color: var(--terra-deep); }

.widget select,
.widget input[type="text"],
.widget input[type="search"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-handmade-alt);
    background: var(--paper);
    font-family: inherit;
}

/* ============================================
   Подвал
   ============================================ */
.foot {
    background: var(--ink);
    color: #DDD2B6;
    padding: 50px 0 26px;
    margin-top: 60px;
    position: relative;
}

.foot::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background-image:
        radial-gradient(circle at 10px 1.5px, var(--ochre) 1.5px, transparent 2px),
        radial-gradient(circle at 30px 1.5px, var(--terra) 1.5px, transparent 2px),
        radial-gradient(circle at 50px 1.5px, var(--olive) 1.5px, transparent 2px);
    background-repeat: repeat-x;
    background-size: 60px 3px;
}

.foot a { color: #F2EAC4; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,0.18); }
.foot a:hover { color: var(--ochre); border-bottom-color: var(--ochre); }

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 30px;
}

@media (max-width: 760px) {
    .foot-cols { grid-template-columns: 1fr; gap: 26px; }
}

.foot .widget {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: #DDD2B6;
    margin-bottom: 0;
}

.foot .widget-title,
.foot .widget h2,
.foot .widget h3 {
    color: var(--ochre);
    border-bottom-color: rgba(212, 154, 42, 0.4);
}

.foot .widget li {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.foot .widget a { color: #F2EAC4; }

.foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
    font-size: 0.88rem;
    color: #B8AC85;
    text-align: center;
}

/* ============================================
   Пагинация
   ============================================ */
.pagination {
    margin: 32px 0 16px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--cloud);
    border: 1px solid var(--line);
    border-radius: var(--radius-handmade);
    color: var(--ink);
    text-decoration: none;
    font-family: "Playfair Display", serif;
    font-style: italic;
    transition: all .2s ease;
}

.pagination .page-numbers:hover {
    background: var(--paper-deep);
    border-color: var(--ochre);
}

.pagination .page-numbers.current {
    background: var(--terra);
    color: var(--cloud);
    border-color: var(--terra-deep);
    box-shadow: 0 3px 0 -1px var(--terra-deep);
}

.pagination .dots {
    background: transparent;
    border: 0;
}

/* ============================================
   Поиск
   ============================================ */
.search-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-handmade);
    background: var(--cloud);
    font-family: inherit;
    font-size: 0.96rem;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--terra);
    box-shadow: 0 0 0 3px rgba(225, 90, 61, 0.15);
}

.search-form button {
    padding: 10px 18px;
}

/* ============================================
   Комментарии
   ============================================ */
.comments-area {
    margin-top: 36px;
    background: var(--cloud);
    padding: 30px 36px;
    border-radius: var(--radius-handmade);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
}

.comments-title {
    margin-top: 0;
    color: var(--indigo);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list li {
    padding: 16px 0;
    border-bottom: 1px dashed var(--line);
}

.comment-list li:last-child { border-bottom: 0; }

.comment-author {
    font-family: "Playfair Display", serif;
    font-style: italic;
    color: var(--terra-deep);
    margin-bottom: 4px;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.comment-meta {
    font-size: 0.84rem;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.comment-list .children {
    list-style: none;
    margin: 12px 0 0;
    padding: 12px 0 0 24px;
    border-left: 2px dashed var(--ochre);
}

.comment-respond {
    margin-top: 24px;
}

.comment-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-handmade-alt);
    background: var(--paper);
    font-family: inherit;
    margin-bottom: 12px;
}

.comment-form textarea {
    min-height: 110px;
    resize: vertical;
}

/* ============================================
   404
   ============================================ */
.notfound {
    text-align: center;
    background: var(--cloud);
    padding: 60px 30px;
    border-radius: var(--radius-handmade);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
}

.notfound-num {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 7rem;
    color: var(--terra);
    line-height: 1;
    margin: 0;
    text-shadow: 4px 4px 0 rgba(212, 154, 42, 0.18);
}

.notfound p {
    color: var(--ink-soft);
    max-width: 520px;
    margin: 16px auto 24px;
}

/* ============================================
   Cookie-баннер
   ============================================ */
/* Это правило обязательно ДО основного блока стилей баннера (см. A11) */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    background: var(--ink);
    color: var(--paper);
    padding: 16px 20px;
    border-radius: var(--radius-handmade);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(212, 154, 42, 0.45);
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.93rem;
    flex: 1 1 280px;
    color: #E9DEB6;
}

.cookie-banner button {
    background: var(--ochre);
    color: var(--ink);
    border: 0;
    padding: 9px 18px;
    border-radius: var(--radius-handmade);
    cursor: pointer;
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 0.98rem;
    transition: background .2s ease;
    box-shadow: 0 3px 0 -1px #A87916;
}

.cookie-banner button:hover {
    background: #E2AC3A;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    .cookie-banner button { width: 100%; }
}

/* ============================================
   Индикатор «коротко о деньгах» — стикеры внизу записи
   ============================================ */
.short-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0 10px;
}

@media (max-width: 760px) {
    .short-notes { grid-template-columns: 1fr; }
}

.short-note {
    background: var(--paper-deep);
    padding: 18px 18px 16px;
    border-radius: var(--radius-handmade);
    position: relative;
    box-shadow: 2px 4px 0 -1px rgba(46, 38, 32, 0.08);
    transform: rotate(-0.6deg);
}

.short-note:nth-child(2) { transform: rotate(0.4deg); background: rgba(225, 90, 61, 0.10); }
.short-note:nth-child(3) { transform: rotate(-0.3deg); background: rgba(143, 158, 107, 0.14); }

.short-note::before {
    content: "";
    position: absolute;
    top: -7px; left: 14px;
    width: 38px; height: 14px;
    background: rgba(212, 154, 42, 0.55);
    border-radius: 2px;
    transform: rotate(-3deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ============================================
   Мелочь и утилиты
   ============================================ */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 8px 14px;
    z-index: 9999;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
}

.aligncenter { display: block; margin: 1em auto; }
.alignleft   { float: left; margin: 0 1em 1em 0; }
.alignright  { float: right; margin: 0 0 1em 1em; }

.entry-content :is(h2, h3, h4) { color: var(--indigo); }
.entry-content ul, .entry-content ol { padding-left: 26px; }

.no-results {
    background: var(--cloud);
    padding: 30px;
    border-radius: var(--radius-handmade);
    border: 1px dashed var(--line);
    color: var(--ink-soft);
}
