/*
Theme Name: dds_editionslivresque.com
Author: Абрамов Юрий
Description: Тема для книжного обозрения «Книги и литература: обзоры и статьи». Сдержанная интеллектуальная палитра, типографика Playfair Display + Merriweather, акценты терракоты.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: dds_editionslivresque
*/

/* ========== Шрифты и переменные ========== */
:root {
    --c-ink: #2C3E4E;
    --c-cream: #F8F5EE;
    --c-cream-deep: #EFE9DC;
    --c-terra: #C26A4A;
    --c-terra-deep: #A8553A;
    --c-graphite: #B0B7BC;
    --c-muted: #6E7782;
    --c-line: #D9D2C2;
    --f-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
    --f-body: 'Merriweather', Georgia, 'Times New Roman', serif;
    --shadow-soft: 0 2px 14px rgba(44, 62, 78, 0.06);
}

/* ========== Базовый сброс и типографика ========== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--c-ink);
    background-color: var(--c-cream);
    background-image:
        radial-gradient(rgba(44, 62, 78, 0.025) 1px, transparent 1px),
        radial-gradient(rgba(44, 62, 78, 0.018) 1px, transparent 1px);
    background-size: 4px 4px, 7px 7px;
    background-position: 0 0, 2px 2px;
}

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

a { color: var(--c-ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-terra); }

.entry-content a,
.widget a {
    background-image: linear-gradient(to right, var(--c-terra) 50%, transparent 50%);
    background-size: 6px 1px;
    background-repeat: repeat-x;
    background-position: 0 100%;
    padding-bottom: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-display);
    color: var(--c-ink);
    line-height: 1.25;
    margin: 1.2em 0 .6em;
    font-weight: 700;
}
h1 { font-size: 2.2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

blockquote {
    margin: 1.6em 0;
    padding: 0.4em 1.6em;
    border-left: 2px solid var(--c-graphite);
    font-style: italic;
    color: var(--c-muted);
    font-family: var(--f-display);
    font-size: 1.1rem;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid var(--c-line);
}
th, td {
    border: 1px solid var(--c-line);
    padding: 0.6em 0.9em;
    text-align: left;
}
th {
    background: var(--c-cream-deep);
    font-family: var(--f-display);
    font-weight: 700;
}

ul, ol { padding-left: 1.4em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }

code, pre {
    font-family: 'Courier New', monospace;
    background: var(--c-cream-deep);
    border: 1px solid var(--c-line);
    border-radius: 3px;
}
code { padding: 1px 6px; font-size: .95em; }
pre {
    padding: 1em 1.2em;
    overflow-x: auto;
    margin: 1.2em 0;
}

/* ========== Контейнер и сетка ========== */
.wrap {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
}

.layout {
    display: flex;
    gap: 4%;
    margin: 2.5em 0 3em;
}

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

.layout-wide .layout-content { width: 85%; margin: 0 auto; }
.layout-wide .layout-sidebar { display: none; }

/* ========== Шапка ========== */
.site-header {
    background: var(--c-cream);
    border-bottom: 1px solid var(--c-line);
    padding: 1.4em 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2em;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1em;
    text-decoration: none;
}
.brand:hover { color: var(--c-ink); }

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

.brand-text { line-height: 1.25; }
.brand-name {
    font-family: var(--f-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--c-ink);
    margin: 0;
}
.brand-tag {
    font-size: 0.82rem;
    color: var(--c-muted);
    margin-top: 2px;
    font-style: italic;
    max-width: 480px;
}

