/*
Theme Name: monsieuretmadamegraines.com
Author: Герасимова Юлия
Description: PollenKeeper — экологичная просветительская тема о роли пчёл в экосистеме. Природная палитра, мягкие сотовые формы и тёплая типографика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: pollenkeeper
*/

/* ==========================================================================
   Палитра и переменные PollenKeeper
   ========================================================================== */
:root {
    --honey-bg: #FCF7E6;
    --cream-bg: #FFF9EF;
    --earth-text: #2E241F;
    --soft-text: #5C4E3D;
    --pollen: #E88C2A;
    --nectar: #FFC857;
    --absinthe: #D8E2C5;
    --mint-link: #3C8C6E;
    --ochre-hover: #D99B3A;
    --wax: #EAD9B4;
    --wax-soft: rgba(234, 217, 180, 0.4);
    --gradient-honey: linear-gradient(135deg, #F4B93C 0%, #E07A1F 100%);
    --gradient-honey-rev: linear-gradient(135deg, #E07A1F 0%, #F4B93C 100%);
    --shadow-soft: 0 4px 18px rgba(46, 36, 31, 0.08);
    --shadow-deep: 0 10px 30px rgba(46, 36, 31, 0.14);
    --radius-button: 18px;
    --radius-input: 8px;
    --radius-card: 14px;
    --container-max: 1180px;
}

/* ==========================================================================
   Базовый сброс и глобальные стили
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    margin: 0;
    background-color: var(--honey-bg);
    color: var(--earth-text);
    font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
    font-feature-settings: "kern" 1, "liga" 1;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Подсветка изображений как солнечный свет через крыло пчелы */
figure img,
.post-thumbnail img,
.entry-content img {
    transition: filter 0.4s ease, transform 0.4s ease;
    border-radius: 10px;
}
figure img:hover,
.entry-content img:hover {
    filter: brightness(1.04) drop-shadow(0 0 14px rgba(255, 200, 87, 0.25));
}

a {
    color: var(--mint-link);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover,
a:focus {
    color: var(--ochre-hover);
}

p {
    margin: 0 0 1em;
    /* без background-color — фон даёт только body или конкретный блок */
}

/* ==========================================================================
   Типографика
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--earth-text);
    line-height: 1.25;
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.4rem; font-weight: 700; position: relative; }
h2 { font-size: 1.85rem; font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

/* Декоративные точки рядом с H1 */
.entry-title.is-h1::after,
h1.page-title::after {
    content: "· · ·";
    display: block;
    color: var(--pollen);
    font-size: 0.7em;
    letter-spacing: 0.4em;
    margin-top: 0.2em;
}

/* Маркированные списки — шестиугольники */
ul {
    padding-left: 1.4em;
    list-style: none;
}
ul li {
    position: relative;
    margin: 0.3em 0;
}
ul li::before {
    content: "";
    position: absolute;
    left: -1.2em;
    top: 0.55em;
    width: 9px;
    height: 10px;
    background: var(--pollen);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

ol {
    padding-left: 1.4em;
}

blockquote {
    margin: 1.5em 0;
    padding: 1.2em 1.4em 1.2em 1.6em;
    background: rgba(216, 226, 197, 0.55);
    border-left: 5px solid var(--pollen);
    border-radius: 6px;
    font-style: italic;
    color: var(--soft-text);
    position: relative;
}
blockquote p:last-child {
    margin-bottom: 0;
}

code, pre {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    background: rgba(234, 217, 180, 0.5);
    border-radius: 4px;
    padding: 0.1em 0.35em;
    font-size: 0.92em;
}
pre {
    padding: 1em;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--wax);
    margin: 1.2em 0;
    background: var(--cream-bg);
}
th, td {
    border: 1px solid var(--wax);
    padding: 0.7em 0.9em;
    text-align: left;
}
th {
    background: rgba(255, 200, 87, 0.18);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

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

/* ==========================================================================
   Контейнер и общая раскладка
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

.layout-wrap {
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 1fr);
}
.layout-wrap.has-sidebar {
    grid-template-columns: 67% 27%;
    justify-content: space-between;
    gap: 6%;
}
.layout-wrap.no-sidebar .content-area {
    width: 85%;
    margin: 0 auto;
}
.layout-wrap.full-width .content-area {
    width: 100%;
}

@media (max-width: 960px) {
    .layout-wrap.has-sidebar {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .layout-wrap.no-sidebar .content-area {
        width: 100%;
    }
}

/* ==========================================================================
   Шапка
   ========================================================================== */
.site-header {
    background: var(--cream-bg);
    border-bottom: 1px solid var(--wax);
    padding: 18px 0;
    position: relative;
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 3px;
    background: var(--gradient-honey);
    opacity: 0.55;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--earth-text);
}
.brand-logo {
    width: 56px;
    height: 56px;
    display: block;
    border-radius: 12px;
}
.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.brand-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--earth-text);
    line-height: 1.2;
}
.brand-tag {
    font-size: 0.85rem;
    color: var(--soft-text);
    line-height: 1.3;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}
.primary-nav li::before {
    display: none;
}
.primary-nav li {
    margin: 0;
}
.primary-nav a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--earth-text);
    padding: 6px 2px;
    position: relative;
}
.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--gradient-honey);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after {
    transform: scaleX(1);
}

