/*
Theme Name: dds_islamshariat.ru
Author: Алексей Миронов
Description: Историко-культурный и образовательный сайт о религии, сакральном искусстве, архитектуре культовых сооружений и духовном наследии народов России.
Version: 1.1
Text Domain: dds_islamshariat
*/

/* ===== ПАЛИТРА ===== */
:root {
    --parchment: #F9F6F0;
    --parchment-dark: #F2EDE1;
    --umbra: #2C2A29;
    --umbra-soft: #4A4644;
    --lapis: #1E5F7A;
    --lapis-dark: #184F66;
    --ochre: #B87B3E;
    --ochre-dark: #A36A30;
    --smoke: #D1C9BC;
    --smoke-light: #E8E2D5;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 19px;
    line-height: 1.6;
    color: var(--umbra);
    background-color: var(--parchment);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'PT Serif', 'Literata', Georgia, serif;
    color: var(--umbra);
    line-height: 1.3;
    margin: 1.2em 0 0.5em;
}

h1 { font-size: 2.1em; }
h2 { font-size: 1.7em; }
h3 { font-size: 1.35em; }
h4 { font-size: 1.15em; }

p {
    margin: 0 0 1em;
    /* без background-color на глобальном уровне */
}

a {
    color: var(--lapis);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover { color: var(--ochre); }

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

blockquote {
    margin: 1.5em 0;
    padding: 0.2em 0 0.2em 1.2em;
    border-left: 2px solid var(--ochre);
    font-family: Georgia, 'PT Serif', serif;
    font-style: italic;
    font-size: 1.1em;
    color: var(--umbra-soft);
}

blockquote p { margin: 0.4em 0; }

hr {
    border: 0;
    height: 1px;
    background: var(--smoke);
    margin: 2em 0;
}

code, pre {
    font-family: Consolas, Monaco, monospace;
    background: var(--smoke-light);
    padding: 0.1em 0.35em;
    border-radius: 2px;
    font-size: 0.9em;
}

pre {
    padding: 1em;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid var(--smoke);
}

th, td {
    padding: 0.6em 0.8em;
    border: 1px solid var(--smoke);
    text-align: left;
}

th {
    background: var(--smoke-light);
    font-weight: 600;
}

/* ===== ЛЕЙАУТ ===== */
.site-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    padding: 30px 0 60px;
}

.layout-with-sidebar {
    display: flex;
    gap: 3%;
    align-items: flex-start;
}

.layout-with-sidebar .content-col { width: 67%; }
.layout-with-sidebar .sidebar-col { width: 27%; }

.layout-full .content-col { width: 85%; margin: 0 auto; }

@media (max-width: 960px) {
    .layout-with-sidebar { flex-direction: column; gap: 40px; }
    .layout-with-sidebar .content-col,
    .layout-with-sidebar .sidebar-col { width: 100%; }
    .layout-full .content-col { width: 100%; }
}

/* ===== ШАПКА ===== */
.site-header {
    background: var(--parchment);
    border-bottom: 1px solid var(--smoke);
    padding: 18px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 260px;
}

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

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

.brand-name {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.25em;
    color: var(--umbra);
    line-height: 1.2;
    margin: 0;
    max-width: 560px;
}

.brand-name a { color: var(--umbra); }
.brand-name a:hover { color: var(--lapis); }

.brand-tag {
    font-size: 0.78em;
    color: var(--umbra-soft);
    margin-top: 4px;
    max-width: 560px;
    line-height: 1.4;
}

/* Лампада — случайная статья */
.random-lamp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--smoke);
    border-radius: 2px;
    color: var(--umbra);
    font-size: 0.9em;
}

.random-lamp:hover {
    background: var(--ochre);
    color: var(--parchment);
    border-color: var(--ochre);
}

.random-lamp svg { width: 20px; height: 20px; }

/* ===== НАВИГАЦИЯ ===== */
.primary-nav {
    background: var(--umbra);
    padding: 0;
    /* НЕ липкое — никакого sticky/fixed */
}

.primary-nav .site-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.primary-nav li a {
    display: block;
    padding: 14px 20px;
    color: var(--parchment);
    font-size: 0.96em;
    letter-spacing: 0.02em;
}

.primary-nav li a:hover,
.primary-nav .current-menu-item > a {
    background: var(--lapis);
    color: var(--parchment);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--parchment);
    padding: 12px 16px;
    font-size: 1em;
    cursor: pointer;
}

.nav-toggle span {
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--parchment);
    position: relative;
    vertical-align: middle;
    margin-right: 8px;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--parchment);
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

