/*
Theme Name: dds_feedmegreens.com
Author: Наталья Семёнова
Description: Тема для информационного сайта о растительном питании и домашних рецептах. Холодная светлая палитра с бумажной текстурой, песочным и шалфейным акцентами.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: feedgreens
*/

/* ==================================================
   Переменные
================================================== */

:root {
    --bg: #F7F9FC;
    --bg-alt: #EBF0F5;
    --bg-head: #FFFFFF;
    --bg-foot: #1A2835;
    --bg-side: #FFFFFF;
    --text: #1E2B38;
    --accent: #D4A373;
    --accent-2: #608A7B;
    --muted: #6F7D8C;
    --line: #DCE3EB;
    --paper: repeating-linear-gradient(90deg, rgba(30, 43, 56, .04) 0 1px, transparent 1px 8px);
    --paper-strong: repeating-linear-gradient(90deg, rgba(30, 43, 56, .07) 0 1px, transparent 1px 7px);
    --font-head: "Futura", "Century Gothic", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    --font-body: Georgia, "PT Serif", "Times New Roman", serif;
    --radius: 12px;
}

/* ==================================================
   Скрытие через атрибут hidden (до основных стилей)
================================================== */

.cookie-banner[hidden] { display: none !important; }
.nav-list[hidden] { display: none !important; }
.tab-panel[hidden] { display: none !important; }

/* ==================================================
   База
================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: var(--paper);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
}

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

a {
    color: var(--accent-2);
    text-decoration: none;
    position: relative;
    transition: color .2s ease;
}

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

.entry-content a::after,
.widget a::after,
.crumbs a::after,
.card-title a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    border-bottom: 1px dashed currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s ease;
}

.entry-content a:hover::after,
.widget a:hover::after,
.crumbs a:hover::after,
.card-title a:hover::after { transform: scaleX(1); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.15;
    color: var(--text);
    margin: 0 0 .7em;
}

h1 { font-size: 3.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.5rem;
    border-left: 4px solid var(--accent);
    background: var(--bg-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
}

blockquote p:last-child { margin-bottom: 0; }

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: .92em;
}

pre {
    padding: 1rem 1.2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.4rem;
    border: 1px solid var(--line);
    background: #fff;
}

th, td {
    border: 1px solid var(--line);
    padding: .65rem .8rem;
    text-align: left;
}

th {
    font-family: var(--font-head);
    font-weight: 700;
    background: var(--bg-alt);
}

hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 2rem 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ==================================================
   Контейнер и раскладки
================================================== */

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.site-main { padding: 2.4rem 0 3rem; }

.layout-single { display: block; }

.layout-single > .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

.content-area { min-width: 0; }

.front-narrow {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

.card-thumb-link { display: block; }
.card-thumb-link::after { content: none; }

.page-links {
    font-family: var(--font-head);
    font-size: .9rem;
    margin-top: 1.4rem;
}

.comment-notes { font-size: .9rem; color: var(--muted); }

/* ==================================================
   Заголовки секций
================================================== */

.section-title {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: 1.6rem;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.section-title::after {
    content: "";
    display: block;
    width: 130px;
    height: 1px;
    background: var(--text);
    opacity: .35;
    margin: .8rem 0 0 -1.7rem;
}

.section-title.on-dark,
.on-dark .section-title { color: #fff; }

.on-dark .section-title::after { background: #fff; opacity: .45; }

.section-lead {
    max-width: 62ch;
    color: var(--muted);
    margin-bottom: 1.8rem;
}

/* Разделитель секций */

.leaf-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 2.2rem 0;
}

.leaf-divider i {
    display: block;
    height: 2px;
    background: var(--text);
    opacity: .3;
    transform: skewX(-20deg);
}

.leaf-divider i:nth-child(1) { width: 58px; }
.leaf-divider i:nth-child(2) { width: 40px; background: var(--accent); opacity: .9; }
.leaf-divider i:nth-child(3) { width: 24px; }

/* Метка автора */

.stamp {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--accent-2);
    border-radius: 0 7px 0 0;
    flex: 0 0 20px;
}

/* ==================================================
   Кнопки
================================================== */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .04em;
    padding: .75rem 2.4rem;
    border: 2px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, transform .18s ease, border-color .25s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent);
    color: #fff;
    transform: translateY(2px);
}

.btn-sage {
    border-color: var(--accent-2);
    color: var(--accent-2);
}

.btn-sage:hover,
.btn-sage:focus {
    background: var(--accent-2);
    color: #fff;
}

.btn-light {
    border-color: var(--accent);
    color: var(--accent);
}

.btn::after { content: none; }

/* ==================================================
   Шапка
================================================== */

.site-head {
    background: var(--bg-head);
    border-bottom: 1px solid var(--line);
    position: static;
}