/* Гамбургер с каплями нектара */
.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
}
.menu-toggle .bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}
.menu-toggle .bars span {
    display: block;
    height: 3px;
    background: var(--earth-text);
    border-radius: 4px;
    transition: 0.3s ease;
    position: relative;
}
.menu-toggle .bars span:nth-child(1) { width: 26px; }
.menu-toggle .bars span:nth-child(2) { width: 20px; }
.menu-toggle .bars span:nth-child(3) { width: 24px; }
.menu-toggle .bars span::after {
    content: "";
    position: absolute;
    right: -2px; top: -2px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--pollen);
}

@media (max-width: 960px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .primary-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--cream-bg);
        border-bottom: 1px solid var(--wax);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        z-index: 50;
    }
    .primary-nav.is-open {
        max-height: 500px;
    }
    .primary-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 18px;
    }
    .primary-nav li {
        border-bottom: 1px solid var(--wax-soft);
    }
    .primary-nav a {
        display: block;
        padding: 14px 0;
    }
}

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn,
.button,
button.btn,
input[type="submit"].btn,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #FFF9EF;
    background: var(--gradient-honey);
    border: 0;
    padding: 14px 28px;
    border-radius: var(--radius-button);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(232, 140, 42, 0.22);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    line-height: 1;
}
.btn:hover,
.button:hover,
input[type="submit"].btn:hover,
.wp-block-button__link:hover {
    background: var(--gradient-honey-rev);
    color: #FFF9EF;
    box-shadow: 0 6px 22px rgba(232, 140, 42, 0.36),
                0 1px 0 rgba(255, 200, 87, 0.5);
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
}

/* Кнопки «Читать далее» — обводка и заполнение */
.btn-outline {
    display: inline-block;
    position: relative;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--pollen);
    background: transparent;
    border: 2px solid var(--pollen);
    padding: 10px 22px;
    border-radius: var(--radius-button);
    text-decoration: none;
    overflow: hidden;
    transition: color 0.35s ease;
    z-index: 0;
}
.btn-outline::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: var(--gradient-honey);
    transition: width 0.4s ease;
    z-index: -1;
}
.btn-outline:hover {
    color: #FFF9EF;
}
.btn-outline:hover::before {
    width: 100%;
}

/* ==========================================================================
   Поля ввода
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1rem;
    color: var(--earth-text);
    background: var(--cream-bg);
    border: 1px solid var(--wax);
    border-bottom: 2px solid var(--wax);
    border-radius: var(--radius-input);
    padding: 11px 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--pollen);
    box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.28);
}

label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--soft-text);
}

/* ==========================================================================
   Карточки записей (правила A8, A10)
   ========================================================================== */
.posts-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--cream-bg);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--wax-soft);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-deep);
}

.card-thumb-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--wax-soft);
}
.card-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}
.card-thumb,
.card-thumb-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-thumb,
.card:hover .card-thumb-link img {
    transform: scale(1.04);
}
.card-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 200, 87, 0.25), rgba(232, 140, 42, 0.15));
    color: var(--pollen);
}
.card-thumb-placeholder svg {
    width: 60%;
    height: auto;
    max-width: 120px;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 24px;
    gap: 10px;
}

.card-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--soft-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.card-meta a {
    color: var(--soft-text);
}
.card-meta a:hover { color: var(--pollen); }

.card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}
.card-title a {
    color: var(--earth-text);
}
.card-title a:hover {
    color: var(--pollen);
}

