/*
Theme Name: dds_nachnem-vse-zanovo.ru
Author: Анна Вербицкая
Description: Тёмная тема для экспертного ресурса о переобучении и смене профессии во взрослом возрасте. Графит, медный акцент, таймлайн пути и раздел материалов.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nvzanovo
*/

/* ---------- Служебные правила hidden (до основных блоков) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Токены ---------- */
:root {
    --bg: #14161a;
    --bg-alt: #1b1e24;
    --bg-head: #0f1114;
    --bg-foot: #0b0d10;
    --bg-side: #191c21;
    --text: #e8e6e3;
    --copper: #c87f4a;
    --copper-hi: #dc9a68;
    --sage: #6b9e8f;
    --muted: #8a8f98;
    --line: #2a2e35;
    --f-head: "Unbounded", "Montserrat", "Segoe UI", Arial, sans-serif;
    --f-body: "Fira Sans", "PT Sans", "Segoe UI", Arial, sans-serif;
    --glow: 0 6px 22px rgba(200, 127, 74, 0.28);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    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%3Cpath d='M10 380 L120 300 L190 330 L300 210 L370 240 L480 110 L590 20' fill='none' stroke='%23c87f4a' stroke-opacity='0.04' stroke-width='14' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M520 20 H590 V90' fill='none' stroke='%23c87f4a' stroke-opacity='0.04' stroke-width='14' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, #1a1d22 0, #1a1d22 1px, transparent 1px, transparent 24px);
    background-repeat: no-repeat, repeat;
    background-position: right 2rem bottom 2rem, 0 0;
    background-size: min(560px, 60%) auto, auto;
    background-attachment: fixed, scroll;
}

img { max-width: 100%; height: auto; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.25;
    color: #f1efec;
    margin: 1.6em 0 0.6em;
    letter-spacing: 0.005em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
@media (min-width: 960px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 1.9rem; }
}

a { color: var(--copper); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--copper-hi);
    outline-offset: 3px;
}

/* анимированное подчёркивание слева направо */
.entry-content a, .widget a, .crumbs a, .colophon-copy a, .empty-note a, .card-more, .comment-list a {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .3s ease, color .2s ease;
}
.entry-content a:hover, .widget a:hover, .crumbs a:hover, .colophon-copy a:hover, .empty-note a:hover, .card-more:hover, .comment-list a:hover {
    background-size: 100% 1px;
}

table { width: 100%; border-collapse: collapse; margin: 1.5em 0; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; }
th { background: var(--bg-alt); font-weight: 600; }

blockquote {
    margin: 1.8em 0;
    padding: 1.2em 1.5em;
    border-left: 2px solid var(--copper);
    border-radius: 0 6px 6px 0;
    background: linear-gradient(90deg, rgba(200,127,74,.10), rgba(200,127,74,.02) 70%);
    box-shadow: -6px 0 24px -12px rgba(200,127,74,.45);
    font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

pre { overflow-x: auto; background: #0f1114; border: 1px solid var(--line); padding: 1em 1.2em; border-radius: 6px; }
hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }

/* ---------- Каркас ---------- */
.shell { width: min(92%, 1280px); margin-inline: auto; }

.copper-thread { height: 3px; background: var(--copper); }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--f-head);
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.2;
    padding: .9em 1.5em;
    border-radius: 4px;
    border: 1px solid var(--copper);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
    text-align: center;
}
.btn-fill { background: var(--copper); color: #14161a; }
.btn-fill:hover { background: var(--copper-hi); color: #14161a; transform: translateY(-2px); box-shadow: var(--glow); }
.btn-line { background: transparent; color: var(--copper); }
.btn-line:hover { color: var(--copper-hi); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,127,74,.18); }
.btn-lg { font-size: .95rem; padding: 1.05em 1.9em; }

/* ---------- Чипы рубрик ---------- */
.chip {
    display: inline-block;
    font-size: .75rem;
    line-height: 1.3;
    padding: .25em .7em;
    border: 1px solid var(--copper);
    border-radius: 3px;
    color: var(--copper);
    background: transparent;
    transition: background-color .2s ease, color .2s ease;
}
.chip:hover { background: var(--copper); color: #14161a; }

/* ---------- Шапка ---------- */
.masthead { background: var(--bg-head); border-bottom: 1px solid var(--line); }
.masthead-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.1rem 0;
}
.brand { display: flex; align-items: center; gap: .9rem; min-width: 0; flex: 1 1 420px; max-width: 640px; color: var(--text); }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { display: block; width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--f-head);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.35;
    color: #f1efec;
}
.brand-desc {
    font-size: .76rem;
    line-height: 1.45;
    color: var(--muted);
    margin-top: .2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.main-nav { position: relative; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; }
.nav-list a {
    font-family: var(--f-head);
    font-size: .85rem;
    color: var(--text);
    padding: .35em 0;
    background-image: linear-gradient(var(--copper), var(--copper));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .3s ease, color .2s ease;
}
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--copper); background-size: 100% 1px; }

