/*
Theme Name: dds_kiigan.ru
Theme URI: https://kiigan.ru/
Author: Илья Князев
Author URI: https://kiigan.ru/
Description: Тема для контентного образовательного сайта о фасадной архитектуре, дизайне зданий и прикладных строительных решениях.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dds_kiigan
*/

/* ==========================================================
   БАЗОВЫЕ ПЕРЕМЕННЫЕ И СБРОС
   ========================================================== */

:root {
    --facade-bg: #F5F2EB;
    --facade-surface: #FFFFFF;
    --facade-ink: #1E1E1E;
    --facade-ink-soft: #4a4a4a;
    --facade-ochre: #B55B3A;
    --facade-ochre-deep: #9a4a2e;
    --facade-graphite: #3A4B5C;
    --facade-line: #D1CDC2;
    --facade-line-soft: #e6e3da;
    --facade-shadow: 0 2px 12px rgba(30, 30, 30, 0.06);
    --facade-shadow-hover: 0 6px 20px rgba(30, 30, 30, 0.10);
    --facade-radius: 6px;
    --facade-container: 1240px;
    --facade-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
    --facade-serif: "PT Serif", Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--facade-bg);
    color: var(--facade-ink);
    font-family: var(--facade-serif);
    font-size: 17px;
    line-height: 1.65;
    font-feature-settings: "kern" 1, "liga" 1;
}

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

a {
    color: var(--facade-ochre);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--facade-ochre-deep);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--facade-sans);
    color: var(--facade-ink);
    line-height: 1.25;
    font-weight: 700;
    margin: 1.6em 0 0.7em;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.12rem; }

p {
    margin: 0 0 1em;
}

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.3em;
    border-left: 3px solid var(--facade-graphite);
    background: #edf0f3;
    color: var(--facade-graphite);
    font-style: italic;
}

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

pre {
    background: #1E1E1E;
    color: #f5f2eb;
    padding: 1em 1.2em;
    border-radius: var(--facade-radius);
    overflow-x: auto;
}

code {
    background: #ece8dd;
    color: var(--facade-ochre-deep);
    padding: 0.1em 0.35em;
    border-radius: 3px;
}

pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Таблицы */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid var(--facade-line);
    background: var(--facade-surface);
}

th, td {
    border: 1px solid var(--facade-line);
    padding: 0.7em 1em;
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--facade-line-soft);
    font-family: var(--facade-sans);
    font-weight: 600;
    font-size: 0.95em;
}

tbody tr:nth-child(even) td {
    background: #fafaf6;
}

/* ==========================================================
   СЛУЖЕБНОЕ / ДОСТУПНОСТЬ
   ========================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--facade-ink);
    color: #fff;
    padding: 0.6em 1em;
    z-index: 100;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
}

/* ==========================================================
   РАЗМЕТКА
   ========================================================== */

.site-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.shell {
    max-width: var(--facade-container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.site-main {
    flex: 1 0 auto;
    padding: 40px 0 60px;
}

.layout-with-aside {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
    align-items: flex-start;
}

.layout-wide .primary-column {
    max-width: 85%;
    margin: 0 auto;
}

@media (max-width: 960px) {
    .layout-with-aside {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .layout-wide .primary-column {
        max-width: 100%;
    }
}

/* ==========================================================
   ШАПКА
   ========================================================== */

.top-bar {
    background: var(--facade-surface);
    border-bottom: 1px solid var(--facade-line);
    padding: 18px 0;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--facade-ink);
}

.brand:hover {
    text-decoration: none;
    color: var(--facade-ink);
}

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

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-family: var(--facade-sans);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    color: var(--facade-ink);
}

.brand-tagline {
    font-size: 0.82rem;
    color: var(--facade-ink-soft);
    margin-top: 2px;
    max-width: 380px;
}

.primary-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 26px;
}

.primary-nav a {
    font-family: var(--facade-sans);
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--facade-ink);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--facade-line);
    border-radius: var(--facade-radius);
    padding: 8px 10px;
    cursor: pointer;
    color: var(--facade-ink);
    font-family: var(--facade-sans);
    font-size: 0.9rem;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--facade-ink);
    margin: 4px 0;
    transition: all 0.3s ease;
}