.card-excerpt {
    color: var(--soft-text);
    font-size: 0.97rem;
    line-height: 1.55;
    margin: 0;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-excerpt p:last-child { margin-bottom: 0; }

.card-footer {
    margin-top: auto;
    padding-top: 14px;
}

/* Горизонтальная карточка — паттерн A10 (position: absolute на <a>) */
.card-row {
    flex-direction: row;
}
.card-row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: var(--wax-soft);
}
.card-row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 600px) {
    .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;
    }
}

/* ==========================================================================
   Главная страница — тематические блоки
   ========================================================================== */
.front-section {
    padding: 56px 0;
}
.front-section + .front-section {
    border-top: 1px solid var(--wax-soft);
}

.front-section.alt {
    background: var(--cream-bg);
}

.section-head {
    text-align: center;
    margin-bottom: 36px;
}
.section-head h2 {
    margin-bottom: 10px;
}
.section-head .lead {
    max-width: 720px;
    margin: 0 auto;
    color: var(--soft-text);
    font-size: 1.07rem;
}

/* Hero */
.hero {
    padding: 64px 0 56px;
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 200, 87, 0.35), transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(216, 226, 197, 0.55), transparent 55%),
        var(--honey-bg);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 70' opacity='0.07'><polygon points='30,2 56,17 56,53 30,68 4,53 4,17' fill='none' stroke='%23E88C2A' stroke-width='1'/></svg>");
    background-size: 60px 70px;
    opacity: 0.6;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}
.hero-text h1 {
    font-size: 2.6rem;
    margin-bottom: 18px;
}
.hero-text p {
    font-size: 1.12rem;
    color: var(--soft-text);
    margin-bottom: 22px;
    max-width: 560px;
}
.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-art {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-art svg {
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(0 12px 24px rgba(232, 140, 42, 0.18));
}
@media (max-width: 800px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
}

/* Блок ролей пчёл / факт-сетка */
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.role-card {
    background: var(--cream-bg);
    border-radius: var(--radius-card);
    padding: 28px 24px;
    border: 1px solid var(--wax-soft);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}
.role-card::before {
    content: "";
    position: absolute;
    top: -30px; right: -30px;
    width: 80px; height: 90px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 70'><polygon points='30,2 56,17 56,53 30,68 4,53 4,17' fill='%23FFC857' opacity='0.18'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}
.role-card .role-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-honey);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF9EF;
    margin-bottom: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
}
.role-card h3 {
    font-size: 1.18rem;
    margin-bottom: 8px;
}
.role-card p {
    color: var(--soft-text);
    font-size: 0.97rem;
    margin: 0;
}

/* Слайдер фактов */
.fact-slider {
    position: relative;
    background: var(--cream-bg);
    border-radius: var(--radius-card);
    padding: 36px 28px 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--wax-soft);
    overflow: hidden;
}
.fact-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 70'><polygon points='30,2 56,17 56,53 30,68 4,53 4,17' fill='none' stroke='%23E88C2A' stroke-width='1' opacity='0.08'/></svg>");
    background-size: 60px 70px;
    pointer-events: none;
}
.fact-track {
    position: relative;
    min-height: 140px;
}
.fact-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fact-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: auto;
}
.fact-bee {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pollen);
}
.fact-slide h3 {
    font-size: 1.45rem;
    margin: 0;
}
.fact-slide p {
    color: var(--soft-text);
    margin: 0;
    font-size: 1.02rem;
}
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    position: relative;
}
.slider-controls button {
    width: 38px; height: 38px;
    border: 1px solid var(--wax);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: var(--earth-text);
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.2s ease;
}
.slider-controls button:hover {
    border-color: var(--pollen);
    color: var(--pollen);
}
.slider-dots {
    display: flex;
    gap: 7px;
}
.slider-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--wax);
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}
.slider-dot.is-active {
    background: var(--pollen);
    transform: scale(1.25);
}

/* Action steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}
.step-item {
    background: rgba(216, 226, 197, 0.35);
    border-radius: var(--radius-card);
    padding: 26px 22px;
    border-left: 4px solid var(--mint-link);
}
.step-item .step-num {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--pollen);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.step-item h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}
.step-item p {
    color: var(--soft-text);
    margin: 0;
    font-size: 0.96rem;
}

/* Календарь экологических дат */
.eco-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}
.eco-item {
    background: var(--cream-bg);
    border-radius: var(--radius-card);
    padding: 18px 20px;
    border: 1px solid var(--wax-soft);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.eco-date {
    flex: 0 0 56px;
    text-align: center;
    background: var(--gradient-honey);
    color: #FFF9EF;
    border-radius: 10px;
    padding: 8px 4px;
    font-family: 'Inter', sans-serif;
}
.eco-date .day {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}
.eco-date .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}
.eco-info h4 {
    font-size: 1rem;
    margin: 0 0 4px;
}
.eco-info p {
    margin: 0;
    color: var(--soft-text);
    font-size: 0.9rem;
    line-height: 1.45;
}

