/*
Theme Name: dds_beeahtalks.com
Theme URI: https://beeahtalks.com/
Author: Денис Чернов
Description: Тема для информационного сайта об устойчивой архитектуре и переработке материалов. Японский минимализм, природная зелёная гамма с медными акцентами.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ecoarc
*/

/* =========================================================
   1. Переменные и база
   ========================================================= */

:root {
    --bg: #F4F3F0;
    --bg-alt: #EAE7E0;
    --ink: #2A2E28;
    --copper: #A67C52;
    --copper-soft: rgba(166, 124, 82, 0.16);
    --pine: #4A6B4F;
    --pine-dark: #2D3A2F;
    --muted: #7A7A72;
    --line: #D0CDC4;
    --font-head: "Jost", "Archivo", "Futura", "Trebuchet MS", "Segoe UI", sans-serif;
    --font-body: "Inter", "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --corner: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(42, 46, 40, 0.035) 0,
        rgba(42, 46, 40, 0.035) 1px,
        transparent 1px,
        transparent 6px
    );
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--copper);
    text-decoration: none;
    background-image: linear-gradient(var(--copper), var(--copper));
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 0 1px;
    transition: background-size 0.25s ease, color 0.25s ease;
}

a:hover,
a:focus-visible {
    background-size: 100% 1px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 0.7em;
    color: var(--ink);
}

h1 { font-size: 4.0rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p {
    margin: 0 0 1.1em;
}

ul, ol {
    margin: 0 0 1.2em;
    padding-left: 1.3em;
}

li {
    margin-bottom: 0.4em;
}

blockquote {
    margin: 1.8em 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--copper);
    font-size: 1.06rem;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    font-size: 0.97rem;
}

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

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

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.92em;
    background: var(--bg-alt);
}

pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
}

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

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

.site-main {
    display: block;
    padding-bottom: 4rem;
}

.page-wrap {
    padding-top: 2.2rem;
}

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

.layout-single {
    display: block;
}

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

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

/* =========================================================
   3. Кнопки, формы
   ========================================================= */

.btn,
.comment-form input[type="submit"],
.wp-block-button__link {
    display: inline-block;
    padding: 0.72rem 1.7rem;
    border: 1.5px solid var(--copper);
    border-radius: 2px;
    background: transparent;
    color: var(--copper);
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    background-image: none;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover,
.btn:focus-visible,
.comment-form input[type="submit"]:hover,
.wp-block-button__link:hover {
    background-color: var(--copper);
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(45, 58, 47, 0.18);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--copper);
}

.search-form {
    margin: 1.4rem 0;
}

.search-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--muted);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.search-row {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
}

.search-row .search-field {
    flex: 1;
    min-width: 0;
}

.search-row .btn {
    white-space: nowrap;
}

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

.site-header {
    position: relative;
    background-color: rgba(244, 243, 240, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background-color: var(--bg);
    box-shadow: 0 8px 22px rgba(45, 58, 47, 0.07);
}

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

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

.brand-link {
    display: block;
    flex: 0 0 auto;
    background-image: none;
}

.brand-mark {
    display: block;
}

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

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

.brand-name {
    display: block;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
    background-image: none;
}

.brand-name:hover {
    color: var(--copper);
}

.brand-desc {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
    max-width: 52ch;
}

.primary-nav {
    flex: 0 0 auto;
}

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

.nav-list li {
    margin: 0;
    position: relative;
}

.nav-list a {
    display: inline-block;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.2rem 0;
    background-image: linear-gradient(var(--copper), var(--copper));
    background-size: 0 1.5px;
    background-position: 50% 100%;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: var(--copper);
    background-size: 100% 1.5px;
}

.nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    min-width: 220px;
    margin: 0;
    padding: 0.6rem 0;
    background: var(--bg);
    border: 1px solid var(--line);
    list-style: none;
}

.nav-list li:hover > .sub-menu {
    display: block;
}

.nav-list .sub-menu a {
    display: block;
    padding: 0.35rem 1rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.9rem;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--copper);
}