@media (max-width: 960px) {
    .top-bar-inner {
        flex-wrap: wrap;
    }
    .menu-toggle {
        display: block;
        order: 2;
    }
    .primary-nav {
        order: 3;
        flex-basis: 100%;
        display: none;
    }
    .primary-nav.is-open {
        display: block;
    }
    .primary-nav ul {
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--facade-line);
        margin-top: 14px;
        padding-top: 10px;
    }
    .primary-nav li {
        border-bottom: 1px solid var(--facade-line-soft);
    }
    .primary-nav a {
        display: block;
        padding: 12px 0;
    }
    .brand-tagline {
        display: none;
    }
}

@media (max-width: 600px) {
    .brand-logo {
        width: 44px;
        height: 44px;
    }
    .brand-title {
        font-size: 1rem;
    }
}

/* ==========================================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================================== */

.breadcrumbs {
    font-family: var(--facade-sans);
    font-size: 0.88rem;
    color: var(--facade-ink-soft);
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--facade-line);
}

.breadcrumbs a {
    color: var(--facade-ink-soft);
    text-decoration: none;
    border-bottom: 1px dotted transparent;
}

.breadcrumbs a:hover {
    color: var(--facade-ochre);
    border-bottom-color: var(--facade-ochre);
}

.breadcrumbs .sep {
    margin: 0 8px;
    color: var(--facade-line);
}

/* ==========================================================
   КНОПКИ
   ========================================================== */

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--facade-radius);
    font-family: var(--facade-sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.22s ease;
    line-height: 1.2;
}

.btn-primary {
    background: var(--facade-ochre);
    color: #fff;
    border-color: var(--facade-ochre);
}

.btn-primary:hover {
    background: var(--facade-ochre-deep);
    border-color: var(--facade-ochre-deep);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(181, 91, 58, 0.28);
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: var(--facade-ink);
    border-color: var(--facade-ochre);
}

.btn-ghost:hover {
    background: rgba(181, 91, 58, 0.10);
    color: var(--facade-ink);
    text-decoration: none;
}

/* ==========================================================
   ГЛАВНАЯ — ГЕРОЙ И ТЕМАТИЧЕСКИЕ БЛОКИ
   ========================================================== */

.front-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f5f2eb 100%);
    padding: 60px 0 50px;
    border-bottom: 1px solid var(--facade-line);
    position: relative;
    overflow: hidden;
}

.front-hero::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 40px;
    width: 220px;
    height: 220px;
    background-image:
        linear-gradient(to right, var(--facade-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--facade-line) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
    pointer-events: none;
}

.front-hero-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.front-hero h1 {
    font-size: 2.6rem;
    margin: 0 0 20px;
    line-height: 1.15;
}

.front-hero .lead {
    font-size: 1.12rem;
    color: var(--facade-ink-soft);
    margin-bottom: 26px;
}

.facade-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 40px);
    gap: 4px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--facade-line);
    border-radius: var(--facade-radius);
    box-shadow: var(--facade-shadow);
}

.facade-cell {
    background: var(--facade-line-soft);
    position: relative;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.facade-cell:hover {
    background: var(--facade-ochre);
}

.facade-cell::after {
    content: attr(data-label);
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--facade-ink);
    color: #fff;
    padding: 4px 10px;
    font-family: var(--facade-sans);
    font-size: 0.78rem;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.facade-cell:hover::after {
    opacity: 1;
}

.facade-cell-wide {
    grid-column: span 2;
}

.facade-cell-tall {
    grid-row: span 2;
}

@media (max-width: 960px) {
    .front-hero {
        padding: 40px 0 30px;
    }
    .front-hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .front-hero h1 {
        font-size: 2rem;
    }
    .front-hero::before {
        display: none;
    }
}

.section {
    padding: 56px 0;
    border-bottom: 1px solid var(--facade-line);
}

.section:last-of-type {
    border-bottom: none;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--facade-line);
    position: relative;
}

.section-head::before,
.section-head::after {
    content: "";
    position: absolute;
    bottom: -1px;
    width: 12px;
    height: 8px;
    border-left: 1px dashed var(--facade-line);
    border-right: 1px dashed var(--facade-line);
}

.section-head::before { left: 0; }
.section-head::after { right: 0; }

.section-head h2 {
    margin: 0;
    font-size: 1.8rem;
}

.section-head .kicker {
    font-family: var(--facade-sans);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--facade-graphite);
}

/* Три колонки с тематическими ценностями */

.cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.col-tile {
    background: var(--facade-surface);
    padding: 26px 24px;
    border-radius: var(--facade-radius);
    box-shadow: var(--facade-shadow);
    border-top: 3px solid var(--facade-ochre);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.col-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--facade-shadow-hover);
}

.col-tile .glyph {
    width: 42px;
    height: 42px;
    color: var(--facade-ochre);
    margin-bottom: 14px;
}

.col-tile h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.col-tile p {
    margin: 0;
    color: var(--facade-ink-soft);
    font-size: 0.98rem;
}

@media (max-width: 960px) {
    .cols-3 {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Блок категорий */

.cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.cat-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--facade-surface);
    border: 1px solid var(--facade-line);
    border-radius: var(--facade-radius);
    color: var(--facade-ink);
    text-decoration: none;
    transition: all 0.2s ease;
}

.cat-chip:hover {
    border-color: var(--facade-ochre);
    color: var(--facade-ink);
    transform: translateY(-2px);
    box-shadow: var(--facade-shadow);
    text-decoration: none;
}

.cat-chip .cat-glyph {
    width: 28px;
    height: 28px;
    color: var(--facade-ochre);
    flex-shrink: 0;
}

.cat-chip span {
    font-family: var(--facade-sans);
    font-weight: 500;
    font-size: 0.98rem;
}

@media (max-width: 960px) {
    .cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cats-grid {
        grid-template-columns: 1fr;
    }
}

/* Принципы работы */

.steps-line {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step-node {
    position: relative;
    padding: 22px;
    background: var(--facade-surface);
    border-left: 3px solid var(--facade-graphite);
    border-radius: 0 var(--facade-radius) var(--facade-radius) 0;
    counter-increment: step;
}

.step-node::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--facade-sans);
    font-size: 0.78rem;
    color: var(--facade-ochre);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 8px;
}

.step-node h4 {
    margin: 0 0 6px;
    font-size: 1.02rem;
}

.step-node p {
    margin: 0;
    color: var(--facade-ink-soft);
    font-size: 0.92rem;
}

@media (max-width: 960px) {
    .steps-line {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .steps-line {
        grid-template-columns: 1fr;
    }
}

/* Финальный блок о материалах */

.materials-block {
    background: var(--facade-graphite);
    color: #f2f2f2;
    padding: 50px 44px;
    border-radius: var(--facade-radius);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.materials-block h2 {
    color: #fff;
    margin-top: 0;
}

.materials-block p {
    color: #cfd4da;
    margin-bottom: 14px;
}

.materials-block .btn-primary {
    background: var(--facade-ochre);
}

.materials-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.material-swatch {
    aspect-ratio: 1;
    border-radius: 4px;
    position: relative;
}

.material-swatch span {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-family: var(--facade-sans);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 960px) {
    .materials-block {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }
}

/* ==========================================================
   КАРТОЧКИ ЗАПИСЕЙ
   ========================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.card {
    background: var(--facade-surface);
    border-radius: var(--facade-radius);
    overflow: hidden;
    box-shadow: var(--facade-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    opacity: 1;
}

.card.is-stacking {
    opacity: 0;
    transform: translateY(18px);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--facade-shadow-hover);
}

/* Горизонтальная карточка — для списков */

.card-row {
    flex-direction: row;
    align-items: stretch;
}

.card-row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}

.card-row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card-row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-row .card-body {
    flex: 1;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Вертикальная карточка — для сеток */

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

.card-grid .card-thumb-wrap img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.card-grid:hover .card-thumb-wrap img {
    transform: scale(1.03);
}

.card-grid .card-body {
    flex: 1;
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
}

.card-thumb-empty {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--facade-line-soft) 0%, var(--facade-line) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--facade-graphite);
    opacity: 0.55;
}

.card-row .card-thumb-empty {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
}

.card-cats {
    font-family: var(--facade-sans);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--facade-ochre);
    margin-bottom: 8px;
}

.card-cats a {
    color: var(--facade-ochre);
    text-decoration: none;
}

.card-cats a:hover {
    text-decoration: underline;
}

.card-title {
    font-family: var(--facade-sans);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

.card-title a {
    color: var(--facade-ink);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--facade-ochre);
    text-decoration: none;
}