/* ========== Меню ========== */
.nav-primary { font-family: var(--f-display); }
.nav-primary ul {
    display: flex;
    list-style: none;
    gap: 1.6em;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.nav-primary li { margin: 0; }
.nav-primary a {
    color: var(--c-ink);
    font-size: 1.02rem;
    padding: 0.3em 0;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, color .2s ease;
    background: none;
}
.nav-primary a:hover,
.nav-primary .current-menu-item > a {
    color: var(--c-terra);
    border-bottom-color: var(--c-terra);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--c-ink);
    color: var(--c-ink);
    padding: 0.4em 0.8em;
    border-radius: 3px;
    cursor: pointer;
    font-family: var(--f-display);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

/* ========== Хлебные крошки ========== */
.crumbs {
    font-size: 0.85rem;
    color: var(--c-muted);
    margin: 1.4em 0 0.4em;
    font-family: var(--f-display);
    letter-spacing: 0.02em;
}
.crumbs a {
    color: var(--c-muted);
    background: none;
    padding: 0;
}
.crumbs a:hover { color: var(--c-terra); }
.crumbs .sep {
    margin: 0 0.5em;
    color: var(--c-graphite);
}

/* ========== Кнопки ========== */
.btn,
button[type="submit"],
input[type="submit"] {
    display: inline-block;
    font-family: var(--f-display);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.65em 1.3em;
    background: transparent;
    color: var(--c-ink);
    border: 1px solid var(--c-ink);
    border-radius: 3px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    text-decoration: none;
    background-image: none;
}
.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: var(--c-terra);
    color: var(--c-cream);
    border-color: var(--c-terra);
}

.btn-terra {
    background: var(--c-terra);
    color: var(--c-cream);
    border-color: var(--c-terra);
}
.btn-terra:hover {
    background: var(--c-terra-deep);
    border-color: var(--c-terra-deep);
    color: var(--c-cream);
}

/* ========== Формы ========== */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.65em 0.85em;
    font-family: var(--f-body);
    font-size: 1rem;
    background: var(--c-cream);
    border: 1px solid var(--c-graphite);
    border-radius: 3px;
    color: var(--c-ink);
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--c-terra);
}

.search-form {
    display: flex;
    gap: 0.5em;
    max-width: 480px;
}
.search-form input[type="search"] { flex: 1; }

/* ========== Карточки записей (D1, A8, A10) ========== */
.cards {
    display: grid;
    gap: 1.8em;
    grid-template-columns: 1fr;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--c-cream);
    border: 1px solid var(--c-line);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover {
    box-shadow: 0 4px 22px rgba(44, 62, 78, 0.10);
}

/* Горизонтальная карточка для блог-ленты */
.card-row {
    flex-direction: row;
}

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: var(--c-cream-deep);
}
.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: none;
    padding: 0;
}
.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.card-row:hover .card-thumb-wrap img { transform: scale(1.04); }

.card-body {
    flex: 1;
    padding: 1.4em 1.6em;
    display: flex;
    flex-direction: column;
}

.card-cat {
    font-family: var(--f-display);
    font-variant: small-caps;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    color: var(--c-terra);
    text-transform: uppercase;
    margin-bottom: 0.3em;
    background: none;
    padding: 0;
    text-decoration: none;
}
.card-cat:hover { color: var(--c-terra-deep); background: none; }

.card-title {
    font-family: var(--f-display);
    font-size: 1.4rem;
    margin: 0.1em 0 0.5em;
    line-height: 1.3;
}
.card-title a {
    color: var(--c-ink);
    background: none;
    padding: 0;
}
.card-title a:hover { color: var(--c-terra); }

.card-excerpt {
    color: var(--c-ink);
    font-size: 0.96rem;
    margin-bottom: 1em;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.9em;
    font-size: 0.83rem;
    color: var(--c-muted);
    font-family: var(--f-display);
    border-top: 1px solid var(--c-line);
    padding-top: 0.9em;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 0.6em;
}