.head-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    flex: 1 1 320px;
}

.brand-logo,
.brand-mark {
    display: block;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
}

.brand-text { min-width: 0; }

.brand-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--text);
    margin: 0;
    display: block;
}

.brand-title a { color: var(--text); }
.brand-title a:hover { color: var(--accent); }

.brand-desc {
    font-size: .82rem;
    line-height: 1.4;
    color: var(--muted);
    margin: .3rem 0 0;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .9rem;
    padding: .55rem 1.1rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    box-shadow: 0 5px 0 var(--text), 0 -5px 0 var(--text);
}

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

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li { margin: 0; }

.nav-list a {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .93rem;
    letter-spacing: .02em;
    color: var(--text);
    padding-bottom: 3px;
    display: inline-block;
    border-bottom: 1px dashed transparent;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ==================================================
   Хлебные крошки
================================================== */

.crumbs {
    font-family: var(--font-head);
    font-size: .82rem;
    color: var(--muted);
    padding: 1.1rem 0 0;
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--accent); margin: 0 .2rem; }

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.7rem;
    margin-bottom: 2.4rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
    transition: transform .25s ease, border-color .25s ease;
}

.card::after {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    right: -8px;
    width: 4px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity .25s ease;
}

.card:hover {
    transform: translateX(-8px);
    border-color: var(--accent);
}

.card:hover::after { opacity: 1; }

.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 2.5 / 1;
    object-fit: cover;
    border-radius: 11px 11px 0 0;
    border-bottom: 1px solid var(--line);
}

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 2.5 / 1;
    border-radius: 11px 11px 0 0;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--line) 100%);
    background-image: var(--paper-strong), linear-gradient(135deg, var(--bg-alt) 0%, var(--line) 100%);
    border-bottom: 1px solid var(--line);
}

.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.3rem 1.4rem;
}

.card-top {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: .5rem;
}

.card-title {
    font-size: 1.18rem;
    margin: 0;
    min-width: 0;
}

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

.post-meta {
    font-family: var(--font-head);
    font-size: .78rem;
    letter-spacing: .03em;
    color: var(--muted);
    margin-bottom: .7rem;
}

.post-meta a { color: var(--muted); }
.post-meta a:hover { color: var(--accent); }
.post-meta .dot-sep { color: var(--accent); }

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

.card-foot { margin-top: auto; padding-top: .9rem; }

.card-more {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .05em;
    color: var(--accent-2);
    border-bottom: 1px dashed transparent;
}

.card-more:hover { color: var(--accent); border-bottom-color: var(--accent); }
.card-more::after { content: none; }

/* ==================================================
   Главная
================================================== */

.front-section { padding: 3rem 0; }
.front-section.alt-bg { background: var(--bg-alt); background-image: var(--paper); }

/* Блок 1 — Hero */

.fs-hero {
    position: relative;
    overflow: hidden;
    padding: 4.2rem 0 4rem;
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'%3E%3Cg fill='none' stroke='%23D4A373' stroke-width='6' stroke-linecap='round' opacity='0.15'%3E%3Cpath d='M60 380 C120 300 150 220 170 120'/%3E%3Cpath d='M170 250 C230 230 280 190 320 130'/%3E%3Cpath d='M168 300 C110 280 70 240 40 180'/%3E%3Cpath d='M172 190 C220 170 260 130 285 70'/%3E%3Cpath d='M168 160 C130 140 100 100 85 45'/%3E%3Cpath d='M380 380 C420 320 440 250 448 170'/%3E%3Cpath d='M446 260 C490 240 520 205 545 155'/%3E%3Cpath d='M446 210 C410 190 388 155 375 110'/%3E%3C/g%3E%3C/svg%3E"),
        var(--paper-strong);
    background-repeat: no-repeat, repeat;
    background-position: right -40px bottom -30px, 0 0;
    background-size: 620px auto, auto;
    border-bottom: 1px solid var(--line);
}

.hero-inner { max-width: 44rem; }

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.hero-title { margin-bottom: 1rem; }
.hero-title .hl { color: var(--accent-2); }

.hero-sub {
    font-size: 1.12rem;
    color: var(--text);
    max-width: 40rem;
    margin-bottom: 1.8rem;
}

.hero-author {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    color: var(--muted);
    margin-bottom: 1.9rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Блок 2 — Чек-лист */

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 60rem;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.3rem 1.4rem;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.check-item:last-child { border-bottom: 0; }

.check-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    color: var(--muted);
    opacity: .45;
    flex: 0 0 3rem;
}

.check-leaf { flex: 0 0 26px; margin-top: .15rem; }

.check-body { min-width: 0; }

.check-body h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.check-body p { margin: 0; color: var(--text); font-size: .97rem; }

/* Блок последних записей */

.fs-latest .front-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.fs-latest .front-head .btn { margin-bottom: 1.6rem; }