@media (max-width: 760px) {
    .primary-nav .site-wrap { display: block; }
    .nav-toggle { display: block; width: 100%; text-align: left; }
    .primary-nav ul {
        display: none;
        flex-direction: column;
    }
    .primary-nav ul.is-open { display: flex; }
    .primary-nav li a { padding: 12px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
}

/* ===== АРКА — ОКНО В САКРАЛЬНОЕ ===== */
.arch-hero {
    position: relative;
    margin: 30px 0 50px;
    padding: 0;
    display: flex;
    justify-content: center;
}

.arch-frame {
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 50% 60%;
    border-top-right-radius: 50% 60%;
    background: linear-gradient(180deg, var(--smoke-light) 0%, var(--parchment-dark) 100%);
    box-shadow: 0 4px 20px rgba(44, 42, 41, 0.08);
    border: 1px solid var(--smoke);
}

.arch-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse at center top, rgba(30,95,122,0.18), transparent 70%),
                      radial-gradient(ellipse at center bottom, rgba(184,123,62,0.12), transparent 60%);
}

.arch-ornament {
    position: absolute;
    left: 50%;
    top: 14%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    opacity: 0.4;
}

.arch-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 40px;
    background: rgba(249, 246, 240, 0.72);
}

.arch-title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.9em;
    margin: 0 0 12px;
    color: var(--umbra);
    max-width: 720px;
    line-height: 1.25;
}

.arch-tagline {
    font-size: 0.96em;
    color: var(--umbra-soft);
    max-width: 680px;
    margin: 0 0 20px;
}

@media (max-width: 600px) {
    .arch-frame { aspect-ratio: 4 / 5; }
    .arch-title { font-size: 1.3em; }
    .arch-tagline { font-size: 0.88em; }
    .arch-ornament { width: 60px; height: 60px; top: 8%; }
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 11px 22px;
    background: var(--ochre);
    color: var(--parchment);
    font-size: 0.95em;
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.05s;
}

.btn:hover {
    background: var(--lapis);
    color: var(--parchment);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.18);
}

.btn:active { transform: translateY(1px); }

.btn-outline {
    background: transparent;
    color: var(--umbra);
    border: 1px solid var(--umbra);
}

.btn-outline:hover {
    background: var(--umbra);
    color: var(--parchment);
    box-shadow: none;
}

/* Круглые кнопки-медальоны */
.coin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--lapis);
    color: var(--parchment);
    border: 0;
}

.coin-btn:hover { background: var(--lapis-dark); color: var(--parchment); }
.coin-btn svg { width: 20px; height: 20px; }

/* ===== ТЕМАТИЧЕСКИЕ БЛОКИ (front-page) ===== */
.theme-block {
    margin: 60px 0;
    padding: 40px 0;
    border-top: 1px solid var(--smoke);
}

.theme-block:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.theme-block h2 {
    text-align: center;
    margin: 0 0 8px;
}

.theme-block .block-sym {
    display: block;
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    color: var(--lapis);
}

.theme-block .block-lead {
    text-align: center;
    color: var(--umbra-soft);
    max-width: 720px;
    margin: 0 auto 32px;
}

/* Сетка карточек внутри блока */
.block-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.grid-item {
    background: var(--parchment-dark);
    padding: 22px;
    border-left: 2px solid var(--ochre);
}

.grid-item h3 {
    margin: 0 0 10px;
    font-size: 1.15em;
}

.grid-item p { margin: 0; font-size: 0.94em; color: var(--umbra-soft); }

/* Шаги / колонки по 4 */
.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

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

.step-item {
    text-align: center;
    padding: 16px 10px;
}

.step-num {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--lapis);
    color: var(--parchment);
    align-items: center;
    justify-content: center;
    font-family: 'PT Serif', Georgia, serif;
    margin-bottom: 10px;
}

.step-item h4 { margin: 0 0 6px; font-size: 1em; }
.step-item p { margin: 0; font-size: 0.88em; color: var(--umbra-soft); }

/* ===== КАРТОЧКИ ЗАПИСЕЙ — "ФРЕСКИ" ===== */
.cards-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card {
    /* A8: flex column + overflow hidden */
    display: flex;
    flex-direction: row;
    background: var(--parchment);
    border: 1px solid var(--smoke);
    overflow: hidden;
    position: relative;
}

.card-thumb-wrap {
    flex: 0 0 40%;
    max-width: 40%;
    position: relative;
    overflow: hidden;
    background: var(--smoke-light);
    min-height: 200px;
}

.card-thumb-wrap a {
    /* A10: absolute, no height: 100% */
    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; /* A10 — убираем 4px строчный зазор */
}

.card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--smoke-light) 0%, var(--parchment-dark) 100%);
    color: var(--lapis);
}

.card-thumb-placeholder svg { width: 56px; height: 56px; opacity: 0.7; }

