/*
Theme Name: zagotovim-nazimu.ru
Author: Климов Владислав
Description: Тема для сайта о домашних заготовках. Природный «вкусный» стиль, близкий к скандинавскому кантри и уютной домашней кулинарии.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: zagotovim-nazimu.ru
*/

/* ================================
   Базовые переменные и сброс
================================ */
:root {
    --bg: #FEF7E8;
    --bg-paper: #FBF1D8;
    --text: #2E2A24;
    --muted: #6B6357;
    --accent: #E67E22;
    --accent-hover: #D35400;
    --honey: #F1C40F;
    --line: #E6D9B8;
    --wood: #8B5A2B;
    --wood-light: #C7945A;
    --shadow: 0 6px 20px rgba(46, 42, 36, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", "Iowan Old Style", serif;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 12% 18%, rgba(230, 126, 34, 0.04) 0, transparent 22%),
        radial-gradient(circle at 88% 82%, rgba(241, 196, 15, 0.05) 0, transparent 25%);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--accent-hover); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", Georgia, serif;
    color: var(--text);
    line-height: 1.25;
    margin: 0 0 0.6em;
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

blockquote {
    margin: 1.4em 0;
    padding: 0.8em 1.2em;
    border-left: 4px solid var(--accent);
    background: var(--bg-paper);
    font-style: italic;
    color: var(--muted);
    border-radius: 0 8px 8px 0;
}

hr {
    border: none;
    border-top: 1px dashed var(--line);
    margin: 2em 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    border: 1px solid var(--line);
}
th, td {
    padding: 0.6em 0.8em;
    border: 1px solid var(--line);
    text-align: left;
}
th { background: var(--bg-paper); font-weight: 700; }

code {
    font-family: "Courier New", monospace;
    background: var(--bg-paper);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    font-size: 0.9em;
}
pre {
    background: var(--bg-paper);
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid var(--line);
}

/* ================================
   Контейнеры и каркас
================================ */
.site-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    padding: 36px 0 60px;
}

.layout {
    display: grid;
    gap: 36px;
    grid-template-columns: 1fr;
}
.layout.has-sidebar {
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
}
.layout.full-wide .content-wide,
.layout > .content-wide {
    width: 85%;
    margin: 0 auto;
}

@media (max-width: 960px) {
    .layout.has-sidebar { grid-template-columns: 1fr; }
    .layout.full-wide .content-wide,
    .layout > .content-wide { width: 100%; }
}

/* ================================
   Шапка (header)
================================ */
.site-head {
    background: linear-gradient(180deg, #FFFAEC 0%, #FBF1D8 100%);
    border-bottom: 2px solid var(--line);
    position: relative;
}
.site-head::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -8px;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--accent) 0 14px,
        var(--honey) 14px 28px
    );
    opacity: 0.55;
}

.head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0 18px;
    flex-wrap: wrap;
}

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

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

.brand-text { display: flex; flex-direction: column; }
.brand-name {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.brand-tag {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 2px;
    font-style: italic;
}
.brand-author {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Главное меню — пергаментные стикеры */
.main-nav { flex-shrink: 0; }
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.main-nav li { position: relative; }
.main-nav a {
    display: inline-block;
    padding: 8px 16px;
    color: var(--text);
    background: rgba(255, 250, 230, 0.75);
    border: 1px solid rgba(139, 90, 43, 0.18);
    border-radius: 18px 22px 16px 24px / 20px 16px 24px 18px;
    font-size: 0.96rem;
    box-shadow: 0 2px 0 rgba(139, 90, 43, 0.08);
    transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease;
    transform: rotate(-0.6deg);
}
.main-nav li:nth-child(2n) a { transform: rotate(0.7deg); }
.main-nav li:nth-child(3n) a { transform: rotate(-0.3deg); }
.main-nav a:hover,
.main-nav .current-menu-item a {
    background: var(--accent);
    color: #FFF;
    text-decoration: none;
    transform: rotate(0deg) translateY(-1px);
}

.notebook-toggle {
    margin-left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--bg-paper);
    border: 1px dashed var(--wood);
    border-radius: 14px;
    font-size: 0.85rem;
    color: var(--wood);
    cursor: pointer;
    font-family: inherit;
}
.notebook-toggle:hover { background: #F5E5BB; color: var(--accent-hover); }

.nav-toggle {
    display: none;
    background: var(--accent);
    color: #FFF;
    border: none;
    border-radius: 22px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--shadow);
}

@media (max-width: 960px) {
    .nav-toggle { display: inline-block; }
    .main-nav ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 12px;
    }
    .main-nav.is-open ul { display: flex; }
    .main-nav a { width: 100%; text-align: center; transform: none; }
    .main-nav li:nth-child(2n) a,
    .main-nav li:nth-child(3n) a { transform: none; }
    .head-row { flex-direction: column; align-items: flex-start; }
    .notebook-toggle { margin-left: 0; margin-top: 8px; }
}

