/*
Theme Name: dds_4762armada.com
Author: Полина Власова
Description: Информационная тема о пиксельной графике: сетка, палитра, движение персонажа, атмосфера сцены и технические ограничения формата. Ретро-пиксельная эстетика, адаптивная вёрстка.
Version: 1.1
Text Domain: pixgrid
*/

/* ============================================================
   ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
    --bg:      #f5f2fb;
    --panel:   #ffffff;
    --ink:     #1f1a33;
    --muted:   #5b5470;
    --line:    #e2dcf1;
    --purple:  #6c4bd8;
    --purple-d:#553bb0;
    --cyan:    #1f9e91;
    --pink:    #e0567f;
    --gold:    #e0a92e;
    --dark:    #1b1730;
    --dark-2:  #241d40;
    --dark-line:#3a2f5e;
    --dark-ink:#e8e2fb;
    --dark-mut:#a99fcf;
    --mono: "DejaVu Sans Mono", "Menlo", "Consolas", "Courier New", monospace;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --shadow: 4px 4px 0 rgba(31,26,51,.14);
    --shadow-strong: 5px 5px 0 var(--purple);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-d); text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--sans);
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 .6em;
    font-weight: 800;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.95rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

hr { border: 0; border-top: 2px dashed var(--line); margin: 2rem 0; }

blockquote {
    margin: 1.4rem 0;
    padding: 1rem 1.3rem;
    border-left: 5px solid var(--purple);
    background: #efeafb;
    border-radius: 0 6px 6px 0;
    color: var(--ink);
}

code, pre, kbd {
    font-family: var(--mono);
    font-size: .92em;
}
pre {
    background: var(--dark);
    color: var(--dark-ink);
    padding: 1rem 1.2rem;
    border-radius: 6px;
    overflow: auto;
    min-width: 0;
}
:not(pre) > code {
    background: #ece6fa;
    color: var(--purple-d);
    padding: .12em .4em;
    border-radius: 3px;
}

/* Таблицы — видимые границы */
table { border-collapse: collapse; width: 100%; margin: 1.4rem 0; }
table, th, td { border: 1px solid var(--line); }
th, td { padding: .6rem .8rem; text-align: left; }
th { background: #efeafb; font-family: var(--mono); font-size: .9rem; }

.eyebrow {
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--purple);
    margin: 0 0 .5rem;
    display: inline-block;
}

