/*
Theme Name: dds_elennikfood.ru
Theme URI: https://elennikfood.ru
Author: Кузнецов Никита
Author URI: https://elennikfood.ru
Description: Тема для сайта «Простые рецепты и ПП: вкусно и недорого». Уют домашней кухни, аккуратность правильного питания, практичность экономного подхода.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
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: elennik
*/

/* ==========================================================================
   1. Базовые сбросы и переменные
   ========================================================================== */

:root {
    --color-bg: #FDF8F0;
    --color-card: #F5F0E8;
    --color-text: #2E2C2A;
    --color-text-soft: #5a574f;
    --color-primary: #5B8C5A;
    --color-primary-deep: #4A7549;
    --color-secondary: #E07A5F;
    --color-secondary-soft: #f3b9a8;
    --color-line: #CDD5B6;
    --color-shadow: rgba(46, 44, 42, 0.08);
    --color-shadow-strong: rgba(46, 44, 42, 0.14);
    --indicator-healthy: #7ea76b;
    --indicator-cheap: #E07A5F;
    --indicator-fast: #b39ac9;
    --radius-card: 14px;
    --radius-pill: 40px;
    --max-width: 1180px;
    --font-body: 'Source Sans 3', 'Open Sans', 'Segoe UI', Tahoma, Verdana, sans-serif;
    --font-heading: 'PT Serif', Georgia, 'Times New Roman', serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: var(--color-primary-deep);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.3;
    margin: 1.4em 0 0.5em;
    font-weight: 700;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
    margin: 0 0 1.1em;
}

ul, ol {
    margin: 0 0 1.1em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.4em;
}

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.4em;
    border-left: 4px solid var(--color-primary);
    background: rgba(91, 140, 90, 0.06);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--color-text-soft);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid var(--color-line);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

table th,
table td {
    border: 1px solid var(--color-line);
    padding: 0.7em 1em;
    text-align: left;
}

table th {
    background: rgba(91, 140, 90, 0.1);
    font-weight: 700;
    color: var(--color-primary-deep);
}

table tr:nth-child(even) td {
    background: rgba(205, 213, 182, 0.18);
}

code {
    background: rgba(91, 140, 90, 0.1);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.92em;
}

pre {
    background: #2E2C2A;
    color: #f3efe7;
    padding: 1em 1.2em;
    border-radius: 10px;
    overflow-x: auto;
}

pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

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

/* ==========================================================================
   2. Утилиты
   ========================================================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 999;
    padding: 0.6em 1em;
    background: var(--color-primary);
    color: #fff;
    border-radius: 8px;
}

.skip-link:focus {
    left: 8px;
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   3. Шапка
   ========================================================================== */

.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    padding: 18px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--color-text);
}

.brand:hover {
    text-decoration: none;
    color: var(--color-text);
}

.brand-logo {
    width: 56px;
    height: 56px;
    display: block;
    border-radius: 50%;
    background: rgba(91, 140, 90, 0.1);
    padding: 6px;
}

.brand-logo svg {
    display: block;
    width: 100%;
    height: 100%;
}

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

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-deep);
}

.brand-desc {
    font-size: 0.85rem;
    color: var(--color-text-soft);
    margin-top: 2px;
}

/* Главное меню */
.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 8px 14px;
    border-radius: 30px;
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
}

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

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 30px;
    color: var(--color-text);
    font-weight: 500;
    transition: background 0.18s, color 0.18s;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    background: rgba(91, 140, 90, 0.12);
    color: var(--color-primary-deep);
    text-decoration: none;
}

/* Лента категорий */
.categories-strip {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-line);
    padding: 10px 0;
}

.categories-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-list li {
    margin: 0;
    flex-shrink: 0;
}

.categories-list a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 18px;
    background: transparent;
    color: var(--color-text);
    font-size: 0.92rem;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: all 0.18s;
}

.categories-list a:hover {
    background: #fff;
    border-color: var(--color-line);
    color: var(--color-primary-deep);
    text-decoration: none;
}

/* ==========================================================================
   4. Контент: общий лэйаут
   ========================================================================== */

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

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

.layout.has-sidebar {
    grid-template-columns: 1fr;
}

@media (min-width: 960px) {
    .layout.has-sidebar {
        grid-template-columns: 67% 27%;
        gap: 6%;
    }
}

.layout.no-sidebar .content-area {
    max-width: 85%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .layout.no-sidebar .content-area {
        max-width: 100%;
    }
}

/* Хлебные крошки */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--color-text-soft);
    margin-bottom: 18px;
    padding: 8px 0;
}

.breadcrumbs a {
    color: var(--color-text-soft);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--color-primary-deep);
    text-decoration: underline;
}

.breadcrumbs .sep {
    margin: 0 6px;
    color: var(--color-line);
}

/* Заголовки страниц/архивов */
.page-title {
    font-size: 2rem;
    margin-top: 0;
    color: var(--color-primary-deep);
}