.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    font-family: var(--f-head);
    font-size: .82rem;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: .55em 1em;
    cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 16px; height: 2px; background: var(--copper); position: relative;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }

@media (max-width: 959px) {
    .brand { flex-basis: 100%; max-width: none; }
    .main-nav { width: 100%; }
    .nav-toggle { display: inline-flex; }
    .main-nav .nav-list { display: none; flex-direction: column; gap: 0; margin-top: .8rem; border-top: 1px solid var(--line); }
    .main-nav.is-open .nav-list { display: flex; }
    .nav-list li { border-bottom: 1px solid var(--line); }
    .nav-list a { display: block; padding: .75em 0; }
}

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 1.4rem 0 .4rem; }
.crumbs .sep { color: var(--copper); margin: 0 .35em; }
.crumbs span:last-child { color: var(--text); }

/* ---------- Раскладки ---------- */
.site-main { padding-bottom: 4rem; }
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; min-width: 0; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.content-area, .sidebar { min-width: 0; }
@media (max-width: 959px) {
    .layout-with-sidebar { display: block; }
    .layout-single .content-area { width: 100%; }
    .sidebar { margin-top: 3rem; }
}

.page-heading, .entry-title { margin-top: .6em; }
.page-heading { font-size: 2rem; }
@media (min-width: 960px) { .page-heading, .entry-title { font-size: 3.2rem; } }

/* медная точка перед заголовком статьи */
.entry-title::before, .card-title::before {
    content: "";
    display: inline-block;
    width: .32em;
    height: .32em;
    border-radius: 50%;
    background: var(--copper);
    margin-right: .45em;
    vertical-align: .2em;
    box-shadow: 0 0 10px rgba(200,127,74,.6);
}

/* ---------- Заголовки секций ---------- */
.sec-title {
    margin: 0 0 .8rem;
    padding-left: .85rem;
    border-left: 3px solid var(--copper);
    font-size: 1.5rem;
    line-height: 1.25;
}
@media (min-width: 960px) { .sec-title { font-size: 2rem; } }
.sec-lead { color: var(--muted); max-width: 62ch; margin: 0 0 2.2rem; }

/* ---------- Разделители ---------- */
.rule-copper { position: relative; height: 1px; background: var(--line); margin: 3.5rem 0; }
.rule-copper::after {
    content: ""; position: absolute; left: 50%; top: -1px; width: 40px; height: 3px;
    transform: translateX(-50%); background: var(--copper); border-radius: 2px;
}
.rule-dots {
    height: 4px; margin: 3.5rem 0;
    background-image: radial-gradient(circle, var(--copper) 1.2px, transparent 1.6px);
    background-size: 12px 4px;
    background-repeat: repeat-x;
    background-position: center;
    opacity: .7;
}

/* ---------- Главная ---------- */
.front-wrap { width: 85%; margin-left: auto; margin-right: auto; padding-top: 2.5rem; }
@media (max-width: 959px) { .front-wrap { width: 100%; } }

.fs-block { border-radius: 8px; padding: 3rem 2.6rem; }