.nav-toggle-bar + .nav-toggle-bar {
    margin-top: -0.2rem;
}

.nav-toggle-label {
    margin-left: 0.3rem;
}

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

.crumbs {
    margin-bottom: 1.6rem;
    color: var(--muted);
    font-size: 0.87rem;
    letter-spacing: 0.02em;
}

.crumbs a {
    color: var(--muted);
}

.crumbs a:hover {
    color: var(--copper);
}

.crumbs .sep {
    margin: 0 0.35rem;
    color: var(--copper);
}

/* =========================================================
   6. Заголовки секций и страниц
   ========================================================= */

.page-head {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.6rem;
    margin-bottom: 0.4rem;
}

.page-sub {
    color: var(--muted);
}

.section-head {
    margin-bottom: 2.2rem;
    padding-left: 1.4rem;
    position: relative;
}

.section-head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 3px;
    height: 2.4em;
    background: var(--copper);
}

.section-title {
    margin-bottom: 0.35rem;
    font-size: 2.1rem;
}

.section-sub {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    max-width: 60ch;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 1.8em;
}

.entry-content h2::before,
.entry-content h3::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.55em;
    border-radius: 50%;
    background: var(--copper);
    vertical-align: middle;
    transform: translateY(-0.35em);
}

.entry-content img {
    clip-path: var(--corner);
}

.entry-content > *:first-child {
    margin-top: 0;
}

/* =========================================================
   7. Главная — секции
   ========================================================= */

.front-wrap {
    padding-top: 2.4rem;
}

.front-section {
    margin-bottom: 3.6rem;
    padding: 2.6rem 0;
}

.front-section:not(.fs-hero) {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.fs-latest,
.fs-stats {
    padding-top: 2.4rem;
}

/* 7.1 Hero */

.fs-hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin-bottom: 4rem;
    min-height: 460px;
    display: flex;
    align-items: center;
    background: var(--pine-dark);
    clip-path: var(--corner);
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) contrast(0.96);
}

.hero-plan {
    position: absolute;
    right: 2%;
    bottom: 0;
    width: 340px;
    max-width: 45%;
    height: auto;
    opacity: 0.16;
    pointer-events: none;
}

.hero-plate {
    position: relative;
    z-index: 2;
    width: min(100%, 620px);
    margin: 3rem 0 3rem 3rem;
    padding: 2.4rem 2.4rem 2.6rem;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 2px;
    clip-path: var(--corner);
}

.hero-title {
    margin-bottom: 0.5rem;
    font-size: 4.0rem;
    line-height: 1.05;
}

.hero-sub {
    margin-bottom: 1.6rem;
    color: #3D4239;
    font-size: 1.03rem;
}

/* 7.2 Шаги */

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}

.step {
    display: flex;
    gap: 1rem;
    min-width: 0;
}

.step-num {
    flex: 0 0 auto;
    color: var(--copper);
    font-family: var(--font-head);
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 0.9;
}

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

.step-title {
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
}

.step-body p {
    margin: 0;
    color: #3D4239;
    font-size: 0.97rem;
}

.steps-rule {
    margin-top: 2.6rem;
    height: 1px;
    background: var(--copper);
}

/* 7.3 Чек-лист */

.fs-check {
    background: var(--bg-alt);
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(42, 46, 40, 0.06) 0,
        rgba(42, 46, 40, 0.06) 1px,
        transparent 1px,
        transparent 6px
    );
    padding: 3rem 2.4rem 3.2rem;
    clip-path: var(--corner);
}

.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 78ch;
}

.check-list li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(42, 46, 40, 0.1);
    margin: 0;
    min-width: 0;
}

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

.check-list .tick {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 0.15rem;
}

.check-list span {
    min-width: 0;
}

/* 7.4 Статистика */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.stat {
    padding: 0 1.6rem;
    border-left: 1px solid var(--copper);
    min-width: 0;
}

.stat:first-child {
    border-left: none;
    padding-left: 0;
}

.stat-num {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1;
}

