/*
Theme Name: dds_mbo4x4.ru
Theme URI: https://mbo4x4.ru
Author: Дмитрий Колесников
Author URI: https://mbo4x4.ru
Description: Информационно-образовательный портал о внедорожной культуре и технике экстремального автотуризма с архивом живого клубного опыта.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: dds_mbo4x4_ru
*/

/* ====== БАЗА ====== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #1F1C19;
    background: #F7F4EC;
    overflow-x: hidden;
}

a {
    color: #A65E2E;
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: #8a4a1f;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

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

p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #1F1C19;
    margin: 0 0 0.7em;
    letter-spacing: -0.01em;
}

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

blockquote {
    margin: 1.5em 0;
    padding: 1.25em 1.5em;
    background: #efe9da;
    background-image:
        radial-gradient(rgba(31,28,25,0.05) 1px, transparent 1px),
        radial-gradient(rgba(31,28,25,0.03) 1px, transparent 1px);
    background-size: 4px 4px, 9px 9px;
    background-position: 0 0, 2px 2px;
    border-left: 4px solid #A65E2E;
    border-top: 1px solid rgba(31,28,25,0.15);
    border-bottom: 1px solid rgba(31,28,25,0.15);
    font-style: italic;
    color: #2C2A27;
}

code, pre {
    font-family: "Menlo", "Consolas", monospace;
    background: #efe9da;
    border: 1px solid #d9d2bf;
    border-radius: 3px;
}
code { padding: 0.1em 0.4em; font-size: 0.9em; }
pre { padding: 1em; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; }

hr {
    border: 0;
    height: 1px;
    background: #d9d2bf;
    margin: 2em 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid #1F1C19;
}
th, td {
    padding: 0.6em 0.9em;
    border: 1px solid #1F1C19;
    text-align: left;
}
th {
    background: #2C2A27;
    color: #F7F4EC;
    font-weight: 600;
}

button, .btn {
    display: inline-block;
    font: inherit;
    padding: 0.6em 1.4em;
    border: 1.5px solid #A65E2E;
    background: transparent;
    color: #A65E2E;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s ease;
}
button:hover, .btn:hover {
    background: #A65E2E;
    color: #F7F4EC;
    text-decoration: none;
}
button:active, .btn:active {
    transform: translateY(1px);
    filter: brightness(0.92);
}

.btn-patch {
    -webkit-clip-path: polygon(8% 0, 100% 0, 100% 80%, 92% 100%, 0 100%, 0 20%);
    clip-path: polygon(8% 0, 100% 0, 100% 80%, 92% 100%, 0 100%, 0 20%);
    background: #5E6B5C;
    color: #F7F4EC;
    border: 0;
    padding: 0.55em 1.2em;
    font-size: 0.8rem;
    border-radius: 0;
}
.btn-patch:hover {
    background: #4d584b;
    color: #F7F4EC;
}

input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="tel"], textarea, select {
    font: inherit;
    padding: 0.55em 0.8em;
    border: 1px solid #2C2A27;
    background: #F7F4EC;
    color: #1F1C19;
    border-radius: 3px;
}
input:focus, textarea:focus, select:focus {
    outline: 2px solid #A65E2E;
    outline-offset: 1px;
}

/* ====== КОНТЕЙНЕР ====== */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* ====== ШАПКА ====== */
.site-head {
    position: relative;
    background: linear-gradient(180deg, #1F1C19 0%, #3a342c 45%, #6e6249 75%, #F7F4EC 100%);
    color: #F7F4EC;
    border-bottom: 3px solid #A65E2E;
}
.site-head::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(247,244,236,0.03) 1px, transparent 2px),
        radial-gradient(rgba(31,28,25,0.06) 1px, transparent 2px);
    background-size: 14px 14px, 7px 7px;
    pointer-events: none;
    opacity: 0.6;
}
.site-head > * { position: relative; z-index: 1; }

