/* ==========================================================================
   ШРИФТЫ: Manrope (заголовки) + Golos Text (текст), локальные файлы из
   /wp-content/uploads/fonts/ — без обращения к Google Fonts.
   ========================================================================== */

/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/golostext-v7-q5uCsoe9Lv5t7Meb31EcEx58hLxR.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/golostext-v7-q5uCsoe9Lv5t7Meb31EcExd8hLxR.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/golostext-v7-q5uCsoe9Lv5t7Meb31EcEx18hLxR.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/golostext-v7-q5uCsoe9Lv5t7Meb31EcExN8hA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/golostext-v7-q5uCsoe9Lv5t7Meb31EcEx58hLxR.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/golostext-v7-q5uCsoe9Lv5t7Meb31EcExd8hLxR.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/golostext-v7-q5uCsoe9Lv5t7Meb31EcEx18hLxR.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/golostext-v7-q5uCsoe9Lv5t7Meb31EcExN8hA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/golostext-v7-q5uCsoe9Lv5t7Meb31EcEx58hLxR.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/golostext-v7-q5uCsoe9Lv5t7Meb31EcExd8hLxR.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/golostext-v7-q5uCsoe9Lv5t7Meb31EcEx18hLxR.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/golostext-v7-q5uCsoe9Lv5t7Meb31EcExN8hA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggqxSuXd.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggOxSuXd.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggSxSuXd.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggixSuXd.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggmxSuXd.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggqxSuXd.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggOxSuXd.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggSxSuXd.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggixSuXd.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggmxSuXd.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggqxSuXd.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggOxSuXd.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggSxSuXd.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggixSuXd.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggmxSuXd.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggqxSuXd.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggOxSuXd.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggSxSuXd.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggixSuXd.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggmxSuXd.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/wp-content/uploads/fonts/manrope-v23-xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ==========================================================================
   МЯГКАЯ ПАЛИТРА: тёмно-лесной заменён на травяной, подложки светлее.
   Старые значения: #2f6f4e → #3f8f66, #24573d → #33765a, #1f2d26 → #27352e.
   ========================================================================== */

:root {
    --bf-font-body: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --bf-font-head: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

body, .ct-body, p, li, td, th, label, input, textarea, select, button,
.bf-header, .bf-header a, .bf-cross__name, .woocommerce-loop-product__title,
.price, .amount, .bf-guest__item, .bf-tiles__name {
    font-family: var(--bf-font-body) !important;
}

h1, h2, h3, h4, h5, h6,
.bf-cross__title, .bf-section__title, .bf-hero__title, .bfb-slide__title,
.bf-header .bf-mega__title, .bf-plate__name {
    font-family: var(--bf-font-head) !important;
    letter-spacing: -0.012em;
}

/* BeautyFlora — палитра и базовые правки оформления.
   Палитра Blocksy переопределяется переменными --theme-palette-color-1..8:
   так цвета применяются ко всем компонентам темы (кнопки, ссылки, шапка,
   карточки товаров), а не только к тем местам, где я прописал их вручную. */

:root {
    /* Зелёная шкала: от тёмного хвои до почти белого */
    --theme-palette-color-1: #3f8f66; /* основной зелёный — кнопки, ссылки */
    --theme-palette-color-2: #33765a; /* hover и тёмные акценты */
    --theme-palette-color-3: #3d8a62; /* заголовки второго уровня */
    --theme-palette-color-4: #57a77a; /* иконки, бейджи */
    --theme-palette-color-5: #bfe6cf; /* разделители, рамки */
    --theme-palette-color-6: #e2f4e9; /* подложки блоков */
    --theme-palette-color-7: #f6fcf9; /* фон страницы */
    --theme-palette-color-8: #ffffff;

    /* Текст: тёмно-зелёный вместо чистого чёрного — мягче для глаз */
    --theme-text-color: #27352e;
    --theme-link-initial-color: var(--theme-palette-color-1);
    --theme-link-hover-color: var(--theme-palette-color-2);
    --theme-border-color: #dcebe2;

    /* Кнопки */
    --theme-button-background-initial-color: var(--theme-palette-color-1);
    --theme-button-background-hover-color: var(--theme-palette-color-2);
    --theme-button-text-initial-color: #ffffff;
    --theme-button-text-hover-color: #ffffff;
}

/* Шапка: лёгкая зелёная подложка вместо белой, чтобы логотип не «висел» */
.site-header {
    background-color: var(--theme-palette-color-7);
    border-bottom: 1px solid var(--theme-border-color);
}

/* Плитки категорий: в старом магазине картинки категорий — баннеры 239×120, они мылили
   и «резались». Теперь на плитке фото реального товара категории, поэтому возвращаем
   единую пропорцию 4:3 с аккуратным кадрированием — сетка ровная, плитки одной высоты. */
.woocommerce ul.products li.product-category .ct-media-container,
.woocommerce ul.products li.product-category img.attachment-woocommerce_archive_thumbnail {
    aspect-ratio: 4 / 3 !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center;
}

.woocommerce ul.products li.product-category .ct-media-container {
    background: var(--theme-palette-color-7);
    overflow: hidden;
}

.woocommerce ul.products li.product-category .ct-media-container img {
    display: block;
}

/* Названия сортов длинные («Фиалка ЛЕ-Эсмеральда») — не даём ломать сетку */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    overflow-wrap: anywhere;
}

/* Цена и кнопка «в корзину» не должны слипаться в карточке */
.woocommerce ul.products li.product .price {
    margin-bottom: 0.75rem;
    color: var(--theme-palette-color-2);
    font-weight: 600;
}

/* Бейдж «Нет в наличии» на зелёной карточке читается лучше тёмным */
.woocommerce ul.products li.product .out-of-stock,
.woocommerce .product .out-of-stock {
    background-color: #6b7c72;
    color: #ffffff;
}

/* Подвал — тёмная зелёная подложка */
.ct-footer {
    background-color: var(--theme-palette-color-2);
    color: #eaf5ee;
}

.ct-footer a {
    color: #eaf5ee;
}

.ct-footer a:hover {
    color: #ffffff;
}

/* ---------- Просмотр фото товара на весь экран ---------- */

/* Гасим hover-зум темы: он «прокручивает» картинку под курсором и мешает смотреть. */
.woocommerce-product-gallery .zoomImg,
.woocommerce-product-gallery .ct-zoom .zoomImg {
    display: none !important;
}

.woocommerce-product-gallery__image img {
    cursor: zoom-in;
}

/* Оверлей лайтбокса (разметку создаёт assets/js/lightbox.js) */
.bf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(24, 48, 34, 0.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.bf-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.bf-lightbox__img {
    /* снимок занимает всю рамку, поэтому клики отдаём рамке: иначе закрытие
       по клику вне фото не работает */
    pointer-events: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    will-change: transform, opacity;
    transform-origin: center center;
}

/* Кнопка закрытия проявляется чуть позже картинки — не отвлекает от «вылета» фото */
.bf-lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.2s ease 0.1s, transform 0.2s ease 0.1s, background 0.15s ease;
}

.bf-lightbox.is-open .bf-lightbox__close {
    opacity: 1;
    transform: scale(1);
}

.bf-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.26);
}

/* Уважаем системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
    .bf-lightbox,
    .bf-lightbox__img,
    .bf-lightbox__close {
        transition: opacity 0.01ms !important;
        transform: none !important;
    }
}

@media (max-width: 600px) {
    .bf-lightbox {
        padding: 8px;
    }
}

/* ==========================================================================
   Зелёная палитра поверх дефолтной синей Blocksy.

   Важно: Blocksy печатает свою палитру инлайновым <style> в <head>, и он
   подключается ПОСЛЕ этого файла — поэтому обычные объявления проигрывают
   и сайт остаётся синим (именно так он и выглядел «белым пустым»). В CSS
   объявление с !important перебивает инлайновый стиль без !important,
   так что здесь !important обязателен, а не «на всякий случай».
   ========================================================================== */

:root {
    --theme-palette-color-1: #3f8f66 !important;
    --theme-palette-color-2: #33765a !important;
    --theme-palette-color-3: #3d8a62 !important;
    --theme-palette-color-4: #57a77a !important;
    --theme-palette-color-5: #bfe6cf !important;
    --theme-palette-color-6: #e2f4e9 !important;
    --theme-palette-color-7: #f6fcf9 !important;
    --theme-palette-color-8: #ffffff !important;
    --theme-text-color: #27352e !important;
    --theme-link-initial-color: #3f8f66 !important;
    --theme-link-hover-color: #33765a !important;
    --theme-button-background-initial-color: #3f8f66 !important;
    --theme-button-background-hover-color: #33765a !important;
}

/* Шапка и подвал — в зелёной гамме, независимо от настроек темы */
.site-header,
.ct-header {
    background-color: #f6fcf9 !important;
    border-bottom: 1px solid #bfe6cf !important;
}

.ct-footer,
.site-footer {
    background-color: #33765a !important;
    color: #eaf6ee !important;
}

.ct-footer a,
.site-footer a {
    color: #e2f4e9 !important;
}

.ct-footer a:hover,
.site-footer a:hover {
    color: #ffffff !important;
}

/* Кнопки и акценты */
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
button.single_add_to_cart_button {
    background-color: #3f8f66 !important;
    border-color: #3f8f66 !important;
    color: #ffffff !important;
}

.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
button.single_add_to_cart_button:hover {
    background-color: #33765a !important;
    border-color: #33765a !important;
}

/* Заголовки — тёмно-зелёные, чтобы не выглядело «белым листом» */
h1, h2, h3, .entry-title, .woocommerce-loop-product__title {
    color: #27352e;
}

/* ---------- Мелкие правки по замечаниям ---------- */

/* Меню в шапке крупнее: на дефолтных 14px пункты читались как сноска */
.ct-header [data-id="menu"] > ul > li > a,
.ct-header .menu > li > a,
.ct-header nav a {
    font-size: 17px !important;
    font-weight: 500;
    letter-spacing: 0.1px;
}

/* Фото товара в галерее — альбомное и не на всю высоту экрана */
.product-gallery img,
.ct-gallery img,
.woocommerce-product-gallery img {
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    max-height: 460px;
    width: 100%;
    height: auto;
}

/* Карточки товаров: одинаковая пропорция, портретные фото не растягивают сетку */
ul.products li.product .ct-media-container img,
ul.products li.product img.wp-post-image {
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    height: auto !important;
}

/* ---------- Типографика статей блога ---------- */

