/*
Theme Name: dds_saffronreview.com
Theme URI: https://saffronreview.com/
Author: Богданов Ярослав
Author URI: https://saffronreview.com/
Description: Тема для информационного сайта о здоровом питании, обзорах продуктов и сбалансированном рационе. Минимализм, экологичность, высокая читаемость.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: dds_saffronreview
*/

/* ============ Базовые сбросы ============ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: #FDFAF6;
    color: #2C2A29;
    font-family: "Inter", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

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

a { color: #E8A84C; text-decoration: none; transition: color 0.18s ease; }
a:hover { color: #c98a2f; text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    color: #3A5E4C;
    font-family: "Source Serif Pro", "Georgia", serif;
    font-weight: 600;
    line-height: 1.25;
    margin: 1.6em 0 0.6em;
}
h1 { font-size: 2.05rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

blockquote {
    margin: 1.4em 0;
    padding: 0.4em 0 0.4em 1.1em;
    border-left: 4px solid #E8A84C;
    font-weight: 500;
    color: #3A3936;
    font-style: normal;
    background: #FAF5EC;
    border-radius: 0 8px 8px 0;
}
blockquote p { margin-bottom: 0.4em; }
blockquote cite { display: block; font-size: 0.92em; color: #777; font-style: normal; margin-top: 0.4em; }

code, pre {
    font-family: "JetBrains Mono", "Consolas", monospace;
    background: #F4EFE6;
    border: 1px solid #E0DBD0;
    border-radius: 4px;
}
code { padding: 0.1em 0.4em; font-size: 0.93em; }
pre { padding: 0.9em 1em; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid #E0DBD0;
}
th, td {
    border: 1px solid #E0DBD0;
    padding: 0.6em 0.8em;
    text-align: left;
}
th { background: #F4EFE6; color: #3A5E4C; font-weight: 600; }
tr:nth-child(even) td { background: #FAF7F1; }

hr { border: 0; border-top: 1px solid #E0DBD0; margin: 2em 0; }

/* ============ Контейнеры ============ */
.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px; height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 12px; top: 12px;
    width: auto; height: auto;
    background: #3A5E4C; color: #fff;
    padding: 8px 14px; border-radius: 6px; z-index: 200;
}