.stat-label {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

.layout-with-sidebar .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--bg);
    clip-path: var(--corner);
    transition: background-color 0.25s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--copper);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.card:hover {
    background-color: #EDECE8;
}

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

.card-thumb {
    position: relative;
    overflow: hidden;
}

.card-thumb a {
    display: block;
    background-image: none;
}

.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(45, 58, 47, 0.06) 0%, rgba(45, 58, 47, 0.22) 100%);
    pointer-events: none;
}

.card-img,
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: saturate(0.78) contrast(0.97);
}

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

.card-title {
    margin: 0.3rem 0 0.6rem;
    font-size: 1.22rem;
    line-height: 1.28;
}

.card-title a {
    color: var(--ink);
    background-image: linear-gradient(var(--copper), var(--copper));
}

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

.card-excerpt {
    color: #3D4239;
    font-size: 0.95rem;
}

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

.card-more {
    margin-top: auto;
    padding-top: 0.9rem;
    font-family: var(--font-head);
    font-size: 0.87rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    align-self: flex-start;
}

.post-meta {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.post-meta a {
    color: var(--muted);
}

.post-meta a:hover {
    color: var(--copper);
}

.post-meta .sep {
    margin: 0 0.35rem;
    color: var(--copper);
}

.empty-note {
    color: var(--muted);
}

/* =========================================================
   9. Записи и страницы
   ========================================================= */

.single-thumb {
    margin: 0 0 2rem;
}

.single-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    clip-path: var(--corner);
    filter: saturate(0.82);
}

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

.entry-content ul,
.entry-content ol {
    padding-left: 1.4em;
}

.tag-line {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}

.tag-line a {
    margin-right: 0.8rem;
}

.post-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin: 2.6rem 0;
}

.post-nav-item {
    display: block;
    padding: 1.1rem 1.3rem;
    border: 1px solid var(--line);
    color: var(--ink);
    background-image: none;
    clip-path: var(--corner);
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.post-nav-item span {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.post-nav-item:hover {
    border-color: var(--copper);
    background-color: var(--bg-alt);
}

.post-nav-item.next {
    text-align: right;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.6rem 0 1rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.95rem;
    background-image: none;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--copper);
    color: var(--copper);
}

.pager .page-numbers.current {
    background: var(--copper);
    border-color: var(--copper);
    color: #FFFFFF;
}

.pager .page-numbers.dots {
    border: none;
    min-width: 24px;
    color: var(--muted);
}

.comments-area .navigation .page-numbers {
    margin-right: 0.4rem;
}

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

.sidebar {
    min-width: 0;
    background: var(--bg);
    border-left: 1px solid var(--line);
    padding-left: 1.6rem;
    color: var(--ink);
}

.sidebar .widget {
    margin-bottom: 2.2rem;
    color: var(--ink);
}

.sidebar .widget-title {
    margin-bottom: 0.9rem;
    color: var(--ink);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--copper);
}

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

.sidebar .widget li {
    padding: 0.55rem 0 0.55rem 1rem;
    border-bottom: 1px solid var(--line);
    position: relative;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.45;
}

.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--copper);
}

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

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

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

.sidebar .widget .post-date {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
}

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

.site-footer {
    margin-top: 3rem;
    padding: 3.2rem 0 1.6rem;
    background: var(--pine-dark);
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.035) 0,
        rgba(255, 255, 255, 0.035) 1px,
        transparent 1px,
        transparent 7px
    );
    color: #DDE2D8;
}

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

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

.site-footer .widget {
    margin-bottom: 1.6rem;
    color: #DDE2D8;
    font-size: 0.94rem;
}

.site-footer .widget-title {
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(166, 124, 82, 0.55);
    color: #F4F3F0;
    font-size: 1.02rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.site-footer .widget p {
    color: #C9D0C4;
}

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

.site-footer .widget li {
    padding: 0.4rem 0 0.4rem 1rem;
    position: relative;
    line-height: 1.45;
}

.site-footer .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--copper);
}