/* Кнопки */
.btn {
    display: inline-block;
    font-family: var(--mono);
    font-weight: 700;
    font-size: .95rem;
    padding: .7rem 1.2rem;
    background: var(--purple);
    color: #fff;
    border: 2px solid var(--dark);
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: transform .08s ease, box-shadow .08s ease;
    cursor: pointer;
}
.btn:hover { color: #fff; text-decoration: none; transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(31,26,51,.18); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 rgba(31,26,51,.18); }
.btn--ghost { background: transparent; color: var(--purple); }
.btn--ghost:hover { color: var(--purple-d); }

/* ============================================================
   КОНТЕЙНЕР ШИРИНЫ (единый источник)
   ============================================================ */
.shell { width: min(92%, 1180px); margin-inline: auto; }

/* Раскладки контента */
.layout { margin: 2.2rem auto 3rem; }
.layout .content-area { min-width: 0; }
.layout:not(.has-side) .content-area { width: min(100%, 980px); margin-inline: auto; }
.layout.has-side {
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: start;
}
@media (max-width: 960px) {
    .layout.has-side { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   ШАПКА
   ============================================================ */
.site-header {
    background: var(--panel);
    border-bottom: 3px solid var(--dark);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.brand a { display: flex; align-items: center; gap: .85rem; color: inherit; }
.brand a:hover { text-decoration: none; }
.brand-logo, .brand-mark { width: 52px; height: 52px; flex: 0 0 52px; display: block; }
.brand-text { min-width: 0; }
.brand-name {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
    line-height: 1.15;
    margin: 0;
}
.brand-desc {
    font-size: .82rem;
    color: var(--muted);
    margin: .15rem 0 0;
    max-width: 42ch;
}

/* ============================================================
   НАВИГАЦИЯ
   ============================================================ */
.nav-toggle {
    display: none;
    font-family: var(--mono);
    font-weight: 700;
    background: var(--purple);
    color: #fff;
    border: 2px solid var(--dark);
    border-radius: 4px;
    padding: .5rem .8rem;
    cursor: pointer;
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: .3rem;
    flex-wrap: wrap;
}
.main-nav a {
    display: block;
    font-family: var(--mono);
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
    padding: .5rem .85rem;
    border: 2px solid transparent;
    border-radius: 4px;
}
.main-nav a:hover { text-decoration: none; background: #efeafb; border-color: var(--line); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { background: var(--purple); color: #fff; border-color: var(--dark); }

@media (max-width: 780px) {
    .nav-toggle { display: inline-block; }
    .main-nav {
        flex-basis: 100%;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: .25rem; padding-top: .6rem; }
}

/* ============================================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================================ */
.breadcrumbs {
    font-family: var(--mono);
    font-size: .82rem;
    color: var(--muted);
    padding: .9rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .5rem;
    align-items: center;
}
.breadcrumbs a { color: var(--purple); }
.breadcrumbs .sep { color: var(--pink); }
.crumb-bar { border-bottom: 1px solid var(--line); background: #fbfaff; }

/* ============================================================
   HERO + СЛАЙДЕР
   ============================================================ */
.hero { background: var(--dark); border-bottom: 3px solid var(--dark); }
.slider {
    position: relative;
    overflow: hidden;
    border: 3px solid var(--dark);
    border-radius: 6px;
    box-shadow: var(--shadow);
    background: var(--dark-2);
    margin: 2rem auto;
}
.slider-track { position: relative; }
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
}
.slide.is-active { position: relative; opacity: 1; pointer-events: auto; }
.slide img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    image-rendering: pixelated;
}
.slide-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.1rem 1.3rem;
    background: linear-gradient(to top, rgba(20,15,38,.9), rgba(20,15,38,0));
    color: #fff;
}
.slide-caption h2 { color: #fff; margin: 0 0 .2rem; font-size: 1.35rem; }
.slide-caption p { margin: 0; color: var(--dark-mut); font-size: .95rem; }
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    font-family: var(--mono);
    font-size: 1.2rem;
    width: 40px; height: 40px;
    background: rgba(27,23,48,.75);
    color: #fff;
    border: 2px solid var(--dark-line);
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
}
.slider-btn:hover { background: var(--purple); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots {
    position: absolute;
    bottom: 12px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: .4rem;
}
.slider-dots button {
    width: 12px; height: 12px;
    padding: 0;
    background: rgba(255,255,255,.4);
    border: 2px solid #fff;
    border-radius: 2px;
    cursor: pointer;
}
.slider-dots button.is-active { background: var(--gold); }

/* ============================================================
   ТЕМАТИЧЕСКИЕ СЕКЦИИ ГЛАВНОЙ
   ============================================================ */
.fsection { padding: 2.8rem 0; }
.fsection + .fsection { border-top: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 1.6rem; }
.section-head p { color: var(--muted); margin: 0; }

/* Текст + иллюстрация */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.2rem;
    align-items: center;
}
.split .media img {
    display: block;
    width: 100%;
    border: 3px solid var(--dark);
    border-radius: 6px;
    box-shadow: var(--shadow);
    image-rendering: pixelated;
}
.split.reverse .media { order: -1; }
@media (max-width: 760px) {
    .split { grid-template-columns: minmax(0, 1fr); }
    .split.reverse .media { order: 0; }
}

/* Сетка карточек-тезисов */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.2rem;
}
.feature {
    background: var(--panel);
    border: 2px solid var(--dark);
    border-radius: 6px;
    padding: 1.3rem;
    box-shadow: var(--shadow);
    min-width: 0;
}
.feature .ico {
    font-family: var(--mono);
    font-weight: 700;
    display: inline-flex;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    background: var(--purple);
    color: #fff;
    border-radius: 4px;
    margin-bottom: .7rem;
}
.feature h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Пошаговый блок */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    background: var(--panel);
    border: 2px solid var(--line);
    border-radius: 6px;
    padding: 1.1rem 1.3rem;
}
.step .num {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.1rem;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--dark);
    color: var(--gold);
    border-radius: 4px;
}
.step h3 { margin: 0 0 .25rem; font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Цитата / акцент */
.accent {
    background: var(--dark);
    color: #fff;
    border-radius: 8px;
    padding: 2.4rem 2.2rem;
    box-shadow: var(--shadow-strong);
    text-align: center;
}
.accent .quote {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 800;
    line-height: 1.35;
    margin: 0 auto .6rem;
    max-width: 30ch;
    color: #fff;
}
.accent .by { font-family: var(--mono); color: var(--gold); font-size: .9rem; margin: 0; }
@media (max-width: 600px) { .accent { padding: 1.8rem 1.4rem; } }

/* FAQ */
.faq { display: grid; gap: .8rem; }
.faq details {
    background: var(--panel);
    border: 2px solid var(--line);
    border-radius: 6px;
    padding: .3rem 1.2rem;
}
.faq summary {
    cursor: pointer;
    font-weight: 700;
    padding: .85rem 0;
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--purple); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { margin: 0 0 1rem; color: var(--muted); }

/* Статистика / факты */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 1.2rem; }
.stat {
    text-align: center;
    background: var(--panel);
    border: 2px solid var(--dark);
    border-radius: 6px;
    padding: 1.4rem 1rem;
    box-shadow: var(--shadow);
    min-width: 0;
}
.stat .big { font-family: var(--mono); font-weight: 700; font-size: 2rem; color: var(--purple); display: block; }
.stat .lbl { color: var(--muted); font-size: .9rem; }