/* Аватар автора — вертикальный овал «экслибрис» */
.author-mark {
    width: 30px;
    height: 40px;
    border-radius: 50%/40%;
    background: linear-gradient(160deg, var(--c-ink) 0%, #3a4f63 100%);
    color: var(--c-cream);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    border: 1px solid var(--c-cream-deep);
    box-shadow: inset 0 0 0 1px rgba(248, 245, 238, 0.15);
    flex-shrink: 0;
}

.card-cta {
    margin-top: 0.4em;
    display: inline-block;
    align-self: flex-start;
}

/* Цитата-разделитель между карточками */
.feed-quote {
    margin: 0.4em 0;
    padding: 1.4em 2em;
    border-top: 1px solid var(--c-graphite);
    border-bottom: 1px solid var(--c-graphite);
    font-style: italic;
    font-family: var(--f-display);
    font-size: 1.1rem;
    color: var(--c-muted);
    text-align: center;
    text-indent: 1.2em;
}

/* ========== Сайдбар: «Книжная полка» и виджеты ========== */
.widget {
    margin-bottom: 2em;
    padding-bottom: 1.4em;
    border-bottom: 1px solid var(--c-line);
}
.widget:last-child { border-bottom: none; }

.widget-title {
    font-family: var(--f-display);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.9em;
    color: var(--c-ink);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget li {
    padding: 0.4em 0;
    border-bottom: 1px dotted var(--c-line);
}
.widget li:last-child { border-bottom: none; }
.widget a {
    background: none;
    padding: 0;
    color: var(--c-ink);
}
.widget a:hover { color: var(--c-terra); }

.bookshelf {
    margin-bottom: 2em;
    padding-bottom: 1.4em;
    border-bottom: 1px solid var(--c-line);
}
.bookshelf-title {
    font-family: var(--f-display);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.9em;
}
.shelf-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 8px 6px;
    background:
        linear-gradient(to bottom, transparent 0%, transparent 90%, var(--c-graphite) 90%, var(--c-graphite) 92%, transparent 92%);
    border-radius: 3px;
}
.book-spine {
    flex: 1;
    height: 160px;
    border-radius: 2px 2px 1px 1px;
    border: 1px solid rgba(0,0,0,0.15);
    color: var(--c-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6em 0.2em;
    font-family: var(--f-display);
    font-size: 0.78rem;
    line-height: 1.15;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    overflow: hidden;
    box-shadow: inset -3px 0 5px rgba(0,0,0,0.2), inset 3px 0 4px rgba(255,255,255,0.05);
}
.book-spine.s1 { background: linear-gradient(90deg, #2C3E4E, #3a5063); }
.book-spine.s2 { background: linear-gradient(90deg, #5B3A2E, #7a4d3d); }
.book-spine.s3 { background: linear-gradient(90deg, #4a4736, #6c6749); }

/* ========== Запись (single) ========== */
.entry {
    background: var(--c-cream);
    padding: 0.4em 0 1em;
}
.entry-cats {
    font-family: var(--f-display);
    font-variant: small-caps;
    letter-spacing: 0.14em;
    font-size: 0.85rem;
    color: var(--c-terra);
    margin: 0.6em 0 0.4em;
    text-transform: uppercase;
}
.entry-cats a { color: var(--c-terra); background: none; padding: 0; }
.entry-cats a:hover { color: var(--c-terra-deep); }

.entry-title {
    font-size: 2.4rem;
    margin: 0.2em 0 0.3em;
    line-height: 1.2;
}

.entry-meta {
    color: var(--c-muted);
    font-size: 0.88rem;
    font-family: var(--f-display);
    border-bottom: 1px solid var(--c-line);
    padding-bottom: 1em;
    margin-bottom: 1.5em;
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
}

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

.entry-content {
    font-size: 1.05rem;
}
/* Буквица «К» в начале статьи */
.entry-content > p:first-of-type::first-letter {
    font-family: var(--f-display);
    font-size: 4.2em;
    float: left;
    line-height: 0.9;
    margin: 0.06em 0.12em 0 0;
    color: var(--c-terra);
    font-weight: 700;
}

.entry-content img {
    border-radius: 3px;
    margin: 1em 0;
}

.entry-tags {
    margin: 2em 0 1em;
    font-size: 0.9rem;
    color: var(--c-muted);
    font-family: var(--f-display);
}
.entry-tags a {
    background: none;
    padding: 0.2em 0.6em;
    border: 1px solid var(--c-line);
    border-radius: 3px;
    margin-right: 0.4em;
    display: inline-block;
    color: var(--c-ink);
}
.entry-tags a:hover { background: var(--c-cream-deep); color: var(--c-terra); }

/* ========== Главная ========== */
.hero {
    padding: 2.2em 0 1.4em;
    border-bottom: 1px solid var(--c-line);
    margin-bottom: 1.6em;
}
.hero-title {
    font-size: 2.6rem;
    margin: 0 0 0.3em;
    line-height: 1.15;
}
.hero-lead {
    font-size: 1.15rem;
    color: var(--c-muted);
    max-width: 720px;
    font-style: italic;
}

.section-block {
    margin: 2.5em 0;
    padding: 2em 2.2em;
    background: var(--c-cream);
    border: 1px solid var(--c-line);
    border-radius: 3px;
    box-shadow: var(--shadow-soft);
}
.section-block h2 {
    margin-top: 0;
    border-bottom: 1px solid var(--c-line);
    padding-bottom: 0.4em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4em;
    margin-top: 1.4em;
}
.feature-cell {
    padding: 1.1em;
    background: var(--c-cream-deep);
    border-radius: 3px;
    border-left: 3px solid var(--c-terra);
}
.feature-cell h3 {
    font-size: 1.1rem;
    margin: 0 0 0.4em;
}

.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 1.2em 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2em;
}
.steps li {
    counter-increment: step;
    padding: 1em 1em 1em 3.4em;
    position: relative;
    border: 1px solid var(--c-line);
    border-radius: 3px;
    background: var(--c-cream-deep);
}
.steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0.9em;
    top: 0.7em;
    font-family: var(--f-display);
    font-size: 1.6rem;
    color: var(--c-terra);
    font-weight: 700;
}

.section-latest {
    margin: 2.5em 0;
}
.section-latest h2 {
    border-bottom: 1px solid var(--c-line);
    padding-bottom: 0.4em;
    margin-bottom: 1em;
}

/* ========== Пагинация ========== */
.pagination {
    margin: 2.4em 0 1em;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4em;
    font-family: var(--f-display);
}
.pagination a, .pagination span {
    display: inline-block;
    min-width: 40px;
    text-align: center;
    padding: 0.5em 0.9em;
    border: 1px solid var(--c-line);
    border-radius: 3px;
    color: var(--c-ink);
    background: var(--c-cream);
    text-decoration: none;
    font-size: 0.95rem;
    background-image: none;
}
.pagination a:hover {
    border-color: var(--c-terra);
    color: var(--c-terra);
}
.pagination .current {
    background: var(--c-terra);
    color: var(--c-cream);
    border-color: var(--c-terra);
}

/* ========== Подвал ========== */
.site-footer {
    margin-top: 3em;
    background: var(--c-ink);
    color: var(--c-cream);
    padding: 2.6em 0 1.4em;
}
.site-footer h2,
.site-footer h3,
.site-footer .widget-title,
.site-footer .bestseller-title {
    color: var(--c-cream);
}
.site-footer a {
    color: var(--c-cream);
    background: none;
    padding: 0;
}
.site-footer a:hover { color: var(--c-terra); }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    margin-bottom: 2em;
}
.footer-col .widget {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.4em;
}
.footer-col .widget li { border-bottom: 1px dotted rgba(248,245,238,0.18); }

.bestseller-quote {
    border-top: 1px solid rgba(248,245,238,0.2);
    padding: 1.2em 0;
    margin-bottom: 1.2em;
    font-style: italic;
    font-family: var(--f-display);
    font-size: 1.05rem;
    color: var(--c-cream);
    text-align: center;
}
.bestseller-quote .src {
    display: block;
    margin-top: 0.4em;
    font-size: 0.82rem;
    font-style: normal;
    color: var(--c-graphite);
    letter-spacing: 0.06em;
}

.signature {
    border-top: 1px solid rgba(248,245,238,0.2);
    padding-top: 1.2em;
    text-align: center;
    font-family: var(--f-display);
    font-style: italic;
    color: var(--c-graphite);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}
.signature strong {
    font-style: normal;
    font-weight: 400;
    color: var(--c-cream);
    border-bottom: 1px dotted var(--c-graphite);
    padding-bottom: 1px;
}

.footer-copy {
    text-align: center;
    font-size: 0.82rem;
    color: var(--c-graphite);
    margin-top: 1em;
    letter-spacing: 0.04em;
}

/* ========== Cookie-баннер (A11) ========== */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 1em;
    right: 1em;
    bottom: 1em;
    z-index: 9999;
    background: var(--c-ink);
    color: var(--c-cream);
    padding: 1em 1.4em;
    border-radius: 3px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 1.2em;
    flex-wrap: wrap;
    justify-content: space-between;
}
.cookie-banner p {
    margin: 0;
    font-size: 0.92rem;
    flex: 1;
    min-width: 240px;
}
.cookie-banner button {
    background: var(--c-terra);
    color: var(--c-cream);
    border: 1px solid var(--c-terra);
    padding: 0.55em 1.2em;
    font-family: var(--f-display);
    letter-spacing: 0.06em;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.88rem;
    transition: background .2s ease;
}
.cookie-banner button:hover { background: var(--c-terra-deep); border-color: var(--c-terra-deep); }

/* ========== Комментарии ========== */
.comments-area {
    margin: 2.4em 0;
    padding: 1.6em 0;
    border-top: 1px solid var(--c-line);
}
.comments-title {
    font-size: 1.4rem;
    margin: 0 0 1em;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comment-list li {
    padding: 1em 0;
    border-bottom: 1px solid var(--c-line);
}
.comment-list ol, .comment-list ul {
    list-style: none;
    padding-left: 1.4em;
    margin-top: 0.8em;
}
.comment-meta {
    font-size: 0.88rem;
    color: var(--c-muted);
    font-family: var(--f-display);
    margin-bottom: 0.5em;
}
.comment-meta strong {
    color: var(--c-ink);
    font-weight: 700;
}
.comment-body { font-size: 0.96rem; }

.comment-respond { margin-top: 1.6em; }
.comment-form label {
    display: block;
    margin-bottom: 0.3em;
    font-family: var(--f-display);
    font-size: 0.92rem;
}
.comment-form p { margin-bottom: 1em; }

/* ========== 404 ========== */
.not-found {
    text-align: center;
    padding: 3em 1em;
}
.not-found .big {
    font-family: var(--f-display);
    font-size: 5rem;
    color: var(--c-terra);
    margin: 0;
    line-height: 1;
}
.not-found h1 {
    margin: 0.4em 0;
}
.not-found .search-form {
    margin: 1.6em auto;
}

/* ========== Адаптив ========== */
@media (max-width: 960px) {
    .layout { flex-direction: column; gap: 0; }
    .layout-content, .layout-sidebar { width: 100%; }
    .layout-wide .layout-content { width: 100%; }
    .layout-sidebar { margin-top: 2em; }

    .feature-grid { grid-template-columns: 1fr 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr; }

    .entry-title { font-size: 1.9rem; }
    .hero-title { font-size: 2rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .wrap { width: 94%; }

    .nav-toggle { display: inline-block; }
    .nav-primary {
        width: 100%;
        order: 3;
    }
    .nav-primary[hidden] { display: none !important; }
    .nav-primary ul {
        flex-direction: column;
        gap: 0;
        margin-top: 1em;
        border-top: 1px solid var(--c-line);
    }
    .nav-primary li {
        border-bottom: 1px solid var(--c-line);
    }
    .nav-primary a {
        display: block;
        padding: 0.7em 0;
    }

    .header-inner { gap: 1em; }
    .brand-name { font-size: 1.15rem; }
    .brand-tag { display: none; }

    .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;
    }

    .feature-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; }

    .section-block { padding: 1.4em 1.2em; }
    .entry-title { font-size: 1.6rem; }
    .hero-title { font-size: 1.7rem; }
    .hero { padding: 1.4em 0 1em; }

    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ========== Утилиты WordPress ========== */
.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: 0.8em auto; }
.alignwide { width: 100%; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

.wp-caption {
    max-width: 100%;
    margin-bottom: 1em;
}
.wp-caption-text {
    font-size: 0.85rem;
    color: var(--c-muted);
    font-style: italic;
    margin-top: 0.3em;
}

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

.sticky { position: relative; }
.bypostauthor { }