.site-footer .widget a {
    color: #E6EADF;
    background-image: linear-gradient(#E6C39D, #E6C39D);
}

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

.site-footer .widget .post-date {
    display: block;
    color: #A8B2A2;
    font-size: 0.8rem;
}

.footer-bottom {
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(244, 243, 240, 0.14);
    color: #AEB7A9;
    font-size: 0.86rem;
}

.footer-bottom p {
    margin: 0;
}

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

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

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

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

.comment-list .children {
    margin: 1rem 0 0 1.6rem;
    padding: 0;
    list-style: none;
}

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

.comment-inner {
    padding: 1.2rem 1.4rem;
    background: var(--bg-alt);
    border-left: 2px solid var(--copper);
    clip-path: var(--corner);
}

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

.comment-author {
    font-family: var(--font-head);
    font-weight: 600;
}

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

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

.comment-wait {
    color: var(--muted);
    font-size: 0.88rem;
}

.comment-actions {
    margin-top: 0.6rem;
    font-size: 0.87rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.86rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form .form-submit {
    margin-bottom: 0;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--pine-dark);
    border-top: 1px solid rgba(166, 124, 82, 0.5);
    color: #E4E8DE;
}

.cookie-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
}

.cookie-text {
    margin: 0;
    min-width: 0;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-accept {
    flex: 0 0 auto;
    border-color: #E6C39D;
    color: #E6C39D;
}

.cookie-accept:hover {
    background-color: #E6C39D;
    color: var(--pine-dark);
}

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

@media (max-width: 960px) {
    h1 { font-size: 2.8rem; }
    .hero-title { font-size: 2.8rem; }
    .page-title { font-size: 2.1rem; }
    .section-title { font-size: 1.75rem; }

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

    .sidebar {
        border-left: none;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 1.6rem;
    }

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

    .nav-toggle {
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .primary-nav {
        flex: 0 0 100%;
        display: none;
    }

    .primary-nav.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding-top: 0.6rem;
        border-top: 1px solid var(--line);
    }

    .nav-list li {
        border-bottom: 1px solid var(--line);
    }

    .nav-list a {
        display: block;
        padding: 0.7rem 0;
    }

    .nav-list .sub-menu {
        position: static;
        display: block;
        border: none;
        padding: 0 0 0.4rem 1rem;
        background: transparent;
    }

    .front-section:not(.fs-hero) {
        width: 100%;
    }

    .steps-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.6rem;
    }

    .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1.8rem;
    }

    .stat:nth-child(3) {
        border-left: none;
        padding-left: 0;
    }

    .fs-hero {
        min-height: 0;
    }

    .hero-plate {
        margin: 2rem 1.4rem;
        padding: 1.9rem 1.7rem 2rem;
    }

    .hero-plan {
        max-width: 60%;
        opacity: 0.1;
    }
}

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

    h1 { font-size: 2.2rem; }
    .hero-title { font-size: 2.2rem; }
    .page-title { font-size: 1.85rem; }
    .section-title { font-size: 1.55rem; }
    h2 { font-size: 1.6rem; }

    .front-section {
        margin-bottom: 2.6rem;
        padding: 1.8rem 0;
    }

    .fs-check {
        padding: 1.9rem 1.4rem 2rem;
    }

    .hero-plate {
        margin: 1.4rem 1rem;
        padding: 1.5rem 1.3rem 1.7rem;
        background: rgba(255, 255, 255, 0.85);
    }

    .hero-plan {
        display: none;
    }

    .stats-row {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 1.4rem;
    }

    .stat {
        border-left: none;
        border-top: 1px solid var(--copper);
        padding: 1rem 0 0;
    }

    .stat:first-child {
        border-top: none;
        padding-top: 0;
    }

    .stat-num {
        font-size: 2.8rem;
    }

    .card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .search-row {
        flex-wrap: wrap;
    }

    .search-row .btn {
        width: 100%;
    }

    .cookie-inner {
        align-items: flex-start;
    }

    .comment-list .children {
        margin-left: 0.8rem;
    }

    .post-nav-item.next {
        text-align: left;
    }
}