/* Галерея / мозаика */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: .9rem;
}
.gallery figure { margin: 0; }
.gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 2px solid var(--dark);
    border-radius: 4px;
    image-rendering: pixelated;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    border: 3px solid var(--dark);
    border-radius: 8px;
    padding: 2.4rem 2.2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
    justify-content: space-between;
}
.cta h2 { color: #fff; margin: 0 0 .3rem; }
.cta p { color: rgba(255,255,255,.9); margin: 0; max-width: 46ch; }
.cta .btn { background: #fff; color: var(--purple); border-color: var(--dark); }
.cta .btn:hover { color: var(--purple-d); }
@media (max-width: 600px) { .cta { padding: 1.8rem 1.4rem; } }

/* Лента последних записей на главной */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.4rem;
}

/* ============================================================
   КАРТОЧКИ ЗАПИСЕЙ
   ============================================================ */
.card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 2px solid var(--dark);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 0;
    transition: transform .1s ease, box-shadow .1s ease;
}
.card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(31,26,51,.18); }
.card-thumb { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    image-rendering: pixelated;
}
.card-thumb .ph {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16 / 9;
    background: var(--dark);
    color: var(--gold);
    font-family: var(--mono);
    letter-spacing: .2em;
    font-size: .8rem;
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.1rem 1.2rem 1.3rem; }
.card-meta { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-bottom: .5rem; }
.card-title { font-size: 1.15rem; margin: 0 0 .5rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--purple); text-decoration: none; }
.card-excerpt { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-body .btn { margin-top: auto; align-self: flex-start; }

/* Горизонтальные карточки (лента архива/поиска) */
.post-list { display: grid; gap: 1.4rem; }
.card-row {
    display: flex;
    flex-direction: row;
    background: var(--panel);
    border: 2px solid var(--dark);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 0;
}
.card-thumb-wrap {
    flex: 0 0 240px;
    position: relative;
    overflow: hidden;
}
.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: pixelated;
}
.card-thumb-wrap .ph {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--dark);
    color: var(--gold);
    font-family: var(--mono);
    letter-spacing: .2em;
    font-size: .8rem;
}
.card-row .card-body { flex: 1; min-width: 0; }
@media (max-width: 600px) {
    .card-row { flex-direction: column; }
    .card-thumb-wrap { flex: none; width: 100%; position: static; }
    .card-thumb-wrap a { position: static; }
    .card-thumb-wrap img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .card-thumb-wrap .ph { position: static; aspect-ratio: 16 / 9; }
}

/* ============================================================
   ОДИНОЧНАЯ ЗАПИСЬ / СТРАНИЦА
   ============================================================ */