.head-top {
    padding: 1.5em 0 1.2em;
    display: flex;
    align-items: center;
    gap: 1.5em;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9em;
    color: #F7F4EC;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}
.brand:hover { text-decoration: none; color: #F7F4EC; }

.brand-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}
.brand-logo svg { width: 100%; height: 100%; display: block; }

.brand-text { min-width: 0; flex: 1; }
.brand-name {
    font-family: "League Spartan", "Inter", sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: #F7F4EC;
    text-transform: uppercase;
    margin: 0 0 0.15em;
    display: block;
    /* trafaret-like cracks */
    text-shadow: 1px 0 0 rgba(247,244,236,0.0);
}
.brand-desc {
    font-size: 0.78rem;
    color: #d9d2bf;
    line-height: 1.35;
    display: block;
    max-width: 520px;
}

.head-tools {
    display: flex;
    gap: 0.6em;
    align-items: center;
}

.search-toggle {
    background: transparent;
    border: 1.5px solid #d9d2bf;
    color: #F7F4EC;
    padding: 0.5em 0.7em;
    border-radius: 4px;
    cursor: pointer;
}
.search-toggle:hover {
    background: #A65E2E;
    border-color: #A65E2E;
    color: #F7F4EC;
}

.search-drop[hidden] { display: none !important; }
.search-drop {
    padding: 0 0 1.2em;
}
.search-drop form {
    display: flex;
    gap: 0.5em;
}
.search-drop input[type="search"] {
    flex: 1;
    background: rgba(247,244,236,0.95);
    min-width: 0;
}
.search-drop button[type="submit"] {
    background: #A65E2E;
    color: #F7F4EC;
    border-color: #A65E2E;
}
.search-drop button[type="submit"]:hover {
    background: #8a4a1f;
}

/* ====== НАВИГАЦИЯ ====== */
.main-nav {
    background: #2C2A27;
    border-top: 1px solid rgba(247,244,236,0.08);
    border-bottom: 1px solid rgba(166,94,46,0.4);
}
.main-nav .shell {
    display: flex;
    align-items: center;
    gap: 1em;
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    flex: 1;
    min-width: 0;
}
.main-nav li { position: relative; }
.main-nav a {
    display: block;
    padding: 0.9em 1.1em;
    color: #F7F4EC;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav .current-menu-item a {
    color: #DCAE33;
    border-bottom-color: #A65E2E;
    text-decoration: none;
    background: rgba(166,94,46,0.08);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #d9d2bf;
    color: #F7F4EC;
    padding: 0.45em 0.7em;
    border-radius: 3px;
    cursor: pointer;
}

@media (max-width: 760px) {
    .nav-toggle { display: inline-block; }
    .main-nav .shell { padding-top: 0.5em; padding-bottom: 0.5em; flex-wrap: wrap; }
    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    .main-nav ul.is-open { display: flex; }
    .main-nav a { padding: 0.7em 0.5em; }
}

/* ====== ХЛЕБНЫЕ КРОШКИ ====== */
.breadcrumbs {
    padding: 0.9em 0;
    font-size: 0.85rem;
    color: #5E6B5C;
    border-bottom: 1px dashed #d9d2bf;
    margin-bottom: 1.5em;
}
.breadcrumbs a {
    color: #5E6B5C;
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: #A65E2E;
    text-decoration: underline;
    text-decoration-style: dotted;
}
.breadcrumbs .sep {
    margin: 0 0.4em;
    color: #A65E2E;
    font-weight: 700;
}

/* ====== ОСНОВНОЙ КОНТЕЙНЕР СТРАНИЦ ====== */
.site-main {
    padding: 1em 0 3em;
}

/* Двухколоночная раскладка с сайдбаром */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    gap: 6%;
    align-items: start;
}

/* Одноколоночная раскладка (без сайдбара) */
.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5em;
    }
    .layout-single { width: 100%; }
}

/* ====== КАРТОЧКИ ЗАПИСЕЙ ====== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5em;
    margin: 1em 0 2em;
}

/* Топографический сдвиг (шестигранная сетка) */
@media (min-width: 700px) {
    .cards-grid > .card:nth-child(3n+2) {
        transform: translateY(18px);
    }
    .cards-grid > .card:nth-child(3n+3) {
        transform: translateY(-10px);
    }
}

