/*
Theme Name: dds_pharmacieaproximite.com
Theme URI: https://pharmacieaproximite.com/
Author: Жданова Алина
Author URI: https://pharmacieaproximite.com/
Description: Тема для сайта о здоровом образе жизни и народной медицине. Эстетика природного здоровья и аккуратный современный интерфейс.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dds_pharmacieaproximite
*/

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #2A3B2C;
    background: #FEF9EF;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: #417B5A;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: #2C5E43; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    color: #2A3B2C;
    line-height: 1.3;
    margin: 1.4em 0 0.6em;
}
h1 { font-size: 2.2rem; color: #C8663C; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em 1.2em; padding: 0; }
li { margin-bottom: 0.4em; }

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.4em;
    border-left: 4px solid #C8663C;
    background: #E6F0E6;
    font-style: italic;
    color: #2A3B2C;
    border-radius: 0 6px 6px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid #c9d6c9;
}
th, td {
    border: 1px solid #c9d6c9;
    padding: 0.6em 0.9em;
    text-align: left;
}
th { background: #E6F0E6; color: #2A3B2C; font-weight: 600; }

code, pre {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    background: #E6F0E6;
    border-radius: 4px;
}
code { padding: 0.15em 0.4em; font-size: 0.92em; }
pre {
    padding: 1em;
    overflow-x: auto;
    margin: 1em 0;
}

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

/* ================== ОБЩИЙ КОНТЕЙНЕР ================== */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-main { padding: 32px 0 56px; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 67% 27%; gap: 6%; }
}

.layout-no-sidebar { max-width: 85%; margin: 0 auto; }
@media (max-width: 600px) {
    .layout-no-sidebar { max-width: 100%; }
}

/* ================== ШАПКА ================== */
.top-strip {
    background: #2A3B2C;
    color: #FEF9EF;
    font-size: 0.88rem;
    padding: 8px 0;
    text-align: center;
    letter-spacing: 0.02em;
}
.top-strip span { font-style: italic; }