.entry { background: var(--panel); border: 2px solid var(--dark); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.entry-hero img { display: block; width: 100%; max-height: 420px; object-fit: cover; image-rendering: pixelated; }
.entry-inner { padding: 1.8rem clamp(1.2rem, 4vw, 2.4rem) 2.2rem; }
.entry-meta { font-family: var(--mono); font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.entry-content { min-width: 0; }
.entry-content img { border-radius: 6px; }
.entry-content h2 { margin-top: 1.6rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin: .3rem 0; }
.tag-row { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-row a {
    font-family: var(--mono);
    font-size: .8rem;
    background: #efeafb;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: .25rem .6rem;
    color: var(--purple-d);
}
.page-title-block { margin: 0 0 1.4rem; }

/* ============================================================
   САЙДБАР + ВИДЖЕТЫ (контраст задаётся явно)
   ============================================================ */
.sidebar { min-width: 0; }
.widget {
    background: var(--panel);
    border: 2px solid var(--dark);
    border-radius: 6px;
    padding: 1.2rem 1.3rem;
    margin-bottom: 1.4rem;
    box-shadow: var(--shadow);
}
.widget-title {
    font-family: var(--mono);
    font-size: 1rem;
    margin: 0 0 .9rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--purple);
    color: var(--ink);
}
/* Явные цвета текста для светлого сайдбара */
.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li,
.sidebar .widget .post-date { color: var(--ink); }
.sidebar .widget a { color: var(--purple); }
.sidebar .widget a:hover { color: var(--purple-d); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.widget ul li:last-child { border-bottom: 0; }
.widget .post-date { font-family: var(--mono); font-size: .76rem; color: var(--muted); display: block; margin-top: .15rem; }

/* ============================================================
   ПАГИНАЦИЯ (type => plain, стили на .page-numbers)
   ============================================================ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    justify-content: center;
    margin: 2.4rem 0 .5rem;
}
.pagination .page-numbers {
    font-family: var(--mono);
    font-weight: 700;
    font-size: .92rem;
    min-width: 42px;
    padding: .5rem .7rem;
    text-align: center;
    background: var(--panel);
    color: var(--ink);
    border: 2px solid var(--dark);
    border-radius: 4px;
    box-shadow: 2px 2px 0 rgba(31,26,51,.12);
}
.pagination a.page-numbers:hover { background: #efeafb; color: var(--purple-d); text-decoration: none; }
.pagination .page-numbers.current { background: var(--purple); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; background: transparent; box-shadow: none; }

/* ============================================================
   ФОРМА ПОИСКА
   ============================================================ */
.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: .55rem .7rem;
    border: 2px solid var(--dark);
    border-radius: 4px;
    font-family: var(--sans);
    font-size: .95rem;
    background: #fff;
    color: var(--ink);
}
.search-form button {
    font-family: var(--mono);
    font-weight: 700;
    padding: .55rem .9rem;
    background: var(--purple);
    color: #fff;
    border: 2px solid var(--dark);
    border-radius: 4px;
    cursor: pointer;
}
.search-form button:hover { background: var(--purple-d); }

/* ============================================================
   КОММЕНТАРИИ
   ============================================================ */
.comments-area { margin-top: 2rem; padding-top: 1.5rem; border-top: 2px dashed var(--line); }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { margin: 0 0 1rem; }
.comment-body {
    background: var(--panel);
    border: 2px solid var(--line);
    border-radius: 6px;
    padding: 1rem 1.2rem;
}
.comment-list .children { list-style: none; margin: 1rem 0 0 1.4rem; padding: 0; }
.comment-meta { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
.comment-author { font-weight: 700; color: var(--ink); }
.comment-respond {
    margin-top: 1.6rem;
    background: var(--panel);
    border: 2px solid var(--dark);
    border-radius: 6px;
    padding: 1.3rem 1.4rem;
    box-shadow: var(--shadow);
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: .55rem .7rem;
    border: 2px solid var(--line);
    border-radius: 4px;
    font-family: var(--sans);
    font-size: .95rem;
    margin-top: .3rem;
    background: #fff;
    color: var(--ink);
}
.comment-respond label { font-family: var(--mono); font-size: .85rem; }
.comment-form-comment, .comment-form-author, .comment-form-email, .comment-form-url { margin-bottom: .9rem; }

/* ============================================================
   ПОДВАЛ (тёмный фон → светлый текст виджетов)
   ============================================================ */
.site-footer { background: var(--dark); color: var(--dark-ink); border-top: 3px solid var(--purple); margin-top: 3rem; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2rem;
    padding: 2.6rem 0 1.8rem;
}
.footer-col { min-width: 0; }
/* Явные светлые цвета для тёмного подвала */
.footer-col .widget {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    color: var(--dark-ink);
}
.footer-col .widget-title {
    color: #fff;
    border-bottom-color: var(--dark-line);
}
.footer-col .widget,
.footer-col .widget p,
.footer-col .widget li,
.footer-col .widget .post-date { color: var(--dark-mut); }
.footer-col .widget a { color: var(--dark-ink); }
.footer-col .widget a:hover { color: var(--gold); }
.footer-col .widget ul li { border-bottom: 1px dashed var(--dark-line); }
.footer-col .widget .post-date { color: var(--dark-mut); }
.site-copyright {
    border-top: 1px solid var(--dark-line);
    padding: 1.2rem 0;
    font-family: var(--mono);
    font-size: .82rem;
    color: var(--dark-mut);
    text-align: center;
}

/* ============================================================
   COOKIE-БАННЕР  (правило [hidden] — ДО основных стилей)
   ============================================================ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: var(--dark);
    color: var(--dark-ink);
    border-top: 3px solid var(--gold);
    padding: 1rem 0;
}
.cookie-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}
.cookie-inner p { margin: 0; font-size: .9rem; color: var(--dark-mut); min-width: 0; }
.cookie-inner a { color: var(--gold); }
.cookie-banner .btn { background: var(--gold); color: var(--dark); border-color: #000; flex: 0 0 auto; }
.cookie-banner .btn:hover { color: var(--dark); }

/* ============================================================
   404
   ============================================================ */
.notfound { text-align: center; padding: 3rem 0; }
.notfound .code { font-family: var(--mono); font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; color: var(--purple); line-height: 1; }
.notfound .search-form { max-width: 420px; margin: 1.6rem auto 0; }

/* ============================================================
   УТИЛИТЫ
   ============================================================ */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
}
.page-header { margin: 0 0 1.4rem; }
.page-header h1 { margin: 0; }
.muted { color: var(--muted); }