.archive-description {
    color: var(--color-text-soft);
    margin-bottom: 24px;
}

/* ==========================================================================
   5. Карточки записей
   ========================================================================== */

.cards-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: 1fr;
    margin-bottom: 36px;
}

@media (min-width: 700px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--color-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 2px 6px var(--color-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px var(--color-shadow-strong);
}

.card-thumb-wrap {
    overflow: hidden;
    background: rgba(205, 213, 182, 0.3);
}

.card-thumb-wrap a {
    display: block;
}

.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-thumb-wrap img {
    transform: scale(1.04);
}

.card-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(91, 140, 90, 0.18), rgba(224, 122, 95, 0.12));
    color: var(--color-primary-deep);
}

.card-thumb-placeholder svg {
    width: 56px;
    height: 56px;
    opacity: 0.55;
}

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

.card-indicators {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    height: 4px;
}

.card-indicators .ind {
    flex: 0 0 38px;
    height: 4px;
    border-radius: 2px;
    background: transparent;
}

.card-indicators .ind.healthy { background: var(--indicator-healthy); }
.card-indicators .ind.cheap   { background: var(--indicator-cheap); }
.card-indicators .ind.fast    { background: var(--indicator-fast); }

.card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

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

.card-title a:hover {
    color: var(--color-primary-deep);
    text-decoration: none;
}

.card-meta {
    font-size: 0.82rem;
    color: var(--color-text-soft);
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.card-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-excerpt {
    color: var(--color-text-soft);
    font-size: 0.95rem;
    margin-bottom: 14px;
    flex: 1;
}

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

.card-cta {
    align-self: flex-start;
    margin-top: auto;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: #fff !important;
    font: inherit;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.06s;
}

.btn:hover {
    background: var(--color-primary-deep);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.12);
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-outline {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 30px;
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-outline:hover {
    background: rgba(224, 122, 95, 0.1);
    color: var(--color-secondary);
    text-decoration: none;
}

/* Горизонтальные карточки (используются по необходимости) */
@media (min-width: 760px) {
    .card.card-row {
        flex-direction: row;
    }
    .card.card-row .card-thumb-wrap {
        flex: 0 0 280px;
        position: relative;
        overflow: hidden;
    }
    .card.card-row .card-thumb-wrap a {
        display: block;
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
    }
    .card.card-row .card-thumb-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

@media (max-width: 760px) {
    .card.card-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card.card-row .card-thumb-wrap a {
        position: static;
    }
    .card.card-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ==========================================================================
   6. Главная: тематические блоки
   ========================================================================== */

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

.front-section-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    color: var(--color-primary-deep);
    margin: 0 0 8px;
    text-align: center;
}

.front-section-lead {
    text-align: center;
    color: var(--color-text-soft);
    max-width: 720px;
    margin: 0 auto 28px;
}

/* Hero */
.front-hero {
    background: linear-gradient(120deg, rgba(91, 140, 90, 0.1), rgba(224, 122, 95, 0.08));
    border-radius: 22px;
    padding: 50px 36px;
    text-align: center;
    margin-bottom: 56px;
}

.front-hero h1 {
    margin: 0 0 14px;
    font-size: 2.2rem;
    color: var(--color-primary-deep);
}

.front-hero p {
    color: var(--color-text-soft);
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 auto 22px;
}

/* Колонки в блоке */
.feature-columns {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .feature-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature {
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: 22px 22px 24px;
    box-shadow: 0 2px 6px var(--color-shadow);
}

.feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.feature-icon.terra {
    color: var(--color-secondary);
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.feature p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 0.95rem;
}

/* Шаги (нумерованные) */
.steps-row {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
    counter-reset: step-counter;
}

@media (min-width: 720px) {
    .steps-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    padding: 22px 22px 22px 60px;
    position: relative;
}

.step::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 18px;
    top: 22px;
    width: 30px;
    height: 30px;
    background: var(--color-secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.step p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 0.95rem;
}

/* ==========================================================================
   7. Сайдбар и виджеты
   ========================================================================== */

.sidebar {
    align-self: start;
}

.widget-area .widget {
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: 18px 20px 20px;
    margin-bottom: 22px;
    box-shadow: 0 2px 6px var(--color-shadow);
}

.widget-area .widget-title {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-primary-deep);
    border-bottom: 1px dashed var(--color-line);
    padding-bottom: 8px;
}

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

.widget li {
    padding: 6px 0;
    border-bottom: 1px dotted var(--color-line);
    margin: 0;
}

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

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

.widget a:hover {
    color: var(--color-primary-deep);
    text-decoration: underline;
}

/* ==========================================================================
   8. Запись (single)
   ========================================================================== */

.entry {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 28px 32px 32px;
    box-shadow: 0 2px 6px var(--color-shadow);
    margin-bottom: 28px;
}

.entry-title {
    font-size: 2rem;
    margin: 0 0 12px;
    color: var(--color-primary-deep);
}

.entry-meta {
    color: var(--color-text-soft);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.entry-thumb {
    margin: 0 -32px 22px;
}

.entry-thumb img {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.04);
}

.entry-content p {
    margin: 0 0 1.1em;
}

.entry-content img {
    border-radius: 10px;
    display: block;
    margin: 1em auto;
}

.entry-tags {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px dashed var(--color-line);
    font-size: 0.92rem;
    color: var(--color-text-soft);
}

.entry-tags a {
    display: inline-block;
    background: rgba(91, 140, 90, 0.1);
    color: var(--color-primary-deep);
    padding: 3px 10px;
    border-radius: 12px;
    margin: 0 4px 4px 0;
    font-size: 0.85rem;
}

.entry-tags a:hover {
    background: rgba(91, 140, 90, 0.2);
    text-decoration: none;
}

/* ПП-плашка */
.recipe-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(91, 140, 90, 0.14);
    color: var(--color-primary-deep);
    font-size: 0.9rem;
    margin: 0 8px 12px 0;
}

.recipe-badge.cheap {
    background: rgba(224, 122, 95, 0.14);
    color: #b35840;
}

.recipe-badge svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   9. Комментарии
   ========================================================================== */

.comments-area {
    margin-top: 30px;
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: 24px 28px;
}

.comments-title {
    margin: 0 0 18px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-primary-deep);
}

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

.comment-list ol.children {
    list-style: none;
    padding-left: 32px;
    margin: 14px 0 0;
}

.comment-body {
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px var(--color-shadow);
}

.comment-author {
    font-weight: 700;
    color: var(--color-primary-deep);
    margin-right: 10px;
}

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

.comment-content p {
    margin: 0 0 0.6em;
}

.comment-reply-link {
    font-size: 0.88rem;
    color: var(--color-secondary);
}

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

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

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

.comment-form .submit {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 10px 26px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
}

.comment-form .submit:hover {
    background: var(--color-primary-deep);
}

/* ==========================================================================
   10. Пагинация
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0 16px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    color: var(--color-text);
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.18s, background 0.18s;
}

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

.pagination .page-numbers.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* ==========================================================================
   11. Поиск
   ========================================================================== */

.search-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 18px 0;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--color-line);
    border-radius: 24px;
    background: #fff;
    font: inherit;
    color: var(--color-text);
}