.card-excerpt {
    color: var(--facade-ink-soft);
    font-size: 0.96rem;
    margin-bottom: 16px;
    flex: 1;
}

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

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-family: var(--facade-sans);
    font-size: 0.85rem;
    color: var(--facade-ink-soft);
    margin-top: auto;
}

.card-meta .card-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-more {
    font-family: var(--facade-sans);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--facade-ochre);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.card-more:hover {
    border-bottom-color: var(--facade-ochre);
    text-decoration: none;
}

@media (max-width: 960px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .card-row {
        flex-direction: column;
    }
    .card-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-row .card-thumb-wrap a {
        position: static;
    }
    .card-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .card-row .card-thumb-empty {
        position: static;
        aspect-ratio: 16 / 9;
    }
}

/* ==========================================================
   ПАГИНАЦИЯ
   ========================================================== */

.pager {
    margin: 40px 0 10px;
    display: flex;
    justify-content: center;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0 3px;
    font-family: var(--facade-sans);
    font-size: 0.95rem;
    color: var(--facade-ink);
    background: var(--facade-surface);
    border: 1px solid var(--facade-line);
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pager .page-numbers:hover {
    border-color: var(--facade-ochre);
    color: var(--facade-ochre);
    text-decoration: none;
}

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

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* ==========================================================
   САЙДБАР И ВИДЖЕТЫ
   ========================================================== */

.aside-column {
    font-size: 0.96rem;
}

.widget {
    background: var(--facade-surface);
    padding: 22px 22px 18px;
    border-radius: var(--facade-radius);
    margin-bottom: 24px;
    box-shadow: var(--facade-shadow);
}

.widget-title {
    font-family: var(--facade-sans);
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--facade-ochre);
    display: inline-block;
}

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

.widget li {
    padding: 6px 0;
    border-bottom: 1px dotted var(--facade-line);
}

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

.widget li a {
    color: var(--facade-ink);
    text-decoration: none;
}

.widget li a:hover {
    color: var(--facade-ochre);
}

/* ==========================================================
   ПОДВАЛ
   ========================================================== */

.site-foot {
    background: #1E1E1E;
    color: #c9c9c3;
    margin-top: 40px;
    padding: 44px 0 20px;
    flex-shrink: 0;
}

.foot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 30px;
}

.foot-col .widget {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.foot-col .widget-title {
    color: #fff;
    border-bottom-color: var(--facade-ochre);
}

.foot-col .widget li {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.foot-col .widget li a {
    color: #c9c9c3;
}

.foot-col .widget li a:hover {
    color: var(--facade-ochre);
}

.foot-col .widget p {
    color: #a9a9a3;
    font-size: 0.94rem;
}

.foot-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
    text-align: center;
    font-family: var(--facade-sans);
    font-size: 0.85rem;
    color: #8c8c86;
}

@media (max-width: 960px) {
    .foot-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ==========================================================
   ОДИНОЧНАЯ ЗАПИСЬ / СТРАНИЦА
   ========================================================== */

.post-head {
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--facade-line);
}

.post-head h1 {
    font-size: 2.2rem;
    margin: 0 0 14px;
    line-height: 1.18;
}

.post-meta {
    font-family: var(--facade-sans);
    font-size: 0.88rem;
    color: var(--facade-ink-soft);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.post-meta .post-cats a {
    color: var(--facade-ochre);
    text-decoration: none;
}

.post-thumb-main {
    margin: 0 0 28px;
    border-radius: var(--facade-radius);
    overflow: hidden;
}

.post-thumb-main img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body {
    font-size: 1.06rem;
    line-height: 1.72;
}

.post-body h2,
.post-body h3 {
    position: relative;
    padding-left: 16px;
}

.post-body h2::before,
.post-body h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.32em;
    width: 3px;
    height: calc(100% - 0.5em);
    background: var(--facade-ochre);
    border-radius: 2px;
}

.post-body img {
    border-radius: var(--facade-radius);
    margin: 1.4em 0;
}

.post-body ul,
.post-body ol {
    padding-left: 24px;
}

.post-body ul li,
.post-body ol li {
    margin-bottom: 0.5em;
}

.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--facade-line);
    font-family: var(--facade-sans);
    font-size: 0.9rem;
    color: var(--facade-ink-soft);
}

.post-tags a {
    display: inline-block;
    padding: 3px 10px;
    margin: 2px 4px 2px 0;
    background: var(--facade-line-soft);
    color: var(--facade-ink);
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.86rem;
}

