/*
Theme Name: dds_cleavercooking.com
Author: Баранова Евгения
Description: Кулинарный блог с рецептами, обучением поварскому искусству и практическими советами для домашней кухни.
Version: 1.1
Text Domain: dds_cleavercooking
*/

/* ==========================================================================
   Шрифты
   ========================================================================== */
@import url("/assets/c0833cc1dae623700e58.css");

/* ==========================================================================
   Переменные палитры
   ========================================================================== */
:root {
    --bg: #FDFAF6;
    --bg-paper: #F8F2E9;
    --text: #2E2620;
    --text-soft: #5C4D42;
    --accent: #E67E22;
    --accent-dark: #D35400;
    --secondary: #7D9D5C;
    --secondary-dark: #5F7E40;
    --border: #E4DCD3;
    --card-bg: #FFF9F0;
    --card-border: #F0E5D5;
    --footer-bg: #3B2A1F;
    --footer-bg-2: #4A3528;
    --footer-text: #F4E8D8;
    --shadow-sm: 0 1px 3px rgba(46, 38, 32, 0.08);
    --shadow-md: 0 4px 14px rgba(46, 38, 32, 0.10);
    --shadow-lg: 0 10px 30px rgba(46, 38, 32, 0.14);
    --radius: 8px;
}

/* ==========================================================================
   Базовый сброс и типографика
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(rgba(125, 99, 75, 0.025) 1px, transparent 1px),
        radial-gradient(rgba(125, 99, 75, 0.018) 1px, transparent 1px);
    background-size: 28px 28px, 14px 14px;
    background-position: 0 0, 14px 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
    margin: 1.4em 0 0.6em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; color: var(--accent-dark); }
h3 { font-size: 1.35rem; color: var(--accent-dark); }
h4 { font-size: 1.15rem; }

p {
    margin: 0 0 1em;
}

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

a:hover, a:focus {
    color: var(--accent-dark);
    text-decoration: underline;
}

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

ul, ol {
    padding-left: 1.4em;
    margin: 0 0 1em;
}

li {
    margin-bottom: 0.4em;
}

blockquote {
    margin: 1.5em 0;
    padding: 0.8em 1.2em;
    border-left: 4px solid var(--secondary);
    background: var(--card-bg);
    font-style: italic;
    color: var(--text-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
}

code, pre {
    font-family: 'Menlo', 'Monaco', monospace;
    background: var(--bg-paper);
    border-radius: 4px;
}

code {
    padding: 2px 6px;
    font-size: 0.9em;
}

pre {
    padding: 1em;
    overflow-x: auto;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid var(--border);
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
}

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

th {
    background: var(--bg-paper);
    font-weight: 600;
    color: var(--text);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px;
}

.site-main {
    padding: 30px 0 60px;
    min-height: 50vh;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    z-index: 9999;
}

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

/* ==========================================================================
   Шапка сайта
   ========================================================================== */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

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

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

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

.brand-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: var(--card-bg);
    padding: 4px;
    border: 1px solid var(--card-border);
}

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

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: var(--text);
}

.brand-tagline {
    font-size: 0.82rem;
    color: var(--text-soft);
    margin: 2px 0 0;
    line-height: 1.3;
}

/* Главная навигация */
.primary-nav {
    flex-shrink: 0;
}

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

.primary-nav li {
    margin: 0;
}

.primary-nav a {
    display: inline-block;
    padding: 8px 14px;
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius);
    transition: background 0.2s ease, color 0.2s ease;
}

.primary-nav a:hover, .primary-nav a:focus,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    background: var(--card-bg);
    color: var(--accent-dark);
    text-decoration: none;
}

/* Бургер для мобильного */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 14px;
    cursor: pointer;
    color: var(--text);
    font-weight: 500;
    font-family: inherit;
    font-size: 0.95rem;
}

.menu-toggle:hover {
    background: var(--card-bg);
}

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

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

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs .sep {
    margin: 0 8px;
    color: var(--secondary);
}

.breadcrumbs .current {
    color: var(--text);
}

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn,
.wp-block-button__link,
button.btn-primary,
input[type="submit"] {
    display: inline-block;
    padding: 10px 22px;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn:hover, .btn:focus,
input[type="submit"]:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.btn:active,
input[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: none;
    border-bottom: 2px solid var(--secondary);
    border-radius: 0;
    box-shadow: none;
    padding: 6px 4px;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: transparent;
    color: var(--secondary-dark);
    border-bottom-color: var(--secondary-dark);
    text-decoration: underline;
    padding-bottom: 8px;
}

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

.card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-thumb {
    position: relative;
    overflow: hidden;
    background: var(--bg-paper);
}

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

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

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

.card-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(46, 38, 32, 0) 55%, rgba(46, 38, 32, 0.65) 100%);
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 14px;
    font-size: 0.92rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.card:hover .card-thumb-overlay {
    opacity: 1;
}

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

