/*
Theme Name: dds_pizza-grandcity.ru
Author: Артём Лавров
Description: Контентный медиапроект о кулинарных навыках и домашнем приготовлении блюд, объединяющий рецепты, обучающие материалы по технике, работу с ингредиентами и базовые знания гастрономии.
Version: 1.1
Text Domain: dds_pizza_grandcity
*/

/* ============================================================
   1. БАЗОВЫЕ ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
    --color-bg: #FDF8F0;          /* Сливочный зефир */
    --color-accent: #C53A1F;      /* Печёный перец */
    --color-accent-2: #E0B15B;    /* Мускатный орех */
    --color-text: #2E241F;        /* Чёрный перец */
    --color-card: #FFF9F0;        /* Тесто с отлежкой */
    --color-divider: #ECE4D9;     /* Мраморная крошка */
    --color-dark: #1F1915;        /* Тёмный шоколад */
    --color-cream: #F6EADA;       /* Кремовый */
    --radius-s: 8px;
    --radius-m: 14px;
    --shadow-card: 0 4px 14px rgba(31, 25, 21, 0.06);
    --shadow-card-hover: 0 10px 28px rgba(31, 25, 21, 0.12);
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --content-wide: 85%;
    --content-narrow: 67%;
    --sidebar-width: 27%;
    --max-width: 1240px;
}

/* ============================================================
   2. RESET / БАЗА
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--color-dark); }

p {
    margin: 0 0 1.1em;
}

/* ============================================================
   3. ТИПОГРАФИКА
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--color-accent);
    line-height: 1.25;
    margin: 1.5em 0 0.6em;
    font-weight: 700;
}
h1 { font-size: 2.35rem; margin-top: 0.3em; }
h2 { font-size: 1.85rem; position: relative; padding-bottom: 0.45em; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

/* Линия масла и муки под h2 — штрих-пунктир */
h2::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background-image: repeating-linear-gradient(
        to right,
        var(--color-accent-2) 0 14px,
        transparent 14px 20px,
        var(--color-accent) 20px 22px,
        transparent 22px 28px
    );
    opacity: 0.85;
}

blockquote {
    margin: 1.4em 0;
    padding: 1em 1.2em;
    border-left: 4px solid var(--color-accent-2);
    background: var(--color-card);
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
    font-style: italic;
    color: var(--color-text);
}

code, pre {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    background: var(--color-divider);
    color: var(--color-dark);
    border-radius: 4px;
}
code { padding: 0.15em 0.4em; font-size: 0.92em; }
pre { padding: 1em; overflow-x: auto; }
pre code { padding: 0; background: none; }

/* ============================================================
   4. LAYOUT
   ============================================================ */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: min(var(--max-width), 92%);
    margin-left: auto;
    margin-right: auto;
}

.site-main {
    flex: 1;
    padding: 48px 0 64px;
}

.layout-wide .site-main-inner {
    width: var(--content-wide);
    margin: 0 auto;
}

.layout-with-sidebar .site-main-inner {
    display: grid;
    grid-template-columns: var(--content-narrow) var(--sidebar-width);
    gap: 6%;
    align-items: start;
}

.layout-no-sidebar .site-main-inner {
    width: var(--content-wide);
    margin: 0 auto;
}

/* ============================================================
   5. HEADER
   ============================================================ */
.site-header {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-divider);
    padding: 18px 0;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    flex: 1 1 auto;
    min-width: 0;
}

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