/* ============ Шапка ============ */
.site-header {
    background: #fff;
    border-bottom: 1px solid #E0DBD0;
    padding: 18px 0;
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: "Source Serif Pro", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #3A5E4C;
    line-height: 1.15;
    margin: 0;
}
.brand-tagline {
    font-size: 0.85rem;
    color: #6b6864;
    margin: 3px 0 0;
    line-height: 1.3;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #E0DBD0;
    color: #3A5E4C;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    align-items: center;
    gap: 6px;
}
.menu-toggle:hover { background: #F4EFE6; }
.menu-toggle-bars {
    display: inline-block; width: 18px; height: 12px;
    position: relative;
}
.menu-toggle-bars::before, .menu-toggle-bars::after, .menu-toggle-bars span {
    content: ""; position: absolute; left: 0; right: 0; height: 2px;
    background: currentColor; border-radius: 2px;
}
.menu-toggle-bars::before { top: 0; }
.menu-toggle-bars span { top: 5px; display: block; }
.menu-toggle-bars::after { bottom: 0; }

.primary-nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.primary-nav a {
    color: #2C2A29;
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 500;
    display: inline-block;
    transition: background 0.18s, color 0.18s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    background: #F4EFE6;
    color: #3A5E4C;
    text-decoration: none;
}

/* ============ Хлебные крошки ============ */
.breadcrumbs {
    padding: 14px 0;
    font-size: 0.9rem;
    color: #6b6864;
}
.breadcrumbs ol {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li + li::before {
    content: "›";
    margin: 0 8px 0 2px;
    color: #b9b3a8;
}
.breadcrumbs a { color: #6b6864; }
.breadcrumbs a:hover { color: #E8A84C; text-decoration: none; }
.breadcrumbs .current { color: #2C2A29; font-weight: 500; }

/* ============ Основной макет ============ */
.site-main { padding: 28px 0 60px; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
    align-items: start;
}
.layout-wide {
    max-width: 85%;
    margin: 0 auto;
}
.layout-full { width: 100%; }

/* ============ Карточки записей ============ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
    margin: 8px 0 28px;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E0DBD0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(58, 94, 76, 0.10);
}

.card-thumb-wrap {
    width: 100%;
    overflow: hidden;
    background: #F4EFE6;
}
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.04); }

.card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-title {
    font-family: "Source Serif Pro", Georgia, serif;
    font-size: 1.18rem;
    margin: 0 0 8px;
    line-height: 1.3;
    color: #3A5E4C;
}
.card-title a { color: inherit; }
.card-title a:hover { color: #E8A84C; text-decoration: none; }

.card-meta {
    font-size: 0.83rem;
    color: #8a857d;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}
.card-meta a { color: #88B7A6; }

.card-excerpt {
    color: #4a4844;
    font-size: 0.95rem;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 14px;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-excerpt p:last-child { margin-bottom: 0; }

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

/* ============ Кнопки ============ */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    line-height: 1.2;
    font-family: inherit;
}
.btn-primary {
    background: #E8A84C;
    color: #fff;
    border-color: #E8A84C;
}
.btn-primary:hover {
    background: #d8982f;
    border-color: #d8982f;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 0 4px rgba(232, 168, 76, 0.18);
}
.btn-secondary {
    background: transparent;
    color: #E8A84C;
    border-color: #E8A84C;
}
.btn-secondary:hover {
    background: #E8A84C;
    color: #fff;
    text-decoration: none;
}
.btn-mint {
    background: #88B7A6;
    color: #fff;
    border-color: #88B7A6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-mint:hover {
    background: #6f9f8d;
    border-color: #6f9f8d;
    color: #fff;
    text-decoration: none;
}

.read-more {
    display: inline-block;
    color: #E8A84C;
    font-weight: 500;
    font-size: 0.92rem;
}
.read-more::after {
    content: " →";
    transition: margin 0.18s;
    display: inline-block;
}
.read-more:hover { text-decoration: none; }
.read-more:hover::after { margin-left: 4px; }

/* ============ Шафрановая метка / индекс здоровья ============ */
.saffron-mark {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FFF4E0;
    color: #c98a2f;
    padding: 3px 9px 3px 7px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}
.saffron-mark-icon {
    display: inline-block;
    width: 14px; height: 14px;
    flex-shrink: 0;
}

.health-index {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font-weight: 700;
    color: #3A5E4C;
    font-size: 0.9rem;
}
.health-index strong { font-size: 1.05rem; color: #E8A84C; }
.health-index small { color: #8a857d; font-weight: 400; font-size: 0.78rem; }

.tag-pill {
    display: inline-block;
    background: #E9F2EE;
    color: #3A5E4C;
    border: 1px solid #cfdfd7;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.78rem;
    margin-right: 4px;
    margin-bottom: 4px;
}

/* ============ Фронт-страница ============ */
.hero-section {
    background: linear-gradient(135deg, #F4EFE6 0%, #FDFAF6 60%);
    padding: 50px 36px;
    border-radius: 14px;
    margin-bottom: 32px;
    border: 1px solid #ECE3D1;
}
.hero-section h1 { margin-top: 0; font-size: 2.3rem; }
.hero-section .lead {
    font-size: 1.08rem;
    color: #4a4844;
    max-width: 640px;
}
.hero-cta { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }

.section-block {
    background: #fff;
    border: 1px solid #E0DBD0;
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 32px;
}
.section-block h2 {
    margin-top: 0;
    border-bottom: 2px solid #E8A84C;
    padding-bottom: 8px;
    display: inline-block;
}
.section-block.alt {
    background: #F8F2E5;
    border-color: #ECE3D1;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 22px;
}
.feature-item {
    background: #FDFAF6;
    border: 1px solid #E0DBD0;
    padding: 20px;
    border-radius: 10px;
}
.feature-item h3 { margin: 0 0 8px; font-size: 1.08rem; }
.feature-item p { margin: 0; font-size: 0.95rem; color: #4a4844; }

.steps-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.steps-list li {
    counter-increment: step;
    background: #fff;
    padding: 22px 22px 18px;
    border-radius: 10px;
    border: 1px solid #E0DBD0;
    position: relative;
    padding-top: 50px;
}
.steps-list li::before {
    content: counter(step);
    position: absolute;
    top: 16px; left: 22px;
    width: 26px; height: 26px;
    background: #E8A84C;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.steps-list h4 { margin: 0 0 6px; font-size: 1.02rem; }
.steps-list p { margin: 0; font-size: 0.92rem; color: #4a4844; }

.section-title {
    text-align: center;
    margin-top: 14px;
    margin-bottom: 26px;
    position: relative;
}
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #E8A84C;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ============ Single & Page ============ */
.entry-header {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #E0DBD0;
}
.entry-title {
    margin: 0 0 10px;
    font-size: 2rem;
    line-height: 1.2;
}
.entry-meta {
    color: #8a857d;
    font-size: 0.92rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}
.entry-meta a { color: #88B7A6; }

.entry-thumbnail { margin-bottom: 24px; }
.entry-thumbnail img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    display: block;
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content figure { margin: 1.4em 0; }
.entry-content img { border-radius: 8px; }

.entry-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #E0DBD0;
    color: #6b6864;
    font-size: 0.93rem;
}
.entry-tags { margin-top: 6px; }
.entry-tags a {
    display: inline-block;
    background: #E9F2EE;
    color: #3A5E4C;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    margin: 2px 4px 2px 0;
}
.entry-tags a:hover { background: #88B7A6; color: #fff; text-decoration: none; }

/* ============ Сайдбар ============ */
.sidebar { font-size: 0.95rem; }
.widget {
    background: #fff;
    border: 1px solid #E0DBD0;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 22px;
}
.widget-title {
    margin: 0 0 12px;
    font-size: 1.08rem;
    color: #3A5E4C;
    border-bottom: 2px solid #88B7A6;
    padding-bottom: 6px;
    display: inline-block;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #E0DBD0;
}
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: #2C2A29; }
.widget ul li a:hover { color: #E8A84C; text-decoration: none; }

.diary-widget-cta {
    background: #E9F2EE;
    border: 1px dashed #88B7A6;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 10px;
    font-size: 0.88rem;
    color: #3A5E4C;
}

/* ============ Подвал ============ */
.site-footer {
    background: #2C2A29;
    color: #d6d2cb;
    padding: 50px 0 24px;
    margin-top: 50px;
}
.site-footer h3, .site-footer .widget-title {
    color: #FDFAF6;
    border-bottom-color: #E8A84C;
}
.site-footer a { color: #E8A84C; }
.site-footer a:hover { color: #fff; }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}
.site-footer .widget {
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 0;
}
.site-footer .widget ul li {
    border-bottom-color: #3a3835;
}
.site-footer .widget ul li a { color: #d6d2cb; }
.site-footer .widget ul li a:hover { color: #E8A84C; text-decoration: none; }

.site-copyright {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid #3a3835;
    font-size: 0.88rem;
    color: #a09b93;
    text-align: center;
}

/* ============ Пагинация ============ */
.pagination {
    margin: 30px 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #E0DBD0;
    border-radius: 8px;
    color: #3A5E4C;
    font-weight: 500;
    background: #fff;
}
.pagination a:hover {
    background: #F4EFE6;
    border-color: #E8A84C;
    text-decoration: none;
}
.pagination .current {
    background: #E8A84C;
    border-color: #E8A84C;
    color: #fff;
}
.pagination .dots { background: transparent; border: 0; padding: 8px 6px; }

/* ============ Поиск ============ */
.search-form {
    display: flex;
    gap: 8px;
}
.search-form .search-field {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #E0DBD0;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 0.96rem;
    color: #2C2A29;
    min-width: 0;
}
.search-form .search-field:focus {
    outline: 2px solid #E8A84C;
    outline-offset: 0;
    border-color: #E8A84C;
}
.search-form .search-submit {
    padding: 10px 16px;
    border: 0;
    background: #E8A84C;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}
.search-form .search-submit:hover { background: #d8982f; }

/* ============ Комментарии ============ */
.comments-section {
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid #E0DBD0;
}
.comments-title { margin-top: 0; }
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}
.comment-list .children {
    list-style: none;
    padding-left: 22px;
    margin-top: 14px;
}
.comment-body {
    background: #fff;
    border: 1px solid #E0DBD0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 14px;
}
.comment-meta {
    font-size: 0.86rem;
    color: #8a857d;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
}
.comment-author { font-weight: 600; color: #3A5E4C; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-reply-link {
    font-size: 0.85rem;
    color: #E8A84C;
}

.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 #E0DBD0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.96rem;
    background: #fff;
    color: #2C2A29;
}
.comment-respond textarea { min-height: 110px; resize: vertical; }
.comment-respond input:focus, .comment-respond textarea:focus {
    outline: 2px solid #E8A84C;
    outline-offset: 0;
    border-color: #E8A84C;
}
.comment-respond .comment-form-comment,
.comment-respond .comment-form-author,
.comment-respond .comment-form-email,
.comment-respond .comment-form-url {
    margin-bottom: 12px;
}
.comment-respond label { display: block; margin-bottom: 4px; font-size: 0.92rem; color: #4a4844; }
.comment-respond .submit, .comment-respond #submit {
    background: #E8A84C;
    color: #fff;
    border: 0;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
}
.comment-respond .submit:hover, .comment-respond #submit:hover { background: #d8982f; }

/* ============ 404 ============ */
.error-404 {
    text-align: center;
    padding: 30px 0;
}
.error-404 .big-num {
    font-family: "Source Serif Pro", Georgia, serif;
    font-size: 6rem;
    color: #E8A84C;
    line-height: 1;
    margin: 0;
    font-weight: 700;
}
.error-404 h1 { margin-top: 8px; }
.error-404 .search-form {
    max-width: 460px;
    margin: 22px auto 14px;
}

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

.cookie-banner {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    background: #2C2A29;
    color: #FDFAF6;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 100;
    font-size: 0.94rem;
    border: 1px solid #3a3835;
}
.cookie-banner-text { flex: 1; min-width: 0; }
.cookie-banner-text a { color: #E8A84C; }
.cookie-banner-accept {
    flex-shrink: 0;
    background: #E8A84C;
    color: #fff;
    border: 0;
    padding: 9px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.18s;
}
.cookie-banner-accept:hover { background: #d8982f; }

/* ============ Балансовая шкала рациона ============ */
.balance-scale {
    margin: 14px 0 4px;
}
.balance-scale-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #8a857d;
    margin-bottom: 5px;
}
.balance-scale-bar {
    position: relative;
    height: 6px;
    background: linear-gradient(to right, #d3604c 0%, #E8A84C 50%, #88B7A6 100%);
    border-radius: 999px;
}
.balance-scale-marker {
    position: absolute;
    top: -4px;
    width: 14px; height: 14px;
    background: #fff;
    border: 2px solid #3A5E4C;
    border-radius: 50%;
    transform: translateX(-50%);
}

/* ============ Адаптив ============ */
@media (max-width: 960px) {
    body { font-size: 16px; }
    .layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .layout-wide { max-width: 100%; }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 26px; }
    .hero-section { padding: 36px 24px; }
    .hero-section h1 { font-size: 1.85rem; }
    .section-block { padding: 24px 22px; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }
}

@media (max-width: 600px) {
    .menu-toggle { display: inline-flex; }
    .primary-nav {
        display: none;
        width: 100%;
        margin-top: 14px;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul {
        flex-direction: column;
        gap: 2px;
    }
    .primary-nav a { display: block; padding: 10px 12px; }

    .site-header-inner { flex-wrap: wrap; gap: 12px; }
    .brand-name { font-size: 1.02rem; }
    .brand-tagline { font-size: 0.78rem; }

    .footer-cols { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; gap: 18px; }

    .hero-section { padding: 28px 18px; }
    .hero-section h1 { font-size: 1.55rem; }

    .entry-title { font-size: 1.5rem; }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    .cookie-banner-accept { width: 100%; }

    .wrap { padding: 0 16px; }
}

/* ============ WordPress утилитарные классы ============ */
.alignleft { float: left; margin: 6px 18px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 18px; }
.aligncenter { display: block; margin: 14px auto; }
.alignwide { width: 100%; }
.alignfull { width: 100%; }

.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-size: 0.86rem;
    color: #6b6864;
    text-align: center;
    margin: 6px 0 0;
}

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

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin: 14px 0;
}
.gallery-item img { border-radius: 6px; display: block; }

.sticky .card-title::before {
    content: "★ ";
    color: #E8A84C;
}