/* ==========================================================================
   Сайдбар
   ========================================================================== */
.site-sidebar {
    position: relative;
}
.widget {
    background: var(--cream-bg);
    border-radius: var(--radius-card);
    padding: 24px 22px;
    margin-bottom: 26px;
    border: 1px solid var(--wax-soft);
    position: relative;
    overflow: hidden;
}
.widget::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 70'><polygon points='30,2 56,17 56,53 30,68 4,53 4,17' fill='none' stroke='%23E88C2A' stroke-width='0.7' opacity='0.07'/></svg>");
    background-size: 60px 70px;
    pointer-events: none;
}
.widget-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--earth-text);
    position: relative;
}
.widget-title::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    background: var(--gradient-honey);
    margin-top: 8px;
    border-radius: 2px;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.widget ul li {
    margin: 0;
    padding: 8px 0 8px 18px;
    border-bottom: 1px solid var(--wax-soft);
    font-size: 0.97rem;
}
.widget ul li:last-child {
    border-bottom: 0;
}
.widget ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 9px;
    height: 10px;
    background: var(--pollen);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.widget a {
    color: var(--earth-text);
}
.widget a:hover {
    color: var(--pollen);
}

/* ==========================================================================
   Подвал
   ========================================================================== */
.site-footer {
    background: #2A1F18;
    color: #E0D2BD;
    padding: 56px 0 24px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 70'><polygon points='30,2 56,17 56,53 30,68 4,53 4,17' fill='none' stroke='%23FFC857' stroke-width='1' opacity='0.07'/></svg>");
    background-size: 60px 70px;
    pointer-events: none;
}
.footer-cells {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    position: relative;
}
.footer-cell {
    position: relative;
    padding: 24px 20px;
    background: rgba(255, 249, 239, 0.03);
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 249, 239, 0.08);
}
.footer-cell .widget {
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 0;
}
.footer-cell .widget::before { display: none; }
.footer-cell .widget-title {
    color: #FFE9B8;
}
.footer-cell .widget-title::after {
    background: var(--nectar);
}
.footer-cell a {
    color: #E8D7B5;
}
.footer-cell a:hover {
    color: var(--nectar);
}
.footer-cell .widget ul li {
    border-color: rgba(255, 249, 239, 0.08);
}
.footer-cell .widget ul li::before {
    background: var(--nectar);
}
.site-footer p {
    background: none;
    color: #E0D2BD;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 249, 239, 0.1);
    margin-top: 36px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.92rem;
    color: #C7B89F;
    position: relative;
}
@media (max-width: 800px) {
    .footer-cells {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* ==========================================================================
   Запись и страница
   ========================================================================== */
.entry {
    background: var(--cream-bg);
    border-radius: var(--radius-card);
    padding: 32px 36px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--wax-soft);
}
.entry-header {
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--wax-soft);
}
.entry-meta {
    font-family: 'Inter', sans-serif;
    color: var(--soft-text);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.entry-meta a {
    color: var(--soft-text);
}
.entry-meta a:hover {
    color: var(--pollen);
}
.entry-thumbnail {
    margin: 0 0 24px;
    border-radius: var(--radius-card);
    overflow: hidden;
}
.entry-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}
.entry-content > *:first-child {
    margin-top: 0;
}
.entry-content > *:last-child {
    margin-bottom: 0;
}
.entry-content h2,
.entry-content h3 {
    margin-top: 1.4em;
}
.entry-tags {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--wax-soft);
    font-size: 0.92rem;
    color: var(--soft-text);
}
.entry-tags a {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 4px 12px;
    background: rgba(255, 200, 87, 0.18);
    color: var(--earth-text);
    border-radius: 12px;
    font-size: 0.85rem;
}
.entry-tags a:hover {
    background: var(--pollen);
    color: #FFF9EF;
}

@media (max-width: 600px) {
    .entry {
        padding: 22px 18px;
    }
}

/* ==========================================================================
   Хлебные крошки
   ========================================================================== */