/* Блок 3 — Цитата */

.quote-plate {
    display: flex;
    align-items: flex-start;
    gap: 1.6rem;
    padding: 2.6rem 2.4rem;
    border-radius: var(--radius);
    background-color: var(--bg-foot);
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 7px),
        linear-gradient(135deg, #1A2835 0%, #294055 100%);
    color: #fff;
}

.quote-bar {
    flex: 0 0 8px;
    align-self: stretch;
    background: var(--accent);
    border-radius: 4px;
    min-height: 90px;
}

.quote-body { min-width: 0; }

.quote-text {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.5;
    color: #fff;
    margin: 0 0 1.1rem;
}

.quote-sign {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .05em;
    color: #C9D6E2;
}

/* Блок 4 — Рубрикатор */

.rubric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
}

.rubric-card {
    display: block;
    min-width: 0;
    padding: 1.9rem 1.6rem 2.1rem;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
    transition: border-color .25s ease, transform .2s ease, background-color .25s ease;
}

.rubric-card::after { content: none; }

.rubric-card:hover {
    border-color: var(--accent);
    background: var(--bg);
    transform: translateY(-3px);
    color: var(--text);
}

.rubric-icon { display: block; width: 46px; height: 46px; margin-bottom: 1rem; }

.rubric-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0 0 .5rem;
}

.rubric-note { font-size: .93rem; color: var(--muted); margin: 0; }

/* ==================================================
   Запись и страница
================================================== */

.entry-head { margin-bottom: 1.6rem; }

.entry-title { font-size: 2.5rem; margin-bottom: .6rem; }

.entry-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 2.5 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    margin-bottom: 1.6rem;
}

.entry-content { font-size: 1.05rem; }

.entry-content h2 {
    font-size: 1.75rem;
    margin-top: 2.2rem;
}

.entry-content h3 { margin-top: 1.8rem; }

.entry-content h2::first-letter,
.entry-content h3::first-letter {
    color: var(--accent);
    font-size: 1.18em;
    margin-left: -.14em;
}

.entry-content img { border-radius: 8px; display: block; }

.entry-content ul { list-style: none; padding-left: 1.5rem; }

.entry-content ul li { position: relative; }

.entry-content ul li::before {
    content: "";
    position: absolute;
    left: -1.2rem;
    top: .62em;
    width: 8px;
    height: 8px;
    background: var(--accent-2);
    border-radius: 0 4px 0 0;
}

.entry-tags {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-head);
    font-size: .85rem;
    color: var(--muted);
}

.entry-tags a { color: var(--accent-2); }

.post-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-head);
    font-size: .9rem;
}

.post-nav a { color: var(--text); }
.post-nav a:hover { color: var(--accent); }

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

.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--bg-side);
    background-image: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    color: var(--text);
}

.widget-title {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.2rem;
}

.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

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

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

.sidebar .widget li {
    padding: .5rem 0;
    border-bottom: 1px dotted var(--line);
    font-size: .95rem;
}

.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--text); }
.sidebar .widget a:hover { color: var(--accent); }

.sidebar .widget .post-date {
    display: block;
    font-family: var(--font-head);
    font-size: .76rem;
    color: var(--muted);
    margin-top: .15rem;
}

.sidebar .widget p { font-size: .95rem; color: var(--text); }

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

.site-foot {
    background-color: var(--bg-foot);
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 8px);
    color: #D7E0E9;
    margin-top: 3rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.2rem;
    padding: 3rem 0 2.2rem;
}

.foot-col { min-width: 0; }