.fs-hero {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border-top: 3px solid var(--copper);
    background: #0f1114;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
}
.fs-hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.fs-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(15,17,20,.94) 0%, rgba(15,17,20,.78) 45%, rgba(15,17,20,.25) 100%);
}
.fs-hero-body { position: relative; z-index: 2; padding: 4rem 3rem 3.2rem; max-width: 780px; min-width: 0; }
.fs-hero-title { margin: 0 0 1.1rem; font-size: 1.9rem; font-weight: 700; line-height: 1.15; }
@media (min-width: 960px) { .fs-hero-title { font-size: 3.2rem; } }
.fs-hero-lead { font-size: 1.12rem; color: #cfccc7; max-width: 58ch; margin-bottom: 2rem; }
.fs-hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* таймлайн */
.fs-path { background: var(--bg-alt); }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before {
    content: ""; position: absolute; top: .5rem; bottom: .5rem; left: 50%; width: 1px;
    background: linear-gradient(180deg, var(--copper), var(--line) 85%);
}
.tl-item { position: relative; width: 50%; padding: 0 2.6rem 2.2rem 0; min-width: 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 2.2rem 2.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::after {
    content: ""; position: absolute; top: 1.7rem; right: -7px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--copper); border: 3px solid var(--bg-alt);
    box-shadow: 0 0 0 1px var(--copper), 0 0 14px rgba(200,127,74,.55);
}
.tl-item:nth-child(even)::after { right: auto; left: -7px; }
.tl-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.tl-card p { margin: 0; color: #cfccc7; }
.tl-step { display: block; font-size: .8rem; color: var(--sage); margin-bottom: .2rem; }
.tl-title { margin: 0 0 .5rem; font-size: 1.15rem; }
@media (max-width: 759px) {
    .tl::before { left: 7px; }
    .tl-item, .tl-item:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 1.6rem 2.4rem; }
    .tl-item::after, .tl-item:nth-child(even)::after { left: 0; right: auto; }
}

/* последние записи */
.fs-latest .sec-title { margin-bottom: 1.8rem; }
.fs-latest-more { margin: 2rem 0 0; }

/* статистика */
.fs-facts {
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(200,127,74,.16), transparent 70%),
        linear-gradient(180deg, var(--bg-alt), var(--bg));
    border: 1px solid var(--line);
}
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 2.2rem; }
.fact { min-width: 0; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.fact-num {
    display: block;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 4rem;
    line-height: 1;
    margin-bottom: .6rem;
    color: var(--copper);
    background: linear-gradient(160deg, #f0b98d 0%, #c87f4a 55%, #8f5129 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.fact-label { display: block; font-size: .95rem; color: #bdbab5; line-height: 1.5; }
@media (max-width: 959px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* CTA */
.fs-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.8rem 3rem;
    background: var(--bg);
    border: 1px solid var(--copper);
    border-radius: 8px;
    padding: 3rem 2.8rem;
    box-shadow: inset 0 0 0 6px var(--bg), inset 0 0 0 7px rgba(200,127,74,.25);
}
.fs-cta-text { flex: 1 1 420px; min-width: 0; }
.fs-cta-title { margin: 0 0 .7rem; font-size: 1.6rem; }
@media (min-width: 960px) { .fs-cta-title { font-size: 2.1rem; } }
.fs-cta-text p { margin: 0; color: #cfccc7; max-width: 56ch; }

@media (max-width: 600px) {
    .fs-block { padding: 2.2rem 1.4rem; }
    .fs-hero { min-height: 420px; }
    .fs-hero-body { padding: 3rem 1.4rem 2.2rem; }
    .fs-cta { padding: 2rem 1.4rem; }
    .facts { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .fact-num { font-size: 3.2rem; }
}

/* ---------- Карточки ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 959px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid, .card-grid-2 { grid-template-columns: minmax(0, 1fr); } }

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--copper); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.card-thumb { position: relative; overflow: hidden; }
.card-thumb a { display: block; }
.card-thumb::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    box-shadow: inset 0 0 50px 8px rgba(10,12,15,.75);
}
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-thumb-empty {
    display: block; width: 100%; aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 75% 30%, rgba(200,127,74,.22), transparent 55%),
        repeating-linear-gradient(45deg, #20242b 0, #20242b 1px, transparent 1px, transparent 14px),
        #171a1f;
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.3rem 1.4rem 1.5rem; min-width: 0; }
.card-cats { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.card-title { margin: 0 0 .4rem; font-size: 1.05rem; line-height: 1.35; overflow-wrap: anywhere; }
.card-title a { color: #f1efec; transition: color .2s ease; }
.card-title a:hover { color: var(--copper); }
.card-date { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .7rem; }
.card-excerpt { color: #c6c3be; font-size: .95rem; line-height: 1.6; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin-top: auto; align-self: flex-start; font-size: .88rem; font-weight: 500; }

/* ---------- Запись и страница ---------- */
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; color: var(--muted); font-size: .88rem; margin-bottom: 1.8rem; }
.entry-cover { margin: 0 0 2rem; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry-content { overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { padding-left: .8rem; border-left: 3px solid var(--copper); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: var(--copper); }
.entry-content img { display: block; border-radius: 6px; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------- Пагинация (type => plain) ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 2.8rem 0 0; }
.pager .page-numbers {
    display: inline-block;
    min-width: 2.6rem;
    padding: .55em .85em;
    text-align: center;
    font-family: var(--f-head);
    font-size: .82rem;
    line-height: 1.2;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg-alt);
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.pager a.page-numbers:hover { border-color: var(--copper); color: var(--copper); transform: translateY(-2px); }
.pager .page-numbers.current { background: var(--copper); border-color: var(--copper); color: #14161a; }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; color: var(--muted); }

/* ---------- Сайдбар и виджеты ---------- */
.sidebar {
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.6rem 1.5rem;
    color: #d6d3cf;
    margin-top: 1.2rem;
}
.widget { margin-bottom: 2rem; }
.widget:last-child { margin-bottom: 0; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .55em 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.widget li:last-child { border-bottom: 0; }
.widget-title {
    margin: 0 0 1rem;
    font-size: .95rem;
    padding-left: .7rem;
    border-left: 3px solid var(--copper);
}
.sidebar .widget-title { color: #f1efec; }
.sidebar .widget a { color: #e8e6e3; }
.sidebar .widget a:hover { color: var(--copper); }
.sidebar .post-date, .colophon .post-date { display: block; font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.sidebar .widget p, .sidebar .textwidget { color: #d6d3cf; }

/* ---------- Поиск ---------- */
.finder { margin: 1.5rem 0; }
.finder-label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.finder-row { display: flex; gap: .5rem; }
.finder-input, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    flex: 1; min-width: 0; width: 100%;
    font: inherit; font-size: 1rem;
    color: var(--text);
    background: #0f1114;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: .75em .9em;
}
.finder-input:focus, .comment-form input:focus, .comment-form textarea:focus { border-color: var(--copper); outline: none; box-shadow: 0 0 0 3px rgba(200,127,74,.2); }
.search-inline { margin-bottom: 2rem; }

/* ---------- Комментарии ---------- */
.discussion { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.discussion-title, .comment-reply-title { font-size: 1.3rem; margin: 0 0 1.2rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.6rem; border-left: 1px solid var(--line); }
.comment-body { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.comment-author img { border-radius: 50%; float: left; margin-right: .8rem; }
.comment-metadata { font-size: .8rem; color: var(--muted); }
.comment-metadata a { color: var(--muted); }
.comment-form label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: .3rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form .form-submit input, .comment-form input[type="submit"] {
    font-family: var(--f-head); font-size: .88rem; cursor: pointer;
    background: var(--copper); color: #14161a; border: 1px solid var(--copper); border-radius: 4px; padding: .9em 1.5em;
    transition: transform .2s ease, box-shadow .2s ease;
}
.comment-form input[type="submit"]:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.comment-form-cookies-consent label { display: inline; }

/* ---------- 404 ---------- */
.lost { padding: 2rem 0; }
.lost-code {
    font-family: var(--f-head); font-weight: 700; font-size: 6rem; line-height: 1; margin: 0;
    background: linear-gradient(160deg, #f0b98d, #c87f4a 55%, #8f5129);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lost-home { margin-top: 2rem; }
.empty-note { color: var(--muted); }

/* ---------- Подвал ---------- */
.colophon { background: var(--bg-foot); border-top: 1px solid var(--line); color: #c9c6c1; padding: 3.5rem 0 1.5rem; }
.colophon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.colophon-col { min-width: 0; }
.colophon .widget-title { color: #f1efec; }
.colophon .widget, .colophon .widget p, .colophon .textwidget { color: #c9c6c1; font-size: .93rem; }
.colophon .widget a { color: #e0ddd9; }
.colophon .widget a:hover { color: var(--copper); }
.colophon .widget li { border-bottom-color: #1d2026; }
.colophon-copy { margin: 3rem 0 0; padding-top: 1.4rem; border-top: 1px solid #1d2026; font-size: .85rem; color: var(--muted); }
@media (max-width: 959px) { .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    background: #0f1114;
    border: 1px solid var(--line);
    border-top: 2px solid var(--copper);
    border-radius: 6px;
    padding: 1.1rem 1.4rem;
    box-shadow: 0 18px 40px rgba(0,0,0,.55);
}
.cookie-text { margin: 0; font-size: .9rem; color: #d6d3cf; flex: 1 1 320px; min-width: 0; }

/* ---------- WordPress ---------- */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.sticky .card-title a { color: var(--copper); }
.bypostauthor > .comment-body { border-color: rgba(107,158,143,.5); }