.card-meta {
    font-size: 0.82rem;
    color: var(--secondary-dark);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.28rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px;
    color: var(--text);
}

.card-title a {
    color: inherit;
}

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

.card-excerpt {
    margin: 0 0 16px;
    color: var(--text-soft);
    font-size: 0.96rem;
    line-height: 1.55;
}

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

.card-excerpt p:last-child {
    margin-bottom: 0;
}

.card-actions {
    margin-top: auto;
    padding-top: 6px;
}

.card-link {
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

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

/* Горизонтальная карточка (правило A10) */
.card-horizontal {
    flex-direction: row;
    align-items: stretch;
}

.card-horizontal .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}

.card-horizontal .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card-horizontal .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

/* ==========================================================================
   Главная страница
   ========================================================================== */
.front-section {
    margin: 50px 0;
    padding: 38px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.front-section.school-block {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF3E0 100%);
    border-left: 4px solid var(--secondary);
}

.front-section.school-block h2 {
    font-family: 'Caveat', 'Playfair Display', cursive;
    font-size: 2.3rem;
    font-weight: 500;
    color: var(--secondary-dark);
}

.front-section h2 {
    margin-top: 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin: 0 0 28px;
    position: relative;
    padding-bottom: 14px;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

.front-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.feature-tile {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
}

.feature-tile-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 1.6rem;
}

.feature-tile h3 {
    margin: 8px 0;
    font-size: 1.15rem;
    color: var(--text);
}

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

.timeline-bar {
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 18px 0;
    height: 26px;
    border: 1px solid var(--border);
}

.timeline-prep { flex: 2; background: #F4E1C8; }
.timeline-active { flex: 4; background: var(--accent); }
.timeline-wait { flex: 3; background: var(--secondary); }

.timeline-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.timeline-legend span::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
}

.timeline-legend .lg-prep::before { background: #F4E1C8; }
.timeline-legend .lg-active::before { background: var(--accent); }
.timeline-legend .lg-wait::before { background: var(--secondary); }

/* ==========================================================================
   Страница записи / страницы / архива (с/без сайдбара)
   ========================================================================== */
.content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    gap: 6%;
    align-items: start;
}

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

.front-page-content {
    width: 85%;
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 960px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .content-no-sidebar,
    .front-page-content {
        width: 100%;
    }
}

.entry-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.entry-title {
    margin: 0 0 10px;
    font-size: 2.1rem;
}

.entry-meta {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.entry-meta a {
    color: var(--secondary-dark);
}

.entry-thumbnail {
    margin: 0 0 24px;
    border-radius: var(--radius);
    overflow: hidden;
}

.entry-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.entry-content {
    font-size: 1.04rem;
    line-height: 1.75;
}

.entry-content img {
    border-radius: var(--radius);
    margin: 1em 0;
}

.entry-tags {
    margin: 30px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
}

.entry-tags a {
    display: inline-block;
    background: var(--bg-paper);
    color: var(--secondary-dark);
    padding: 4px 12px;
    border-radius: 14px;
    margin: 2px 4px 2px 0;
    border: 1px solid var(--border);
    font-weight: 500;
}

.entry-tags a:hover {
    background: var(--secondary);
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   Сайдбар
   ========================================================================== */
.sidebar {
    font-size: 0.95rem;
}

.widget {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 24px;
}

.widget-title,
.widget h2,
.widget h3 {
    margin: 0 0 14px;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
    color: var(--accent-dark);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}

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

.widget ul li {
    padding: 7px 0;
    border-bottom: 1px dashed var(--border);
    margin: 0;
}

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

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

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

/* Виджет «Кулинарный таймер» */
.kitchen-timer {
    background: linear-gradient(135deg, #C8A066 0%, #A07E4A 100%);
    border: 1px solid #8B6736;
    color: #FFF6E5;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.kitchen-timer .widget-title {
    color: #FFF6E5;
    border-bottom-color: rgba(255, 246, 229, 0.4);
}

.timer-dial {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #FFF6E5 0%, #E8D2A8 70%, #C8A066 100%);
    margin: 12px auto;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-display {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #5C3D1A;
    font-weight: 700;
}

.timer-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 60px;
    background: var(--accent-dark);
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(0deg);
    border-radius: 2px;
    transition: transform 0.4s ease;
}

.timer-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 14px 0 8px;
}

.timer-preset {
    background: rgba(255, 246, 229, 0.18);
    border: 1px solid rgba(255, 246, 229, 0.45);
    color: #FFF6E5;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: background 0.15s ease;
}

.timer-preset:hover, .timer-preset.active {
    background: var(--accent);
    border-color: var(--accent);
}

.timer-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 6px;
}

.timer-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
}