/* Текст был мелким (15-16 px) — для длинных материалов это нечитаемо. */
.entry-content,
.ct-content,
.wp-block-post-content,
.single-post .entry-content {
    font-size: 18px !important;
    line-height: 1.75 !important;
    color: var(--theme-text-color, #27352e);
}

/* Выключка по ширине + переносы: длинные русские слова иначе рвут строку. */
.entry-content p,
.entry-content li,
.entry-content blockquote {
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
    word-break: normal;
    margin-bottom: 1.1em;
}

.entry-content h2 { font-size: 26px !important; line-height: 1.3; margin: 34px 0 14px; }
.entry-content h3 { font-size: 21px !important; line-height: 1.35; margin: 26px 0 12px; }
.entry-content ul, .entry-content ol { margin: 0 0 1.1em 1.4em; }
.entry-content li { margin-bottom: .5em; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Обтекание картинок текстом ---------- */

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

.entry-content img.alignleft,
.entry-content .wp-block-image.alignleft,
.entry-content .wp-block-image.alignleft img,
.entry-content figure.alignleft {
    float: left;
    margin: 4px 22px 14px 0;
    max-width: 46%;
}

.entry-content img.alignright,
.entry-content .wp-block-image.alignright,
.entry-content .wp-block-image.alignright img,
.entry-content figure.alignright {
    float: right;
    margin: 4px 0 14px 22px;
    max-width: 46%;
}

.entry-content img.aligncenter,
.entry-content .wp-block-image.aligncenter {
    float: none;
    display: block;
    margin: 20px auto;
}

.entry-content .wp-block-image,
.entry-content figure {
    max-width: 100%;
}

/* Сброс обтекания после блоков, чтобы подпись и следующий абзац не «залезали» */
.entry-content h2, .entry-content h3,
.entry-content .bf-cross, .entry-content .bf-tiles,
.entry-content .wp-block-image.aligncenter,
.entry-content .wp-block-image.alignwide,
.entry-content .wp-block-image.alignfull {
    clear: both;
}

@media (max-width: 600px) {
    .entry-content { font-size: 17px !important; }
    .entry-content img.alignleft,
    .entry-content img.alignright,
    .entry-content .wp-block-image.alignleft,
    .entry-content .wp-block-image.alignright {
        float: none;
        max-width: 100%;
        margin: 16px 0;
    }
}

/* ---------- Картинки в статьях: без ступенек и разъездов ---------- */

/* Одиночная картинка без выравнивания больше не обтекается текстом —
   именно из-за этого заголовок «разрывался» на две части. */
.entry-content img.alignnone,
.entry-content img:not([class*="align"]),
.entry-content p > img:only-child {
    display: block;
    float: none;
    margin: 22px auto;
    max-width: 100%;
}

/* Группы фотографий собираются в сетку (обёртку делает mu-plugin bf-content.php) */
.bf-img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 24px 0;
    clear: both;
}

@media (max-width: 600px) {
    .bf-img-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ---------- Картинка внутри заголовка (наследие старого блога) ---------- */

/* В статьях старого сайта картинка вставлена прямо в <h2>, и заголовок
   обтекал её — из-за этого текст «ступенькой» и разъезжались строки.
   Делаем такую картинку отдельным блоком над заголовком. */
.entry-content h1 img,
.entry-content h2 img,
.entry-content h3 img {
    display: block;
    float: none;
    margin: 0 auto 14px;
    max-width: 260px;
    height: auto;
    border-radius: 8px;
}

.entry-content h1, .entry-content h2, .entry-content h3 { overflow: visible; }

/* Группы картинок в тексте: каждая — блок, без «рваного» ряда */
.entry-content > a > img.alignnone,
.entry-content > a > img:not([class*="align"]),
.entry-content > img.alignnone {
    display: block;
    float: none;
    margin: 18px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Ссылка-обёртка не должна ломать блочность картинки */
.entry-content > a:has(> img) { display: block; }

/* ==========================================================================
   Фотографии в тексте статьи — единый порядок (перекрывает всё выше).

   В статьях старого блога у картинок стоят классы alignleft / alignright —
   наследие вставки через редактор. Они плавают вперемешку: одна вправо, вторая
   влево, третья без класса. В результате текст зажат между ними, а сами фото
   стоят «лесенкой» и вылезают за колонку.

   Поэтому внутри статьи картинки больше не плавают: каждая — блок по центру
   колонки, одинаковые отступы, скругление. Так ряд фотографий выглядит ровно
   при любой разметке, которую принёс старый сайт.
   ========================================================================== */

.entry-content img,
.entry-content figure img,
.entry-content .wp-block-image img {
    display: block !important;
    float: none !important;
    margin: 22px auto !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}

/* Обёртка-ссылка вокруг фото тоже не должна быть инлайновой */
.entry-content > a:has(> img),
.entry-content p > a:has(> img) {
    display: block;
    margin: 0;
}

/* Внутри заголовка фото остаётся компактным блоком над текстом заголовка */
.entry-content h1 img,
.entry-content h2 img,
.entry-content h3 img {
    max-width: 260px !important;
    margin: 0 auto 14px !important;
}

/* Отдельная картинка внутри абзаца не должна рвать строку посередине */
.entry-content p > img {
    margin: 18px auto !important;
}

.entry-content figure,
.entry-content .wp-block-image {
    margin: 22px 0 !important;
    max-width: 100%;
}

/* ==========================================================================
   Блоки «Статьи по теме» / «Товары по теме» / разделы — в сетке страницы.

   Наблюдение по факту: блок выводится в области без ограничения ширины,
   поэтому прижимался к левому краю окна, а карточки шли узкой колонкой
   (grid auto-fill создавал пустые колонки справа). Лечим тремя правилами:
   ограничиваем ширину по контейнеру темы, центрируем и заставляем карточки
   растягиваться (auto-fit вместо auto-fill).
   ========================================================================== */

.bf-cross,
.bf-tiles {
    box-sizing: border-box;
    width: 100% !important;
    max-width: var(--theme-normal-container-max-width, 1200px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px;
    padding-right: 20px;
}

.bf-cross__grid,
.bf-tiles__grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 18px !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

/* Карточки тянются по ширине колонки, а не висят фиксированными плашками */
.bf-cross__card,
.bf-tile {
    width: 100% !important;
    min-width: 0;
}

@media (max-width: 600px) {
    .bf-cross,
    .bf-tiles { padding-left: 14px; padding-right: 14px; }
    .bf-cross__grid,
    .bf-tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
}

/* Точная привязка к сетке темы (замерено headless-браузером):
   .ct-container = left 70 / width 1260, «Похожие» — те же 70/1260,
   а блок был left 55 / width 1290 из-за max-width больше контейнера.
   Берём переменные темы, а не свои значения. */
.bf-cross,
.bf-tiles {
    width: min(var(--theme-container-width, 90vw), 100%) !important;
    max-width: var(--theme-normal-container-max-width, 1290px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* На /blog/ лента постов — grid из трёх колонок по 400px. Блок разделов,
   выведенный перед циклом, попадал в эту сетку одной ячейкой и сжимался до 400px.
   Растягиваем его на все колонки. */
.bf-tiles {
    grid-column: 1 / -1 !important;
}

/* Разделы блога: 12 плиток ровно в 3 ряда по 4 (при 5 колонках последняя
   строка оставалась с двумя плитками и пустотой справа). */
.bf-tiles__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 16px !important;
}

/* Читаемость поверх фотографий: плотнее затемнение и тень у текста */
.bf-tile {
    background-blend-mode: multiply;
}
.bf-tile__name {
    font-size: 18px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .65) !important;
}
.bf-tile__count {
    font-size: 13.5px !important;
    color: #f2fbf6 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.bf-tile__link {
    font-size: 13px !important;
    color: #f4fcf8 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

/* Миниатюра над заголовком была 260px — выглядела как превью. */
.entry-content h1 img,
.entry-content h2 img,
.entry-content h3 img {
    max-width: 360px !important;
    box-shadow: 0 6px 18px rgba(28, 62, 42, .12);
}

/* ==========================================================================
   Обтекание текстом в статьях (по просьбе владельца).
   Картинки с классами alignleft / alignright из старого редактора снова
   плавают, но с ограничением 42% ширины и аккуратными отступами; картинки
   без выравнивания остаются блоком по центру.
   ========================================================================== */

.entry-content img.alignleft,
.entry-content .wp-block-image.alignleft img {
    display: block !important;
    float: left !important;
    margin: 6px 26px 18px 0 !important;
    max-width: 42% !important;
    height: auto !important;
    border-radius: 8px;
}

.entry-content img.alignright,
.entry-content .wp-block-image.alignright img {
    display: block !important;
    float: right !important;
    margin: 6px 0 18px 26px !important;
    max-width: 42% !important;
    height: auto !important;
    border-radius: 8px;
}

/* Без выравнивания — блок по центру, текст не обтекает */
.entry-content img.alignnone,
.entry-content img:not([class*="align"]) {
    float: none !important;
    margin: 22px auto !important;
}

/* Заголовки и служебные блоки не должны залезать под плавающие фото */
.entry-content h2,
.entry-content h3,
.entry-content .bf-cross,
.entry-content .bf-tiles,
.entry-content .bf-img-grid {
    clear: both;
}

/* Мобильный: обтекание отключаем, фото на всю ширину */
@media (max-width: 600px) {
    .entry-content img.alignleft,
    .entry-content img.alignright,
    .entry-content .wp-block-image.alignleft img,
    .entry-content .wp-block-image.alignright img {
        float: none !important;
        max-width: 100% !important;
        margin: 18px auto !important;
    }
}

/* Все фото в статье обтекаются текстом: с выравниванием — по своей стороне,
   без выравнивания — справа (так текст не « jumping» вокруг, а идёт ровной
   колонкой слева от фотографий). */
.entry-content img.alignnone,
.entry-content img:not([class*="align"]) {
    float: right !important;
    margin: 6px 0 18px 26px !important;
    max-width: 42% !important;
    height: auto !important;
}

/* Первая картинка-миниатюра (в заголовке) остаётся по центру над текстом */
.entry-content h1 img,
.entry-content h2 img,
.entry-content h3 img {
    float: none !important;
    margin: 0 auto 14px !important;
}

/* Обтекание без «узких колонок»: фото не шире 34% и каждое начинает новую
   строку (clear), поэтому текст идёт одной ровной колонкой рядом с одним фото,
   а не рвётся между двумя. */
.entry-content img.alignleft,
.entry-content img.alignright,
.entry-content img.alignnone,
.entry-content img:not([class*="align"]) {
    max-width: 34% !important;
    clear: both;
}

/* Лид-фото статьи — единственное с обтеканием (класс ставит bf-content.php).
   Остальные фото идут блоками на всю ширину: так текст читается ровно. */
.entry-content img.bf-lead {
    float: right !important;
    max-width: 38% !important;
    margin: 6px 0 20px 28px !important;
    clear: none !important;
}

.entry-content img:not(.bf-lead) {
    float: none !important;
    clear: none;
    max-width: 100% !important;
    margin: 22px auto !important;
}

/* ==========================================================================
   ОБТЕКАНИЕ ТЕКСТОМ — включено для всех фото статьи.

   Правила:
   - каждое фото плавает справа, ширина ≤ 33%, чтобы тексту оставалось ≥ 60%;
   - clear: both — фото встают по одному, текст не рвётся между двумя фото;
   - картинки внутри служебных блоков (карточки статей/товаров, сетки,
     разделы) не плавают никогда, иначе разваливаются сетки.
   ========================================================================== */

.entry-content img {
    float: right !important;
    clear: both !important;
    max-width: 33% !important;
    height: auto !important;
    margin: 4px 0 18px 26px !important;
    border-radius: 8px;
}

/* Первое фото — крупнее остальных */
.entry-content img.bf-lead,
.entry-content img:first-of-type {
    max-width: 40% !important;
}

/* Фото внутри служебных блоков — всегда блок, без плавания */
.bf-cross img,
.bf-tiles img,
.bf-img-grid img,
.woocommerce-Tabs-panel .bf-cross img {
    float: none !important;
    clear: none !important;
    max-width: 100% !important;
    margin: 0 !important;
    width: 100%;
}

/* Миниатюра внутри заголовка — над текстом, по центру */
.entry-content h1 img,
.entry-content h2 img,
.entry-content h3 img {
    float: none !important;
    clear: none !important;
    max-width: 260px !important;
    margin: 0 auto 14px !important;
}

/* Текст не залезает под плавающее фото на узких экранах */
@media (max-width: 700px) {
    .entry-content img {
        float: none !important;
        clear: none !important;
        max-width: 100% !important;
        margin: 18px auto !important;
    }
}

/* Перебиваем ранее заданные правила для классов выравнивания: специфичность
   .entry-content img.alignnone выше, чем .entry-content img, поэтому без этого
   блока плавают только картинки без класса. Теперь плавают все. */
.entry-content img.alignnone,
.entry-content img.alignleft,
.entry-content img.alignright,
.entry-content img.aligncenter,
.entry-content img:not([class*="align"]) {
    float: right !important;
    clear: both !important;
    max-width: 33% !important;
    height: auto !important;
    border-radius: 8px;
}

.entry-content img.alignnone,
.entry-content img:not([class*="align"]) {
    margin: 4px 0 18px 26px !important;
}

/* Миниатюра в заголовке остаётся по центру и не плавает */
.entry-content h1 img,
.entry-content h2 img,
.entry-content h3 img {
    float: none !important;
    clear: none !important;
    max-width: 260px !important;
    margin: 0 auto 14px !important;
}

/* Внутри служебных блоков — никогда */
.bf-cross img,
.bf-tiles img,
.bf-img-grid img {
    float: none !important;
    clear: none !important;
}

/* ==========================================================================
   Обтекание: bf-wrap плавает (текст обтекает), bf-block — на всю ширину.
   Классы ставит mu-plugin bf-content.php: в каждой группе подряд идущих
   фотографий плавает последняя, потому что текст начинается только после
   группы. Все фото плавать не могут — они встают стопкой и обтекать нечего.
   ========================================================================== */

.entry-content img.bf-wrap {
    float: right !important;
    clear: none !important;
    max-width: 36% !important;
    height: auto !important;
    margin: 4px 0 20px 28px !important;
    border-radius: 8px;
}

.entry-content img.bf-block {
    float: none !important;
    clear: both !important;
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 22px auto !important;
    border-radius: 8px;
}

/* Остальные правила «все плавают» отменяем — теперь решает класс */
.entry-content img:not(.bf-wrap) {
    float: none !important;
}

/* Служебные блоки и карточки — без плавания */
.bf-cross img,
.bf-tiles img,
.bf-img-grid img {
    float: none !important;
    clear: none !important;
    max-width: 100% !important;
}

@media (max-width: 700px) {
    .entry-content img.bf-wrap {
        float: none !important;
        max-width: 100% !important;
        margin: 18px auto !important;
    }
}

/* Плавающие фото не должны вставать по два в ряд: два фото по 36% оставляли
   тексту 28% ширины (1-3 слова в строке). clear:right ставит каждое фото в
   свою полосу, текст получает ~65%. */
body .entry-content img.bf-wrap {
    float: right !important;
    clear: right !important;
    max-width: 32% !important;
    margin: 4px 0 22px 30px !important;
}

/* Крупнее: фото обтекают, но занимают 45% ширины вместо 32% (~400px в колонке
   1260px). Источник при этом оригинальный, поэтому без мыла. */
body .entry-content img.bf-wrap {
    max-width: 45% !important;
    margin: 6px 0 24px 34px !important;
}

@media (max-width: 900px) {
    body .entry-content img.bf-wrap { max-width: 50% !important; }
}

/* Атрибуты width/height в старых статьях (300x225) не дают фото расти —
   задаём ширину явно: 42% колонки (~530px при контейнере 1260). */
body .entry-content img.bf-wrap {
    width: 42% !important;
    max-width: 42% !important;
    height: auto !important;
    margin: 6px 0 24px 34px !important;
}

@media (max-width: 900px) {
    body .entry-content img.bf-wrap {
        width: 50% !important;
        max-width: 50% !important;
        margin: 6px 0 20px 22px !important;
    }
}

@media (max-width: 700px) {
    body .entry-content img.bf-wrap {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 18px auto !important;
    }
}

/* Процент считался от узкого родителя (выходило 315px). Фиксируем размер
   относительно окна: 32vw, но не меньше 260 и не больше 520px. */
body .entry-content img.bf-wrap {
    width: clamp(260px, 32vw, 520px) !important;
    max-width: 45% !important;
    height: auto !important;
}

/* max-width в процентах упирался в узкого родителя (338px) — снимаем,
   оставляем только абсолютный предел. */
body .entry-content img.bf-wrap {
    max-width: 520px !important;
    width: clamp(280px, 34vw, 520px) !important;
}

/* Заголовки не должны попадать в обтекание: иначе h2 рвётся на 5 строк
   рядом с фото. Ставим принудительный clear. */
body .entry-content h1,
body .entry-content h2,
body .entry-content h3,
body .entry-content h4 {
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ширину заголовкам не навязываем — Blocksy сам держит их в колонке текста.
   Нужен был только clear, иначе h2 растягивался на всю страницу (1400px). */
body .entry-content h1,
body .entry-content h2,
body .entry-content h3,
body .entry-content h4 {
    width: auto !important;
    max-width: none !important;
}

/* Возвращаем заголовкам штатную ширину колонки Blocksy (мои width:auto её
   снимали, и h2 растягивался на 1400px вместо 1260). */
body .entry-content h1,
body .entry-content h2,
body .entry-content h3,
body .entry-content h4 {
    width: var(--theme-block-width, min(100%, 90vw)) !important;
    max-width: none !important;
    clear: both !important;
}

/* ==========================================================================
   Карточки «Ещё в разделе» / «Статьи по теме»: фото должно заполнять плашку.
   Проблема была в том, что правила для фото статьи (float, width, clamp)
   цепляли и картинки внутри карточек — они выходили мелкими в углу плашки.
   ========================================================================== */

body .bf-cross .bf-cross__media img,
body .bf-tiles .bf-tiles__cover img,
body .bf-img-grid img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: block !important;
}

/* Сетка карточек внутри статьи: 3 колонки вместо 5, чтобы не было
   одинокой карточки во втором ряду. */
body .entry-content .bf-cross__grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 20px !important;
}

/* «Ещё в разделе» — ровно 6 карточек: 3 колонки дают два полных ряда
   без пустых ячеек (при auto-fit выходило 4+2 и два пустых места). */
body .entry-content .bf-cross--section .bf-cross__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 900px) {
    body .entry-content .bf-cross--section .bf-cross__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ==========================================================================
   ГЛАВНОЕ: правила обтекания относятся ТОЛЬКО к фотографиям в тексте.
   Раньше они били по всем <img> внутри .entry-content, включая карточки
   каталога на главной (WooCommerce категории) — те сжимались до 33% ширины
   и превращались в вертикальные полоски 94x193.
   ========================================================================== */

/* Карточки товаров и категорий — всегда нормальные, без обтекания */
body .entry-content .ct-media-container img,
body .entry-content .products img,
body .entry-content li.product img,
body .entry-content .product-category img,
body .ct-container .ct-media-container img,
body .products li.product img {
    float: none !important;
    clear: none !important;
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

/* Обтекание — только фото, вставленные прямо в текст статьи
   (абзац / ссылка / одиночная картинка на верхнем уровне) */
body .entry-content > p > img,
body .entry-content > p > a > img,
body .entry-content > a > img,
body .entry-content > img {
    float: right !important;
    clear: right !important;
    width: clamp(280px, 34vw, 520px) !important;
    max-width: 45% !important;
    height: auto !important;
    margin: 6px 0 24px 34px !important;
    border-radius: 8px;
}

/* Крупные фото в figure (блочная разметка) остаются блоками по центру */
body .entry-content figure img,
body .entry-content .wp-block-image img {
    float: none !important;
    clear: both !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    border-radius: 8px;
}

@media (max-width: 700px) {
    body .entry-content > p > img,
    body .entry-content > p > a > img,
    body .entry-content > a > img,
    body .entry-content > img {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 18px auto !important;
    }
}

/* Подписи категорий в одну высоту: длинное название («Бугенвиллея домашняя»)
   переносилось на вторую строку и сдвигало сетку. */
body .entry-content li.product-category .woocommerce-loop-category__title,
body li.product-category .woocommerce-loop-category__title {
    min-height: 2.8em;
    display: flex;
    align-items: flex-start;
    line-height: 1.35;
}

/* ==========================================================================
   Первый экран главной: крупное фото сезона + две плитки, под ним строка
   разделов. Принцип взят у крупных садовых магазинов (шапка-каталог, промо,
   плитки категорий), но палитра, скругления и типографика — свои.
   ========================================================================== */

.bf-hero {
    display: grid;
    grid-template-columns: 1.9fr 1fr;
    gap: 16px;
    margin: 0 0 18px;
}

.bf-hero__main {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 430px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
}

.bf-hero__main:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(28, 62, 42, 0) 32%, rgba(28, 62, 42, .82) 100%);
}

.bf-hero__img {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
    float: none !important;
    z-index: 0;
}

.bf-hero__body {
    position: relative;
    z-index: 2;
    padding: 34px;
    max-width: 640px;
    color: #fff;
}

.bf-hero__kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #bfe6cf;
}

.bf-hero__body h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.12;
    color: #fff !important;
    width: auto !important;
    text-wrap: balance;
}

.bf-hero__body p {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.55;
    color: #e9f6ef;
    text-align: left;
}

.bf-hero__btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 12px;
    background: #3f8f66;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .15s ease, transform .15s ease;
}

.bf-hero__btn:hover {
    background: #33765a;
    transform: translateY(-1px);
}

.bf-hero__side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

.bf-hero__tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 170px;
    padding: 20px;
    border-radius: 20px;
    overflow: hidden;
    background-image: var(--cover);
    background-size: cover;
    background-position: center;
    color: #fff !important;
    text-decoration: none !important;
    isolation: isolate;
}

.bf-hero__tile:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(28, 62, 42, .1) 30%, rgba(28, 62, 42, .8) 100%);
    transition: background .2s ease;
}

.bf-hero__tile:hover:after {
    background: linear-gradient(180deg, rgba(28, 62, 42, .25) 20%, rgba(28, 62, 42, .88) 100%);
}

.bf-hero__tile-name {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

.bf-hero__tile-note {
    margin-top: 4px;
    font-size: 13.5px;
    color: #d9f0e4;
}

/* Строка популярных разделов */
.bf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px !important;
    padding: 0 !important;
    list-style: none;
}

.bf-chips a {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #bfe6cf;
    border-radius: 999px;
    background: #f6fcf9;
    color: #33765a !important;
    font-size: 14.5px;
    text-decoration: none !important;
    transition: background .15s ease, border-color .15s ease;
}

.bf-chips a:hover {
    background: #e2f4e9;
    border-color: #3f8f66;
}

.bf-chips__all {
    background: #3f8f66 !important;
    border-color: #3f8f66 !important;
    color: #fff !important;
}

.bf-chips__all:hover {
    background: #33765a !important;
}

@media (max-width: 1000px) {
    .bf-hero { grid-template-columns: 1fr; }
    .bf-hero__main { min-height: 360px; }
    .bf-hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .bf-hero__body { padding: 24px; }
}

@media (max-width: 640px) {
    .bf-hero__side { grid-template-columns: 1fr; }
    .bf-hero__main { min-height: 300px; }
}

/* Первый экран: фото должно занимать всю плитку. Старые правила для картинок
   контента (max-width 33%) перебивали .bf-hero__img — поднимаем специфичность. */
body .entry-content .bf-hero__img,
body .bf-hero .bf-hero__img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    float: none !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    z-index: 0;
}

/* На главной убираем служебный заголовок «Главная»: H1 — это текст баннера. */
body.home .hero-section {
    display: none !important;
}

/* Текст баннера не должен ловить правила выключки из статей */
body .bf-hero__body p,
body .bf-hero__body h1 {
    text-align: left !important;
    hyphens: none !important;
    width: auto !important;
    clear: none !important;
}

/* Плитки справа — строго равной высоты, фон затемнён сильнее для контраста */
body .bf-hero__side {
    grid-template-rows: 1fr 1fr !important;
    align-items: stretch;
}

body .bf-hero__tile {
    min-height: 0 !important;
    height: 100%;
}