.brand-text { min-width: 0; }
.brand-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-accent);
    font-weight: 700;
    line-height: 1.25;
    display: block;
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand-desc {
    font-size: 0.82rem;
    color: var(--color-text);
    opacity: 0.72;
    margin-top: 3px;
    display: block;
    max-width: 620px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.primary-nav { flex-shrink: 0; }
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.primary-nav a {
    display: inline-block;
    padding: 9px 16px;
    color: var(--color-text);
    border-radius: var(--radius-s);
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    background: var(--color-accent);
    color: #fff;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 8px 14px;
    border-radius: var(--radius-s);
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================================
   6. КАРТОЧКИ ЗАПИСЕЙ (A8, A10)
   ============================================================ */
.post-list {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin: 0 0 40px;
}

.card {
    display: flex;
    flex-direction: column;      /* A8: flex-контейнер */
    background: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-m);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

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

/* Эффект "отрыва листа" */
.card::after {
    content: '';
    position: absolute;
    right: 0; bottom: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 0 18px 18px;
    border-color: transparent transparent var(--color-divider) transparent;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.card:hover::after { opacity: 1; }

/* Вертикальная карточка — миниатюра сверху */
.card-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-divider);
}
.card-thumb img {
    display: block;              /* A10 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }

.card-body {
    flex: 1;                     /* A8: текстовая часть занимает остаток */
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.82rem;
    color: var(--color-text);
    opacity: 0.65;
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.card-meta .meta-date {
    color: var(--color-accent-2);
    font-weight: 600;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin: 0 0 10px;
    line-height: 1.3;
}
.card-title::after { display: none; }
.card-title a {
    color: var(--color-text);
    text-decoration: none;
}
.card-title a:hover { color: var(--color-accent); }

.card-excerpt {
    font-size: 0.95rem;
    color: var(--color-text);
    opacity: 0.88;
    margin-bottom: 14px;
}
.card-excerpt p {
    margin: 0 0 0.5em;           /* A8 */
    background: none;
}
.card-excerpt p:last-child { margin-bottom: 0; }

.card-more {
    margin-top: auto;
    align-self: flex-start;
}

/* ============================================================
   7. КНОПКИ
   ============================================================ */
.btn {
    display: inline-block;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    transition: all 0.22s ease;
    text-decoration: none;
    border: none;
}

/* Основная — двойная рамка, заливка 15% */
.btn-primary {
    padding: 11px 22px;
    border: 2px solid var(--color-accent);
    background: rgba(197, 58, 31, 0.15);
    color: var(--color-text);
    border-radius: var(--radius-s);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.btn-primary:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Вторичная — каплевидная */
.btn-secondary {
    padding: 9px 22px;
    background: var(--color-accent-2);
    color: var(--color-dark);
    border-radius: 0 30px 30px 0;
}
.btn-secondary:hover {
    background: var(--color-accent);
    color: #fff;
}

/* ============================================================
   8. САЙДБАР
   ============================================================ */
.sidebar {
    font-size: 0.95rem;
}
.widget {
    background: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-m);
    padding: 20px 22px;
    margin-bottom: 24px;
}
.widget-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin: 0 0 14px;
    color: var(--color-accent);
    padding-bottom: 8px;
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0; right: 0;
    height: 2px;
    background-image: repeating-linear-gradient(
        to right,
        var(--color-accent-2) 0 10px,
        transparent 10px 14px
    );
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--color-divider);
}
.widget li:last-child { border-bottom: none; }
.widget a {
    color: var(--color-text);
    font-weight: 500;
}
.widget a:hover { color: var(--color-accent); }

/* ============================================================
   9. ФУТЕР
   ============================================================ */
.site-footer {
    background: var(--color-dark);
    color: var(--color-cream);
    padding: 52px 0 22px;
    margin-top: 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 40px;
}
.footer-col .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--color-cream);
}
.footer-col .widget-title {
    color: var(--color-accent-2);
}
.footer-col .widget a { color: var(--color-cream); }
.footer-col .widget a:hover { color: var(--color-accent-2); }
.footer-col .widget li { border-bottom-color: rgba(246, 234, 218, 0.12); }

.site-copyright {
    border-top: 1px solid rgba(246, 234, 218, 0.18);
    padding-top: 22px;
    text-align: center;
    font-size: 0.88rem;
    opacity: 0.85;
}

/* ============================================================
   10. ХЛЕБНЫЕ КРОШКИ
   ============================================================ */
.breadcrumbs {
    padding: 12px 0 18px;
    font-size: 0.88rem;
    color: var(--color-text);
    opacity: 0.82;
}
.breadcrumbs a {
    color: var(--color-text);
    border-bottom: 1px dashed transparent;
}
.breadcrumbs a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}
.breadcrumbs .sep {
    margin: 0 8px;
    color: var(--color-accent-2);
}
.breadcrumbs .current {
    color: var(--color-accent);
    font-weight: 600;
}