.site-header {
    background: #FEF9EF;
    padding: 22px 0 14px;
    border-bottom: 1px solid #e7e0cb;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.brand-logo-box { flex-shrink: 0; }
.brand-logo {
    display: block;
    max-height: 64px;
    width: auto;
}
.brand-svg-logo {
    width: 60px;
    height: 60px;
    display: block;
}

.brand-meta { flex: 1; min-width: 200px; }
.brand-name {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.55rem;
    color: #C8663C;
    margin: 0 0 4px;
    line-height: 1.2;
}
.brand-name a { color: inherit; }
.brand-name a:hover { color: #2C5E43; }
.brand-tagline {
    font-size: 0.92rem;
    color: #5a6b5c;
    margin: 0;
}

.search-toggle {
    background: none;
    border: 1px solid #c9d6c9;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #417B5A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.search-toggle:hover { background: #E6F0E6; color: #2C5E43; }
.search-toggle svg { width: 18px; height: 18px; }

.header-search {
    margin-top: 14px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}
.header-search.is-open { max-height: 80px; }
.header-search form {
    display: flex;
    gap: 8px;
}
.header-search input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #c9d6c9;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: #2A3B2C;
}
.header-search button {
    padding: 10px 18px;
    background: #417B5A;
    color: #FEF9EF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}
.header-search button:hover { background: #2C5E43; }

/* ================== МЕНЮ ================== */
.primary-nav {
    background: #FEF9EF;
    padding: 6px 0 14px;
    border-bottom: 1px solid #e7e0cb;
}
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
}
.primary-nav li {
    margin: 0;
    display: flex;
    align-items: center;
}
.primary-nav li::after {
    content: '·';
    color: #C8663C;
    margin: 0 14px;
    font-size: 1.2rem;
    line-height: 1;
}
.primary-nav li:last-child::after { content: none; }
.primary-nav a {
    color: #2A3B2C;
    font-weight: 500;
    padding: 6px 0;
    font-size: 0.98rem;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a {
    color: #C8663C;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #c9d6c9;
    color: #2A3B2C;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}

@media (max-width: 700px) {
    .menu-toggle { display: inline-block; margin: 6px 0; }
    .primary-nav .nav-list[hidden] { display: none !important; }
    .primary-nav .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
        padding-top: 8px;
    }
    .primary-nav li::after { content: none; }
    .primary-nav li {
        width: 100%;
        padding: 6px 0;
        border-bottom: 1px solid #e7e0cb;
    }
    .primary-nav li:last-child { border-bottom: none; }
}

/* ================== ХЛЕБНЫЕ КРОШКИ ================== */
.breadcrumbs {
    font-size: 0.88rem;
    color: #5a6b5c;
    padding: 16px 0 4px;
    margin-bottom: 8px;
}
.breadcrumbs a { color: #5F9E7E; }
.breadcrumbs a:hover { color: #C8663C; }
.breadcrumbs .sep {
    margin: 0 8px;
    color: #a0b0a2;
}

/* ================== КАРТОЧКИ ЗАПИСЕЙ ================== */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 700px) {
    .posts-grid { grid-template-columns: 1fr 1fr; }
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(42, 59, 44, 0.06);
    border: 1px solid #ece6d4;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(42, 59, 44, 0.1);
}

.card-thumb {
    position: relative;
    overflow: hidden;
    /* Эффект «вырванного листа» — рваный край снизу */
    -webkit-mask: radial-gradient(7px at 50% calc(100% + 3px), transparent 99%, #000 100%) 50% 100% / 18px 100% repeat-x,
                  linear-gradient(#000, #000) top / 100% calc(100% - 7px) no-repeat;
            mask: radial-gradient(7px at 50% calc(100% + 3px), transparent 99%, #000 100%) 50% 100% / 18px 100% repeat-x,
                  linear-gradient(#000, #000) top / 100% calc(100% - 7px) no-repeat;
}
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.card-thumb a { display: block; }

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

.card-meta {
    font-size: 0.82rem;
    color: #5a6b5c;
    margin-bottom: 8px;
}
.card-meta a { color: #5F9E7E; }
.card-meta a:hover { color: #C8663C; }

.card-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.22rem;
    margin: 0 0 10px;
    line-height: 1.35;
}
.card-title a { color: #2A3B2C; }
.card-title a:hover { color: #C8663C; }

.card-excerpt { color: #2A3B2C; font-size: 0.95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more {
    margin-top: auto;
    padding-top: 12px;
}
.btn {
    display: inline-block;
    padding: 9px 18px;
    background: #417B5A;
    color: #FEF9EF;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}
.btn:hover { background: #2C5E43; color: #FEF9EF; }

.btn-outline {
    background: transparent;
    color: #417B5A;
    border: 1px solid #417B5A;
}
.btn-outline:hover { background: #417B5A; color: #FEF9EF; }

/* Категория-чипы (плоские кнопки без обводки) */
.cat-chip {
    display: inline-block;
    padding: 4px 10px;
    color: #5F9E7E;
    font-size: 0.85rem;
    text-decoration: none;
}
.cat-chip:hover {
    color: #C8663C;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ================== ГЛАВНАЯ ================== */
.front-section {
    padding: 36px 0;
    border-bottom: 1px dashed #d6cdb1;
}
.front-section:last-of-type { border-bottom: none; }
.front-section h2 {
    text-align: center;
    margin: 0 0 28px;
    color: #C8663C;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
@media (min-width: 700px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
    background: #E6F0E6;
    padding: 24px;
    border-radius: 10px;
    border-left: 4px solid #5F9E7E;
}
.feature-card h3 { margin: 0 0 10px; color: #2A3B2C; }
.feature-card p { margin: 0; }

.steps-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    counter-reset: step;
}
@media (min-width: 700px) {
    .steps-row { grid-template-columns: repeat(4, 1fr); }
}
.step {
    background: #fff;
    border: 1px solid #ece6d4;
    border-radius: 10px;
    padding: 22px 18px;
    position: relative;
    counter-increment: step;
}
.step::before {
    content: counter(step);
    display: inline-block;
    width: 34px;
    height: 34px;
    line-height: 34px;
    border-radius: 50%;
    background: #C8663C;
    color: #FEF9EF;
    text-align: center;
    font-weight: 700;
    font-family: 'Merriweather', serif;
    margin-bottom: 10px;
}
.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.92rem; color: #2A3B2C; }

.front-latest {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0;
}
@media (min-width: 960px) {
    .front-latest { grid-template-columns: 2fr 1fr; }
}

.front-articles { }
.front-rituals {
    background: #fff;
    border: 1px solid #ece6d4;
    border-radius: 10px;
    padding: 22px 22px 18px;
    align-self: start;
}
.front-rituals h3 {
    margin: 0 0 14px;
    color: #C8663C;
    font-size: 1.15rem;
    border-bottom: 2px dotted #C8663C;
    padding-bottom: 8px;
}
.ritual-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ritual-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.94rem;
    cursor: pointer;
    border-bottom: 1px dashed #e7e0cb;
}
.ritual-list li:last-child { border-bottom: none; }
.ritual-list label {
    cursor: pointer;
    flex: 1;
    user-select: none;
}
.ritual-list input[type="checkbox"] {
    margin-top: 4px;
    accent-color: #5F9E7E;
    cursor: pointer;
}
.ritual-list input:checked + label {
    text-decoration: line-through;
    color: #8a958c;
}

.front-articles .card-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Горизонтальная карточка для главной */
.card-row {
    background: #fff;
    border: 1px solid #ece6d4;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: 0 2px 8px rgba(42, 59, 44, 0.05);
}
.card-row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}
.card-row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-row .card-thumb-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-row .card-body {
    flex: 1;
    padding: 20px 22px;
}
@media (max-width: 700px) {
    .card-row { flex-direction: column; }
    .card-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-row .card-thumb-wrap a {
        position: static;
    }
    .card-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ================== САЙДБАР ================== */
.sidebar { }
.widget {
    background: #fff;
    border: 1px solid #ece6d4;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 22px;
}
.widget-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.1rem;
    margin: 0 0 12px;
    color: #C8663C;
    padding-bottom: 8px;
    border-bottom: 1px dotted #C8663C;
}
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget li {
    padding: 6px 0;
    border-bottom: 1px dashed #e7e0cb;
    font-size: 0.94rem;
}
.widget li:last-child { border-bottom: none; }
.widget a { color: #2A3B2C; }
.widget a:hover { color: #C8663C; }

/* ================== ЗАПИСЬ ================== */
.entry-header { margin-bottom: 24px; }
.entry-title {
    font-size: 2rem;
    color: #C8663C;
    margin: 0 0 12px;
}
.entry-meta {
    font-size: 0.88rem;
    color: #5a6b5c;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.entry-meta a { color: #5F9E7E; }
.entry-thumb {
    margin: 18px 0 24px;
    border-radius: 10px;
    overflow: hidden;
}
.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-content { font-size: 1.02rem; }
.entry-content img { border-radius: 8px; margin: 1em 0; display: block; }
.entry-content h2, .entry-content h3 { color: #2A3B2C; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

/* «Совет дня» — пергамент */
.tip-of-day {
    float: right;
    width: 240px;
    margin: 0 0 18px 22px;
    padding: 18px 18px 16px;
    background: #FBF3DC;
    border: 2px solid #C8663C;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(200, 102, 60, 0.15);
    position: relative;
    font-size: 0.92rem;
}
.tip-of-day::before {
    content: 'Совет дня';
    display: block;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: #C8663C;
    font-size: 0.95rem;
    margin-bottom: 8px;
    border-bottom: 1px dashed #C8663C;
    padding-bottom: 6px;
}
.tip-of-day p { margin: 0; color: #2A3B2C; }
@media (max-width: 700px) {
    .tip-of-day {
        float: none;
        width: 100%;
        margin: 0 0 18px;
    }
}

/* Социальный шаринг — круглые иконки */
.social-share {
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.social-share span { font-size: 0.9rem; color: #5a6b5c; }
.social-share a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(95, 158, 126, 0.18);
    color: #2C5E43;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.social-share a:hover {
    background: #C8663C;
    color: #FEF9EF;
}
.social-share svg { width: 16px; height: 16px; }

.entry-tags {
    margin: 24px 0;
    font-size: 0.9rem;
    color: #5a6b5c;
}
.entry-tags a {
    display: inline-block;
    margin-right: 8px;
    padding: 3px 10px;
    background: #E6F0E6;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #2C5E43;
}
.entry-tags a:hover { background: #C8663C; color: #FEF9EF; }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.post-nav a {
    flex: 1 1 45%;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #ece6d4;
    border-radius: 8px;
    color: #2A3B2C;
    font-size: 0.92rem;
}
.post-nav a:hover { border-color: #C8663C; color: #C8663C; }
.post-nav .nav-prev::before { content: '← '; color: #C8663C; }
.post-nav .nav-next { text-align: right; }
.post-nav .nav-next::after { content: ' →'; color: #C8663C; }

/* ================== КОММЕНТАРИИ ================== */
.comments-area {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #d6e0d6;
}
.comments-title {
    font-size: 1.4rem;
    color: #C8663C;
    margin: 0 0 20px;
}
.comment-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.comment-list .children {
    list-style: none;
    margin: 16px 0 0 24px;
    padding: 0;
}
.comment-body {
    background: #fff;
    border: 1px solid #ece6d4;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
}
.comment-meta {
    font-size: 0.85rem;
    color: #5a6b5c;
    margin-bottom: 8px;
}
.comment-author { font-weight: 600; color: #2A3B2C; margin-right: 10px; }
.comment-content p { margin: 0 0 0.5em; }
.comment-reply-link {
    font-size: 0.85rem;
    color: #5F9E7E;
}

.comment-form {
    background: #E6F0E6;
    padding: 22px;
    border-radius: 10px;
}
.comment-form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #2A3B2C;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9d6c9;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: #2A3B2C;
    margin-bottom: 14px;
}
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form .submit {
    background: #417B5A;
    color: #FEF9EF;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}
.comment-form .submit:hover { background: #2C5E43; }

/* ================== ПАГИНАЦИЯ ================== */
.pagination {
    margin: 36px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #ece6d4;
    border-radius: 8px;
    color: #2A3B2C;
    font-size: 0.94rem;
    text-decoration: none;
}
.pagination .page-numbers:hover {
    border-color: #C8663C;
    color: #C8663C;
}
.pagination .page-numbers.current {
    background: #417B5A;
    color: #FEF9EF;
    border-color: #417B5A;
}
.pagination .dots { border: none; background: transparent; }

/* ================== ФОРМА ПОИСКА ================== */
.search-form {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}
.search-form .search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #c9d6c9;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: #2A3B2C;
}
.search-form .search-submit {
    padding: 10px 18px;
    background: #417B5A;
    color: #FEF9EF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}
.search-form .search-submit:hover { background: #2C5E43; }

/* ================== 404 ================== */
.error-404 {
    text-align: center;
    padding: 40px 0;
}
.error-404 h1 { font-size: 4rem; margin: 0 0 8px; color: #C8663C; }
.error-404 h2 { margin: 0 0 16px; color: #2A3B2C; }
.error-404 .search-form { max-width: 460px; margin: 16px auto; }

/* ================== ПОДВАЛ ================== */
.site-footer {
    background: #2A3B2C;
    color: #d4dcd4;
    padding: 44px 0 22px;
    margin-top: 40px;
}
.footer-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 700px) {
    .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
.footer-col h2, .footer-col h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.05rem;
    color: #C8663C;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #5F9E7E;
}
.footer-col h2::before {
    content: '✿ ';
    color: #5F9E7E;
}
.footer-col h3::before {
    content: '✿ ';
    color: #5F9E7E;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 4px 0; font-size: 0.92rem; }
.footer-col a { color: #d4dcd4; }
.footer-col a:hover { color: #C8663C; }
.footer-col p { font-size: 0.92rem; color: #d4dcd4; }
.footer-col .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}
.footer-col .widget-title {
    font-family: 'Merriweather', serif;
    font-size: 1.05rem;
    color: #C8663C;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #5F9E7E;
}

.site-bottom {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid #3e5040;
    text-align: center;
    font-size: 0.88rem;
    color: #a0b0a2;
}

/* ================== COOKIE-БАННЕР ================== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: #2A3B2C;
    color: #FEF9EF;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    z-index: 9000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 0.92rem;
    max-width: 760px;
    margin: 0 auto;
}
.cookie-banner p { margin: 0; flex: 1 1 240px; }
.cookie-banner a { color: #C8663C; text-decoration: underline; }
.cookie-banner button {
    background: #C8663C;
    color: #FEF9EF;
    border: none;
    padding: 9px 22px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
}
.cookie-banner button:hover { background: #a64f2c; }

/* ================== КНОПКА «НАВЕРХ» (пестик) ================== */
.scroll-up[hidden] { display: none !important; }
.scroll-up {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    background: #417B5A;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(42, 59, 44, 0.25);
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FEF9EF;
    transition: all 0.2s ease;
}
.scroll-up:hover { background: #2C5E43; transform: translateY(-2px); }
.scroll-up svg { width: 22px; height: 22px; }

/* ================== ПРОЧЕЕ ================== */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    width: 1px;
    overflow: hidden;
}
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin: 1em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: #5a6b5c; text-align: center; }
.sticky { }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery-item { margin: 0; }