body .bf-hero__tile:after {
    background: linear-gradient(180deg, rgba(28, 62, 42, .18) 0%, rgba(28, 62, 42, .55) 55%, rgba(28, 62, 42, .88) 100%) !important;
}

body .bf-hero__main:after {
    background: linear-gradient(180deg, rgba(28, 62, 42, 0) 20%, rgba(28, 62, 42, .45) 58%, rgba(28, 62, 42, .88) 100%) !important;
}

body .bf-hero__kicker {
    color: #eafff3 !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}

/* ==========================================================================
   ВАРИАНТ B — «журнальный сад» на главной.
   Крупный баннер во всю ширину, мозаика категорий (1 большая + 4), товары
   в 4 колонки с кнопкой «В корзину» по наведению.
   ========================================================================== */

.bfb-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 460px;
    margin: 6px auto 18px;
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
    width: min(var(--theme-container-width, 90vw), 100%);
    max-width: var(--theme-normal-container-max-width, 1290px);
}

.bfb-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(28, 62, 42, .86) 0%, rgba(28, 62, 42, .38) 45%, rgba(28, 62, 42, 0) 78%);
}

body .entry-content .bfb-hero > img,
.bfb-hero > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    float: none !important;
    z-index: 0;
}

.bfb-hero__body {
    position: relative;
    z-index: 2;
    padding: 44px;
    max-width: 720px;
    color: #fff;
}

.bfb-hero__body h1 {
    margin: 0 0 16px !important;
    font-size: clamp(30px, 3.4vw, 46px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.02em;
    color: #fff !important;
    width: auto !important;
    text-align: left !important;
    text-wrap: balance;
}

.bfb-hero__body p {
    margin: 0 0 22px !important;
    font-size: 17px;
    line-height: 1.55;
    color: #e8f5ee !important;
    text-align: left !important;
    hyphens: none !important;
}

.bfb-hero__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 999px;
    background: #3f8f66;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .15s ease, transform .15s ease;
}

.bfb-hero__btn:hover { background: #33765a; transform: translateY(-1px); }

/* ---------- мозаика категорий ---------- */

.bfb-cats {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-auto-rows: 240px;
    gap: 16px;
    margin: 0 auto 26px;
    width: min(var(--theme-container-width, 90vw), 100%);
    max-width: var(--theme-normal-container-max-width, 1290px);
}

.bfb-cat {
    position: relative;
    display: flex;
    align-items: flex-end;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none !important;
    color: #fff !important;
    isolation: isolate;
}

.bfb-cat--big { grid-row: span 2; }

.bfb-cat:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(28, 62, 42, 0) 38%, rgba(28, 62, 42, .88) 100%);
    transition: background .2s ease;
}

.bfb-cat:hover:after {
    background: linear-gradient(180deg, rgba(28, 62, 42, .18) 20%, rgba(28, 62, 42, .92) 100%);
}

body .entry-content .bfb-cat img,
.bfb-cat img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    float: none !important;
    z-index: 0;
    transition: transform .5s ease;
}

.bfb-cat:hover img { transform: scale(1.05); }

.bfb-cat__text {
    position: relative;
    z-index: 2;
    padding: 22px;
    display: block;
}

.bfb-cat__text b {
    display: block;
    font-size: 21px;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.bfb-cat__text small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #d9f0e4;
}

/* ---------- товары: 4 колонки, кнопка по наведению ---------- */

body.home ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home ul.products li.product {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(39, 53, 46, .07);
    transition: transform .18s ease, box-shadow .18s ease;
    margin: 0 !important;
    width: 100% !important;
}

body.home ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(39, 53, 46, .1);
}

body.home ul.products li.product img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