/* ============================================================
   11. ПАГИНАЦИЯ — круглые, тиснёные
   ============================================================ */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0 12px;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: var(--color-divider);
    color: var(--color-text);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05),
                0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s;
}
.pagination .page-numbers:hover {
    background: var(--color-accent-2);
}
.pagination .page-numbers.current {
    background: var(--color-accent);
    color: #fff;
}
.pagination .page-numbers.dots {
    background: transparent;
    box-shadow: none;
}

/* ============================================================
   12. ГЛАВНАЯ — тематические блоки
   ============================================================ */
.home-hero {
    background: linear-gradient(135deg, var(--color-card) 0%, var(--color-divider) 100%);
    border-radius: var(--radius-m);
    padding: 56px 42px;
    margin-bottom: 44px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    border: 12px dashed rgba(224, 177, 91, 0.18);
    border-radius: 50%;
}
.home-hero h1 {
    font-size: 2.6rem;
    margin: 0 0 14px;
}
.home-hero p {
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 auto 22px;
    opacity: 0.88;
}

.section-block {
    margin-bottom: 54px;
}
.section-intro {
    max-width: 780px;
    font-size: 1.05rem;
    margin-bottom: 28px;
    opacity: 0.9;
}

.techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.technique-card {
    background: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-m);
    padding: 22px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.technique-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.technique-number {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-accent-2);
    font-weight: 700;
    margin-bottom: 8px;
}
.technique-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-accent);
    margin: 0 0 8px;
}
.technique-title::after { display: none; }
.technique-desc {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.88;
}

.steps-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}
.steps-list li {
    counter-increment: step;
    background: var(--color-card);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
    padding: 18px 22px 18px 60px;
    position: relative;
}
.steps-list li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 18px; top: 18px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-accent-2);
    font-weight: 700;
}

.tools-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 6px 2px 18px;
    scrollbar-color: var(--color-accent-2) var(--color-divider);
}
.tool-chip {
    flex: 0 0 auto;
    background: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-m);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--color-text);
    min-width: 170px;
    transition: all 0.2s;
    cursor: pointer;
}
.tool-chip:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.tool-icon {
    font-size: 1.3rem;
    color: var(--color-accent-2);
}

/* Лента контекстов — 3 связанные статьи */
.context-feed {
    background: var(--color-card);
    border-radius: var(--radius-m);
    padding: 32px 36px;
    border: 1px solid var(--color-divider);
}

/* ============================================================
   13. КОНТЕНТ ЗАПИСИ / СТРАНИЦЫ
   ============================================================ */
.entry-header {
    margin-bottom: 26px;
}
.entry-title {
    margin-top: 0;
    font-size: 2.3rem;
}
.entry-meta {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 18px;
}
.entry-meta span + span::before {
    content: '·';
    margin: 0 8px;
    color: var(--color-accent-2);
}

.entry-thumbnail {
    margin: 0 0 28px;
    border-radius: var(--radius-m);
    overflow: hidden;
}
.entry-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.entry-content {
    font-size: 1.05rem;
}
.entry-content img {
    border-radius: var(--radius-s);
    margin: 1em 0;
}
.entry-content ul, .entry-content ol {
    padding-left: 1.3em;
    margin: 1em 0;
}
.entry-content li { margin-bottom: 0.45em; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid var(--color-divider);
}
.entry-content th,
.entry-content td {
    border: 1px solid var(--color-divider);
    padding: 10px 14px;
    text-align: left;
}
.entry-content th {
    background: var(--color-card);
    color: var(--color-accent);
    font-family: var(--font-serif);
}