.site-foot .widget { margin-bottom: 1.6rem; color: #D7E0E9; }
.site-foot .widget:last-child { margin-bottom: 0; }

.site-foot .widget-title { color: #FFFFFF; }
.site-foot .widget-title::before { background: var(--accent); }

.site-foot .widget p { color: #C3D0DC; font-size: .95rem; }

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

.site-foot .widget li {
    padding: .42rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    font-size: .95rem;
}

.site-foot .widget li:last-child { border-bottom: 0; }
.site-foot .widget a { color: #E4EBF2; }
.site-foot .widget a:hover { color: var(--accent); }

.site-foot .widget .post-date,
.site-foot .widget .rss-date {
    display: block;
    font-family: var(--font-head);
    font-size: .76rem;
    color: #93A5B5;
}

.foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 1.3rem 0 1.6rem;
    font-family: var(--font-head);
    font-size: .84rem;
    color: #9FB0BF;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: center;
    justify-content: space-between;
}

.foot-mail { color: #E4EBF2; }
.foot-mail:hover { color: var(--accent); }

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2rem 0 .5rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: .5rem .9rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .9rem;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .18s ease;
}

.pager .page-numbers::after { content: none; }

.pager a.page-numbers:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(2px);
}

.pager .page-numbers.current {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #fff;
}

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    min-width: auto;
    padding-left: .3rem;
    padding-right: .3rem;
}

/* ==================================================
   Формы поиска и комментариев
================================================== */

.search-form {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.search-form label { flex: 1 1 200px; min-width: 0; margin: 0; }

.search-form .search-field {
    width: 100%;
    padding: .7rem .9rem;
    font-family: var(--font-body);
    font-size: .97rem;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--accent);
}

.comments-area {
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}

.comments-title { font-size: 1.5rem; }

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

.comment-list .children {
    list-style: none;
    margin: 1rem 0 0 1.4rem;
    padding: 0 0 0 1.2rem;
    border-left: 2px solid var(--line);
}

.comment-item { margin-bottom: 1.2rem; }

.comment-inner {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .8rem;
    margin-bottom: .6rem;
}

.comment-author {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
}

.comment-date { font-family: var(--font-head); font-size: .78rem; color: var(--muted); }

.comment-text p:last-child { margin-bottom: 0; }

.comment-tools { margin-top: .6rem; font-family: var(--font-head); font-size: .85rem; }

.comment-hold { color: var(--muted); font-style: italic; }

.comment-respond {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.7rem;
}

.comment-reply-title { font-size: 1.25rem; }

.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-size: .85rem;
    margin-bottom: .3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .65rem .85rem;
    font-family: var(--font-body);
    font-size: .97rem;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-bottom: 1rem;
}

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

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

.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .04em;
    padding: .75rem 2.4rem;
    border: 2px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, transform .18s ease;
}

.comment-form .submit:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(2px);
}

.no-comments { color: var(--muted); }

/* ==================================================
   404 и пустые состояния
================================================== */

.err-plate {
    background: #fff;
    background-image: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.6rem 2.2rem;
    text-align: left;
}

.err-code {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 4.6rem;
    line-height: 1;
    color: var(--accent);
    margin: 0 0 .6rem;
}

.err-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.err-search { margin-top: 1.6rem; max-width: 30rem; }

.empty-note {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.7rem;
    color: var(--muted);
}

.page-head { margin-bottom: 1.8rem; }
.page-head .entry-title { margin-bottom: .4rem; }

/* ==================================================
   Cookie-баннер
================================================== */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.6rem;
    background: var(--bg-foot);
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 7px);
    border-top: 3px solid var(--accent);
    color: #DCE5ED;
    font-size: .9rem;
}

.cookie-banner p { margin: 0; max-width: 68ch; min-width: 0; }
.cookie-banner a { color: var(--accent); }

.cookie-accept {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .04em;
    padding: .6rem 1.9rem;
    border: 2px solid var(--accent);
    border-radius: 6px;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, transform .18s ease;
}

.cookie-accept:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(2px);
}

/* ==================================================
   Адаптив
================================================== */

@media (max-width: 960px) {
    h1 { font-size: 2.7rem; }
    .entry-title { font-size: 2.1rem; }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2.2rem;
    }

    .layout-single > .content-area { width: 100%; }
    .front-narrow { width: 100%; }

    .quote-text { font-size: 1.35rem; }
}

@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; }

    .main-nav {
        margin-left: 0;
        flex-basis: 100%;
        order: 3;
    }

    .nav-list {
        flex-direction: column;
        gap: .2rem;
        padding-top: .8rem;
    }

    .nav-list li { border-bottom: 1px solid var(--line); }
    .nav-list a { display: block; padding: .6rem 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    .entry-title { font-size: 1.8rem; }

    .site-main { padding: 1.8rem 0 2.4rem; }
    .front-section { padding: 2.2rem 0; }
    .fs-hero { padding: 2.6rem 0 2.4rem; background-size: 420px auto, auto; }

    .hero-sub { font-size: 1rem; }

    .quote-plate { flex-direction: column; padding: 1.8rem 1.4rem; gap: 1rem; }
    .quote-bar { flex: 0 0 8px; width: 70px; align-self: flex-start; min-height: 8px; height: 8px; }
    .quote-text { font-size: 1.2rem; }

    .rubric-card { padding: 1.5rem 1.3rem 1.7rem; }

    .check-item { padding: 1.1rem 1.1rem; gap: .9rem; }
    .check-num { font-size: 1.5rem; flex-basis: 2.2rem; }

    .err-plate { padding: 1.8rem 1.4rem; }
    .err-code { font-size: 3.4rem; }

    .comment-respond { padding: 1.3rem 1.2rem; }
    .cookie-banner { padding: 1rem 1.2rem; }
    .empty-note { padding: 1.3rem 1.2rem; }

    .card-body { padding: 1.1rem 1.2rem 1.2rem; }

    .foot-cols { padding: 2.2rem 0 1.6rem; gap: 1.8rem; }
}