/* Каллиграфический росчерк между миниатюрой и текстом */
.card-divider {
    flex: 0 0 18px;
    position: relative;
    background: transparent;
}

.card-divider::before {
    content: '';
    position: absolute;
    top: 14%;
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, var(--ochre) 20%, var(--ochre) 80%, transparent 100%);
}

.card-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--ochre);
    background: var(--parchment);
}

.card-body {
    flex: 1; /* A8 */
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    min-width: 0; /* чтобы long-word не раздувал flex */
}

.card-meta {
    font-size: 0.82em;
    color: var(--ochre-dark);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.card-title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.3em;
    margin: 0 0 10px;
    line-height: 1.3;
}

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

.card-excerpt {
    color: var(--umbra-soft);
    font-size: 0.95em;
    margin-bottom: 14px;
    flex: 1;
}

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

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.card-more {
    display: inline-block;
    padding: 8px 18px;
    background: var(--ochre);
    color: var(--parchment);
    border-radius: 2px;
    font-size: 0.88em;
}

.card-more:hover { background: var(--lapis); color: var(--parchment); }

.card-cats {
    font-size: 0.82em;
    color: var(--umbra-soft);
}
.card-cats a { color: var(--lapis); }

/* A10: адаптив карточек — сброс абсолютного позиционирования */
@media (max-width: 760px) {
    .card { flex-direction: column; }
    .card-thumb-wrap {
        flex: none;
        max-width: 100%;
        width: 100%;
        position: static;
        min-height: 0;
    }
    .card-thumb-wrap a {
        position: static;
    }
    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .card-divider { display: none; }
}

/* ===== ЗАПИСЬ / СТРАНИЦА ===== */
.post-header {
    margin: 0 0 28px;
}

.post-header h1 {
    margin: 0 0 10px;
    font-size: 2.1em;
}

.post-meta {
    font-size: 0.88em;
    color: var(--ochre-dark);
    letter-spacing: 0.02em;
}

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

.post-thumb {
    margin: 0 0 30px;
}

.post-thumb img {
    width: 100%;
    display: block;
    border: 1px solid var(--smoke);
}

.post-body { font-size: 1em; }

.post-body img {
    display: block;
    margin: 1.2em auto;
    border: 1px solid var(--smoke);
}

.post-body h2,
.post-body h3 {
    position: relative;
    padding-bottom: 6px;
}

.post-body h2::after,
.post-body h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--ochre);
    margin-top: 8px;
}

.post-tags {
    margin: 30px 0;
    font-size: 0.9em;
    color: var(--umbra-soft);
}

.post-tags a {
    display: inline-block;
    padding: 2px 10px;
    margin: 0 4px 4px 0;
    border: 1px solid var(--smoke);
    background: var(--parchment-dark);
    color: var(--lapis);
    font-size: 0.92em;
}

.post-tags a:hover { border-color: var(--ochre); color: var(--ochre); }

.post-share {
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid var(--smoke);
    border-bottom: 1px solid var(--smoke);
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-share span { font-size: 0.9em; color: var(--umbra-soft); }

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    color: var(--umbra);
    border: 0;
}

.share-btn:hover { color: var(--ochre); }
.share-btn svg { width: 20px; height: 20px; }

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.crumbs {
    margin: 20px 0 28px;
    font-size: 0.87em;
    color: var(--umbra-soft);
}

.crumbs a { color: var(--lapis); }
.crumbs .sep { margin: 0 6px; color: var(--smoke); }
.crumbs .current { color: var(--umbra); }

/* ===== САЙДБАР ===== */
.sidebar-col .widget {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--smoke);
}

.sidebar-col .widget:last-child { border-bottom: 0; }

.sidebar-col .widget-title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.1em;
    margin: 0 0 12px;
    color: var(--umbra);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ochre);
    display: inline-block;
}

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

.sidebar-col ul li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--smoke);
}

.sidebar-col ul li:last-child { border-bottom: 0; }
.sidebar-col ul li a { color: var(--umbra); }
.sidebar-col ul li a:hover { color: var(--lapis); }

/* ===== ПАГИНАЦИЯ ===== */
.pager {
    margin: 40px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.pager a,
.pager span {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.95em;
    border: 1px solid var(--smoke);
    background: var(--parchment);
    color: var(--umbra);
    border-radius: 2px;
    min-width: 40px;
    text-align: center;
}

.pager a:hover {
    background: var(--lapis);
    color: var(--parchment);
    border-color: var(--lapis);
}

.pager .current {
    background: var(--ochre);
    color: var(--parchment);
    border-color: var(--ochre);
}

/* ===== ПОИСК ===== */
.searchform {
    display: flex;
    gap: 0;
    max-width: 480px;
}

.searchform input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--smoke);
    background: var(--parchment);
    font-size: 0.95em;
    border-radius: 2px 0 0 2px;
    color: var(--umbra);
}