/* ================================
   Хлебные крошки
================================ */
.crumbs {
    padding: 14px 0 4px;
    font-size: 0.9rem;
    color: var(--muted);
}
.crumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.crumbs li::after {
    content: "›";
    color: var(--wood-light);
    margin-left: 6px;
}
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); text-decoration: underline dotted; }
.crumbs a:hover { color: var(--accent); }
.crumbs li:last-child { color: var(--text); font-weight: 600; }

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

.card {
    display: flex;
    flex-direction: column;
    background: #FFFAEC;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(46, 42, 36, 0.12);
}

.card-thumb-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--bg-paper);
    border-bottom: 4px solid var(--wood-light);
    position: relative;
}
.card-thumb-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.04); }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 22px;
}
.card-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0 0 8px;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); text-decoration: none; }

.card-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.card-meta .meta-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 12px;
    background: var(--bg-paper);
    color: var(--accent-hover);
    font-weight: 600;
    border: 1px solid var(--line);
}

.card-excerpt { color: var(--text); font-size: 0.95rem; }
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-more {
    margin-top: auto;
    padding-top: 14px;
}

/* Горизонтальная карточка (для блога/архивов) */
.card-row {
    flex-direction: row;
}
.card-row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    border-bottom: none;
    border-right: 4px solid var(--wood-light);
}
.card-row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

@media (max-width: 600px) {
    .card-row { flex-direction: column; }
    .card-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
        border-right: none;
        border-bottom: 4px solid var(--wood-light);
    }
    .card-row .card-thumb-wrap a { position: static; }
    .card-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ================================
   Кнопки
================================ */
.btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 40px;
    background: var(--accent);
    color: #FFF;
    border: 2px solid transparent;
    font-family: inherit;
    font-size: 0.96rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(230, 126, 34, 0.25);
    background-image:
        radial-gradient(circle at 20% 25%, rgba(255,255,255,0.10) 0, transparent 30%),
        radial-gradient(circle at 75% 70%, rgba(0,0,0,0.04) 0, transparent 35%);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover {
    background-color: var(--accent-hover);
    border-color: var(--honey);
    color: #FFF;
    text-decoration: none;
    transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

.btn-cream {
    background: rgba(255, 250, 230, 0.7);
    color: var(--accent-hover);
    border: 2px solid var(--accent);
    box-shadow: none;
}
.btn-cream::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: -2px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E67E22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 2h8v3H8z'/><path d='M7 5h10v17H7z'/><path d='M9 9h6'/><path d='M9 13h6'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}
.btn-cream:hover {
    background: var(--accent);
    color: #FFF;
    border-color: var(--accent);
}
.btn-cream:hover::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 2h8v3H8z'/><path d='M7 5h10v17H7z'/><path d='M9 9h6'/><path d='M9 13h6'/></svg>");
}