.entry-tags {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.entry-tags a {
    display: inline-block;
    background: var(--color-card);
    border: 1px solid var(--color-divider);
    padding: 5px 14px;
    border-radius: 0 30px 30px 0;
    font-size: 0.88rem;
    color: var(--color-text);
}
.entry-tags a:hover {
    background: var(--color-accent-2);
    color: var(--color-dark);
}

/* Выделение кулинарной техники */
.technique-term {
    background: rgba(224, 177, 91, 0.22);
    padding: 1px 6px;
    border-radius: 3px;
    color: var(--color-dark);
    font-weight: 600;
}

/* ============================================================
   14. КОММЕНТАРИИ — под "рецептурный блок"
   ============================================================ */
.comments-area {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 2px solid var(--color-divider);
}
.comments-title {
    font-size: 1.5rem;
    margin-top: 0;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
}
.comment-list .comment {
    margin-bottom: 22px;
}
.comment-list .children {
    list-style: none;
    padding-left: 28px;
    margin-top: 18px;
    border-left: 2px dashed var(--color-divider);
}
.comment-body {
    background: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-m);
    padding: 18px 22px;
}
.comment-meta {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 8px;
}
.comment-meta .fn { color: var(--color-accent); font-weight: 600; }
.comment-reply-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--color-accent);
}

.comment-form {
    display: grid;
    gap: 14px;
    max-width: 700px;
}
.comment-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.searchform-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--color-divider);
    background: var(--color-card);
    border-radius: var(--radius-s);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.comment-form input:focus,
.comment-form textarea:focus,
.searchform-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(224, 177, 91, 0.25);
}
.comment-form textarea {
    min-height: 130px;
    resize: vertical;
}

/* ============================================================
   15. ПОИСК
   ============================================================ */
.searchform {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin: 18px 0;
}
.searchform-input { flex: 1; }

/* ============================================================
   16. COOKIE-БАННЕР
   ============================================================ */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: var(--color-dark);
    color: var(--color-cream);
    padding: 16px 22px;
    border-radius: var(--radius-m);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    z-index: 9999;
    font-size: 0.92rem;
    flex-wrap: wrap;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; flex: 1 1 auto; min-width: 240px; }
.cookie-banner a { color: var(--color-accent-2); }
.cookie-accept {
    background: var(--color-accent-2);
    color: var(--color-dark);
    border: none;
    padding: 10px 22px;
    border-radius: 0 30px 30px 0;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}
.cookie-accept:hover { background: var(--color-accent); color: #fff; }

/* ============================================================
   17. 404
   ============================================================ */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}
.error-404-title {
    font-size: 3.2rem;
    margin: 0 0 16px;
    color: var(--color-accent);
}
.error-404-title::after { display: none; }
.error-404 p {
    font-size: 1.1rem;
    opacity: 0.88;
    margin-bottom: 24px;
}
.error-404 .searchform { margin: 24px auto; }
.whisk-icon {
    display: inline-block;
    margin-right: 6px;
    transition: transform 0.5s ease;
}
.btn-primary:hover .whisk-icon {
    transform: rotate(360deg);
}

/* ============================================================
   18. АДАПТИВ
   ============================================================ */
@media (max-width: 960px) {
    .layout-with-sidebar .site-main-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .layout-wide .site-main-inner,
    .layout-no-sidebar .site-main-inner {
        width: 100%;
    }
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.55rem; }
    .home-hero { padding: 40px 24px; }
    .home-hero h1 { font-size: 2rem; }
}

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

    .site-header-inner { flex-wrap: wrap; }
    .nav-toggle { display: inline-block; order: 3; }
    .primary-nav {
        order: 4;
        width: 100%;
        display: none;
        margin-top: 14px;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; gap: 4px; }
    .primary-nav a { display: block; }

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

    .post-list { grid-template-columns: 1fr; }

    .cookie-banner {
        left: 8px; right: 8px; bottom: 8px;
        padding: 14px 16px;
    }

    .entry-title { font-size: 1.65rem; }
    .error-404-title { font-size: 2.2rem; }

    /* A10: сброс абсолютного позиционирования миниатюры на мобильных */
    .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;
    }
}

/* ============================================================
   19. УТИЛИТЫ
   ============================================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px; width: 1px;
    margin: -1px; overflow: hidden;
    padding: 0;
    position: absolute !important;
    word-wrap: normal !important;
}

.alignleft { float: left; margin-right: 1.2em; margin-bottom: 0.6em; }
.alignright { float: right; margin-left: 1.2em; margin-bottom: 0.6em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: italic;
    margin-top: 4px;
    text-align: center;
}

.sticky-post-badge {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 2px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
}