.card {
    display: flex;
    flex-direction: column;
    background: #fffdf6;
    border: 1px solid #d9d2bf;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card::before {
    content: "";
    position: absolute;
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    border: 1px dashed rgba(166,94,46,0.0);
    pointer-events: none;
    transition: border-color 0.18s ease;
}
.card:hover {
    box-shadow: 0 4px 0 -1px #2C2A27, 4px 8px 18px -8px rgba(31,28,25,0.4);
}
.card:hover::before {
    border-color: rgba(166,94,46,0.25);
}

.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #d9d2bf;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    flex: 1;
    padding: 1.1em 1.2em 1.3em;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #5E6B5C;
    margin-bottom: 0.5em;
    display: flex;
    gap: 0.7em;
    flex-wrap: wrap;
}
.card-meta a {
    color: #5E6B5C;
}
.card-meta a:hover { color: #A65E2E; }

.card-title {
    font-size: 1.15rem;
    margin: 0 0 0.6em;
    line-height: 1.3;
}
.card-title a {
    color: #1F1C19;
    text-decoration: none;
}
.card-title a:hover {
    color: #A65E2E;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.card-excerpt {
    color: #2C2A27;
    font-size: 0.95rem;
    margin-bottom: 1em;
    flex: 1;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

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

/* ====== ПАГИНАЦИЯ ====== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
    margin: 2.5em 0 1em;
    list-style: none;
    padding: 0;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.5em;
    border-radius: 50%;
    background: #2C2A27;
    color: #F7F4EC;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: inset 0 0 0 2px #1F1C19, inset 0 -3px 6px rgba(0,0,0,0.4), inset 0 3px 6px rgba(247,244,236,0.06);
    position: relative;
    transition: background 0.15s ease, transform 0.1s ease;
}
.pagination .page-numbers::after {
    content: "";
    position: absolute;
    width: 60%;
    height: 2px;
    background: rgba(31,28,25,0.45);
    border-radius: 1px;
    transform: rotate(35deg);
    pointer-events: none;
}
.pagination .page-numbers:hover {
    background: #4a4540;
    text-decoration: none;
    color: #F7F4EC;
}
.pagination .page-numbers.current {
    background: #A65E2E;
    color: #F7F4EC;
    box-shadow: inset 0 0 0 2px #6b3a17, inset 0 -3px 6px rgba(0,0,0,0.35), inset 0 3px 6px rgba(247,244,236,0.1);
}
.pagination .page-numbers.dots {
    background: transparent;
    box-shadow: none;
    color: #1F1C19;
}
.pagination .page-numbers.dots::after { display: none; }

/* ====== САЙДБАР ====== */
.sidebar {
    background: #efe9da;
    border: 1px solid #d9d2bf;
    border-radius: 4px;
    padding: 1.3em 1.4em;
    color: #1F1C19;
}
.sidebar .widget {
    margin-bottom: 1.8em;
}
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2C2A27;
    border-bottom: 2px solid #A65E2E;
    padding-bottom: 0.4em;
    margin: 0 0 0.9em;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar li {
    padding: 0.35em 0;
    border-bottom: 1px dashed #c9c1a8;
    color: #1F1C19;
}
.sidebar li:last-child { border-bottom: 0; }
.sidebar a {
    color: #2C2A27;
}
.sidebar a:hover {
    color: #A65E2E;
}
.sidebar .post-date {
    display: block;
    font-size: 0.78rem;
    color: #5E6B5C;
    margin-top: 0.15em;
}

/* ====== ПОДВАЛ ====== */
.site-foot {
    background: #2C2A27;
    color: #d9d2bf;
    border-top: 4px solid #A65E2E;
    margin-top: 3em;
    position: relative;
}
.site-foot::before {
    content: "";
    display: block;
    height: 14px;
    background-color: #1F1C19;
    background-image:
        repeating-linear-gradient(90deg,
            #1F1C19 0,
            #1F1C19 8px,
            #A65E2E 8px,
            #A65E2E 10px,
            #1F1C19 10px,
            #1F1C19 22px
        ),
        repeating-linear-gradient(45deg,
            rgba(247,244,236,0.04) 0,
            rgba(247,244,236,0.04) 6px,
            transparent 6px,
            transparent 12px
        );
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5em;
    padding: 2.5em 0 2em;
}
@media (max-width: 760px) {
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 2em; }
}

.foot-col .widget {
    margin-bottom: 1.5em;
}
.foot-col .widget:last-child { margin-bottom: 0; }
.foot-col .widget-title {
    color: #DCAE33;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(220,174,51,0.3);
    padding-bottom: 0.4em;
    margin: 0 0 0.8em;
}
.foot-col, .foot-col p {
    color: #d9d2bf;
}
.foot-col a {
    color: #efe9da;
}
.foot-col a:hover {
    color: #DCAE33;
    text-decoration: underline;
    text-decoration-style: dotted;
}
.foot-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.foot-col li {
    padding: 0.3em 0;
    border-bottom: 1px dashed rgba(217,210,191,0.12);
}
.foot-col li:last-child { border-bottom: 0; }
.foot-col .post-date {
    display: block;
    font-size: 0.78rem;
    color: #8e8773;
    margin-top: 0.15em;
}

.foot-bottom {
    padding: 1.1em 0;
    border-top: 1px solid rgba(247,244,236,0.08);
    font-size: 0.82rem;
    text-align: center;
    color: #8e8773;
}

/* ====== COOKIE-БАННЕР ====== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1em;
    right: 1em;
    bottom: 1em;
    z-index: 9999;
    background: #1F1C19;
    color: #F7F4EC;
    border: 1px solid #A65E2E;
    border-radius: 4px;
    padding: 1em 1.2em;
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5);
}
.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 240px;
    font-size: 0.88rem;
}
.cookie-banner a {
    color: #DCAE33;
}
.cookie-banner button {
    border-color: #DCAE33;
    color: #DCAE33;
}
.cookie-banner button:hover {
    background: #DCAE33;
    color: #1F1C19;
}

/* ====== ГЛАВНАЯ ====== */
.feature-block {
    padding: 2.5em 0;
    border-bottom: 1px dashed #d9d2bf;
}
.feature-block:last-of-type { border-bottom: 0; }

.feature-block.alt-bg {
    background: #efe9da;
    background-image:
        radial-gradient(rgba(31,28,25,0.04) 1px, transparent 1px);
    background-size: 18px 18px;
    border: 1px solid #d9d2bf;
    border-radius: 4px;
    padding: 2.5em 1.8em;
    margin: 1.5em 0 2.5em;
    border-bottom: 1px solid #d9d2bf;
}

.feature-head {
    margin-bottom: 1.5em;
}
.feature-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #A65E2E;
    background: rgba(166,94,46,0.1);
    padding: 0.3em 0.7em;
    border-radius: 2px;
    margin-bottom: 0.6em;
    font-weight: 600;
}
.feature-title {
    font-size: 1.9rem;
    margin: 0 0 0.4em;
}
.feature-lead {
    color: #2C2A27;
    font-size: 1.05rem;
    max-width: 720px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5em;
}