/* ================================
   Front-page
================================ */
.hero {
    background:
        linear-gradient(120deg, rgba(230,126,34,0.10), rgba(241,196,15,0.10)),
        var(--bg-paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 44px 36px;
    margin-bottom: 40px;
    text-align: center;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 0.4em; }
.hero .lead {
    max-width: 720px;
    margin: 0 auto 1.4em;
    font-size: 1.1rem;
    color: var(--muted);
}

@media (max-width: 600px) {
    .hero { padding: 28px 18px; }
    .hero h1 { font-size: 1.8rem; }
}

/* Тематический блок главной */
.section-block {
    margin: 0 0 44px;
    padding: 32px;
    background: #FFFAEC;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
}
.section-block h2 {
    margin-top: 0;
    border-bottom: 2px dashed var(--line);
    padding-bottom: 10px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-block h2::before {
    content: "";
    width: 28px; height: 28px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E67E22'><path d='M9 2h6v2h-1l1 3h2v15H7V7h2l1-3H9z'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Стопка карточек «сезонная подборка» */
.stack-cards {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-top: 18px;
}
.stack-cards .card:nth-child(3n+1) { transform: rotate(-0.6deg); }
.stack-cards .card:nth-child(3n+2) { transform: rotate(0.5deg); }
.stack-cards .card:nth-child(3n)   { transform: rotate(-0.2deg); }
.stack-cards .card:hover { transform: rotate(0deg) translateY(-3px); }

/* Категории-теги для главной */
.cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px 6px 10px;
    background: var(--bg-paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--text);
    font-size: 0.92rem;
    text-decoration: none;
}
.cat-tag::before {
    content: "";
    width: 14px; height: 14px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12);
}
.cat-tag:hover { background: var(--accent); color: #FFF; text-decoration: none; }
.cat-tag:hover::before { background: var(--honey); }

/* Шаги (3 colonne) */
.steps {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 18px;
}
.step {
    background: var(--bg-paper);
    padding: 22px 20px;
    border-radius: 12px;
    border: 1px solid var(--line);
    position: relative;
}
.step-num {
    position: absolute;
    top: -14px; left: 18px;
    width: 32px; height: 32px;
    background: var(--accent);
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 3px 8px rgba(230,126,34,0.35);
}
.step h3 { margin-top: 6px; font-size: 1.1rem; }

/* ================================
   Сайдбар
================================ */
.sidebar {
    background:
        linear-gradient(180deg, #FFFAEC 0%, #FBF1D8 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><path d='M15 20c0-3 2-5 5-5h20c3 0 5 2 5 5v25c0 3-2 5-5 5H20c-3 0-5-2-5-5z' fill='none' stroke='%238B5A2B' stroke-width='1' opacity='0.04'/></svg>");
    border-radius: 14px;
    padding: 24px 22px;
    border: 1px solid var(--line);
}
.widget {
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--line);
}
.widget:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.widget-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.15rem;
    margin: 0 0 14px;
    color: var(--text);
    padding-left: 14px;
    border-left: 4px solid var(--accent);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget ul li {
    padding: 6px 0;
    border-bottom: 1px dotted var(--line);
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--accent); }

.search-form { display: flex; gap: 6px; }
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #FFF;
    font-family: inherit;
    color: var(--text);
}
.search-form input[type="search"]:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.search-form button {
    padding: 9px 18px;
    border-radius: 22px;
    background: var(--accent);
    color: #FFF;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}
.search-form button:hover { background: var(--accent-hover); }

/* ================================
   Single / Page контент
================================ */
.entry-header { margin-bottom: 24px; }
.entry-title { font-size: 2.1rem; margin-bottom: 0.4em; }
.entry-meta {
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.entry-thumb {
    margin: 0 0 28px;
    border-radius: 14px;
    overflow: hidden;
    border: 6px solid var(--wood-light);
    background: var(--wood-light);
    box-shadow: 0 6px 16px rgba(46,42,36,0.18);
}
.entry-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img {
    border-radius: 10px;
    border: 4px solid var(--wood-light);
    margin: 1em 0;
}
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.4em; }

/* ================================
   Пагинация
================================ */
.pagination {
    margin: 36px 0 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 22px;
    background: #FFFAEC;
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}
.pagination .page-numbers:hover {
    background: var(--accent);
    color: #FFF;
    border-color: var(--accent);
}
.pagination .page-numbers.current {
    background: var(--accent);
    color: #FFF;
    border-color: var(--accent);
    box-shadow: 0 3px 8px rgba(230,126,34,0.3);
}
.pagination .page-numbers.dots { background: transparent; border: none; }

/* ================================
   Комментарии
================================ */
.comments-area {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 2px dashed var(--line);
}
.comment-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.comment-list li {
    margin-bottom: 18px;
    padding: 16px 18px;
    background: var(--bg-paper);
    border-radius: 12px;
    border: 1px solid var(--line);
}
.comment-list .children {
    list-style: none;
    margin: 14px 0 0 22px;
    padding: 0;
}
.comment-author { font-weight: 700; color: var(--text); }
.comment-date { color: var(--muted); font-size: 0.85rem; margin-left: 8px; }
.comment-content { margin-top: 8px; }

.comment-form p { margin-bottom: 14px; }
.comment-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.92rem;
    color: var(--muted);
}
.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: 10px;
    background: #FFF;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
}
.comment-form input:focus,
.comment-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.comment-form .form-submit input { /* see .btn */ }