.search-form button {
    padding: 10px 22px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font: inherit;
}

.search-form button:hover {
    background: var(--color-primary-deep);
}

/* 404 */
.error404-block {
    text-align: center;
    padding: 30px 20px;
}

.error404-block h1 {
    font-size: 4.5rem;
    margin: 0;
    color: var(--color-secondary);
}

.error404-block .subtitle {
    font-size: 1.3rem;
    color: var(--color-text-soft);
    margin-bottom: 20px;
}

/* ==========================================================================
   12. Подвал
   ========================================================================== */

.site-footer {
    background: #2a2926;
    color: #d8d3c9;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.site-footer a {
    color: #e2dfd5;
}

.site-footer a:hover {
    color: #fff;
}

.footer-cols {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
    margin-bottom: 24px;
}

@media (min-width: 720px) {
    .footer-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-col .widget {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

.footer-col .widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.18);
    font-size: 1.1rem;
}

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

.footer-col .widget a {
    color: #d8d3c9;
}

.footer-col .widget a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 18px;
    text-align: center;
    color: #b1aca0;
    font-size: 0.9rem;
}

.footer-tagline {
    text-align: center;
    color: #b1aca0;
    margin: 10px 0 18px;
    font-style: italic;
    font-size: 0.95rem;
}

/* ==========================================================================
   13. Cookie-баннер (правило A11)
   ========================================================================== */

.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #2a2926;
    color: #f3efe7;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
    flex-wrap: wrap;
    max-width: 880px;
    margin: 0 auto;
}

.cookie-banner-text {
    flex: 1;
    min-width: 220px;
    font-size: 0.92rem;
}

.cookie-banner-text a {
    color: var(--color-line);
    text-decoration: underline;
}

.cookie-accept-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
}

.cookie-accept-btn:hover {
    background: var(--color-primary-deep);
}

/* ==========================================================================
   14. Адаптивность
   ========================================================================== */

@media (max-width: 960px) {
    .header-inner {
        gap: 14px;
    }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .main-nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 4px;
        margin-top: 14px;
        padding: 12px;
        background: var(--color-card);
        border-radius: 12px;
    }
    .main-nav.is-open ul {
        display: flex;
    }
    .main-nav a {
        display: block;
        padding: 10px 14px;
    }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }

    .container { padding: 0 16px; }

    .front-hero {
        padding: 32px 18px;
    }
    .front-hero h1 { font-size: 1.6rem; }

    .entry {
        padding: 20px 18px;
    }
    .entry-thumb {
        margin: 0 -18px 16px;
    }

    .btn,
    .btn-outline {
        padding: 12px 26px;
        font-size: 1rem;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-accept-btn {
        width: 100%;
    }
}