.tile {
    background: #fffdf6;
    border: 1px solid #d9d2bf;
    border-left: 4px solid #A65E2E;
    padding: 1.2em 1.3em;
    border-radius: 3px;
    min-width: 0;
}
.tile.warn { border-left-color: #DCAE33; }
.tile.green { border-left-color: #5E6B5C; }
.tile h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.tile p { margin: 0; font-size: 0.93rem; color: #2C2A27; }

.tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #A65E2E;
    flex-shrink: 0;
}
.tile-icon svg { width: 100%; height: 100%; display: block; }

.steps-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2em;
}
.steps-list li {
    counter-increment: step;
    background: #fffdf6;
    border: 1px solid #d9d2bf;
    padding: 1.1em 1.2em 1.1em 3em;
    border-radius: 3px;
    position: relative;
    min-width: 0;
}
.steps-list li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0.6em;
    top: 0.6em;
    font-family: "League Spartan", "Inter", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #A65E2E;
}

.front-latest {
    padding: 2.5em 0;
}
.front-latest .feature-title { margin-bottom: 1em; }

/* ====== СТАТЬЯ ====== */
.entry-header {
    margin-bottom: 1.5em;
    padding-bottom: 1em;
    border-bottom: 2px solid #1F1C19;
}
.entry-title {
    font-size: 2.1rem;
    margin: 0 0 0.4em;
}
.entry-meta {
    color: #5E6B5C;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.entry-meta a { color: #5E6B5C; }
.entry-meta a:hover { color: #A65E2E; }
.entry-meta .sep { margin: 0 0.6em; color: #A65E2E; }

.entry-thumb {
    margin: 0 0 1.5em;
    overflow: hidden;
    border-radius: 4px;
}
.entry-thumb img { width: 100%; display: block; }

.entry-content {
    font-size: 1.02rem;
    color: #1F1C19;
}
.entry-content p, .entry-content ul, .entry-content ol {
    margin: 0 0 1.1em;
}
.entry-content img {
    border-radius: 3px;
    margin: 0.5em 0;
}
.entry-content h2 { margin-top: 1.4em; }
.entry-content h3 { margin-top: 1.2em; }

.tag-list {
    margin: 1.5em 0;
    font-size: 0.88rem;
}
.tag-list a {
    display: inline-block;
    padding: 0.2em 0.7em;
    background: #efe9da;
    border: 1px solid #d9d2bf;
    color: #2C2A27;
    border-radius: 2px;
    margin-right: 0.4em;
    margin-bottom: 0.4em;
    text-decoration: none;
}
.tag-list a:hover { background: #A65E2E; color: #F7F4EC; border-color: #A65E2E; }

/* ====== КОММЕНТАРИИ ====== */
.comments-area {
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 2px solid #1F1C19;
}
.comments-area h2, .comments-area h3 {
    margin-bottom: 1em;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2em;
}
.comment-list li.comment {
    background: #efe9da;
    padding: 1em 1.2em;
    margin-bottom: 1em;
    border-left: 3px solid #A65E2E;
    border-radius: 0 3px 3px 0;
}
.comment-list .children {
    list-style: none;
    padding-left: 1.5em;
    margin-top: 1em;
}
.comment-author {
    font-weight: 700;
    color: #1F1C19;
}
.comment-meta {
    font-size: 0.82rem;
    color: #5E6B5C;
    margin-bottom: 0.5em;
}
.comment-meta a { color: #5E6B5C; }
.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3em;
    font-size: 0.9rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
}
.comment-form p { margin-bottom: 0.9em; }
.comment-form .form-submit input {
    background: #A65E2E;
    color: #F7F4EC;
    border: 0;
    padding: 0.7em 1.6em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
}
.comment-form .form-submit input:hover { background: #8a4a1f; }

/* ====== 404 ====== */
.error-404 {
    text-align: center;
    padding: 3em 1em;
}
.error-404 .big-code {
    font-family: "League Spartan", "Inter", sans-serif;
    font-size: 6rem;
    font-weight: 800;
    color: #A65E2E;
    line-height: 1;
    margin: 0 0 0.2em;
    letter-spacing: -0.04em;
}
.error-404 h1 {
    margin: 0 0 0.7em;
}
.error-404 .search-wrap {
    max-width: 480px;
    margin: 1.5em auto;
}

/* ====== ФОРМА ПОИСКА ====== */
.search-form {
    display: flex;
    gap: 0.5em;
}
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
}
.search-form button {
    background: #A65E2E;
    color: #F7F4EC;
    border-color: #A65E2E;
    padding: 0.5em 1em;
}
.search-form button:hover { background: #8a4a1f; }

/* ====== АДАПТИВ ====== */
@media (max-width: 600px) {
    body { font-size: 16px; }
    h1, .entry-title { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }
    .feature-title { font-size: 1.4rem; }
    .error-404 .big-code { font-size: 4rem; }
    .head-top { padding: 1.1em 0 1em; gap: 1em; }
    .brand-logo { width: 44px; height: 44px; }
    .brand-name { font-size: 1.05rem; }
    .brand-desc { font-size: 0.72rem; }
    .cards-grid > .card:nth-child(n) { transform: none; }
    .feature-block { padding: 1.8em 0; }
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    .cookie-banner button { width: 100%; }
}