/* ================================
   404
================================ */
.error-404 {
    text-align: center;
    padding: 50px 20px;
}
.error-404 h1 {
    font-size: 4.5rem;
    color: var(--accent);
    margin-bottom: 0.2em;
}
.error-404 .search-form {
    max-width: 480px;
    margin: 24px auto 24px;
}

/* ================================
   Подвал (footer)
================================ */
.site-foot {
    background:
        linear-gradient(180deg, #2E2A24 0%, #1F1C18 100%);
    color: #E8DEC2;
    margin-top: 60px;
    position: relative;
}
.site-foot::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%23F1C40F' stroke-width='1' opacity='0.06'><path d='M20 20c0-3 2-5 5-5h10c3 0 5 2 5 5v25c0 3-2 5-5 5H25c-3 0-5-2-5-5z'/><path d='M55 30c2 0 4 1 4 4v18c0 3-2 4-4 4s-4-1-4-4V34c0-3 2-4 4-4z'/><path d='M65 60c-3-1-4-3-3-6 1-2 3-3 5-2'/></g></svg>");
    background-size: 80px 80px;
    pointer-events: none;
}

.foot-row {
    display: grid;
    gap: 36px;
    grid-template-columns: repeat(3, 1fr);
    padding: 50px 0 30px;
    position: relative;
}
@media (max-width: 960px) {
    .foot-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .foot-row { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 20px; }
}

.foot-col .widget-title { color: #FFFAEC; border-left-color: var(--honey); }
.foot-col .widget { border-bottom-color: rgba(232, 222, 194, 0.18); }
.foot-col a { color: #E8DEC2; }
.foot-col a:hover { color: var(--honey); }
.foot-col ul li { border-bottom-color: rgba(232, 222, 194, 0.12); }

.foot-bottom {
    border-top: 1px solid rgba(232, 222, 194, 0.18);
    padding: 20px 0;
    text-align: center;
    font-size: 0.88rem;
    color: #C9BC97;
    position: relative;
}

/* ================================
   Cookie-баннер
   ВАЖНО: правило [hidden] идёт ПЕРЕД основным блоком (см. правило A11)
================================ */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #2E2A24;
    color: #FFFAEC;
    border-radius: 14px;
    border: 1px solid #4a4338;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    max-width: 720px;
    margin: 0 auto;
    font-size: 0.94rem;
}
.cookie-banner p { margin: 0; flex: 1 1 240px; }
.cookie-banner a { color: var(--honey); text-decoration: underline; }
.cookie-banner button {
    flex-shrink: 0;
    padding: 9px 22px;
    border-radius: 30px;
    background: var(--accent);
    color: #FFF;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.92rem;
}
.cookie-banner button:hover { background: var(--accent-hover); }

/* ================================
   Notebook режим («Бабушкин блокнот»)
================================ */
body.notebook-mode {
    background-color: #FFFCF2;
    background-image:
        repeating-linear-gradient(
            transparent 0,
            transparent 27px,
            #B7CDE3 27px,
            #B7CDE3 28px
        );
}
body.notebook-mode .entry-content,
body.notebook-mode .card-excerpt,
body.notebook-mode .widget,
body.notebook-mode p {
    font-family: "Caveat", "Comic Sans MS", "Marker Felt", cursive;
    font-size: 1.18em;
    line-height: 1.5;
    color: #1F2D5C;
}
body.notebook-mode .section-block,
body.notebook-mode .card,
body.notebook-mode .sidebar {
    background-color: rgba(255, 252, 242, 0.6);
}

/* ================================
   Утилиты
================================ */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.alignleft  { float: left;  margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin: 1em auto; }
.alignwide  { width: 100%; }

@media (max-width: 600px) {
    .alignleft, .alignright { float: none; margin: 1em 0; display: block; }
}

.clearfix::after { content: ""; display: table; clear: both; }