body.home ul.products li.product .woocommerce-loop-product__title {
    font-size: 15.5px !important;
    line-height: 1.35 !important;
    padding: 12px 16px 0 !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

body.home ul.products li.product .price {
    padding: 6px 16px 14px !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #27352e !important;
}

body.home ul.products li.product .button {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
    background: rgba(63, 143, 102, .97) !important;
    color: #fff !important;
    border-radius: 10px !important;
    text-align: center;
    padding: 10px !important;
}

body.home ul.products li.product:hover .button {
    opacity: 1;
    transform: none;
}

@media (hover: none) {
    body.home ul.products li.product .button { position: static; opacity: 1; transform: none; margin: 0 16px 16px !important; }
}

@media (max-width: 1000px) {
    .bfb-hero { min-height: 380px; }
    .bfb-hero__body { padding: 28px; }
    .bfb-cats { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
    .bfb-cat--big { grid-row: span 1; grid-column: span 2; }
    body.home ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 640px) {
    .bfb-cats { grid-template-columns: 1fr; }
    .bfb-cat--big { grid-column: span 1; }
}

/* Плитки категорий: больше воздуха снизу, чтобы подписи не прилипали к краю */
.bfb-cat__text { padding: 26px 22px 24px; }
.bfb-cat__text b { font-size: 22px; }
.bfb-cat--big .bfb-cat__text b { font-size: 27px; }
.bfb-cat--big .bfb-cat__text small { font-size: 14px; }

/* Подписи в плитках читаются лучше: плотнее затемнение и крупнее мелкий текст */
.bfb-cat:after {
    background: linear-gradient(180deg, rgba(28, 62, 42, 0) 25%, rgba(28, 62, 42, .55) 62%, rgba(28, 62, 42, .94) 100%) !important;
}

.bfb-cat__text small {
    font-size: 14px !important;
    color: #e6f6ec !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

.bfb-cat__text b {
    text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

/* ==========================================================================
   ШАПКА в стиле «удобной витрины» (свой markup, mu-plugin bf-header.php).
   Штатная шапка Blocksy скрывается: она без поиска и живой корзины.
   ========================================================================== */

header#header.ct-header { display: none !important; }

.bf-topbar {
    background: #27352e;
    color: #cfe6da;
    font-size: 12.5px;
}

.bf-topbar__in {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 38px;
    max-width: var(--theme-normal-container-max-width, 1290px);
    margin: 0 auto;
    padding: 0 20px;
}

.bf-topbar__city { font-weight: 600; color: #fff; }
.bf-topbar__links { display: flex; gap: 16px; }
.bf-topbar__links a { color: #cfe6da !important; text-decoration: none; }
.bf-topbar__links a:hover { color: #fff !important; }
.bf-topbar__phone { margin-left: auto; }
.bf-topbar__phone a { color: #fff !important; font-weight: 600; text-decoration: none; }

.bf-header {
    /* шапка не липнет: на широком экране это только съедало высоту */
    position: relative;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid #e2f4e9;
    box-shadow: 0 2px 12px rgba(39, 53, 46, .04);
}

.bf-header__in {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: var(--theme-normal-container-max-width, 1290px);
    margin: 0 auto;
    padding: 12px 20px;
}

.bf-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: #27352e !important;
    flex: 0 0 auto;
}

/* Кнопка «Каталог» + выпадающее меню */
.bf-catalog { position: relative; flex: 0 0 auto; }

.bf-catalog__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 0;
    border-radius: 10px;
    background: #3f8f66;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.bf-catalog__btn:hover { background: #33765a; }

.bf-catalog__burger,
.bf-catalog__burger::before,
.bf-catalog__burger::after {
    display: block;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    position: relative;
}

.bf-catalog__burger::before { position: absolute; top: -4px; }
.bf-catalog__burger::after { position: absolute; top: 4px; }

.bf-catalog__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1000;
    min-width: 300px;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2f4e9;
    box-shadow: 0 18px 40px rgba(39, 53, 46, .16);
    display: none;
}

.bf-catalog.is-open .bf-catalog__menu { display: block; }

.bf-catalog__menu a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #27352e !important;
    text-decoration: none !important;
    font-size: 14.5px;
}

.bf-catalog__menu a:hover { background: #f6fcf9; color: #3f8f66 !important; }
.bf-catalog__menu small { color: #93a89a; font-size: 12px; }

/* Поиск по центру */
.bf-search {
    flex: 1;
    display: flex;
    align-items: stretch;
    border: 2px solid #bfe6cf;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    min-width: 0;
}

.bf-search input[type="search"] {
    flex: 1;
    border: 0;
    outline: none;
    padding: 0 14px;
    height: 42px;
    font: inherit;
    font-size: 15px;
    min-width: 0;
    background: transparent;
}

.bf-search button {
    border: 0;
    width: 52px;
    background: #3f8f66;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.bf-search button:hover { background: #33765a; }

/* Сервисные ссылки */
.bf-service { display: flex; gap: 16px; align-items: center; flex: 0 0 auto; }

.bf-service a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11.5px;
    color: #63796c !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.bf-service a:hover { color: #3f8f66 !important; }
.bf-service em { font-style: normal; font-size: 18px; line-height: 1; }
.bf-service__cart small { color: #3f8f66; font-weight: 600; font-size: 10.5px; }

/* Полоса популярных разделов */
.bf-catstrip { border-top: 1px solid #eff8f3; background: #fbfdfb; }

.bf-catstrip__in {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 44px;
    max-width: var(--theme-normal-container-max-width, 1290px);
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 14.5px;
}

.bf-catstrip__in::-webkit-scrollbar { display: none; }
.bf-catstrip__in a { color: #27352e !important; text-decoration: none !important; white-space: nowrap; }
.bf-catstrip__in a:hover { color: #3f8f66 !important; }
.bf-catstrip__hot { color: #b8341f !important; font-weight: 700; }

@media (max-width: 1080px) {
    .bf-topbar__links { display: none; }
    .bf-header__in { flex-wrap: wrap; }
    .bf-search { order: 10; flex: 1 0 100%; }
    .bf-service { margin-left: auto; }
}

@media (max-width: 600px) {
    .bf-logo__text small,
    .bf-service a:not(.bf-service__cart) { display: none; }
    .bf-catalog__btn { padding: 10px 14px; }
}

/* ==========================================================================
   Баннер-карусель: три слайда, стрелки по краям, точки снизу.
   Слайды лежат стопкой и переключаются прозрачностью — без скачков высоты.
   ========================================================================== */

.bfb-slider { position: relative; }

.bfb-slider__track { position: relative; width: 100%; height: 100%; }

.bfb-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    border-radius: 24px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease, visibility .45s ease;
    isolation: isolate;
}

.bfb-slide.is-active { opacity: 1; visibility: visible; }

.bfb-slide:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(28, 62, 42, .88) 0%, rgba(28, 62, 42, .42) 45%, rgba(28, 62, 42, 0) 78%);
}

body .entry-content .bfb-slide img,
.bfb-slide img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    float: none !important;
    z-index: 0;
}

.bfb-slide .bfb-hero__body { position: relative; z-index: 2; }

.bfb-slide h2 {
    margin: 0 0 16px !important;
    font-size: clamp(30px, 3.4vw, 46px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.02em;
    color: #fff !important;
    width: auto !important;
    text-align: left !important;
}

.bfb-slide__badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #e2f4e9;
    color: #33765a;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .03em;
}

.bfb-slider__nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #33765a;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding-bottom: 4px;
    box-shadow: 0 6px 18px rgba(28, 62, 42, .22);
    transition: background .15s ease, transform .15s ease;
}

.bfb-slider__nav:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.bfb-slider__nav--prev { left: 18px; }
.bfb-slider__nav--next { right: 18px; }

.bfb-slider__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.bfb-slider__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: background .15s ease, width .2s ease;
}

.bfb-slider__dot.is-active { background: #fff; width: 26px; border-radius: 6px; }

@media (max-width: 700px) {
    .bfb-slider__nav { width: 38px; height: 38px; font-size: 22px; }
    .bfb-slider__nav--prev { left: 8px; }
    .bfb-slider__nav--next { right: 8px; }
}

/* Трек карусели: слайды абсолютные, поэтому сам трек должен заполнять баннер,
   иначе высота схлопывается в 0 и активный слайд не видно. */
body .bfb-hero.bfb-slider {
    position: relative;
    min-height: 460px;
}

body .bfb-slider__track {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: auto !important;
}

body .bfb-slide {
    position: absolute;
    inset: 0;
    min-height: 0;
}

/* Стрелка «назад» не должна налезать на первую букву заголовка */
@media (min-width: 701px) {
    body .bfb-slide .bfb-hero__body { padding-left: 86px; }
}

/* ==========================================================================
   ПОДВАЛ: пять колонок (бренд, каталог, покупателям, компания, реквизиты)
   + нижняя строка со ссылками. Штатный подвал Blocksy скрыт.
   ========================================================================== */

footer.ct-footer { display: none !important; }

.bf-footer {
    margin-top: 48px;
    background: #1a2b22;
    color: #cfe0d6;
    font-size: 14px;
}

.bf-footer__in {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
    gap: 32px;
    max-width: var(--theme-normal-container-max-width, 1290px);
    margin: 0 auto;
    padding: 44px 20px 36px;
}

.bf-footer__col h3 {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8fbf9f;
}

.bf-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.bf-footer__col a {
    color: #dfeee6 !important;
    text-decoration: none !important;
}

.bf-footer__col a:hover { color: #fff !important; text-decoration: underline !important; }

.bf-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 19px;
    font-weight: 800;
    color: #fff !important;
    text-decoration: none !important;
}

.bf-footer__logo small {
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    color: #9db9a9;
    letter-spacing: .02em;
}

.bf-footer__about {
    margin: 0 0 16px;
    color: #b3cbb9;
    line-height: 1.6;
    max-width: 34ch;
}

.bf-footer__phone {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    margin-bottom: 4px;
}

.bf-footer__hours,
.bf-footer__mail {
    display: block;
    font-size: 12.5px;
    color: #9db9a9;
    margin-bottom: 4px;
}

.bf-footer__legal-list { font-size: 12.5px; color: #b3cbb9; }

.bf-footer__note {
    margin-top: 10px;
    font-size: 11.5px;
    color: #7f9a8a;
    font-style: italic;
}

.bf-footer__bottom {
    border-top: 1px solid rgba(216, 232, 221, .14);
    background: #16241c;
}

.bf-footer__bottom-in {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
    align-items: center;
    max-width: var(--theme-normal-container-max-width, 1290px);
    margin: 0 auto;
    padding: 16px 20px;
    font-size: 12.5px;
    color: #8fa79b;
}

.bf-footer__bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.bf-footer__bottom-links a { color: #b3cbb9 !important; text-decoration: none !important; }
.bf-footer__bottom-links a:hover { color: #fff !important; }
.bf-footer__pay { margin-left: auto; }

@media (max-width: 1080px) {
    .bf-footer__in { grid-template-columns: 1fr 1fr 1fr; }
    .bf-footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .bf-footer__in { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 20px 24px; }
    .bf-footer__col--legal { grid-column: 1 / -1; }
    .bf-footer__pay { margin-left: 0; }
}

/* Подвал: контраст и размеры мелкого текста (было мелко и бледно) */
.bf-footer { color: #d8e8de; }
.bf-footer__about { color: #c2d6c9 !important; font-size: 14px; }
.bf-footer__hours, .bf-footer__mail { color: #c4d8cb !important; font-size: 13.5px; }
.bf-footer__legal-list { color: #c2d6c9 !important; font-size: 13px !important; line-height: 1.55; }
.bf-footer__note { color: #a2b8a9 !important; font-size: 12.5px !important; }
.bf-footer__bottom-in { color: #c4d8cb !important; font-size: 13px !important; }
.bf-footer__bottom-links a { color: #cfe0d6 !important; }

/* Мессенджеры */
.bf-footer__social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.bf-footer__social a {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid rgba(216, 232, 221, .28);
    border-radius: 999px;
    font-size: 12.5px;
    color: #dfeee6 !important;
    text-decoration: none !important;
}

.bf-footer__social a:hover {
    background: rgba(216, 232, 221, .12);
    border-color: rgba(216, 232, 221, .5);
    color: #fff !important;
}

/* Последняя правка читаемости: нижняя строка и примечание в реквизитах */
.bf-footer__bottom-in { color: #cfe0d6 !important; font-size: 13px !important; }
.bf-footer__note { color: #c4d8cb !important; font-size: 12.5px !important; font-style: normal; }
.bf-footer__col h3 { color: #9ed0b0; }

/* Заголовки в статье: моё прежнее правило задавало им 90vw (1296px), из-за чего
   подзаголовки выезжали влево из текстовой колонки 750px. Теперь ширина — как
   у абзацев: auto + максимальная ширина блока темы. */
body .entry-content h1,
body .entry-content h2,
body .entry-content h3,
body .entry-content h4 {
    width: auto !important;
    max-width: var(--theme-block-max-width, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    clear: both !important;
}

/* ==========================================================================
   Многоуровневое меню каталога (3 уровня, как в старом магазине).
   Корни — вертикальный список, дети и внуки раскрываются справа при наведении.
   ========================================================================== */

.bf-catalog__menu {
    min-width: 320px;
    max-width: 360px;
    padding: 10px 8px;
}

/* Если справа не хватает места, третий уровень раскрывается влево */
@media (max-width: 1280px) {
    .bf-catalog__sub .bf-catalog__sub { left: auto; right: 100%; }
}

/* ==========================================================================
   ВАРИАНТ A: баннер + 4 быстрые карточки справа, разделы в 4 плитки,
   товары в 5 колонок (плотная витрина).
   ========================================================================== */

.bfa-top {
    display: grid;
    grid-template-columns: 2.05fr 1fr;
    gap: 16px;
    width: min(var(--theme-container-width, 90vw), 100%);
    max-width: var(--theme-normal-container-max-width, 1290px);
    margin: 6px auto 18px;
}

.bfa-top .bfb-hero {
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 420px;
}

.bfa-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.bfa-quick a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 16px;
    border-radius: 14px;
    background: #f6fcf9;
    border: 1px solid #e2f4e9;
    color: #27352e !important;
    text-decoration: none !important;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.bfa-quick a:hover {
    border-color: #3f8f66;
    background: #e2f4e9;
    transform: translateY(-2px);
}

.bfa-quick b { font-size: 15px; line-height: 1.25; }
.bfa-quick small { font-size: 12.5px; color: #63796c; }

/* Разделы: 4 плитки в ряд, ниже и компактнее мозаики */
.bfa-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: min(var(--theme-container-width, 90vw), 100%);
    max-width: var(--theme-normal-container-max-width, 1290px);
    margin: 0 auto 26px;
}

.bfa-tiles .bfb-cat {
    min-height: 200px;
}

.bfa-tiles .bfb-cat__text b { font-size: 18px; }

/* Товары: 5 колонок */
body.home ul.products {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

body.home ul.products li.product .woocommerce-loop-product__title {
    font-size: 14.5px !important;
    padding: 10px 14px 0 !important;
}

body.home ul.products li.product .price {
    font-size: 17px !important;
    padding: 4px 14px 12px !important;
}

@media (max-width: 1100px) {
    .bfa-top { grid-template-columns: 1fr; }
    .bfa-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.home ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 700px) {
    .bfa-quick { grid-template-columns: 1fr 1fr; }
    body.home ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Быстрые карточки: заполняем пустоту иконкой и выравниваем содержимое */
.bfa-quick a {
    justify-content: flex-start;
    gap: 10px;
    position: relative;
    padding-top: 18px;
}

.bfa-quick a::before {
    content: attr(data-icon);
    display: block;
    font-size: 26px;
    line-height: 1;
    margin-bottom: auto;
}

.bfa-quick a small { margin-top: auto; }

/* ==========================================================================
   МЕГА-МЕНЮ каталога: широкие колонки по корневым разделам, крупная
   типографика, счётчики в чипах, подразделы мелким текстом.
   ========================================================================== */

body .bf-catalog__menu {
    min-width: 0 !important;
    max-width: none !important;
    width: min(1080px, calc(100vw - 40px));
    padding: 22px 24px 0;
    border-radius: 18px;
    border: 1px solid #e2efe8;
    box-shadow: 0 24px 60px rgba(28, 62, 42, .18);
}

.bf-mega {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.bf-mega__col { min-width: 0; }

.bf-mega__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eff8f3;
    font-size: 17px;
    font-weight: 700;
    color: #27352e !important;
    text-decoration: none !important;
    letter-spacing: -.01em;
}

.bf-mega__head:hover { color: #3f8f66 !important; }

.bf-mega__head span {
    padding: 3px 9px;
    border-radius: 999px;
    background: #f6fcf9;
    color: #63796c;
    font-size: 11.5px;
    font-weight: 600;
}

.bf-mega__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.bf-mega__item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    margin-left: -10px;
    border-radius: 8px;
    font-size: 14.5px;
    color: #27352e !important;
    text-decoration: none !important;
    transition: background .12s ease, color .12s ease;
}

.bf-mega__item > a:hover { background: #f6fcf9; color: #3f8f66 !important; }
.bf-mega__item > a small { color: #9bb0a4; font-size: 11.5px; }

.bf-mega__sub {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 2px 0 8px 12px;
    padding-left: 10px;
    border-left: 2px solid #eff8f3;
}

.bf-mega__sub a {
    font-size: 12.5px;
    color: #728a7c !important;
    text-decoration: none !important;
}

.bf-mega__sub a:hover { color: #3f8f66 !important; text-decoration: underline !important; }

@media (max-width: 1100px) {
    .bf-mega { grid-template-columns: 1fr 1fr; gap: 24px; }
    body .bf-catalog__menu { width: calc(100vw - 32px); }
}

@media (max-width: 700px) {
    .bf-mega { grid-template-columns: 1fr; }
    .bf-mega__foot { flex-direction: column; align-items: flex-start; }
}

/* Списки в колонках — в две подколонки, чтобы панель не была высотой в экран */
.bf-mega__list {
    column-count: 2;
    column-gap: 14px;
}

.bf-mega__item { break-inside: avoid; }

body .bf-catalog__menu {
    max-height: 74vh;
    overflow: auto;
}

.bf-mega__list .bf-mega__sub { margin-left: 6px; }

/* column-count не работает вместе с display:grid — переводим список в block */
body .bf-mega__list {
    display: block !important;
    column-count: 2;
    column-gap: 16px;
}

body .bf-mega__item { margin-bottom: 2px; }

/* Хлебные крошки под шапкой — со ссылкой на главную на всех страницах */
.bf-crumbs {
    border-top: 1px solid #eff8f3;
    background: #fbfdfb;
}

.bf-crumbs__in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    max-width: var(--theme-normal-container-max-width, 1290px);
    margin: 0 auto;
    padding: 9px 20px;
    font-size: 12.5px;
    color: #728a7c;
}

.bf-crumbs a { color: #63796c !important; text-decoration: none !important; }
.bf-crumbs a:hover { color: #3f8f66 !important; text-decoration: underline !important; }
.bf-crumbs span { color: #93a89a; }
.bf-crumbs__sep { color: #c4d8cb !important; }

/* Мега-меню: читаемость и аккуратные счётчики */
.bf-mega__item > a { font-size: 15px !important; line-height: 1.45; }
.bf-mega__head { font-size: 18px !important; }
.bf-mega__item > a small {
    background: #f6fcf9;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 11px;
    color: #7f988a;
    min-width: 24px;
    text-align: center;
}
.bf-mega__sub a { font-size: 13px !important; }

/* ==========================================================================
   Гостевая книга: записи карточками, форма в зелёной рамке.
   ========================================================================== */

.bf-guest { max-width: 820px; }

.bf-guest__list { display: grid; gap: 14px; margin-bottom: 28px; }

.bf-guest__item {
    padding: 18px 20px;
    border: 1px solid #e2efe8;
    border-radius: 14px;
    background: #fbfdfb;
}

.bf-guest__item header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.bf-guest__item header b { font-size: 15.5px; color: #27352e; }
.bf-guest__city { font-size: 12.5px; color: #728a7c; }
.bf-guest__item time { margin-left: auto; font-size: 12px; color: #9bb0a4; }
.bf-guest__text { font-size: 15px; line-height: 1.6; color: #2a3a31; }
.bf-guest__text p { margin: 0 0 .6em; }
.bf-guest__text p:last-child { margin: 0; }

.bf-guest__empty { color: #728a7c; margin-bottom: 24px; }

.bf-guest__form {
    padding: 24px;
    border: 1px solid #bfe6cf;
    border-radius: 16px;
    background: #f6fcf9;
}

.bf-guest__form h3 { margin: 0 0 16px; font-size: 19px; }

.bf-guest__form label {
    display: block;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: #63796c;
}

.bf-guest__form input[type="text"],
.bf-guest__form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 11px 14px;
    border: 1px solid #d8ecdf;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: #27352e;
    outline: none;
}

.bf-guest__form input:focus,
.bf-guest__form textarea:focus { border-color: #3f8f66; }

.bf-guest__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.bf-guest__form button {
    padding: 13px 26px;
    border: 0;
    border-radius: 10px;
    background: #3f8f66;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.bf-guest__form button:hover { background: #33765a; }

.bf-guest__hint { margin: 10px 0 0; font-size: 12.5px; color: #7f988a; }
.required { color: #b8341f; }

.bf-guest__hp { position: absolute; left: -9999px; }

.bf-guest__notice {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.bf-guest__notice--ok { background: #e2f4e9; color: #33765a; }
.bf-guest__notice--err { background: #fdeceb; color: #8d2a1c; }

.bf-guest__pages { display: flex; gap: 8px; margin-bottom: 26px; }
.bf-guest__pages a {
    padding: 7px 13px;
    border: 1px solid #d8ecdf;
    border-radius: 8px;
    font-size: 14px;
    color: #3f8f66 !important;
    text-decoration: none !important;
}
.bf-guest__pages a.is-active { background: #3f8f66; color: #fff !important; border-color: #3f8f66; }

@media (max-width: 600px) {
    .bf-guest__row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Шапка: шрифт крупнее. Было мелко: служебная строка 12.5, подписи иконок
   11.5, полоса разделов 14.5. Поднимаем на 1-2 пункта, чтобы читалось
   без прищуривания, но шапка не стала «тяжёлой».
   ========================================================================== */

.bf-topbar { font-size: 13.5px !important; }
.bf-topbar__in { height: 40px; }
.bf-topbar__phone a { font-size: 13.5px; }
.bf-topbar__city { font-size: 13.5px; }

.bf-catstrip__in { font-size: 15.5px !important; height: 46px; }
.bf-catstrip__in a { font-weight: 500; }

.bf-service a { font-size: 12.5px !important; }
.bf-service em svg { width: 21px; height: 21px; }
.bf-service__cart small { font-size: 11.5px !important; }

.bf-catalog__btn { font-size: 15.5px; padding: 12px 20px; }
.bf-search input[type="search"] { font-size: 15.5px; }

.bf-crumbs__in { font-size: 13px !important; }

/* Мега-меню: пункты и подписи крупнее */
.bf-mega__item > a { font-size: 15.5px !important; }
.bf-mega__head { font-size: 18.5px !important; }
.bf-mega__sub a { font-size: 13.5px !important; }
.bf-mega__item > a small { font-size: 12px !important; }

/* Панель каталога: нижний отступ, так как подвал панели убран */
body .bf-catalog__menu { padding: 22px 24px 24px !important; }

/* ==========================================================================
   Полоса разделов под шапкой: плашки с корневыми разделами каталога.
   Раньше были мелкие текстовые ссылки на подкатегории — теперь крупные
   кнопки: Фиалка, Комнатные растения, Садовые цветы + Акции.
   ========================================================================== */

.bf-catstrip { background: #fff; border-top: 1px solid #eff8f3; }

body .bf-catstrip__in {
    display: flex;
    align-items: center;
    gap: 10px;
    height: auto;
    padding: 10px 20px;
    flex-wrap: wrap;
}

.bf-catstrip__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #f6fcf9;
    border: 1px solid #e2f4e9;
    color: #27352e !important;
    font-size: 15px !important;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.bf-catstrip__pill:hover {
    background: #e2f4e9;
    border-color: #3f8f66;
    color: #33765a !important;
}

.bf-catstrip__pill span {
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff;
    color: #63796c;
    font-size: 12px;
    font-weight: 600;
}

.bf-catstrip__hot {
    background: #fdeceb !important;
    border-color: #f3c9c4 !important;
    color: #b8341f !important;
}

.bf-catstrip__hot:hover {
    background: #f8d7d3 !important;
    border-color: #b8341f !important;
    color: #8d2a1c !important;
}

@media (max-width: 700px) {
    body .bf-catstrip__in { padding: 8px 14px; gap: 8px; }
    .bf-catstrip__pill { padding: 8px 14px; font-size: 14px !important; }
}

/* ==========================================================================
   Третий уровень в меню (сорта фиалок): отдельная вложенная группа
   с подложкой, списком в столбик и мелкими подписями.
   ========================================================================== */

body .bf-mega__sub {
    display: flex !important;
    flex-direction: column;
    gap: 1px;
    margin: 4px 0 10px 14px !important;
    padding: 7px 10px !important;
    border-left: 2px solid #bfe6cf !important;
    border-radius: 0 8px 8px 0;
    background: #fbfdfb;
    break-inside: avoid;
}

body .bf-mega__sub a {
    display: block;
    padding: 3px 0;
    font-size: 13px !important;
    color: #728a7c !important;
    line-height: 1.35;
}

body .bf-mega__sub a:hover {
    color: #3f8f66 !important;
    text-decoration: none !important;
}

/* Раздел с вложенными сортами выделяем как группу */
body .bf-mega__item:has(.bf-mega__sub) > a {
    font-weight: 600;
}

/* Бейдж с количеством не должен рваться по цифрам и сжиматься */
body .bf-mega__item > a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

body .bf-mega__item > a small {
    white-space: nowrap !important;
    flex: 0 0 auto;
    word-break: keep-all;
}

/* Название раздела переносится целиком, без обрезки в столбик */
body .bf-mega__list { padding-left: 0; }
body .bf-mega__item { min-width: 150px; }

/* ==========================================================================
   «Нет в наличии»: было на всю ширину серой полосой с белым текстом —
   выглядело как кнопка и сливалось с зелёной темой. Теперь компактная
   красная метка с точкой.
   ========================================================================== */

body .stock.out-of-stock,
body .woocommerce .stock.out-of-stock {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
    max-width: 100%;
    padding: 9px 18px !important;
    border: 1px solid #f3c9c4;
    border-radius: 999px;
    background: #fdeceb !important;
    color: #8d2a1c !important;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 14px !important;
}

body .stock.out-of-stock::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c0392b;
    flex: 0 0 auto;
}

/* Та же метка в карточках каталога */
body .out-of-stock-badge {
    background: #fdeceb !important;
    color: #8d2a1c !important;
    border: 1px solid #f3c9c4;
    border-radius: 999px !important;
    padding: 4px 11px !important;
    font-size: 11.5px !important;
    font-weight: 600;
    letter-spacing: 0;
}

/* Кнопка «В корзину» у отсутствующего товара не должна выглядеть активной */
body .single-product .stock.out-of-stock ~ .cart .single_add_to_cart_button,
body .single-product .out-of-stock ~ .cart button {
    opacity: .45;
    pointer-events: none;
}

/* ==========================================================================
   Статьи блога: тема держит текстовую колонку в 750px при контейнере 1260,
   из-за чего по бокам остаётся почти половина пустого места. Расширяем
   до 980px — строка ещё читается, но страница не выглядит «узкой лентой».
   Правим переменную темы, а не ширину каждого блока: иначе заголовки
   разъезжаются с абзацами (уже наступали на это).
   ========================================================================== */

body.single-post .entry-content,
body.single-post .entry-content > * {
    --theme-block-max-width: 980px;
}

body.single-post .entry-content > p,
body.single-post .entry-content > h2,
body.single-post .entry-content > h3,
body.single-post .entry-content > h4,
body.single-post .entry-content > ul,
body.single-post .entry-content > ol,
body.single-post .entry-content > blockquote {
    max-width: 980px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Картинки в тексте тоже могут быть шире прежних 33% */
body.single-post .entry-content > p > img,
body.single-post .entry-content > p > a > img,
body.single-post .entry-content > a > img,
body.single-post .entry-content > img {
    max-width: 100% !important;
}

@media (max-width: 900px) {
    body.single-post .entry-content > p,
    body.single-post .entry-content > h2,
    body.single-post .entry-content > h3,
    body.single-post .entry-content > h4,
    body.single-post .entry-content > ul,
    body.single-post .entry-content > ol {
        max-width: 100% !important;
    }
}

/* Плавающие фото в статье: 476px съедали половину колонки, текст рядом
   оставался в 480px. Сужаем фото до 430px — строке остаётся ~540px. */
body .entry-content img.bf-wrap {
    width: clamp(260px, 30vw, 430px) !important;
    max-width: 430px !important;
}

/* ==========================================================================
   Bento-сетка разделов на главной: 9 плиток разного размера.
   Сетка 6 колонок: большая плитка 3×2, широкая 3×1, средние 2×1,
   маленькие 1×1 и одна на всю ширину.
   ========================================================================== */

.bfa-bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 148px;
    gap: 14px;
    width: min(var(--theme-container-width, 90vw), 100%);
    max-width: var(--theme-normal-container-max-width, 1290px);
    margin: 0 auto 28px;
}

.bfa-bento__tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3px;
    padding: 16px 18px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: #fff !important;
    text-decoration: none !important;
    isolation: isolate;
    transition: transform .16s ease, box-shadow .16s ease;
}

.bfa-bento__tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(28, 62, 42, .05) 35%, rgba(28, 62, 42, .82) 100%);
}

.bfa-bento__tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(39, 53, 46, .18);
}

.bfa-bento__tile--big { grid-column: span 3; grid-row: span 2; }

.bfa-bento__name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.bfa-bento__note {
    font-size: 12.5px;
    color: #e2f0e7;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

.bfa-bento__tile--big .bfa-bento__name { font-size: 24px; }
.bfa-bento__tile--big .bfa-bento__note { font-size: 14px; }

@media (max-width: 1000px) {
    .bfa-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
    .bfa-bento__tile--big,
    .bfa-bento__tile--wide,
    .bfa-bento__tile--mid,
    .bfa-bento__tile--full { grid-column: span 2; grid-row: span 1; }
    .bfa-bento__tile--full { grid-column: span 2; }
}

/* Логотип-картинка + подпись под ним */
.bf-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    text-decoration: none !important;
    flex: 0 0 auto;
}

.bf-logo__img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
}

.bf-logo__tag {
    font-size: 11px;
    line-height: 1.2;
    color: #63796c;
    letter-spacing: .01em;
    white-space: nowrap;
}

/* Поле поиска короче: раньше растягивалось почти на всю шапку */
body .bf-search {
    flex: 0 1 440px !important;
    max-width: 440px !important;
}

body .bf-search input[type="search"] { min-width: 0; }

/* ==========================================================================
   Сетка плиток: 12 колонок. Верх справа — две плитки вместо одной длинной,
   нижние два ряда — по 4 в ряд.
   ========================================================================== */

body .bfa-bento {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
}

body .bfa-bento__tile--big { grid-column: span 6; grid-row: span 2; }
body .bfa-bento__tile--c3 { grid-column: span 3; grid-row: span 1; }
body .bfa-bento__tile--c2 { grid-column: span 2; grid-row: span 1; }

@media (max-width: 1000px) {
    body .bfa-bento { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    body .bfa-bento__tile--big,
    body .bfa-bento__tile--c3,
    body .bfa-bento__tile--c2 { grid-column: span 1; grid-row: span 1; }
    body .bfa-bento__tile--big { grid-column: span 2; }
}

/* Служебная строка: город отделён от меню заметным отступом и разделителем */
.bf-topbar__city {
    margin-right: 26px;
    padding-right: 26px;
    border-right: 1px solid rgba(216, 232, 221, .25);
}

body .bf-topbar__links { gap: 20px; }
body .bf-topbar__links a { white-space: nowrap; }

@media (max-width: 900px) {
    .bf-topbar__city { margin-right: 12px; padding-right: 12px; }
    body .bf-topbar__links { gap: 12px; }
}

/* ==========================================================================
   Блок подписки внизу главной, перед подвалом.
   ========================================================================== */

.bf-subscribe {
    width: min(var(--theme-container-width, 90vw), 100%);
    max-width: var(--theme-normal-container-max-width, 1290px);
    margin: 34px auto 10px;
}

.bf-subscribe__in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 30px 34px;
    border-radius: 20px;
    background: #f6fcf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23cfe6d8' stroke-width='1.2'%3E%3Cpath d='M20 90c10-18 22-24 34-26M54 64c-3-9 1-16 6-20 3 8 5 15-6 20zM78 96c8-14 18-18 28-20'/%3E%3Ccircle cx='92' cy='34' r='7'/%3E%3C/g%3E%3C/svg%3E") repeat;
    border: 1px solid #e2f4e9;
}

.bf-subscribe__text h2 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.25;
    color: #27352e;
}

.bf-subscribe__text p {
    margin: 0;
    font-size: 14.5px;
    color: #63796c;
}

.bf-subscribe__form { flex: 1 1 380px; max-width: 520px; }

.bf-subscribe__row {
    display: flex;
    gap: 10px;
}

.bf-subscribe__row input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 13px 16px;
    border: 1px solid #d8ecdf;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: #27352e;
    outline: none;
}

.bf-subscribe__row input[type="email"]:focus { border-color: #3f8f66; }

.bf-subscribe__row button {
    padding: 13px 24px;
    border: 0;
    border-radius: 10px;
    background: #3f8f66;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.bf-subscribe__row button:hover { background: #33765a; }

.bf-subscribe__note {
    margin: 8px 0 0;
    font-size: 12px;
    color: #7f988a;
}

.bf-subscribe__note a { color: #63796c !important; }

.bf-subscribe__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.bf-subscribe__msg {
    margin: 10px 0 0;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 13.5px;
}

.bf-subscribe__msg--ok { background: #e2f4e9; color: #33765a; }
.bf-subscribe__msg--err { background: #fdeceb; color: #8d2a1c; }

@media (max-width: 760px) {
    .bf-subscribe__in { padding: 22px; }
    .bf-subscribe__row { flex-direction: column; }
}

/* Подпись под логотипом: крупнее и растянута по ширине логотипа,
   плюс большой отступ от логотипа до кнопки «Каталог». */

body .bf-logo {
    width: max-content;
    max-width: 210px;
    margin-right: 38px;
}

body .bf-logo__img {
    height: 50px;
    max-width: 200px;
    width: auto;
}

body .bf-logo__tag {
    display: block;
    width: 100%;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: .02em;
    color: #4f6a5b;
    text-align: justify;
    text-align-last: justify;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    body .bf-logo { margin-right: 18px; }
    body .bf-logo__tag { font-size: 12px; }
}

/* ==========================================================================
   Служебная строка: телефон справа, заметный, не обрезается.
   ========================================================================== */

body .bf-topbar__in {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
}

body .bf-topbar__links {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    min-width: 0;
}

body .bf-topbar__phone {
    margin-left: auto;
    padding-left: 16px;
    white-space: nowrap;
    font-size: 13.5px;
    color: #c4d8cb;
}

body .bf-topbar__phone a {
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: .01em;
}

body .bf-topbar__phone a:hover { text-decoration: underline !important; }

@media (max-width: 1180px) {
    body .bf-topbar__phone { font-size: 12.5px; padding-left: 10px; }
    body .bf-topbar__links { gap: 12px; }
}

/* Логотип в подвале: картинка на белой подложке (иначе чёрный текст на тёмном) */
.bf-footer__logo {
    display: inline-block;
    padding: 9px 13px;
    margin-bottom: 0;
    background: #fff;
    border-radius: 12px;
    line-height: 0;
    text-decoration: none !important;
}

.bf-footer__logo img {
    display: block;
    height: 38px;
    width: auto;
    max-width: 180px;
}

.bf-footer__tag {
    display: block;
    margin: 9px 0 14px;
    font-size: 12.5px;
    letter-spacing: .02em;
    color: #c4d8cb;
}

/* ==========================================================================
   Полноэкранный просмотр фото: стрелки листания и счётчик.
   ========================================================================== */

.bf-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100002;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background .15s ease, transform .15s ease;
}

.bf-lightbox__nav:hover { background: rgba(255, 255, 255, .3); }
.bf-lightbox__nav--prev { left: 26px; }
.bf-lightbox__nav--next { right: 26px; }
.bf-lightbox__nav[hidden] { display: none; }

.bf-lightbox__counter {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 100002;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 13px;
    letter-spacing: .04em;
}

.bf-lightbox__counter[hidden] { display: none; }

@media (max-width: 700px) {
    .bf-lightbox__nav { width: 46px; height: 46px; font-size: 26px; }
    .bf-lightbox__nav--prev { left: 12px; }
    .bf-lightbox__nav--next { right: 12px; }
}

/* ==========================================================================
   Мега-меню: причёсанная сетка. Убираем двухколоночные списки внутри колонки
   (из-за них счётчики и подписи разъезжались), выравниваем бейджи справа.
   ========================================================================== */

body .bf-catalog__menu {
    width: min(1160px, calc(100vw - 40px)) !important;
    padding: 24px 26px 26px !important;
    max-height: 76vh;
    overflow: auto;
}

body .bf-mega {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

body .bf-mega__col { min-width: 0; }

body .bf-mega__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 17px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eff8f3;
}

body .bf-mega__head span {
    flex: 0 0 auto;
    padding: 2px 9px;
    border-radius: 999px;
    background: #f6fcf9;
    color: #63796c;
    font-size: 12px;
    font-weight: 600;
}

body .bf-mega__list {
    display: block !important;
    column-count: 1 !important;
    padding: 0;
}

body .bf-mega__item { min-width: 0; margin-bottom: 2px; }

body .bf-mega__item > a {
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    margin-left: -10px;
    border-radius: 8px;
    font-size: 14.5px !important;
    line-height: 1.35;
}

body .bf-mega__item > a small {
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: 11.5px !important;
}

body .bf-mega__sub {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 2px 0 8px 10px !important;
    padding: 6px 0 6px 10px !important;
    border-left: 2px solid #e2efe8 !important;
    background: none !important;
}

body .bf-mega__sub a { font-size: 12.5px !important; }

/* Промо-раздел «Скидки» отделяем от обычных категорий */
body .bf-mega__item > a[href*="sale"],
body .bf-mega__item > a[href*="skidki"] {
    color: #b8341f !important;
    font-weight: 600;
}

/* ==========================================================================
   Подвал: «Каталог» с выпадающим списком (details/summary).
   ========================================================================== */

.bf-footer__acc { margin-top: 4px; }

.bf-footer__acc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid rgba(216, 232, 221, .28);
    border-radius: 10px;
    color: #dfeee6;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
}

.bf-footer__acc summary::-webkit-details-marker { display: none; }

.bf-footer__acc summary:hover { background: rgba(216, 232, 221, .08); }

.bf-footer__acc-icon {
    width: 8px;
    height: 8px;
    border-right: 2px solid #9db9a9;
    border-bottom: 2px solid #9db9a9;
    transform: rotate(45deg);
    transition: transform .18s ease;
    margin-right: 2px;
}

.bf-footer__acc[open] .bf-footer__acc-icon { transform: rotate(-135deg); }

.bf-footer__acc-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0 0 0 2px;
    display: grid;
    gap: 8px;
    font-size: 13.5px;
}

.bf-footer__acc-sub {
    list-style: none;
    margin: 6px 0 0 10px;
    padding: 0 0 0 10px;
    border-left: 1px solid rgba(216, 232, 221, .2);
    display: grid;
    gap: 5px;
    font-size: 12.5px;
}

.bf-footer__acc-sub a { color: #b3cbb9 !important; }

/* ==========================================================================
   Липкая шапка не должна заезжать под админ-бар WordPress: он fixed 32px
   (46px на мобильных), а шапка липла к top: 0 и перекрывала имя пользователя.
   ========================================================================== */

body.admin-bar .bf-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .bf-header {
        top: 46px !important;
    }
}

/* Ответ магазина под записью гостевой книги */
.bf-guest__reply {
    margin-top: 12px;
    padding: 12px 14px;
    border-left: 3px solid #bfe6cf;
    border-radius: 0 10px 10px 0;
    background: #f6fcf9;
    font-size: 14px;
    color: #2a3a31;
}

.bf-guest__reply-author {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #3f8f66;
}

.bf-guest__reply p { margin: 0 0 .5em; }
.bf-guest__reply p:last-child { margin: 0; }

/* Пагинация гостевой книги: компактный ряд со стрелками и многоточием */
body .bf-guest__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 26px;
}

body .bf-guest__pages a {
    min-width: 38px;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid #d8ecdf;
    border-radius: 8px;
    font-size: 14px;
    color: #3f8f66 !important;
    text-decoration: none !important;
}

body .bf-guest__pages a:hover { background: #f6fcf9; }

body .bf-guest__pages a.is-active {
    background: #3f8f66;
    border-color: #3f8f66;
    color: #fff !important;
    font-weight: 600;
}

body .bf-guest__pages .bf-guest__page-arrow {
    min-width: 0;
    padding: 8px 14px;
    font-weight: 600;
}

body .bf-guest__gap {
    padding: 0 2px;
    color: #93a89a;
    font-size: 14px;
}

/* Карточки «Товары по теме»: одна карточка больше не растягивается на всю
   ширину статьи — иначе превью 300px мылилось до 1240px. */
body .bf-cross__grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 280px)) !important;
    justify-content: start !important;
}

body .bf-cross__card {
    max-width: 280px;
}

body .bf-cross .bf-cross__media {
    max-height: 190px;
}

/* ==== БЛОКИ ГЛАВНОЙ (home-blocks) ==== */
/* ==========================================================================
   ШАПКА: шрифты крупнее на 1–1.5px — на 15px подписи выглядели мелкими.
   ========================================================================== */

body .bf-catstrip__pill { font-size: 16.5px !important; }
body .bf-catstrip__pill span { font-size: 13px !important; }
body .bf-catalog__btn { font-size: 16.5px !important; }
body .bf-search input,
body .bf-search input::placeholder { font-size: 16px !important; }
body .bf-mega__item, body .bf-mega__list a { font-size: 14px !important; }
body .bf-mega__head, body .bf-mega__title { font-size: 15px !important; }
body .bf-mega__sub a, body .bf-mega__list small { font-size: 13.5px !important; }
body .bf-service a, body .bf-service span { font-size: 14px !important; }
body .bf-service__cart small { font-size: 12px !important; }
body .bf-logo__tag { font-size: 13.5px !important; }
body .bf-crumbs { font-size: 14px !important; }
body .bf-topline, body .bf-topline a, body .bf-topline span { font-size: 14.5px !important; }

/* ==========================================================================
   ГЛАВНАЯ: блоки «Хиты продаж», «Коллекции», SEO, отзывы, статьи.
   ========================================================================== */

.bfh {
    margin: 0 auto 46px;
    max-width: 1260px;
}

.bfh__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.bfh__title {
    margin: 0 !important;
    font-size: 30px !important;
    line-height: 1.15 !important;
    color: #27352e !important;
}

.bfh__sub {
    color: #63796c;
    font-size: 15px;
}

.bfh__more {
    color: #3f8f66 !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.bfh__more:hover { text-decoration: underline !important; }

/* --- карусель хитов --- */

.bfh__rail { position: relative; }

.bfh__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4 * 18px) / 5);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 2px 8px;
    margin: 0;
}

.bfh__track::-webkit-scrollbar { display: none; }
.bfh__track > * { scroll-snap-align: start; }

.bfh__arrow {
    position: absolute;
    top: 38%;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 1px solid #bfe6cf;
    border-radius: 50%;
    background: #fff;
    color: #3f8f66;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(28, 62, 42, .12);
}

.bfh__arrow--prev { left: -18px; }
.bfh__arrow--next { right: -18px; }
.bfh__arrow[hidden] { display: none; }
.bfh__arrow:hover { background: #eff8f3; }

.bfh-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 12px;
    background: #fff;
    border: 1px solid #e2f4e9;
    border-radius: 12px;
    overflow: hidden;
}

.bfh-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: #e2f4e9;
    overflow: hidden;
}

/* Фото карточек: перебиваем правило обтекания из статей
   (.entry-content img даёт max-width: 33% !important — карточки сжимались). */
body .entry-content .bfh-card__media img,
body .bfh-card__media img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: block !important;
}

.bfh-card__out {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(253, 236, 235, .95);
    color: #8d2a1c;
    font-size: 11.5px;
    font-weight: 600;
}

.bfh-card__name {
    padding: 0 12px;
    color: #27352e !important;
    font-size: 14.5px;
    line-height: 1.35;
    text-decoration: none !important;
    min-height: 39px;
}

.bfh-card__name:hover { color: #3f8f66 !important; }

.bfh-card__price {
    padding: 0 12px;
    font-size: 17px;
    font-weight: 800;
    color: #27352e;
}

.bfh-card__price del { color: #93a89a; font-weight: 500; font-size: 14px; }
.bfh-card__price ins { text-decoration: none; color: #b8341f; }

.bfh-card__buy {
    margin: 2px 12px 0;
    padding: 9px 10px;
    border-radius: 8px;
    background: #3f8f66;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
}

.bfh-card__buy:hover { background: #33765a; }

.bfh-card__buy--off {
    background: #eff8f3;
    color: #93a89a !important;
    cursor: default;
}

/* --- коллекции --- */

.bfh__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.bfh-col {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #e2f4e9;
    text-decoration: none !important;
}

body .entry-content .bfh-col__img,
body .bfh-col__img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: block !important;
    transition: transform .3s ease;
}

.bfh-col:hover .bfh-col__img { transform: scale(1.05); }

.bfh-col__body {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 34px 16px 14px;
    background: linear-gradient(to top, rgba(20, 40, 28, .82), rgba(20, 40, 28, 0));
    color: #fff;
}

.bfh-col__name { font-size: 19px; font-weight: 700; }

.bfh-col__count {
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    color: #33765a;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* --- SEO-блок --- */

.bfh--seo {
    padding: 30px 34px;
    background: #f6fcf9;
    border: 1px solid #e2f4e9;
    border-radius: 16px;
}

.bfh--seo p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.65;
    color: #27352e;
}

.bfh-adv {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0 8px;
}

.bfh-adv__item b {
    display: block;
    margin-bottom: 4px;
    color: #3f8f66;
    font-size: 16px;
}

.bfh-adv__item span { display: block; color: #63796c; font-size: 14.5px; line-height: 1.5; }

.bfh-seo__more summary {
    cursor: pointer;
    color: #3f8f66;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 0;
}

.bfh-seo__more p { margin-top: 12px; }

/* --- отзывы --- */

.bfh__revs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.bfh-rev {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e2f4e9;
    border-radius: 12px;
}

.bfh-rev__stars { color: #e0a83a; font-size: 16px; letter-spacing: 1px; }

.bfh-rev__text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: #27352e;
    flex: 1;
}

.bfh-rev__author {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #33765a;
}

.bfh-rev__author span { color: #93a89a; font-weight: 400; }

/* --- статьи --- */

.bfh__postgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.bfh-post {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none !important;
}

.bfh-post__media {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: #e2f4e9;
}

body .entry-content .bfh-post__media img,
body .bfh-post__media img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: block !important;
}

.bfh-post__name {
    color: #27352e !important;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}

.bfh-post:hover .bfh-post__name { color: #3f8f66 !important; }

.bfh-post__date { color: #93a89a; font-size: 13px; }

@media (max-width: 1100px) {
    .bfh__track { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
    .bfh__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bfh-adv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bfh__revs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .bfh { margin-bottom: 34px; }
    .bfh__title { font-size: 23px !important; }
    .bfh__track { grid-auto-columns: 72%; }
    .bfh__arrow { display: none; }
    .bfh__cols { grid-template-columns: 1fr; }
    .bfh-adv { grid-template-columns: 1fr; gap: 12px; }
    .bfh__revs { grid-template-columns: 1fr; }
    .bfh__postgrid { grid-template-columns: 1fr; }
    .bfh--seo { padding: 22px 18px; }
}

/* ==========================================================================
   Баннер категории: заголовок ложился тёмным текстом прямо на фото — нечитаемо.
   Добавляем затемнение слева и белый заголовок с тенью.
   ========================================================================== */

body .hero-section[data-type]:has(figure) {
    position: relative;
    overflow: hidden;
}

body .hero-section[data-type]:has(figure) figure {
    position: absolute;
    inset: 0;
    margin: 0;
    z-index: 0;
}

body .hero-section[data-type]:has(figure) figure img,
body .hero-section[data-type]:has(figure) .ct-media-container,
body .hero-section[data-type]:has(figure) .ct-media-container img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    margin: 0 !important;
}

body .hero-section[data-type]:has(figure)::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(18, 38, 26, .66) 0%, rgba(18, 38, 26, .34) 55%, rgba(18, 38, 26, .14) 100%);
    pointer-events: none;
}

body .hero-section[data-type]:has(figure) .entry-header {
    position: relative;
    z-index: 2;
}

body .hero-section[data-type]:has(figure) .page-title,
body .hero-section[data-type]:has(figure) .entry-title {
    color: #fff !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .38);
}

body .hero-section[data-type]:has(figure) .entry-header .ct-breadcrumbs,
body .hero-section[data-type]:has(figure) .entry-header .ct-breadcrumbs a,
body .hero-section[data-type]:has(figure) .entry-header .ct-breadcrumbs span {
    color: rgba(255, 255, 255, .88) !important;
}

/* Крошки: серый на белом был бледным — делаем темнее и выделяем текущую страницу. */
body .bf-crumbs, body .bf-crumbs__in { color: #63796c !important; }
body .bf-crumbs a { color: #33765a !important; }
body .bf-crumbs a:hover { color: #3f8f66 !important; text-decoration: underline; }
body .bf-crumbs__sep { color: #93a89a !important; }
body .bf-crumbs [aria-current="page"], body .bf-crumbs__in > span:last-child { color: #27352e !important; font-weight: 600; }

/* Плашки разделов: по центру страницы, на узких экранах — с левого края,
   иначе при переполнении обрезается первая плашка. */
body .bf-catstrip__in { justify-content: center; }

@media (max-width: 1080px) {
    body .bf-catstrip__in { justify-content: flex-start; }
}

/* ==========================================================================
   Кабинет: блок «Мы на связи» в конце стартовой страницы аккаунта.
   ========================================================================== */

body .bf-acc-help {
    margin: 26px 0 6px;
    padding: 22px 24px;
    background: #f6fcf9;
    border: 1px solid #e2f4e9;
    border-radius: 14px;
}

body .bf-acc-help__title {
    margin: 0 0 8px !important;
    font-size: 20px !important;
    color: #27352e !important;
}

body .bf-acc-help__text {
    margin: 0 0 14px;
    color: #63796c;
    font-size: 15px;
    line-height: 1.55;
}

body .bf-acc-help__soc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

body .bf-acc-help__soc a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #bfe6cf;
    border-radius: 999px;
    background: #fff;
    color: #33765a !important;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none !important;
}

body .bf-acc-help__soc a:hover {
    background: #eff8f3;
    border-color: #3f8f66;
}

body .bf-acc-help__care {
    display: inline-block;
    color: #3f8f66 !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
}

body .bf-acc-help__care:hover { text-decoration: underline !important; }

/* «Служба заботы» в верхней строке: галочка + светлее остальных ссылок. */
body .bf-topbar__care {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff !important;
    font-weight: 600;
}

body .bf-topbar__care::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #7dd3a3;
    color: #1c3f2b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

body .bf-topbar__care:hover { text-decoration: underline !important; }

/* ==========================================================================
   Служба заботы: сетка разделов помощи, поиск, популярные вопросы.
   ========================================================================== */

body .bfc { margin: 0 0 10px; }

body .bfc__intro p {
    margin: 0 0 16px;
    color: #27352e;
    font-size: 16.5px;
    line-height: 1.6;
}

body .bfc__search { position: relative; margin-bottom: 26px; }

body .bfc__search input {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #bfe6cf;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    color: #27352e;
}

body .bfc__search input:focus {
    outline: none;
    border-color: #3f8f66;
    box-shadow: 0 0 0 3px rgba(63, 143, 102, .14);
}

body .bfc__search-hint {
    display: block;
    margin-top: 8px;
    color: #63796c;
    font-size: 14px;
    min-height: 18px;
}

body .bfc__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

body .bfc__card {
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e2f4e9;
    border-radius: 14px;
    transition: box-shadow .2s ease, border-color .2s ease;
}

body .bfc__card:hover {
    border-color: #bfe6cf;
    box-shadow: 0 6px 20px rgba(28, 62, 42, .07);
}

body .bfc__card.is-dim { opacity: .45; }
body .bfc__card.is-hit { border-color: #3f8f66; box-shadow: 0 0 0 2px rgba(63, 143, 102, .16); }

body .bfc__card-title {
    margin: 0 0 12px !important;
    font-size: 19px !important;
    color: #27352e !important;
}

body .bfc__list {
    margin: 0 0 12px !important;
    padding: 0 !important;
    list-style: none !important;
    flex: 1;
}

body .bfc__list li { margin: 0 0 9px; }

body .bfc__list a {
    color: #33765a !important;
    font-size: 15px;
    line-height: 1.45;
    text-decoration: none !important;
}

body .bfc__list a:hover { color: #3f8f66 !important; text-decoration: underline !important; }

body .bfc__card .bfc__more-item { display: none; }
body .bfc__card.is-open .bfc__more-item { display: block; }

body .bfc__more {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    color: #3f8f66;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
}

body .bfc__more:hover { text-decoration: underline; }

body .bfc__ask {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 34px;
    padding: 24px 26px;
    background: #f6fcf9;
    border: 1px solid #e2f4e9;
    border-radius: 14px;
}

body .bfc__ask h2 { margin: 0 0 6px !important; font-size: 21px !important; color: #27352e !important; }
body .bfc__ask p { margin: 0; color: #63796c; font-size: 15px; }

body .bfc__ask-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

body .bfc__btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 10px;
    background: #3f8f66;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
}

body .bfc__btn:hover { background: #33765a; }

body .bfc__phone { color: #27352e !important; font-size: 16px; font-weight: 700; text-decoration: none !important; }

body .bfc__faq h2 { margin: 0 0 16px !important; font-size: 26px !important; color: #27352e !important; }

body .bfc__q {
    margin-bottom: 10px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e2f4e9;
    border-radius: 12px;
}

body .bfc__q.is-dim { opacity: .45; }
body .bfc__q.is-hit { border-color: #3f8f66; }

body .bfc__q summary {
    cursor: pointer;
    font-size: 16.5px;
    font-weight: 600;
    color: #27352e;
    list-style: none;
}

body .bfc__q summary::-webkit-details-marker { display: none; }
body .bfc__q summary::after { content: ' +'; color: #3f8f66; font-weight: 700; }
body .bfc__q[open] summary::after { content: ' −'; }

body .bfc__q p { margin: 12px 0 2px; color: #3c4a42; font-size: 15px; line-height: 1.6; }
body .bfc__q a { color: #3f8f66 !important; }

@media (max-width: 1000px) {
    body .bfc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    body .bfc__grid { grid-template-columns: 1fr; }
    body .bfc__ask { padding: 18px; }
    body .bfc__faq h2 { font-size: 22px !important; }
}

/* ==========================================================================
   ЛИЧНЫЙ КАБИНЕТ: карточная раскладка, иконки в меню, читаемая типографика.
   ========================================================================== */

body .ct-woo-account {
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin: 8px 0 40px;
}

/* --- меню кабинета --- */

body .woocommerce-MyAccount-navigation {
    width: auto !important;
    float: none !important;
    padding: 10px;
    background: #fff;
    border: 1px solid #e2f4e9;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(28, 62, 42, .05);
    position: sticky;
    top: 90px;
}

body .woocommerce-MyAccount-navigation ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body .woocommerce-MyAccount-navigation li { margin: 0 0 2px !important; }

body .woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px !important;
    border-radius: 10px;
    color: #3c4a42 !important;
    font-size: 15px !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: background .15s ease, color .15s ease;
}

body .woocommerce-MyAccount-navigation li a:hover {
    background: #f3faf6;
    color: #33765a !important;
}

body .woocommerce-MyAccount-navigation li.is-active a {
    background: #3f8f66;
    color: #fff !important;
    font-weight: 600;
}

body .woocommerce-MyAccount-navigation li.is-active a::before { background-color: #fff; }

/* иконки пунктов: маска + currentColor, чтобы цвет менялся вместе с текстом */
body .woocommerce-MyAccount-navigation li a::before {
    content: '';
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background-color: #3f8f66;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

body .woocommerce-MyAccount-navigation-link--dashboard a::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");
}

body .woocommerce-MyAccount-navigation-link--orders a::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 7l8-4 8 4v10l-8 4-8-4z'/%3E%3Cpath d='M4 7l8 4 8-4M12 11v10'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 7l8-4 8 4v10l-8 4-8-4z'/%3E%3Cpath d='M4 7l8 4 8-4M12 11v10'/%3E%3C/svg%3E");
}

body .woocommerce-MyAccount-navigation-link--edit-address a::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s7-6.3 7-11a7 7 0 10-14 0c0 4.7 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s7-6.3 7-11a7 7 0 10-14 0c0 4.7 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

body .woocommerce-MyAccount-navigation-link--edit-account a::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-6 8-6s8 2 8 6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-6 8-6s8 2 8 6'/%3E%3C/svg%3E");
}

body .woocommerce-MyAccount-navigation-link--customer-logout a::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M10 5H5v14h5'/%3E%3Cpath d='M14 8l4 4-4 4M18 12H9'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M10 5H5v14h5'/%3E%3Cpath d='M14 8l4 4-4 4M18 12H9'/%3E%3C/svg%3E");
}

/* --- контент кабинета --- */

body .woocommerce-MyAccount-content {
    width: auto !important;
    float: none !important;
    padding: 28px 30px;
    background: #fff;
    border: 1px solid #e2f4e9;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(28, 62, 42, .05);
    font-size: 15.5px;
    line-height: 1.65;
    color: #3c4a42;
}

body .woocommerce-MyAccount-content > p:first-of-type {
    margin: 0 0 18px;
    padding: 14px 16px;
    background: #f6fcf9;
    border-left: 3px solid #3f8f66;
    border-radius: 0 10px 10px 0;
    font-size: 15.5px;
    color: #27352e;
}

body .woocommerce-MyAccount-content a { color: #33765a !important; }
body .woocommerce-MyAccount-content a:hover { color: #3f8f66 !important; }

body .woocommerce-MyAccount-content h2,
body .woocommerce-MyAccount-content h3 {
    margin: 24px 0 12px !important;
    font-size: 21px !important;
    color: #27352e !important;
}

/* таблицы заказов и адресов */
body .woocommerce-MyAccount-content table.shop_table {
    border: 1px solid #e2f4e9 !important;
    border-radius: 12px !important;
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
    font-size: 15px;
}

body .woocommerce-MyAccount-content table.shop_table th {
    background: #f6fcf9;
    color: #27352e;
    font-weight: 600;
    padding: 12px 14px !important;
    border-bottom: 1px solid #e2f4e9 !important;
}

body .woocommerce-MyAccount-content table.shop_table td {
    padding: 12px 14px !important;
    border-bottom: 1px solid #f0f7f3 !important;
    color: #3c4a42;
}

body .woocommerce-MyAccount-content table.shop_table tr:last-child td { border-bottom: 0 !important; }

/* кнопки в кабинете */
body .woocommerce-MyAccount-content .button,
body .woocommerce-MyAccount-content button.button,
body .woocommerce-MyAccount-content input.button {
    padding: 11px 18px !important;
    border-radius: 10px !important;
    background: #3f8f66 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border: 0 !important;
}

body .woocommerce-MyAccount-content .button:hover { background: #33765a !important; }

/* поля форм */
body .woocommerce-MyAccount-content .form-row input.input-text,
body .woocommerce-MyAccount-content .form-row select {
    padding: 11px 13px !important;
    border: 1px solid #cfe6d8 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    background: #fff;
}

body .woocommerce-MyAccount-content .form-row input.input-text:focus,
body .woocommerce-MyAccount-content .form-row select:focus {
    outline: none;
    border-color: #3f8f66 !important;
    box-shadow: 0 0 0 3px rgba(63, 143, 102, .13);
}

body .woocommerce-MyAccount-content .form-row label {
    font-size: 14px;
    font-weight: 600;
    color: #27352e;
}

/* --- мобильная версия: меню горизонтальными плашками --- */

@media (max-width: 900px) {
    body .ct-woo-account {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    body .woocommerce-MyAccount-navigation {
        position: static;
        padding: 8px;
    }

    body .woocommerce-MyAccount-navigation ul {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    body .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }

    body .woocommerce-MyAccount-navigation li { margin: 0 !important; flex: 0 0 auto; }

    body .woocommerce-MyAccount-navigation li a { white-space: nowrap; padding: 9px 12px !important; }

    body .woocommerce-MyAccount-content { padding: 20px 16px; }
}

/* Доработки кабинета: заголовок страницы без серой плашки и контраст текста. */
body .ct-woo-account .entry-header,
body.woocommerce-account .entry-header {
    background: none !important;
    border: 0 !important;
    padding: 6px 0 18px !important;
    margin: 0 !important;
}

body.woocommerce-account .entry-header .page-title,
body.woocommerce-account .entry-header h1 {
    font-size: 32px !important;
    letter-spacing: -0.015em;
    color: #27352e !important;
    text-shadow: none !important;
}

/* Вторичный текст в карточке поддержки был слишком бледным */
body .bf-acc-help__text { color: #4a5b52 !important; }
body .bf-acc-help__soc a { color: #2b6a4c !important; }

/* Мобильное меню кабинета: переносим плашки, иначе последний пункт обрезается. */
@media (max-width: 900px) {
    body .woocommerce-MyAccount-navigation ul {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* ==========================================================================
   Быстрые карточки на главной: мятная подложка под всей сеткой 2×2.
   Карточки — полупрозрачные светлые плитки на градиенте, без тяжёлых рамок.
   ========================================================================== */

body .bfa-quick {
    position: relative;
    padding: 12px;
    border-radius: 22px;
    gap: 12px;
    background:
        radial-gradient(120% 120% at 10% 0%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 58%),
        linear-gradient(160deg, #e9f8f0 0%, #ddf3e9 45%, #cdeade 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 10px 28px rgba(28, 62, 42, .07);
}

body .bfa-quick a {
    background: rgba(255, 255, 255, .42) !important;
    border: 1px solid rgba(255, 255, 255, .68) !important;
    border-radius: 14px !important;
    -webkit-backdrop-filter: blur(6px) saturate(1.08);
    backdrop-filter: blur(6px) saturate(1.08);
    box-shadow: 0 1px 2px rgba(28, 62, 42, .04);
}

body .bfa-quick a:hover {
    background: rgba(255, 255, 255, .88) !important;
    border-color: rgba(191, 230, 207, .95) !important;
}

body .bfa-quick b { color: #27352e; }
body .bfa-quick small { color: #4a5b52; }

@media (max-width: 700px) {
    body .bfa-quick {
        padding: 10px;
        gap: 10px;
        border-radius: 18px;
    }
}

/* Кнопка подписки — теперь ссылка на внешнюю форму сервиса рассылок. */
body .bf-subscribe__btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 10px;
    background: #3f8f66;
    color: #fff !important;
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .15s ease;
}

body .bf-subscribe__btn:hover { background: #33765a; }

body .bf-subscribe__form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* ==========================================================================
   Cookie-баннер и чекбокс согласия (152-ФЗ)
   ========================================================================== */

body .bf-cookie {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(1100px, calc(100% - 32px));
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #d8ecdf;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(28, 62, 42, .16);
}

body .bf-cookie[hidden] { display: none !important; }

body .bf-cookie__text {
    margin: 0;
    flex: 1;
    color: #3c4a42;
    font-size: 14.5px;
    line-height: 1.5;
}

body .bf-cookie__text a { color: #33765a !important; }

body .bf-cookie__actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

body .bf-cookie__ok,
body .bf-cookie__no {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

body .bf-cookie__ok {
    border: 1px solid #3f8f66;
    background: #3f8f66;
    color: #fff;
}

body .bf-cookie__ok:hover { background: #33765a; }

body .bf-cookie__no {
    border: 1px solid #cfe6d8;
    background: #fff;
    color: #33765a;
}

body .bf-cookie__no:hover { background: #f3faf6; }

/* Чекбокс согласия в чекауте и регистрации */
body .bf-consent label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14.5px;
    line-height: 1.5;
    color: #3c4a42;
}

body .bf-consent input[type="checkbox"] {
    margin: 3px 0 0;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    accent-color: #3f8f66;
}

body .bf-consent a { color: #33765a !important; }

@media (max-width: 760px) {
    body .bf-cookie {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        bottom: 10px;
        padding: 14px 16px;
    }

    body .bf-cookie__actions { justify-content: space-between; }
    body .bf-cookie__ok, body .bf-cookie__no { flex: 1; text-align: center; }
}

/* Блок «Мы на связи» в кабинете: почта + каналы. */
body .bf-acc-help__mail {
    color: #2b6a4c !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body .bf-acc-help__mail:hover { color: #3f8f66 !important; }

body .bf-acc-help__text--soc { margin: 0 0 10px !important; }

/* ==========================================================================
   АУДИТ ГЛАВНОЙ 2026-11-22 (вид)
   Что было до правок — снимки в /root/backups/home-look-2026-11-22/.
   1. Карточки 2×2: сплошные белые плитки вместо полупрозрачных с blur —
      мятный градиент просвечивал сквозь них и «подкрашивал» иконки и подписи.
   2. Иконка — в белом квадратном чипе, чтобы эмодзи не садилось на зелень.
   3. Подписи под карточками: 12.5px/#4a5b52 -> 13px/#3b4d43.
   4. Кнопка баннера и плашка «203 сорта в наличии» — контрастнее.
   5. Стрелки карусели «Хиты продаж» вынесены в поля страницы, не наезжают на фото.
   6. Нижняя строка подвала 13px -> 13.5px.
   ========================================================================== */

/* --- 1-3. Быстрые карточки: убираем зелёную вуаль --- */
body .bfa-quick {
    background: linear-gradient(160deg, #eaf7f0 0%, #e0f3e9 55%, #d5edde 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 26px rgba(28, 62, 42, .06);
}

body .bfa-quick a {
    background: #fff !important;
    border: 1px solid #dcefe3 !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 1px 2px rgba(28, 62, 42, .05);
}

body .bfa-quick a:hover {
    background: #f6fcf9 !important;
    border-color: #b3dcc5 !important;
}

body .bfa-quick b { color: #22302a; font-size: 15.5px; }
body .bfa-quick small { color: #3b4d43; font-size: 13px; }

body .bfa-quick a::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: auto;
    border: 1px solid #e0f2e8;
    border-radius: 11px;
    background: #f1faf5;
    font-size: 20px;
    line-height: 1;
}

/* --- 4. Баннер: кнопка — полупрозрачное «стекло» вместо тёмной заливки --- */
body .bfb-hero__btn,
body .bfb-slider .bfb-hero__btn {
    padding: 14px 29px;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .72);
    color: #fff !important;
    font-weight: 700;
    text-shadow: 0 1px 10px rgba(6, 24, 15, .45);
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
    backdrop-filter: blur(10px) saturate(1.15);
    box-shadow: 0 10px 26px rgba(8, 28, 18, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
}

body .bfb-hero__btn:hover {
    background: rgba(255, 255, 255, .34);
    border-color: #fff;
}

body .bfb-slide__badge {
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(255, 255, 255, .9);
    color: #1e4432;
    font-weight: 600;
}

/* --- 5. Стрелки карусели: в поля страницы, а не поверх фото --- */
@media (min-width: 1321px) {
    body .bfh__arrow--prev { left: -56px; }
    body .bfh__arrow--next { right: -56px; }
}

@media (max-width: 1320px) and (min-width: 701px) {
    body .bfh__arrow--prev { left: 4px; }
    body .bfh__arrow--next { right: 4px; }
    body .bfh__arrow { background: rgba(255, 255, 255, .95); }
}

/* --- 6. Подвал: нижняя строка чуть крупнее --- */
body .bf-footer__bottom-in,
body .bf-footer__bottom-links a { font-size: 13.5px !important; }

/* --- 7. Быстрое меню под шапкой: компактнее и без «канцелярских» подчёркиваний --- */
body .bf-quicknav {
    margin: 0 0 16px;
    padding: 4px;
    border-color: rgba(0, 0, 0, .07);
    border-radius: 11px;
}

body .bf-quicknav > a {
    min-height: 52px;
    gap: 4px;
    padding: 6px 4px;
    font-size: 12.5px;
    color: #2b3a33;
}

body .bf-quicknav > a span {
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}

body .bf-quicknav > a:hover span { border-bottom-color: #2f6f4e; }

body .bf-quicknav svg { width: 20px; height: 20px; }

/* --- 8. Мобильный первый экран: верхняя строка не обрезается, стрелки не лезут на текст --- */
@media (max-width: 760px) {
    body .bf-topbar__in {
        justify-content: center;
        gap: 8px;
        height: auto;
        padding: 7px 12px;
        overflow: visible;
    }

    body .bf-topbar__city { display: none; }

    body .bf-topbar__phone {
        margin-left: 0;
        padding-left: 0;
        font-size: 12.5px;
        white-space: nowrap;
    }

    body .bfb-slider__nav { display: none; }
}

/* --- 9. Баннер: найден настоящий виновник «зелёного отсвета поверх текста» ---
   Градиентная плёнка висела на .bfb-hero:after с z-index:1, а слайд шёл без z-index —
   плёнка ложилась ПОВЕРХ заголовка и кнопки и гасила их до серо-зелёного.
   Теперь внешняя плёнка ушла под слайды (z-index:0), а слайд поднят (z-index:1):
   фото темнеет своим собственным градиентом .bfb-slide:after, текст рисуется поверх. */
body .bfb-hero:after { z-index: 0; }
body .bfb-hero .bfb-slide { z-index: 1; }

/* --- 10. Баннер: затемняем не весь кадр, а только зону текста (слева) ---
   Раньше плёнка гасила всю фотографию — отсюда «слишком тёмный зелёный».
   Теперь скрим идёт слева, где стоит текст, а правая часть фото остаётся живой. */
body .bfb-slide:after {
    background:
        linear-gradient(90deg, rgba(16, 40, 28, .88) 0%, rgba(16, 40, 28, .66) 34%, rgba(16, 40, 28, .18) 62%, rgba(16, 40, 28, 0) 86%),
        linear-gradient(0deg, rgba(16, 40, 28, .42) 0%, rgba(16, 40, 28, 0) 52%);
}

body .bfb-slide h1,
body .bfb-slide h2,
body .bfb-hero__body h1 {
    text-shadow: 0 2px 16px rgba(6, 24, 15, .38);
}

body .bfb-slide .bfb-hero__body p { text-shadow: 0 1px 10px rgba(6, 24, 15, .3); }

/* ---------- Избранное в шапке: панель по наведению ---------- */
.bf-header .bf-fav-dd { position: relative; display: inline-flex; align-items: center; }
.bf-fav-dd::after {                 /* мост между кнопкой и панелью, чтобы не закрывалась по дороге */
    content: ''; position: absolute; left: -8px; right: -8px; top: 100%; height: 14px;
}
.bf-fav-dd__panel {
    position: absolute; top: calc(100% + 12px); right: 0; z-index: 1200;
    width: 324px; padding: 14px 14px 12px; background: #fff; border-radius: 14px;
    box-shadow: 0 18px 40px rgba(20, 40, 30, .16), 0 2px 8px rgba(20, 40, 30, .08);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.bf-fav-dd:hover .bf-fav-dd__panel,
.bf-fav-dd:focus-within .bf-fav-dd__panel {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.bf-fav-dd__title {
    margin: 0 0 10px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
    color: #6b7c72; font-weight: 700;
}
.bf-fav-dd__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bf-fav-dd__list li { margin: 0; }
.bf-fav-dd__list a {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center;
    padding: 6px; border-radius: 10px; text-decoration: none; color: inherit;
}
.bf-fav-dd__list a:hover { background: #f2f7f3; }
.bf-fav-dd__list img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; display: block; }
.bf-fav-dd__name {
    font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.bf-fav-dd__price { font-size: 13px; font-weight: 700; color: #1f6b46; white-space: nowrap; }
.bf-fav-dd__price del { color: #98a89f; font-weight: 400; }
.bf-fav-dd__all {
    display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e7efe9;
    font-size: 13.5px; font-weight: 600; color: #1f6b46; text-decoration: none;
}
.bf-fav-dd__panel--empty { text-align: center; font-size: 13.5px; color: #44574d; }
.bf-fav-dd__panel--empty p { margin: 4px 0 8px; }
.bf-fav-dd__panel--empty a { color: #1f6b46; font-weight: 600; text-decoration: none; }
@media (max-width: 900px) {
    .bf-fav-dd__panel, .bf-fav-dd::after { display: none; }
}
.bf-fav-dd__empty { text-align: center; font-size: 13.5px; color: #44574d; padding: 6px 0 4px; }
.bf-fav-dd__empty p { margin: 0 0 6px; }
.bf-fav-dd__empty a { color: #1f6b46; font-weight: 600; text-decoration: none; }

/* Главная: воздух между полосой категорий и блоком «Кабинет/Заказы/Избранное/Корзина» — вдвое меньше (было 60px) */
body.home main.site-main > .ct-container-full { padding-top: 30px; }
@media (max-width: 900px) {
    body.home main.site-main > .ct-container-full { padding-top: 18px; }
}

/* Главная: компактные подписи на карточках товаров (фото не трогаем) */
body.home ul.products li.product .woocommerce-loop-product__title {
    font-size: 13.5px !important;
    line-height: 1.22 !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.home ul.products li.product .price {
    font-size: 15.5px !important;
    line-height: 1.2 !important;
    margin: 0 0 2px !important;
}
body.home ul.products li.product .entry-meta {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
}
body.home ul.products li.product figure { margin-bottom: 10px !important; }
body.home ul.products li.product .price { padding: 0 !important; }
/* Кнопка «В корзину» на главной: своя полоса под подписями, чтобы не закрывать цену */
body.home ul.products li.product { padding-bottom: 46px !important; }
body.home ul.products li.product a.button {
    top: auto !important;
    bottom: 10px !important;
    height: 34px !important;
    line-height: 34px !important;
    font-size: 14px !important;
    padding: 0 14px !important;
}

/* Главная: компактные подписи на карточках карусели «Хиты продаж» (фото не трогаем) */
body.home .bfh-card { gap: 5px !important; padding-bottom: 8px !important; }
body.home .bfh-card__name {
    font-size: 13.5px !important;
    line-height: 1.22 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.home .bfh-card__price { font-size: 15.5px !important; line-height: 1.2 !important; }
body.home .bfh-card__buy {
    height: 36px !important;
    line-height: 36px !important;
    font-size: 13.5px !important;
    padding: 0 12px !important;
}

/* Каталог (/shop/): зелёная полоса с заголовком — вдвое ниже (250 -> 125 px) */
body.post-type-archive-product .hero-section .entry-header {
    min-height: 125px !important;
    padding: 40px 0 !important;
}

/* Корзина/оформление: доставка не считается — строка скрыта, вместо неё пояснение */
.woocommerce-shipping-totals { display: none !important; }
.bf-ship-note th {
    display: table-cell !important;
    padding: 12px 0 14px !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #44574d !important;
    text-align: left !important;
}

/* Доставка не считается: не показываем посчитанную сумму под полем индекса */
#bf-pochta-line { display: none !important; }

/* ---------- Быстрые карточки на главной: узкий шрифт, центр, зелёный градиент ---------- */
@font-face {
    font-family: 'PT Sans Narrow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/BngRUXNadjH0qYEzV7ab-oWlsbCCwR26eg.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'PT Sans Narrow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/BngRUXNadjH0qYEzV7ab-oWlsbCGwR0.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
    font-family: 'PT Sans Narrow';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/BngSUXNadjH0qYEzV7ab-oWlsbg95AiBW_3QRQ.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'PT Sans Narrow';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/BngSUXNadjH0qYEzV7ab-oWlsbg95AiFW_0.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}

.bfa-quick a {
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 16px 14px !important;
    font-family: 'PT Sans Narrow', 'Golos Text', system-ui, sans-serif !important;
    color: #12432c !important;
    border: 1px solid rgba(31, 107, 70, .14) !important;
}
.bfa-quick a::before { margin-bottom: 4px !important; font-size: 27px !important; }
.bfa-quick a b { font-family: inherit !important; font-size: 20px !important; font-weight: 700 !important; line-height: 1.1 !important; letter-spacing: .02em !important; }
.bfa-quick a small { margin-top: 0 !important; font-family: inherit !important; font-size: 13.5px !important; color: #3f6b52 !important; }
.bfa-quick a:nth-child(1) { background: linear-gradient(155deg, #f2fbf5 0%, #bde3cd 100%) !important; }
.bfa-quick a:nth-child(2) { background: linear-gradient(155deg, #e8f7ee 0%, #a6d5ba 100%) !important; }
.bfa-quick a:nth-child(3) { background: linear-gradient(155deg, #ddf2e7 0%, #93caa8 100%) !important; }
.bfa-quick a:nth-child(4) { background: linear-gradient(155deg, #f4fcf7 0%, #c6e7d4 100%) !important; }
.bfa-quick a:hover {
    transform: translateY(-2px);
    border-color: #3f8f66 !important;
    filter: saturate(1.06) brightness(1.02);
}

/* подпись разработчика в нижней строке подвала */
.bf-footer__dev { color: #9fb3a7; font-size: 12.5px; }
.bf-footer__dev a { color: #cfe0d6; text-decoration: underline; text-underline-offset: 2px; }
.bf-footer__dev a:hover { color: #fff; }

/* ШАПКА НА ТЕЛЕФОНЕ: три короткие строки, при прокрутке остаётся одна */
@media (max-width: 780px) {
    .bf-topbar { display: none !important; }
    .bf-header { position: relative; }   /* на телефоне шапка уезжает вместе со страницей: без прыжков и перекрытий */
    .bf-header__in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 10px; }

    .bf-logo { order: 1; flex: 0 0 auto; }
    .bf-logo img, .bf-logo__img { height: 28px !important; width: auto !important; }
    .bf-logo__tag { display: none !important; }

    .bf-catalog { order: 2; }
    .bf-catalog__btn { padding: 8px 11px !important; font-size: 13px !important; line-height: 1.1; }

    .bf-service { order: 3; margin-left: auto; gap: 10px; }
    .bf-service a { font-size: 0 !important; }
    .bf-service a em svg { width: 22px; height: 22px; }
    .bf-service a { flex-direction: column; gap: 1px; }
    .bf-service__cart { flex-direction: row !important; gap: 5px !important; }
    .bf-service__cart small { font-size: 12px !important; white-space: nowrap; }
    .bf-service a:not(.bf-service__cart):not([href*="my-account"]) { display: none !important; }

    .bf-search { order: 4; flex: 1 0 100%; height: 40px; margin: 0; }
    .bf-search input { height: 40px !important; font-size: 15px !important; }

    .bf-breadcrumbs { display: none !important; }
    .bf-crumbs { display: block !important; }

    .bf-catstrip { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .bf-catstrip__in { flex-wrap: nowrap !important; padding: 0 10px 4px; }
    .bf-catstrip__pill { padding: 5px 11px !important; font-size: 13px !important; white-space: nowrap; line-height: 1.25; }
    .bf-catstrip::-webkit-scrollbar { display: none; }

    .bf-header.is-compact .bf-search,
    .bf-header.is-compact .bf-catstrip { display: none !important; }
    .bf-header.is-compact .bf-header__in { padding: 6px 10px; }
    .bf-header.is-compact .bf-logo img,
    .bf-header.is-compact .bf-logo__img { height: 24px !important; }
    .bf-header.is-compact { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
}

/* Телефон узкий: в первой строке только значки, чтобы корзина не переносилась */
@media (max-width: 430px) {
    .bf-logo img, .bf-logo__img { height: 26px !important; }
    body .bf-catalog__btn { font-size: 0 !important; padding: 9px 11px !important; }
    .bf-cart-word { display: none !important; }
    .bf-cart-sum { display: none !important; }
    .bf-service__cart small { font-size: 11.5px !important; }
    .bf-catalog__burger { margin: 0 !important; }
    .bf-catalog__chev { font-size: 11px !important; margin-left: 2px !important; }
    .bf-service { gap: 8px; }
    .bf-service__cart small { font-size: 11px !important; }
}

/* Каталог на телефоне: панель во всю ширину, две колонки, своя прокрутка */
@media (max-width: 780px) {
    .bf-catalog { position: static; }
    .bf-catalog__menu {
        position: fixed;
        left: 0 !important;
        right: 0;
        top: var(--bf-menu-top, 140px);
        width: auto;
        min-width: 0;
        max-height: var(--bf-menu-max, 70vh);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        border-radius: 0 0 16px 16px;
        padding: 10px 12px 18px;
    }
    .bf-mega { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
    .bf-mega__head { font-size: 15px; }
    .bf-mega__item > a { padding: 8px 6px; }
}
@media (max-width: 359px) {
    .bf-mega { grid-template-columns: 1fr; }
}

/* Каталог на телефоне: усиленные правила, перебивают старые ширины */
@media (max-width: 780px) {
    body .bf-catalog__menu {
        width: auto !important;
        left: 0 !important;
        right: 0 !important;
        min-width: 0 !important;
        max-height: var(--bf-menu-max, 70vh) !important;
    }
    body .bf-mega { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Каталог на телефоне: одна колонка, читаемые названия */
@media (max-width: 430px) {
    body .bf-mega { grid-template-columns: 1fr !important; gap: 10px 0 !important; }
    body .bf-catalog__menu { padding: 8px 10px 16px !important; }
    .bf-mega__head { font-size: 15.5px !important; }
    .bf-mega__item > a { padding: 9px 8px !important; font-size: 14.5px !important; }
    .bf-mega__sub { padding-left: 10px !important; }
}

/* Первый баннер на телефоне: компактный, чтобы в экран попадало больше витрины */
@media (max-width: 780px) {
    .bfb-hero, body .bfb-hero.bfb-slider { min-height: 320px !important; margin: 4px auto 12px !important; border-radius: 18px !important; }
    .bfb-hero__body { padding: 18px 16px 16px !important; max-width: none !important; }
    .bfb-hero__body h1 { font-size: 23px !important; line-height: 1.16 !important; margin: 0 0 8px !important; letter-spacing: -.01em; }
    .bfb-hero__body p { font-size: 14px !important; line-height: 1.45 !important; margin: 0 0 12px !important; }
    .bfb-hero__btn { padding: 11px 20px !important; font-size: 14px !important; }
    .bfb-slider__nav { display: none !important; }
    .bfb-slider__dots { bottom: 8px !important; }
}
@media (max-width: 430px) {
    .bfb-hero, body .bfb-hero.bfb-slider { min-height: 286px !important; }
    .bfb-hero__body h1 { font-size: 21px !important; }
    .bfb-hero__body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Статьи блога: фото в тексте. Только снятие обтекания и аккуратные поля.
   Сетку, кроп по 4:3 и выравнивание текста не трогаем: на старых статьях это
   рвало вёрстку и обрезало снимки. */
body.single-post .entry-content > :not(.bf-rail) img {
    float: none !important;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 18px 0 !important;
    border-radius: 14px;
}

@media (max-width: 600px) {
    body.single-post .entry-content > :not(.bf-rail) img { margin: 14px 0 !important; border-radius: 12px; }
}
body.single-post .entry-content p:has(> a > img) { margin-left: 0 !important; margin-right: 0 !important; }
body.single-post .entry-content { padding-left: 2px; padding-right: 2px; }

/* Плитки разделов: градиент в CSS, обложка двух размеров - лёгкая для телефона */
.bf-tile {
    background-image: linear-gradient(180deg, rgba(15,36,26,.18) 0%, rgba(15,36,26,.84) 100%), var(--bf-cover);
    background-size: cover;
    background-position: center;
}
@media (max-width: 780px) {
    .bf-tile { background-image: linear-gradient(180deg, rgba(15,36,26,.18) 0%, rgba(15,36,26,.84) 100%), var(--bf-cover-sm, var(--bf-cover)); }
}

/* Плитки-бенто на главной: лёгкая обложка для телефона */
.bfa-bento__tile { background-image: var(--bfa-lg); background-size: cover; background-position: center; }
@media (max-width: 780px) {
    .bfa-bento__tile { background-image: var(--bfa-sm, var(--bfa-lg)); }
}

/* Статья: текст и фото в одной колонке с заголовком.
   Без этого содержимое растягивалось на всю ширину окна, а заголовок жил в колонке 750 px:
   фото уезжали влево, справа оставалась пустота. */
body.single-post .entry-content.is-layout-constrained > *,
body.single-post .entry-content > * {
    max-width: 750px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.single-post .entry-content > :not(.bf-rail) img {
    float: none !important;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 18px auto !important;
    border-radius: 14px;
}

@media (max-width: 780px) {
    body.single-post .entry-content > * { max-width: none; }
    body.single-post .entry-content > :not(.bf-rail) img { margin: 14px auto !important; border-radius: 12px; }
}

/* Статья: правая колонка с содержанием и похожими статьями (от 1200 px) */
.bf-rail { display: none; }

@media (min-width: 1200px) {
    body.single-post .entry-content {
        display: grid;
        grid-template-columns: minmax(0, 750px) 300px;
        column-gap: 44px;
        justify-content: center;
        align-items: start;
    }

    body.single-post .entry-content > * {
        grid-column: 1;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* заголовок статьи стоит по той же оси, что и текст: иначе он съезжает
       вправо на половину ширины правой колонки */
    body.single-post .hero-section.is-width-constrained {
        transform: translateX(-172px);
    }

    body.single-post .entry-content > .bf-rail {
        grid-column: 2;
        grid-row: 1 / span 500;
        display: block;
        align-self: start;
        font-size: 14px;
    }
}

.bf-rail__block {
    background: #f7fcf9;
    border: 1px solid #e2f4e9;
    border-radius: 16px;
    padding: 16px 16px 14px;
    margin-bottom: 16px;
}

.bf-rail__title {
    margin: 0 0 10px !important;
    font-size: 12px !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6d8a7b !important;
    font-weight: 700;
}

.bf-rail__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.bf-rail__toc li { margin: 0 0 8px; line-height: 1.35; }
.bf-rail__toc li.bf-rail__l3 { padding-left: 12px; font-size: 13px; }
.bf-rail__toc a { color: #2f4a3c !important; text-decoration: none !important; display: block; }
.bf-rail__toc a:hover { color: #3f8f66 !important; }

.bf-rail__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.bf-rail__list li { margin: 0; }

.bf-rail__list a {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6efe9;
    border-radius: 12px;
    text-decoration: none !important;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.bf-rail__list a:hover {
    border-color: #cbe3d4;
    box-shadow: 0 6px 18px rgba(47, 74, 60, .1);
}

.bf-rail__list img,
.bf-rail__noimg {
    width: 100%;
    height: 112px;
    flex: 0 0 auto;
    border-radius: 0;
    object-fit: cover;
    display: block;
}

.bf-rail__noimg { background: linear-gradient(135deg, #eaf6ee, #d9ecdf); }

/* тема ограничивает картинки в тексте статьи — плитки колонки идут мимо этого */
body.single-post .entry-content .bf-rail .bf-rail__list a img {
    width: 100% !important;
    height: 112px !important;
    max-width: none !important;
    object-fit: cover !important;
}

.bf-rail__body { padding: 9px 11px 10px; }

.bf-rail__ttl {
    font-size: 13px;
    line-height: 1.32;
    color: #2f4a3c !important;
    font-weight: 600;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bf-rail__list a:hover .bf-rail__ttl { color: #3f8f66 !important; }

.bf-rail__meta {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.2;
    color: #8aa596;
}

.bf-rail__note { margin: 0 0 12px !important; color: #53705f !important; line-height: 1.4; }
.bf-rail__btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: #3f8f66;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
}
.bf-rail__btn:hover { background: #33765a; }

/* правая колонка: автор, реклама, рубрики */
.bf-rail__author { display: flex; gap: 12px; align-items: center; }
.bf-rail__ava { border-radius: 50%; width: 48px; height: 48px; object-fit: cover; flex: 0 0 auto; }
.bf-rail__aname { margin: 0 !important; font-weight: 700; color: #2f4a3c !important; line-height: 1.25; }
.bf-rail__arole { margin: 2px 0 0 !important; font-size: 12.5px; color: #6d8a7b !important; line-height: 1.3; }

.bf-rail__ad { padding: 10px; }
.bf-rail__ad .bfa-ads { margin: 0 !important; }

.bf-rail__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-rail__chip {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf6ee;
    color: #2f6b4c !important;
    font-size: 12.5px;
    text-decoration: none !important;
    line-height: 1.2;
}
.bf-rail__chip--tag { background: #f2f6f3; color: #53705f !important; }
.bf-rail__chip:hover { background: #d8eddf; }

/* Статья на телефоне: крошки возвращаем, одной строкой и без разгона шапки */
@media (max-width: 780px) {
    body.single-post .bf-crumbs,
    body.single-post .bf-breadcrumbs {
        display: block !important;
        margin: 2px 0 4px !important;
        overflow: hidden;
    }

    body.single-post .bf-crumbs {
        border-top: 0 !important;
    }

    body.single-post .bf-crumbs__in {
        display: block !important;
        padding: 3px 14px 5px !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.bf-rail__adbox {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    border: 1px dashed #cfe3d7;
    border-radius: 12px;
    color: #8aa596;
    font-size: 13px;
    background: repeating-linear-gradient(135deg, #fbfdfb, #fbfdfb 10px, #f4faf6 10px, #f4faf6 20px);
}

/* Нижняя полоса на телефоне: каталог, поиск, корзина */
.bf-mbar { display: none; }

@media (max-width: 780px) {
    .bf-mbar {
        display: flex;
        align-items: center;
        gap: 6px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        height: 56px;
        padding: 0 8px calc(0px + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid #e2f4e9;
        box-shadow: 0 -4px 16px rgba(39, 53, 46, .07);
    }

    body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important; }

    .bf-mbar__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1px;
        min-width: 62px;
        height: 44px;
        color: #2f4a3c !important;
        text-decoration: none !important;
        font-size: 10.5px;
        line-height: 1.1;
        position: relative;
        flex: 0 0 auto;
    }

    .bf-mbar__item svg { width: 21px; height: 21px; }
    .bf-mbar__cart { color: #2f6b4c !important; }

    .bf-mbar__count {
        position: absolute;
        top: 1px;
        right: 8px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: #e2574c;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        line-height: 16px;
        text-align: center;
    }

    .bf-mbar__search {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 1 1 auto;
        min-width: 0;
        height: 38px;
        padding: 0 12px;
        border-radius: 999px;
        background: #f4faf6;
        border: 1px solid #e2f4e9;
    }

    .bf-mbar__search svg { width: 16px; height: 16px; color: #7e9a89; flex: 0 0 auto; }

    .bf-mbar__search input[type="search"] {
        width: 100%;
        min-width: 0;
        border: 0;
        background: transparent;
        font-size: 13px;
        color: #27352e;
        outline: none;
        padding: 0;
    }
}

/* Слайдер главной: свайп пальцем и перетаскивание мышью */
.bfb-slider__track { touch-action: pan-y; }
.bfb-slide img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.bfb-slider__track { cursor: grab; }
.bfb-slider__track:active { cursor: grabbing; }
/* Индикаторы на телефоне: плоские полоски, кнопка баннера их не перекрывает */
@media (max-width: 780px) {
  /* палец попадает в зону 24 px, а видно тонкую полоску 4 px */
  .bfb-slider__dots { bottom: 2px !important; gap: 2px !important; align-items: center; }
  .bfb-slider__dots button { position: relative; width: 18px; height: 24px; background: transparent; border-radius: 0; }
  .bfb-slider__dots button::before {
    content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 4px; margin-top: -2px;
    border-radius: 2px; background: rgba(255, 255, 255, .5); transition: background .15s ease;
  }
  .bfb-slider__dots button.is-active { width: 26px; background: transparent; border-radius: 0; }
  .bfb-slider__dots button.is-active::before { background: #fff; }
  /* блок текста жёстко закреплён: плашка и кнопка на одном месте во всех слайдах */
  .bfb-slide .bfb-hero__body { position: absolute; left: 0; right: 0; top: 52px; bottom: 0; display: flex; flex-direction: column; justify-content: flex-start; padding: 12px 16px 34px !important; }
  .bfb-slide .bfb-slide__badge { flex: 0 0 auto; height: 24px; line-height: 24px; margin: 0 0 8px; }
  .bfb-slide .bfb-hero__body h1,
  .bfb-slide .bfb-hero__body h2 { flex: 0 0 auto; margin: 0 0 8px; }
  .bfb-slide .bfb-hero__body p { flex: 0 0 auto; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body .bfb-slide .bfb-hero__btn { margin-top: auto !important; }
  .bfb-slider__nav { display: none !important; }
}

/* Слайдер на телефоне: плашка, текст и кнопка на фиксированных местах */
@media (max-width: 780px) {
  .bfb-slider .bfb-slide .bfb-hero__body {
    position: absolute; left: 0; right: 0; top: 52px; bottom: 0;
    display: flex; flex-direction: column; justify-content: flex-start;
    padding: 12px 16px 34px !important;
  }
  .bfb-slider .bfb-slide .bfb-slide__badge { height: 24px; line-height: 24px; margin: 0 0 8px !important; flex: 0 0 auto; }
  .bfb-slider .bfb-slide .bfb-hero__body h1,
  .bfb-slider .bfb-slide .bfb-hero__body h2 { margin: 0 0 8px !important; flex: 0 0 auto; }
  .bfb-slider .bfb-slide .bfb-hero__body p {
    margin: 0 !important; flex: 0 0 auto;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .bfb-slider .bfb-slide .bfb-hero__btn { margin-top: auto !important; }
}
@media (max-width: 780px) {
  .bfb-slider .bfb-slide .bfb-hero__body h1,
  .bfb-slider .bfb-slide .bfb-hero__body h2 {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
}
@media (max-width: 780px) {
  .bfb-slider .bfb-slide .bfb-hero__body { position: relative; }
  .bfb-slider .bfb-slide .bfb-hero__btn { position: absolute; left: 16px; bottom: -22px; margin: 0 !important; }
}
@media (max-width: 780px) {
  .bfb-slider .bfb-slide .bfb-hero__body { position: absolute; left: 0; right: 0; top: 52px; bottom: 0; }
  .bfb-slider .bfb-slide .bfb-hero__btn { position: absolute; left: 16px; bottom: 34px; margin: 0 !important; }
}

/* Баннер на телефоне: блок текста по центру по вертикали */
@media (max-width: 780px) {
  .bfb-slider .bfb-slide .bfb-hero__body {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 16px 16px 40px !important;
  }
  .bfb-slider .bfb-slide .bfb-slide__badge { flex: 0 0 auto; height: 24px; line-height: 24px; margin: 0 0 10px !important; }
  .bfb-slider .bfb-slide .bfb-hero__body h1,
  .bfb-slider .bfb-slide .bfb-hero__body h2 {
    flex: 0 0 auto; min-height: 54px; margin: 0 0 8px !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .bfb-slider .bfb-slide .bfb-hero__body p {
    flex: 0 0 auto; min-height: 41px; margin: 0 0 12px !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .bfb-slider .bfb-slide .bfb-hero__btn { position: static; flex: 0 0 auto; margin: 0 !important; }
}
@media (max-width: 780px) {
  .bfb-slider .bfb-slide .bfb-hero__body { padding: 22px 16px 26px !important; }
  .bfb-slider .bfb-slide .bfb-hero__body h1,
  .bfb-slider .bfb-slide .bfb-hero__body h2 { height: 54px; min-height: 0; }
  .bfb-slider .bfb-slide .bfb-hero__body p { height: 41px; min-height: 0; }
}

/* Баннер на телефоне: компактный, заголовок в две строки без обрезки */
@media (max-width: 780px) {
  .bfb-hero, body .bfb-hero.bfb-slider { min-height: 296px !important; }
  .bfb-slider .bfb-slide .bfb-hero__body {
    position: absolute; left: 0; right: 0; top: auto; bottom: 0;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
    padding: 14px 16px 30px !important;
  }
  .bfb-slider .bfb-slide .bfb-slide__badge { height: 22px; line-height: 22px; font-size: 12px; margin: 0 0 8px !important; }
  .bfb-slider .bfb-slide .bfb-hero__body h1,
  .bfb-slider .bfb-slide .bfb-hero__body h2 {
    font-size: 20px !important; line-height: 1.2 !important; height: 48px;
    margin: 0 0 8px !important; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
  .bfb-slider .bfb-slide .bfb-hero__body p {
    font-size: 13.5px !important; line-height: 1.4 !important; height: 38px;
    margin: 0 0 12px !important; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
  .bfb-slider .bfb-slide .bfb-hero__btn { position: static; margin: 0 !important; padding: 10px 18px !important; font-size: 13.5px !important; }
}
@media (max-width: 430px) {
  .bfb-hero, body .bfb-hero.bfb-slider { min-height: 272px !important; }
}
@media (max-width: 780px) {
  .bfb-slider .bfb-slide .bfb-hero__body p { height: 57px; -webkit-line-clamp: 3; }
}

/* Плитки категорий на телефоне: ровная сетка и читаемый текст */
@media (max-width: 780px) {
  body .bfa-bento { grid-auto-rows: 148px !important; gap: 10px !important; }
  body .bfa-bento__tile::after {
    background: linear-gradient(0deg, rgba(10, 30, 19, .88) 0%, rgba(10, 30, 19, .45) 46%, rgba(10, 30, 19, 0) 74%) !important;
  }
  body .bfa-bento__name {
    font-size: 15px !important; line-height: 1.2 !important;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
  }
  body .bfa-bento__note { font-size: 12px !important; opacity: .92; }
  /* последняя плитка закрывает ряд, если он остался непарным */
  body .bfa-bento__tile:last-child { grid-column: span 2; }
}
@media (max-width: 780px) {
  /* 15 плиток: большая на две колонки + 14 обычных = чётное число ячеек */
  body .bfa-bento__tile:last-child { grid-column: span 1; }
}
@media (max-width: 780px) {
  body .bfa-bento__name {
    -webkit-line-clamp: 2; min-height: 34px;
  }
  body .bf-footer { padding-bottom: 96px !important; }
}

/* Баннер на телефоне: контраст и явная кнопка */
@media (max-width: 780px) {
  .bfb-slider .bfb-slide::after {
    background: linear-gradient(0deg, rgba(7, 26, 15, .95) 0%, rgba(7, 26, 15, .72) 42%, rgba(7, 26, 15, .22) 68%, rgba(7, 26, 15, 0) 88%) !important;
  }
  .bfb-slider .bfb-slide .bfb-slide__badge {
    background: #fff !important; color: #2d5b40 !important;
    border: 0 !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  }
  .bfb-slider .bfb-slide .bfb-hero__body h1,
  .bfb-slider .bfb-slide .bfb-hero__body h2 { text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
  .bfb-slider .bfb-slide .bfb-hero__body p { color: rgba(255, 255, 255, .94) !important; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
  .bfb-slider .bfb-slide .bfb-hero__btn {
    background: #46a273 !important; border: 0 !important; color: #fff !important;
    padding: 12px 22px !important; font-size: 14px !important; font-weight: 700 !important;
    box-shadow: 0 6px 18px rgba(4, 20, 12, .35); text-shadow: none !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  .bfb-slider .bfb-slider__dots button::before { background: rgba(255, 255, 255, .62) !important; }
  .bfb-slider .bfb-slider__dots button.is-active::before { background: #fff !important; }
}