.post-tags a:hover {
    background: var(--facade-ochre);
    color: #fff;
    text-decoration: none;
}

/* ==========================================================
   КОММЕНТАРИИ
   ========================================================== */

.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--facade-line);
}

.comments-area .comments-title {
    font-size: 1.4rem;
    margin-top: 0;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.comment-list ol {
    list-style: none;
    padding-left: 30px;
    margin: 15px 0 0;
}

.comment-body {
    padding: 18px 20px;
    background: var(--facade-surface);
    border-radius: var(--facade-radius);
    margin-bottom: 14px;
    box-shadow: var(--facade-shadow);
}

.comment-meta {
    font-family: var(--facade-sans);
    font-size: 0.88rem;
    color: var(--facade-ink-soft);
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--facade-ink);
}

.comment-respond {
    background: var(--facade-surface);
    padding: 24px;
    border-radius: var(--facade-radius);
    box-shadow: var(--facade-shadow);
}

.comment-reply-title {
    margin-top: 0;
    font-size: 1.2rem;
}

.comment-form label {
    display: block;
    font-family: var(--facade-sans);
    font-size: 0.9rem;
    margin-bottom: 6px;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--facade-line);
    border-radius: var(--facade-radius);
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}

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

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--facade-ochre);
    box-shadow: 0 0 0 3px rgba(181, 91, 58, 0.12);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-cookies-consent label {
    margin-bottom: 0;
    font-size: 0.88rem;
}

.form-submit .submit {
    display: inline-block;
    padding: 12px 24px;
    background: var(--facade-ochre);
    color: #fff;
    border: 2px solid var(--facade-ochre);
    border-radius: var(--facade-radius);
    font-family: var(--facade-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-submit .submit:hover {
    background: var(--facade-ochre-deep);
    border-color: var(--facade-ochre-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(181, 91, 58, 0.28);
}

/* ==========================================================
   ФОРМА ПОИСКА
   ========================================================== */

.search-form {
    display: flex;
    gap: 0;
    max-width: 500px;
}

.search-form .search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--facade-line);
    border-right: none;
    border-radius: var(--facade-radius) 0 0 var(--facade-radius);
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}

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

.search-form .search-submit {
    padding: 10px 18px;
    background: var(--facade-ochre);
    color: #fff;
    border: 1px solid var(--facade-ochre);
    border-radius: 0 var(--facade-radius) var(--facade-radius) 0;
    font-family: var(--facade-sans);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-form .search-submit:hover {
    background: var(--facade-ochre-deep);
}

/* ==========================================================
   СТРАНИЦА 404
   ========================================================== */

.notfound {
    text-align: center;
    padding: 60px 0;
}

.notfound-code {
    font-family: var(--facade-sans);
    font-size: 6rem;
    line-height: 1;
    color: var(--facade-ochre);
    margin: 0 0 14px;
    letter-spacing: -0.05em;
}

.notfound h1 {
    font-size: 1.8rem;
    margin: 0 0 14px;
}

.notfound p {
    color: var(--facade-ink-soft);
    font-size: 1.08rem;
    margin-bottom: 30px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.notfound .notfound-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.notfound .search-form {
    margin: 0 auto;
}

/* ==========================================================
   COOKIE-БАННЕР
   ========================================================== */

.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 620px;
    margin: 0 auto;
    padding: 18px 22px;
    background: var(--facade-ink);
    color: #f2f2f2;
    border-radius: var(--facade-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 99;
    font-size: 0.92rem;
    line-height: 1.5;
}

.cookie-notice.is-hidden {
    display: none;
}

.cookie-notice p {
    margin: 0;
    flex: 1;
}

.cookie-notice a {
    color: var(--facade-ochre);
    text-decoration: underline;
}

.cookie-notice button {
    padding: 10px 18px;
    background: var(--facade-ochre);
    color: #fff;
    border: none;
    border-radius: var(--facade-radius);
    font-family: var(--facade-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.cookie-notice button:hover {
    background: var(--facade-ochre-deep);
}

@media (max-width: 600px) {
    .cookie-notice {
        flex-direction: column;
        text-align: center;
        padding: 16px 18px;
    }
}

/* ==========================================================
   АНИМАЦИЯ КАРТОЧЕК ПРИ ПОЯВЛЕНИИ
   ========================================================== */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-shown {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}