.breadcrumbs {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--soft-text);
    margin-bottom: 24px;
    padding: 10px 0;
}
.breadcrumbs a {
    color: var(--soft-text);
}
.breadcrumbs a:hover {
    color: var(--pollen);
}
.breadcrumb-sep {
    margin: 0 8px;
    color: var(--wax);
}

/* ==========================================================================
   Пагинация
   ========================================================================== */
.pagination {
    margin: 36px 0 0;
    text-align: center;
}
.pagination ul.page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.pagination li {
    margin: 0;
    padding: 0;
}
.pagination li::before {
    display: none;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--wax);
    border-radius: 10px;
    color: var(--earth-text);
    background: var(--cream-bg);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pagination .page-numbers:hover {
    border-color: var(--pollen);
    color: var(--pollen);
}
.pagination .page-numbers.current {
    background: var(--gradient-honey);
    color: #FFF9EF;
    border-color: transparent;
}

/* ==========================================================================
   Форма поиска
   ========================================================================== */
.search-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
    max-width: 500px;
}
.search-form input[type="search"] {
    flex: 1;
    margin: 0;
}
.search-form .search-submit {
    padding: 0 20px;
    white-space: nowrap;
}

.widget .search-form {
    max-width: 100%;
}

/* ==========================================================================
   Комментарии
   ========================================================================== */
.comments-area {
    margin-top: 40px;
    padding: 28px 30px;
    background: var(--cream-bg);
    border-radius: var(--radius-card);
    border: 1px solid var(--wax-soft);
}
.comments-title {
    font-size: 1.4rem;
    margin: 0 0 20px;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.comment-list li,
.comment-list .comment {
    margin: 0 0 18px;
    padding: 0;
}
.comment-list li::before {
    display: none;
}
.comment-body {
    background: var(--honey-bg);
    border-radius: 10px;
    padding: 18px 20px;
    border: 1px solid var(--wax-soft);
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.comment-meta img {
    border-radius: 50%;
}
.comment-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.comment-author {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    color: var(--earth-text);
}
.comment-date {
    font-size: 0.82rem;
    color: var(--soft-text);
}
.comment-content {
    color: var(--earth-text);
}
.comment-content p {
    background: none;
}
.comment-reply {
    margin-top: 8px;
}
.comment-reply a {
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    color: var(--mint-link);
}
.children {
    list-style: none;
    padding-left: 28px;
    margin-top: 16px;
}

.comment-form .comment-form-comment textarea {
    margin-top: 6px;
}
.comment-form p {
    margin-bottom: 14px;
}
.comment-form .form-submit {
    margin-bottom: 0;
}
.no-comments {
    color: var(--soft-text);
}

/* ==========================================================================
   404
   ========================================================================== */
.error-404 {
    text-align: center;
    padding: 40px 20px 50px;
}
.error-404 .big-num {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 6rem;
    line-height: 1;
    background: var(--gradient-honey);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 12px;
}
.error-404 h1 {
    margin-bottom: 12px;
}
.error-404 p {
    color: var(--soft-text);
    max-width: 520px;
    margin: 0 auto 20px;
}
.error-404 .search-form {
    margin: 24px auto;
}
.error-404 .home-link {
    display: inline-block;
    margin-top: 8px;
}

/* ==========================================================================
   Cookie-баннер (правило A11 — это правило перед блоком стилей)
   ========================================================================== */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: #2A1F18;
    color: #FFF9EF;
    padding: 18px 22px;
    border-radius: var(--radius-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    z-index: 999;
    border: 1px solid rgba(255, 200, 87, 0.25);
}
.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 240px;
    font-size: 0.96rem;
    color: #FFF9EF;
    line-height: 1.5;
    background: none;
}
.cookie-banner .cookie-accept {
    padding: 11px 22px;
    font-size: 0.93rem;
}
@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
}

/* ==========================================================================
   Утилиты
   ========================================================================== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.alignwide { max-width: 1100px; }
.alignfull { max-width: none; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption {
    max-width: 100%;
}
.wp-caption-text {
    font-size: 0.88rem;
    color: var(--soft-text);
    text-align: center;
    margin-top: 6px;
}

@media (max-width: 600px) {
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.5rem; }
    .hero { padding: 36px 0 32px; }
    .front-section { padding: 38px 0; }
    .entry { padding: 22px 18px; }
    .alignleft, .alignright { float: none; margin: 0 0 1em; }
}