.searchform input[type="search"]:focus {
    outline: none;
    border-color: var(--lapis);
}

.searchform button {
    padding: 10px 20px;
    background: var(--ochre);
    color: var(--parchment);
    border: 0;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    font-size: 0.95em;
}

.searchform button:hover { background: var(--lapis); }

/* ===== КОММЕНТАРИИ ===== */
.comments-area {
    margin: 40px 0 0;
    padding-top: 30px;
    border-top: 1px solid var(--smoke);
}

.comments-area h3 {
    font-size: 1.3em;
    margin: 0 0 20px;
}

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

.commentlist li {
    padding: 16px 0;
    border-bottom: 1px solid var(--smoke);
}

.commentlist .children {
    list-style: none;
    margin: 12px 0 0;
    padding-left: 24px;
    border-left: 2px solid var(--ochre);
}

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

.comment-meta {
    font-size: 0.82em;
    color: var(--umbra-soft);
    margin: 2px 0 8px;
}

.comment-respond {
    margin-top: 30px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--smoke);
    background: var(--parchment);
    font-size: 0.95em;
    font-family: inherit;
    margin-bottom: 12px;
    border-radius: 2px;
    color: var(--umbra);
}

.comment-respond textarea { min-height: 140px; resize: vertical; }

.comment-respond input:focus,
.comment-respond textarea:focus {
    outline: none;
    border-color: var(--lapis);
}

.comment-respond label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 4px;
    color: var(--umbra-soft);
}

/* ===== ПОДВАЛ ===== */
.site-footer {
    background: var(--umbra);
    color: var(--parchment);
    padding: 50px 0 20px;
    margin-top: 60px;
    background-image:
        radial-gradient(rgba(209, 201, 188, 0.04) 1px, transparent 1px),
        radial-gradient(rgba(209, 201, 188, 0.04) 1px, transparent 1px);
    background-size: 22px 22px;
    background-position: 0 0, 11px 11px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
    position: relative;
}

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

.footer-col + .footer-col {
    position: relative;
}

.footer-col + .footer-col::before {
    content: '';
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: -20px;
    width: 2px;
    background-image: radial-gradient(circle, var(--smoke) 1px, transparent 1.5px);
    background-size: 2px 8px;
    background-repeat: repeat-y;
    opacity: 0.55;
}

.footer-col .widget-title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.05em;
    margin: 0 0 14px;
    color: var(--parchment);
    letter-spacing: 0.02em;
}

.footer-col,
.footer-col p,
.footer-col li {
    color: rgba(249, 246, 240, 0.82);
    font-size: 0.92em;
}

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

.footer-col ul li { padding: 4px 0; }
.footer-col a { color: rgba(249, 246, 240, 0.9); }
.footer-col a:hover { color: var(--ochre); }

.footer-copy {
    border-top: 1px solid rgba(209, 201, 188, 0.18);
    padding-top: 18px;
    text-align: center;
    color: rgba(249, 246, 240, 0.65);
    font-size: 0.85em;
}

@media (max-width: 760px) {
    .footer-cols { grid-template-columns: 1fr; gap: 30px; }
    .footer-col + .footer-col::before { display: none; }
}

/* ===== 404 ===== */
.page-404 {
    text-align: center;
    padding: 60px 20px;
}

.page-404 .num {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 5em;
    color: var(--ochre);
    margin: 0 0 10px;
    line-height: 1;
}

.page-404 h1 { margin: 0 0 16px; }

.page-404 .searchform { margin: 24px auto; }

/* ===== COOKIE-БАННЕР ===== */
.cookie-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: var(--umbra);
    color: var(--parchment);
    padding: 16px 24px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    display: none;
}

.cookie-bar.is-visible { display: block; }

.cookie-bar-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-bar p {
    flex: 1;
    margin: 0;
    font-size: 0.9em;
    min-width: 240px;
}

.cookie-bar button {
    background: var(--ochre);
    color: var(--parchment);
    border: 0;
    padding: 10px 22px;
    cursor: pointer;
    border-radius: 2px;
    font-size: 0.92em;
}

.cookie-bar button:hover { background: var(--lapis); }

/* ===== УТИЛИТЫ ===== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

.alignleft  { float: left; margin: 0.4em 1.2em 0.8em 0; }
.alignright { float: right; margin: 0.4em 0 0.8em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-caption {
    max-width: 100%;
    margin-bottom: 1em;
}

.wp-caption-text {
    font-size: 0.85em;
    color: var(--umbra-soft);
    text-align: center;
    margin-top: 6px;
}

.clearfix::after {
    content: '';
    display: block;
    clear: both;
}