.timer-btn:hover { background: var(--accent-dark); }

.timer-btn.timer-reset {
    background: rgba(255, 246, 229, 0.18);
    border: 1px solid rgba(255, 246, 229, 0.45);
}

/* ==========================================================================
   Поиск
   ========================================================================== */
.search-form {
    display: flex;
    gap: 0;
}

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

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}

.search-form button,
.search-form input[type="submit"] {
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 10px 18px;
    border-left: none;
}

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

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

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

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

/* ==========================================================================
   Подвал — «разделочная доска»
   ========================================================================== */
.site-footer {
    background:
        linear-gradient(180deg, var(--footer-bg) 0%, var(--footer-bg-2) 100%);
    color: var(--footer-text);
    padding: 50px 0 0;
    margin-top: 60px;
    position: relative;
    box-shadow: inset 0 6px 18px rgba(0, 0, 0, 0.25);
}

.site-footer::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0 2px, transparent 2px 16px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 22px);
    pointer-events: none;
    opacity: 0.7;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 32px;
    position: relative;
}

.footer-widgets .widget {
    background: rgba(255, 246, 229, 0.05);
    border: 1px solid rgba(255, 246, 229, 0.15);
    color: var(--footer-text);
    padding: 22px;
}

.footer-widgets .widget-title,
.footer-widgets .widget h2,
.footer-widgets .widget h3 {
    color: #FFD9A8;
    border-bottom-color: rgba(230, 126, 34, 0.45);
}

.footer-widgets .widget a {
    color: var(--footer-text);
}

.footer-widgets .widget a:hover {
    color: #FFD9A8;
}

.footer-widgets .widget ul li {
    border-bottom-color: rgba(255, 246, 229, 0.12);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    text-align: center;
    padding: 18px 0;
    font-size: 0.88rem;
    color: rgba(244, 232, 216, 0.8);
    position: relative;
}

@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Cookie-баннер (правило A11)
   ========================================================================== */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    background: var(--text);
    color: #FFF6E5;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 246, 229, 0.15);
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 280px;
    color: #FFF6E5;
    background: none;
}

.cookie-banner a {
    color: #FFD9A8;
    text-decoration: underline;
}

.cookie-banner button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
}

.cookie-banner button:hover {
    background: var(--accent-dark);
}

/* ==========================================================================
   Кнопка «В начало» — половник
   ========================================================================== */
.back-to-top[hidden] { display: none !important; }

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

/* ==========================================================================
   Комментарии
   ========================================================================== */
.comments-area {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.comments-title {
    margin: 0 0 22px;
}

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

.comment-list li {
    margin-bottom: 22px;
}

.comment-body {
    background: var(--card-bg);
    padding: 18px 22px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
}

.comment-author {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 1rem;
}

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

.comment-list .children {
    list-style: none;
    padding-left: 30px;
    margin-top: 16px;
}

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

.comment-form label {
    display: block;
    margin: 12px 0 4px;
    font-weight: 500;
    font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

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

/* ==========================================================================
   404
   ========================================================================== */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}

.error-404 h1 {
    font-size: 4.5rem;
    color: var(--accent);
    margin: 0 0 6px;
    line-height: 1;
}

.error-404 p {
    color: var(--text-soft);
    margin-bottom: 24px;
}

.error-404 .search-form {
    max-width: 480px;
    margin: 22px auto;
}

/* ==========================================================================
   Адаптивность
   ========================================================================== */
@media (max-width: 960px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.45rem; }
    .front-section { padding: 28px 22px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .header-inner { padding: 12px 0; }
    .menu-toggle { display: inline-block; }
    .primary-nav {
        flex: 1 1 100%;
        order: 3;
    }
    .primary-nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding-top: 10px;
    }
    .primary-nav.is-open ul { display: flex; }
    .primary-nav li { width: 100%; }
    .primary-nav a {
        display: block;
        padding: 10px 14px;
        border-bottom: 1px solid var(--border);
    }
    .brand-logo { width: 46px; height: 46px; }
    .brand-name { font-size: 1.1rem; }
    .brand-tagline { display: none; }
    .entry-title { font-size: 1.6rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .cookie-banner { padding: 14px; font-size: 0.9rem; }
}
