<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"><title>Страница не найдена (404)</title><meta name="description" content="Запрашиваемая страница не существует."><link rel="canonical" href="https://greenapteka.ru/feed/"><meta property="og:locale" content="ru_RU"><meta property="og:type" content="website"><meta property="og:title" content="Страница не найдена (404)"><meta property="og:description" content="Запрашиваемая страница не существует."><meta property="og:url" content="https://greenapteka.ru/feed/"><meta property="og:site_name" content="Зелёная Аптека">
    <link rel="icon" href="/uploads/logo/ga-logo.png">
    <meta property="og:image" content="https://greenapteka.ru/uploads/fon/ga-fon.jpg">
    <style>
        :root {
            --sw-primary: #0042aa;
            --sw-contrast-bg: #1e293b;
            --sw-contrast-card: color-mix(in srgb, var(--sw-contrast-bg) 82%, #ffffff);
            --sw-contrast-border: color-mix(in srgb, var(--sw-contrast-bg) 70%, #ffffff);
            --sw-primary-hover: color-mix(in srgb, var(--sw-primary) 85%, #000);
            --sw-primary-tonal: color-mix(in srgb, var(--sw-primary) 10%, #ffffff);
            --sw-primary-tonal-border: color-mix(in srgb, var(--sw-primary) 24%, transparent);
            --sw-font: 'Roboto', -apple-system, sans-serif;
            --sw-font-size: 17px;
            --sw-line-height: 1.68;
            --sw-radius: 10px;
            --sw-radius-sm: calc(var(--sw-radius) * 0.65);
            --sw-radius-pill: 999px;
            --sw-bg: #f4f6fb; --sw-surface: #ffffff; --sw-surface-tonal: #eef2f9; --sw-glass: rgba(255, 255, 255, 0.82);
            --sw-text: #1e293b; --sw-text-muted: #475569; --sw-text-light: #64748b; --sw-border: rgba(15, 23, 42, 0.08);
            --sw-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
            --sw-shadow-hover: 0 14px 32px -4px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
        }
        [data-theme="dark"] {
            --sw-primary: color-mix(in srgb, #0042aa 78%, #ffffff);
            --sw-primary-hover: color-mix(in srgb, var(--sw-primary) 90%, #ffffff);
            --sw-primary-tonal: color-mix(in srgb, var(--sw-primary) 16%, #131b2e);
            --sw-primary-tonal-border: color-mix(in srgb, var(--sw-primary) 32%, transparent);
            --sw-bg: #0b0f19; --sw-surface: #131b2e; --sw-surface-tonal: #1a243d; --sw-glass: rgba(19, 27, 46, 0.82);
            --sw-text: #f1f5f9; --sw-text-muted: #94a3b8; --sw-text-light: #64748b; --sw-border: rgba(255, 255, 255, 0.08);
            --sw-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.35); --sw-shadow-hover: 0 14px 32px -4px rgba(0, 0, 0, 0.5);
        }
    
        
        
        /* === ЖУРНАЛЬНЫЙ ПОРТАЛ PRO (ОРИГИНАЛ 002: ВИТРИНА 1+1+2, КАРТОЧКИ БЕЗ СЕРЫХ РАМОК, ХОВЕР-ЗУМ, СПИСКИ РУБРИК) === */
        .sw-mag-ticker {
            display: flex; align-items: center; justify-content: space-between; gap: 14px;
            padding: 10px 16px; margin-bottom: 18px; background: var(--sw-surface);
            border: 1px solid var(--sw-border); border-radius: 10px; font-size: 0.88rem;
        }
        .sw-mag-ticker-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
        .sw-mag-ticker-badge {
            background: #14532d; color: #ffffff !important; font-size: 0.72rem; font-weight: 800;
            text-transform: uppercase; letter-spacing: 0.05em; padding: 5px 11px; border-radius: 4px; white-space: nowrap;
        }
        .sw-mag-ticker-link {
            color: var(--sw-text) !important; font-weight: 700; text-decoration: none !important;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s ease;
        }
        .sw-mag-ticker-link:hover { color: var(--sw-primary) !important; }

        /* 1. Витрина 1 + 1 + 2 (Hero 4 tiles, как на 002) */
        .sw-mag-hero-4 {
            display: grid; grid-template-columns: 1.05fr 1fr; gap: 6px; min-height: 430px; margin-bottom: 8px;
            border-radius: 10px; overflow: hidden;
        }
        .sw-mag-hero-right {
            display: grid; grid-template-rows: 1.05fr 0.95fr; gap: 6px;
        }
        .sw-mag-hero-bottom-pair {
            display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
        }
        .sw-mag-tile {
            position: relative; overflow: hidden; background: #0f172a; display: flex; align-items: stretch;
            text-decoration: none !important; color: #ffffff !important; min-height: 205px;
        }
        .sw-mag-tile-bg {
            position: absolute; inset: 0; background-size: cover; background-position: center;
            transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
        }
        .sw-mag-tile:hover .sw-mag-tile-bg { transform: scale(1.05); }
        .sw-mag-tile-overlay {
            position: relative; z-index: 2; width: 100%; min-height: 100%; flex: 1; align-self: stretch; padding: 22px 24px;
            background: linear-gradient(180deg, rgba(15,23,42,0.08) 0%, rgba(15,23,42,0.42) 48%, rgba(15,23,42,0.9) 100%);
            display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; box-sizing: border-box;
        }
        /* Компактное расстояние между секциями в Конструкторе и Журнале + адаптивная пагинация без вылета за края */
        .is-builder-page .sw-pb-section {
            padding: 22px 0 !important;
        }
        .is-builder-page .sw-pb-section:first-child {
            padding-top: 24px !important;
            padding-bottom: 10px !important;
        }
        .sw-j-section {
            margin-bottom: 34px !important;
        }
        .sw-pagination, .fam-pagination {
            display: flex !important;
            flex-wrap: wrap !important;
            justify-content: center !important;
            align-items: center !important;
            gap: 6px !important;
            max-width: 100% !important;
            margin: 34px auto 10px !important;
            padding: 0 8px !important;
            box-sizing: border-box !important;
        }
        .sw-page-dots {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 28px;
            height: 36px;
            color: var(--sw-text-muted, #64748b);
            font-weight: 800;
            user-select: none;
        }
        @media (max-width: 640px) {
            .sw-pagination .sw-page-link, .fam-pagination .fam-page-num {
                min-width: 34px !important;
                height: 34px !important;
                padding: 0 9px !important;
                font-size: 0.84rem !important;
            }
        }
        .sw-mag-cat-pill {
            display: inline-block; background: var(--sw-primary, #15803d); color: #ffffff !important;
            font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
            padding: 4px 9px; border-radius: 3px; margin-bottom: 8px; line-height: 1.2; text-decoration: none !important;
        }
        .sw-mag-tile-title-lg {
            margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.65rem); font-weight: 800; line-height: 1.25;
            color: #ffffff !important; text-shadow: 0 2px 10px rgba(0,0,0,0.45);
        }
        .sw-mag-tile-title-md {
            margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.28rem); font-weight: 800; line-height: 1.28;
            color: #ffffff !important; text-shadow: 0 2px 8px rgba(0,0,0,0.45);
        }
        .sw-mag-tile-title-sm {
            margin: 0; font-size: 0.96rem; font-weight: 800; line-height: 1.28;
            color: #ffffff !important; text-shadow: 0 2px 8px rgba(0,0,0,0.45);
        }

        /* Заголовок секции с акцентным штрихом снизу (как на 002) */
        .sw-mag-sec-head {
            display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
            margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--sw-border); position: relative;
        }
        .sw-mag-sec-head::after {
            content: ""; position: absolute; left: 0; bottom: -1px; width: 46px; height: 3px;
            background: var(--sw-primary, #16a34a); border-radius: 2px;
        }
        .sw-mag-sec-title {
            margin: 0 !important; font-size: 1.05rem !important; font-weight: 900 !important;
            text-transform: uppercase; letter-spacing: 0.04em; color: var(--sw-text);
        }
        .sw-mag-sec-more {
            font-size: 0.84rem; font-weight: 700; color: var(--sw-text-muted) !important; text-decoration: none !important;
            transition: color 0.15s ease; white-space: nowrap;
        }
        .sw-mag-sec-more:hover { color: var(--sw-primary) !important; }

        /* 2. Двухколоночный блок с сайдбаром справа (70% / 30%, без плавающих дублей!) */
        .sw-mag-2col-split {
            display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(260px, 1fr); gap: 34px; align-items: start;
        }

        /* Чистая журнальная рубрика: слева 1 большая статья с бейджем на углу фото + анонс, справа чистый список с миниатюрами */
        .sw-mag-cat-split {
            display: grid; grid-template-columns: 1.08fr 1fr; gap: 26px; align-items: start;
        }
        .sw-mag-lead-card { display: flex; flex-direction: column; }
        .sw-mag-thumb-wrap {
            position: relative; display: block; width: 100%; aspect-ratio: 16/10; border-radius: 6px;
            overflow: hidden; background: #e2e8f0; margin-bottom: 12px;
        }
        .sw-mag-thumb-wrap img {
            width: 100%; height: 100%; object-fit: cover; display: block; margin: 0 !important;
            transition: transform 0.35s ease;
        }
        .sw-mag-thumb-wrap:hover img { transform: scale(1.04); }
        .sw-mag-thumb-wrap .sw-mag-cat-pill {
            position: absolute; left: 10px; bottom: 10px; margin: 0; z-index: 2;
        }
        .sw-mag-lead-title {
            margin: 0 0 8px !important; font-size: 1.2rem !important; font-weight: 800 !important; line-height: 1.32 !important;
        }
        .sw-mag-lead-title a {
            color: var(--sw-text) !important; text-decoration: none !important; transition: color 0.15s ease;
        }
        .sw-mag-lead-title a:hover { color: var(--sw-primary) !important; }
        .sw-mag-lead-excerpt {
            margin: 0; font-size: 0.92rem; line-height: 1.58; color: var(--sw-text-muted);
        }

        /* Чистый список справа (без серых рамок вокруг каждого пункта, как на 002) */
        .sw-mag-clean-list {
            display: flex; flex-direction: column; gap: 14px;
        }
        .sw-mag-clean-item {
            display: flex; gap: 13px; align-items: flex-start; padding-bottom: 14px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.18);
        }
        .sw-mag-clean-item:last-child { border-bottom: none; padding-bottom: 0; }
        .sw-mag-clean-thumb {
            width: 86px; height: 62px; border-radius: 5px; overflow: hidden; flex-shrink: 0; background: #e2e8f0; display: block;
        }
        .sw-mag-clean-thumb img {
            width: 100%; height: 100%; object-fit: cover; display: block; margin: 0 !important; transition: transform 0.3s ease;
        }
        .sw-mag-clean-thumb:hover img { transform: scale(1.06); }
        .sw-mag-clean-title {
            margin: 0 !important; font-size: 0.93rem !important; font-weight: 700 !important; line-height: 1.36 !important;
        }
        .sw-mag-clean-title a {
            color: var(--sw-text) !important; text-decoration: none !important; transition: color 0.15s ease;
        }
        .sw-mag-clean-title a:hover { color: var(--sw-primary) !important; }

        /* Лента статей: Фото слева + Заголовок и анонс справа (как «Свежие записи» на 002) */
        .sw-mag-feed-list { display: flex; flex-direction: column; gap: 22px; }
        .sw-mag-feed-row {
            display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start;
            padding-bottom: 22px; border-bottom: 1px solid rgba(148, 163, 184, 0.18);
        }
        .sw-mag-feed-row:last-child { border-bottom: none; padding-bottom: 0; }

        /* 3 колонки рубрик: сверху фото с заголовком внутри затемнения + снизу чистый список с миниатюрами (как на 002) */
        .sw-mag-3cols-cat {
            display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start;
        }
        .sw-mag-col-hero {
            position: relative; display: flex; width: 100%; aspect-ratio: 16/10; border-radius: 6px;
            overflow: hidden; background: #0f172a; margin-bottom: 16px; text-decoration: none !important; color: #fff !important;
        }

        /* Сетка 2 колонки с бейджем на фото (как «Последние записи» внизу 002) */
        .sw-mag-2cols-grid {
            display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 24px;
        }

        @media (max-width: 960px) {
            .sw-mag-hero-4 { grid-template-columns: 1fr; min-height: auto; }
            .sw-mag-tile { min-height: 240px; }
            .sw-mag-2col-split { grid-template-columns: 1fr; }
            .sw-mag-3cols-cat { grid-template-columns: 1fr; }
        }
        @media (max-width: 640px) {
            .sw-mag-hero-bottom-pair,
            .sw-mag-cat-split,
            .sw-mag-feed-row,
            .sw-mag-2cols-grid { grid-template-columns: 1fr; }
        }

        /* === УНИВЕРСАЛЬНЫЙ КОНСТРУКТОР ПОДВАЛА (FOOTER PRO v5.4 — ТЕМНЫЙ / СВЕТЛЫЙ, 3 ИЛИ 4 КОЛОНКИ, ДИСКЛЕЙМЕР И ЮРИД. СТРОКА) === */
        .sw-footer.sw-footer-pro {
            padding: 64px 0 34px;
            margin-top: 64px;
            font-size: 0.94rem;
            transition: background-color 0.2s ease, color 0.2s ease;
        }
        /* Вариант 1: Темный подвал со светлым текстом (как на скриншоте 2) */
        .sw-footer.sw-footer-pro.is-dark-footer {
            background: var(--sw-contrast-bg, #182232) !important;
            color: #cbd5e1 !important;
            border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
        }
        .sw-footer.sw-footer-pro.is-dark-footer .sw-footer-title {
            color: #ffffff !important;
        }
        .sw-footer.sw-footer-pro.is-dark-footer .sw-footer-menu a {
            color: #cbd5e1 !important;
        }
        .sw-footer.sw-footer-pro.is-dark-footer .sw-footer-menu a:hover {
            color: #ffffff !important;
        }
        .sw-footer.sw-footer-pro.is-dark-footer .sw-footer-text-lead {
            color: #ffffff !important;
        }
        .sw-footer.sw-footer-pro.is-dark-footer .sw-footer-text-body {
            color: #cbd5e1 !important;
        }
        .sw-footer.sw-footer-pro.is-dark-footer .sw-footer-contact-row {
            color: #f1f5f9 !important;
        }
        .sw-footer.sw-footer-pro.is-dark-footer .sw-footer-contact-email {
            color: #4ade80 !important;
            font-weight: 700;
            text-decoration: none;
        }
        .sw-footer.sw-footer-pro.is-dark-footer .sw-footer-contact-phone {
            color: #ffffff !important;
            font-weight: 700;
            text-decoration: none;
        }
        .sw-footer.sw-footer-pro.is-dark-footer .sw-footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
            color: #94a3b8 !important;
        }
        .sw-footer.sw-footer-pro.is-dark-footer .sw-footer-bottom-legal a {
            color: #94a3b8 !important;
        }
        .sw-footer.sw-footer-pro.is-dark-footer .sw-footer-bottom-legal a:hover {
            color: #ffffff !important;
        }
        .sw-footer.sw-footer-pro.is-dark-footer .sw-footer-disclaimer-banner {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #e2e8f0;
        }
        .sw-footer.sw-footer-pro.is-dark-footer .sw-footer-disclaimer-title {
            color: #ffffff;
        }

        /* Вариант 2: Светлый подвал (как на скриншоте 3, с поддержкой ночного режима сайта) */
        .sw-footer.sw-footer-pro.is-light-footer {
            background: #f8fafc !important;
            color: #475569 !important;
            border-top: 1px solid #e2e8f0 !important;
        }
        .sw-footer.sw-footer-pro.is-light-footer .sw-footer-title {
            color: #0f172a !important;
        }
        .sw-footer.sw-footer-pro.is-light-footer .sw-footer-menu a {
            color: #475569 !important;
        }
        .sw-footer.sw-footer-pro.is-light-footer .sw-footer-menu a:hover {
            color: var(--sw-primary, #2563eb) !important;
        }
        .sw-footer.sw-footer-pro.is-light-footer .sw-footer-text-lead {
            color: #0f172a !important;
        }
        .sw-footer.sw-footer-pro.is-light-footer .sw-footer-text-body {
            color: #475569 !important;
        }
        .sw-footer.sw-footer-pro.is-light-footer .sw-footer-contact-row {
            color: #0f172a !important;
        }
        .sw-footer.sw-footer-pro.is-light-footer .sw-footer-contact-email {
            color: #16a34a !important;
            font-weight: 700;
            text-decoration: none;
        }
        .sw-footer.sw-footer-pro.is-light-footer .sw-footer-contact-phone {
            color: #0f172a !important;
            font-weight: 700;
            text-decoration: none;
        }
        .sw-footer.sw-footer-pro.is-light-footer .sw-footer-bottom {
            border-top: 1px solid #e2e8f0 !important;
            color: #64748b !important;
        }
        .sw-footer.sw-footer-pro.is-light-footer .sw-footer-bottom-legal a {
            color: #64748b !important;
        }
        .sw-footer.sw-footer-pro.is-light-footer .sw-footer-bottom-legal a:hover {
            color: var(--sw-primary, #2563eb) !important;
        }
        .sw-footer.sw-footer-pro.is-light-footer .sw-social-link {
            background: #e2e8f0;
            color: #334155 !important;
        }
        .sw-footer.sw-footer-pro.is-light-footer .sw-social-link:hover {
            background: var(--hover-color, var(--sw-primary));
            color: #ffffff !important;
        }
        .sw-footer.sw-footer-pro.is-light-footer .sw-footer-disclaimer-banner {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            color: #334155;
        }
        .sw-footer.sw-footer-pro.is-light-footer .sw-footer-disclaimer-title {
            color: #0f172a;
        }
        [data-theme="dark"] .sw-footer.sw-footer-pro.is-light-footer {
            background: #0f172a !important;
            color: #94a3b8 !important;
            border-top-color: rgba(255, 255, 255, 0.08) !important;
        }
        [data-theme="dark"] .sw-footer.sw-footer-pro.is-light-footer .sw-footer-title,
        [data-theme="dark"] .sw-footer.sw-footer-pro.is-light-footer .sw-footer-text-lead,
        [data-theme="dark"] .sw-footer.sw-footer-pro.is-light-footer .sw-footer-contact-row,
        [data-theme="dark"] .sw-footer.sw-footer-pro.is-light-footer .sw-footer-contact-phone,
        [data-theme="dark"] .sw-footer.sw-footer-pro.is-light-footer .sw-footer-disclaimer-title {
            color: #f8fafc !important;
        }
        [data-theme="dark"] .sw-footer.sw-footer-pro.is-light-footer .sw-footer-menu a,
        [data-theme="dark"] .sw-footer.sw-footer-pro.is-light-footer .sw-footer-text-body {
            color: #cbd5e1 !important;
        }
        [data-theme="dark"] .sw-footer.sw-footer-pro.is-light-footer .sw-footer-bottom {
            border-top-color: rgba(255, 255, 255, 0.1) !important;
        }
        [data-theme="dark"] .sw-footer.sw-footer-pro.is-light-footer .sw-social-link {
            background: #1e293b;
            color: #cbd5e1 !important;
        }
        [data-theme="dark"] .sw-footer.sw-footer-pro.is-light-footer .sw-footer-disclaimer-banner {
            background: rgba(255, 255, 255, 0.03);
            border-color: rgba(255, 255, 255, 0.1);
            color: #cbd5e1;
        }

        /* Сетка колонок (3 или 4 колонки) */
        .sw-footer-pro-grid {
            display: grid;
            gap: 40px;
            margin-bottom: 46px;
            align-items: start;
        }
        .sw-footer-pro-grid.sw-footer-cols-4 {
            grid-template-columns: repeat(4, 1fr);
        }
        .sw-footer-pro-grid.sw-footer-cols-4.has-text-col {
            grid-template-columns: 0.9fr 0.9fr 0.9fr 1.35fr;
        }
        .sw-footer-pro-grid.sw-footer-cols-3 {
            grid-template-columns: repeat(3, 1fr);
        }
        .sw-footer-pro-grid.sw-footer-cols-3.has-text-col {
            grid-template-columns: 1fr 1fr 1.45fr;
        }
        .sw-footer-pro .sw-footer-title {
            display: block;
            font-size: 1.02rem;
            font-weight: 800;
            margin-bottom: 20px;
            letter-spacing: -0.01em;
        }
        .sw-footer-text-lead {
            font-size: 0.96rem;
            font-weight: 800;
            margin: 0 0 8px;
            line-height: 1.45;
        }
        .sw-footer-text-body {
            font-size: 0.91rem;
            line-height: 1.65;
            margin: 0;
        }
        .sw-footer-contacts {
            margin-top: 14px;
            display: flex;
            flex-direction: column;
            gap: 5px;
            font-size: 0.93rem;
        }
        .sw-footer-contacts-inline {
            flex-direction: row;
            flex-wrap: wrap;
            gap: 10px 28px;
            margin-top: 12px;
        }

        /* Широкий блок предупреждения (Дисклеймер) под колонками */
        .sw-footer-disclaimer-banner {
            padding: 22px 26px;
            border-radius: 14px;
            margin-bottom: 34px;
            line-height: 1.62;
        }
        .sw-footer-disclaimer-title {
            font-size: 1.05rem;
            font-weight: 800;
            margin-bottom: 6px;
        }
        .sw-footer-disclaimer-body {
            font-size: 0.92rem;
        }

        /* Нижняя строка с копирайтом, юридическими ссылками в ряд и соцсетями */
        .sw-footer-pro .sw-footer-bottom {
            padding-top: 26px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 16px 28px;
            font-size: 0.86rem;
        }
        .sw-footer-bottom-legal {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px 26px;
        }
        .sw-footer-bottom-legal a {
            text-decoration: none;
            transition: color 0.15s ease;
        }
        @media (max-width: 960px) {
            .sw-footer-pro-grid.sw-footer-cols-4,
            .sw-footer-pro-grid.sw-footer-cols-4.has-text-col {
                grid-template-columns: repeat(2, 1fr);
            }
            .sw-footer-pro-grid.sw-footer-cols-3,
            .sw-footer-pro-grid.sw-footer-cols-3.has-text-col {
                grid-template-columns: 1fr;
            }
        }
        @media (max-width: 600px) {
            .sw-footer-pro-grid.sw-footer-cols-4,
            .sw-footer-pro-grid.sw-footer-cols-4.has-text-col {
                grid-template-columns: 1fr;
            }
            .sw-footer-pro .sw-footer-bottom {
                flex-direction: column;
                align-items: flex-start;
            }
        }

        /* === МИНИ-ЛЕГКИЙ OMNIVIDEO (В НАШЕМ ФИРМЕННОМ ДИЗАЙНЕ С ОТЛОЖЕННОЙ ЗАГРУЗКОЙ) === */
        .sw-omnivideo {
            margin: 28px 0; border-radius: var(--sw-radius, 16px); border: 1px solid var(--sw-border);
            background: var(--sw-surface); overflow: hidden; box-shadow: var(--sw-shadow);
        }
        .sw-omnivideo-edit-pill { display: none !important; }
        .sw-ov-head { padding: 20px 24px 14px; border-bottom: 1px solid var(--sw-border); }
        .sw-ov-title { font-size: 1.18rem; font-weight: 800; color: var(--sw-text); margin: 0 0 4px; line-height: 1.35; }
        .sw-ov-desc { font-size: 0.92rem; color: var(--sw-text-muted); margin: 0 !important; line-height: 1.5; }
        .sw-ov-stage {
            position: relative; width: 100%; aspect-ratio: 16/9; background: #0f172a;
            background-size: cover; background-position: center; display: flex; flex-direction: column;
            align-items: center; justify-content: center; overflow: hidden; cursor: pointer;
        }
        .sw-ov-stage::before {
            content: ""; position: absolute; inset: 0;
            background: linear-gradient(to top, rgba(15,23,42,0.86) 0%, rgba(15,23,42,0.35) 55%, rgba(15,23,42,0.4) 100%);
            transition: opacity 0.25s ease;
        }
        .sw-ov-stage.is-playing::before { display: none; }
        .sw-ov-play-icon {
            position: relative; z-index: 2; width: 72px; height: 72px; border-radius: 50%;
            background: var(--sw-primary); color: #ffffff; display: flex; align-items: center;
            justify-content: center; font-size: 28px; box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
            border: 2px solid rgba(255, 255, 255, 0.45); margin-bottom: 14px; padding-left: 4px;
            transition: transform 0.2s ease, background 0.2s ease;
        }
        .sw-ov-stage:hover .sw-ov-play-icon { transform: scale(1.08); }
        .sw-ov-prompt {
            position: relative; z-index: 2; color: #f8fafc; font-size: 0.86rem; font-weight: 700;
            background: rgba(15, 23, 42, 0.68); padding: 6px 16px; border-radius: 99px;
            backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.18);
        }
        .sw-ov-stage iframe, .sw-ov-stage video {
            position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 5; background: #000;
        }
        .sw-ov-bar {
            padding: 14px 20px; background: var(--sw-surface-tonal);
            border-top: 1px solid var(--sw-border);
            display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
        }
        .sw-ov-bar-label { font-size: 0.84rem; font-weight: 700; color: var(--sw-text-muted); margin-right: 4px; }
        .sw-ov-plat-btn {
            display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 9px;
            font-size: 0.84rem; font-weight: 700; color: #ffffff !important; border: none; cursor: pointer;
            transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
        }
        .sw-ov-plat-btn:hover { transform: translateY(-1px); opacity: 0.94; }
        .sw-ov-plat-btn.is-active { box-shadow: 0 0 0 3px var(--sw-primary-tonal-border); transform: translateY(-1px); }
        .sw-ov-plat-vk { background: #0077FF; }
        .sw-ov-plat-ok { background: #EE8208; }
        .sw-ov-plat-rutube { background: #161A21; }
        .sw-ov-plat-youtube { background: #FF0000; }
        .sw-ov-plat-media { background: #059669; }


        /* === 3D FLIP-КАРТОЧКА В СТАТЬЕ (КНОПКА FLIP В РЕДАКТОРЕ — MAGAZINE EDITION) === */
        .sw-post-flip-card {
            margin: 30px auto;
            perspective: 1400px;
            cursor: pointer;
            user-select: none;
            position: relative;
            width: 100%;
            box-sizing: border-box;
        }
        .sw-post-flip-card.is-width-compact {
            max-width: 540px;
        }
        .sw-post-flip-card .sw-flip-edit-pill {
            display: none !important;
        }
        .sw-post-flip-inner {
            position: relative;
            width: 100%;
            min-height: 300px;
            transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
            transform-style: preserve-3d;
            display: grid;
        }
        .sw-post-flip-card.is-ratio-square .sw-post-flip-inner {
            aspect-ratio: 1 / 1;
        }
        .sw-post-flip-card.is-ratio-wide .sw-post-flip-inner {
            aspect-ratio: 16 / 10;
        }
        .sw-post-flip-card.is-ratio-portrait .sw-post-flip-inner {
            aspect-ratio: 3 / 4;
        }
        .sw-post-flip-card.is-flipped .sw-post-flip-inner {
            transform: rotateY(180deg);
        }
        .sw-post-flip-sizer {
            grid-area: 1 / 1;
            width: 100%;
            height: auto !important;
            display: block;
            visibility: hidden;
            pointer-events: none;
            margin: 0 !important;
        }
        .sw-post-flip-face {
            grid-area: 1 / 1;
            position: relative;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid var(--sw-border, #d4d4d8);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: clamp(20px, 3.5vw, 32px);
            box-sizing: border-box;
            box-shadow: 0 12px 32px -10px rgba(15, 23, 42, 0.12);
        }
        .sw-post-flip-front {
            background: #0f172a;
            color: #ffffff;
        }
        .sw-post-flip-back {
            position: absolute;
            inset: 0;
            transform: rotateY(180deg);
            justify-content: space-between;
        }
        .sw-post-flip-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            opacity: 0.88;
        }
        .sw-post-flip-center {
            margin: auto 0;
            padding: 14px 0;
        }
        .sw-post-flip-title {
            font-size: clamp(1.25rem, 2.4vw, 1.65rem);
            font-weight: 800;
            line-height: 1.28;
            margin: 0 0 8px !important;
            color: inherit !important;
        }
        .sw-post-flip-sub {
            font-size: 0.96rem;
            line-height: 1.5;
            opacity: 0.9;
            margin: 0 !important;
            color: inherit !important;
        }
        .sw-post-flip-bottom {
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            opacity: 0.82;
        }
        .sw-post-flip-cta {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 14px;
            padding: 10px 20px;
            border-radius: 6px;
            font-size: 12.5px;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            text-decoration: none !important;
            background: rgba(255, 255, 255, 0.18);
            color: inherit !important;
            border: 1px solid currentColor;
            transition: transform 0.15s ease, opacity 0.15s ease;
        }
        .sw-post-flip-cta:hover {
            transform: translateY(-1px);
            opacity: 0.92;
        }

        /* === ФОТОАЛЬБОМЫ И ГАЛЕРЕИ SERWEB CMS (4 МАКЕТА + LIGHTBOX) === */
        .sw-album { margin: 28px 0; position: relative; user-select: none; }
        .sw-album-edit-pill { display: none !important; }
        .sw-album-header-title { font-size: 1.18rem; font-weight: 800; color: var(--sw-text); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
        /* 1. Стопка фото / Обложка (stack & cover) */
        .sw-album-cover-card {
            position: relative; max-width: 620px; margin: 0 auto; border-radius: 16px; overflow: hidden;
            cursor: pointer; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14); background: #0f172a; aspect-ratio: 16/10;
            transition: transform 0.22s ease, box-shadow 0.22s ease;
        }
        .sw-album-cover-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22); }
        .sw-album-cover-card img.sw-album-hero-img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; display: block; transition: transform 0.35s ease; }
        .sw-album-cover-card:hover img.sw-album-hero-img { transform: scale(1.03); }
        .sw-album-stack-wrap { position: relative; max-width: 600px; margin: 18px auto 26px; padding: 10px 10px 0; }
        .sw-album-stack-wrap::before, .sw-album-stack-wrap::after {
            content: ""; position: absolute; inset: 4px 18px -6px 18px; border-radius: 16px;
            background: var(--sw-surface); border: 2px solid rgba(148, 163, 184, 0.35); z-index: 0;
            transition: transform 0.25s ease; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
        }
        .sw-album-stack-wrap::before { transform: rotate(-2.2deg) translate(-6px, 4px); }
        .sw-album-stack-wrap::after  { transform: rotate(2.2deg) translate(6px, 6px); }
        .sw-album-stack-wrap:hover::before { transform: rotate(-3.5deg) translate(-10px, 6px); }
        .sw-album-stack-wrap:hover::after  { transform: rotate(3.5deg) translate(10px, 8px); }
        .sw-album-stack-wrap .sw-album-cover-card { position: relative; z-index: 2; }
        .sw-album-overlay-bar {
            position: absolute; inset: auto 0 0 0; padding: 28px 20px 16px;
            background: linear-gradient(to top, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.45) 65%, transparent 100%);
            color: #ffffff; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
        }
        .sw-album-overlay-title { font-size: 1.12rem; font-weight: 800; line-height: 1.3; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.4); }
        .sw-album-overlay-badge {
            background: rgba(255,255,255,0.22); backdrop-filter: blur(6px); color: #fff; font-weight: 800;
            font-size: 0.82rem; padding: 6px 13px; border-radius: 99px; white-space: nowrap; border: 1px solid rgba(255,255,255,0.3);
        }
        /* 2. Умная сетка (grid) */
        .sw-album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
        .sw-album-grid.sw-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
        .sw-album-grid.sw-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
        @media (max-width: 640px) { .sw-album-grid.sw-grid-cols-3 { grid-template-columns: repeat(2, 1fr); } }
        .sw-album-grid-cell {
            position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; cursor: pointer;
            background: #e2e8f0; box-shadow: 0 2px 8px rgba(15,23,42,0.06);
        }
        .sw-album-grid-cell img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; display: block; transition: transform 0.25s ease; }
        .sw-album-grid-cell:hover img { transform: scale(1.04); }
        .sw-album-more-mask {
            position: absolute; inset: 0; background: rgba(15, 23, 42, 0.68); backdrop-filter: blur(3px);
            color: #ffffff; display: flex; flex-direction: column; align-items: center; justify-content: center;
            font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em;
        }
        .sw-album-more-mask span { font-size: 0.8rem; font-weight: 600; opacity: 0.85; margin-top: 2px; }
        /* 3. Витрина: Большое фото + лента миниатюр снизу (slider_thumbs) */
        .sw-album-stage {
            position: relative; width: 100%; aspect-ratio: 16/10; background: #0f172a; border-radius: 14px;
            overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: pointer;
        }
        .sw-album-stage img.sw-stage-img { width: 100%; height: 100%; object-fit: contain; margin: 0 !important; display: block; }
        .sw-stage-nav {
            position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
            background: rgba(15, 23, 42, 0.65); color: #fff; border: 1px solid rgba(255,255,255,0.25);
            display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold;
            cursor: pointer; z-index: 3; transition: 0.15s;
        }
        .sw-stage-nav:hover { background: var(--sw-primary); }
        .sw-stage-prev { left: 12px; }
        .sw-stage-next { right: 12px; }
        .sw-stage-caption {
            position: absolute; inset: auto 0 0 0; padding: 12px 16px; background: rgba(15, 23, 42, 0.76);
            color: #f8fafc; font-size: 0.9rem; text-align: center; backdrop-filter: blur(4px);
        }
        .sw-album-thumbs-strip {
            display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 4px; scrollbar-width: thin;
        }
        .sw-album-thumb-btn {
            width: 78px; height: 56px; border-radius: 8px; overflow: hidden; flex-shrink: 0; cursor: pointer;
            border: 2.5px solid transparent; opacity: 0.62; transition: 0.15s; padding: 0; background: #cbd5e1;
        }
        .sw-album-thumb-btn.is-active, .sw-album-thumb-btn:hover { opacity: 1; border-color: var(--sw-primary); transform: translateY(-1px); }
        .sw-album-thumb-btn img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; display: block; }
        /* 4. Горизонтальная карусель карточек (carousel) */
        .sw-album-carousel-wrap { position: relative; }
        .sw-album-carousel-track {
            display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
            padding: 4px 2px 12px; scrollbar-width: thin;
        }
        .sw-album-carousel-card {
            flex: 0 0 280px; scroll-snap-align: start; background: var(--sw-surface); border: 1px solid var(--sw-border);
            border-radius: 12px; overflow: hidden; cursor: pointer; box-shadow: var(--sw-shadow); display: flex; flex-direction: column;
        }
        .sw-album-carousel-card img { width: 100%; height: 195px; object-fit: cover; margin: 0 !important; display: block; }
        .sw-album-carousel-cap { padding: 10px 12px; font-size: 0.85rem; color: var(--sw-text-muted); line-height: 1.4; }
        /* === ПОЛНОЭКРАННЫЙ КИНОТЕАТР (LIGHTBOX) === */
        #sw-lightbox-modal {
            position: fixed; inset: 0; background: rgba(10, 15, 28, 0.92); backdrop-filter: blur(10px);
            z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center;
            opacity: 0; pointer-events: none; transition: opacity 0.22s ease; padding: 20px;
        }
        #sw-lightbox-modal.is-open { opacity: 1; pointer-events: auto; }
        .sw-lb-top {
            position: absolute; top: 16px; left: 20px; right: 20px; display: flex; justify-content: space-between;
            align-items: center; color: #f8fafc; z-index: 5;
        }
        .sw-lb-counter { font-weight: 800; font-size: 0.95rem; background: rgba(255,255,255,0.12); padding: 6px 14px; border-radius: 99px; }
        .sw-lb-close {
            width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff;
            border: none; font-size: 18px; font-weight: bold; cursor: pointer; transition: 0.15s;
        }
        .sw-lb-close:hover { background: #ef4444; }
        .sw-lb-stage { position: relative; max-width: 92vw; max-height: 76vh; display: flex; align-items: center; justify-content: center; }
        #sw-lb-img { max-width: 92vw; max-height: 75vh; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transition: opacity 0.18s ease; }
        .sw-lb-arrow {
            position: fixed; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%;
            background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.22);
            font-size: 26px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 6; transition: 0.15s;
        }
        .sw-lb-arrow:hover { background: var(--sw-primary); }
        .sw-lb-prev { left: 18px; }
        .sw-lb-next { right: 18px; }
        @media (max-width: 640px) { .sw-lb-arrow { width: 40px; height: 40px; font-size: 20px; } .sw-lb-prev { left: 8px; } .sw-lb-next { right: 8px; } }
        #sw-lb-caption {
            margin-top: 14px; max-width: 720px; text-align: center; color: #f1f5f9;
            background: rgba(15, 23, 42, 0.75); border: 1px solid rgba(255,255,255,0.15);
            padding: 10px 20px; border-radius: 12px; font-size: 0.96rem; line-height: 1.5;
        }

    </style>
    <script>
        (function() {
            var saved = localStorage.getItem("sw_theme");
            if (saved === "dark" || (!saved && window.matchMedia("(prefers-color-scheme: dark)").matches)) document.documentElement.setAttribute("data-theme", "dark");
            else document.documentElement.setAttribute("data-theme", "light");
        })();
    </script>
    <!-- Yandex.RTB -->
<script>window.yaContextCb=window.yaContextCb||[]</script>
<script src="https://yandex.ru/ads/system/context.js" async></script>
    <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://greenapteka.ru/#organization","name":"Зелёная Аптека","url":"https://greenapteka.ru/","sameAs":["https://vk.ru/greenaptekaru","https://t.me/greenapteka","https://ok.ru/greenapteka"]},{"@type":"WebSite","@id":"https://greenapteka.ru/#website","url":"https://greenapteka.ru/","name":"Зелёная Аптека","publisher":{"@id":"https://greenapteka.ru/#organization"},"inLanguage":"ru-RU"},{"@type":"LocalBusiness","@id":"https://greenapteka.ru/#localbusiness","name":"Зелёная Аптека","url":"https://greenapteka.ru/","telephone":"+7 (952) 307-11-32","address":{"@type":"PostalAddress","streetAddress":"г. Архангельск, ул. Воскресенская, д. 103","addressLocality":"Архангельск"},"areaServed":"Архангельск","sameAs":["https://vk.ru/greenaptekaru","https://t.me/greenapteka","https://ok.ru/greenapteka"]}]}</script>    <link rel="stylesheet" href="/themes/journal-pro/style.css?v=1.75.0">
</head>
<body class="theme-journal-pro">


    
    <header class="sw-header ">
        <div class="sw-container sw-header-inner">
            <a href="/" class="sw-brand">
                <span class="sw-brand-logo">З</span>
                <span>Зелёная Аптека</span>
            </a>

            <nav class="sw-nav" id="sw-main-nav" aria-label="Основная навигация">
                                    <div class="sw-nav-dropdown-wrap">
                        <a href="/rasteniya-i-travy" class="sw-nav-pill ">
                            Растения и травы <span class="sw-nav-caret">▾</span>
                        </a>
                        <div class="sw-nav-dropdown">
                                                            <a href="/lekarstvennye-rasteniya-i-travy" class="sw-nav-dropdown-link">Лекарственные растения и травы</a>
                                                            <a href="/silnodejstvuyushchie-i-yadovitye-rasteniya" class="sw-nav-dropdown-link">Сильнодействующие и ядовитые растения</a>
                                                            <a href="/zagotovka-i-hranenie-lekarstvennyh-trav" class="sw-nav-dropdown-link">Заготовка и хранение лекарственных трав</a>
                                                            <a href="/sposoby-prigotovleniya-lekarstvennyh-trav" class="sw-nav-dropdown-link">Способы приготовления лекарственных трав</a>
                                                    </div>
                    </div>
                                    <div class="sw-nav-dropdown-wrap">
                        <a href="/spravochnik-boleznej" class="sw-nav-pill ">
                            Справочник болезней <span class="sw-nav-caret">▾</span>
                        </a>
                        <div class="sw-nav-dropdown">
                                                            <a href="/serdechno-sosudistye-zabolevaniya" class="sw-nav-dropdown-link">Сердечно-сосудистые заболевания</a>
                                                            <a href="/zabolevaniya-nervnoj-sistemy" class="sw-nav-dropdown-link">Заболевания нервной системы</a>
                                                            <a href="/zabolevaniya-kostej-i-sustavov" class="sw-nav-dropdown-link">Заболевания костей и суставов</a>
                                                            <a href="/kozhnye-zabolevaniya" class="sw-nav-dropdown-link">Кожные заболевания</a>
                                                            <a href="/bolezni-peredavaemye-polovym-putem" class="sw-nav-dropdown-link">Болезни, передаваемые половым путем</a>
                                                            <a href="/infekcionnye-zabolevaniya" class="sw-nav-dropdown-link">Инфекционные заболевания</a>
                                                            <a href="/zheludochno-kishechnye-zabolevaniya" class="sw-nav-dropdown-link">Желудочно-кишечные заболевания</a>
                                                            <a href="/bolezni-polosti-rta" class="sw-nav-dropdown-link">Болезни полости рта</a>
                                                            <a href="/bolezni-glaz" class="sw-nav-dropdown-link">Болезни глаз</a>
                                                            <a href="/bolezni-pecheni-i-zhelchnogo-puzyrya" class="sw-nav-dropdown-link">Болезни печени и желчного пузыря</a>
                                                            <a href="/bolezni-krovi" class="sw-nav-dropdown-link">Болезни крови</a>
                                                            <a href="/narkologiya" class="sw-nav-dropdown-link">Наркология</a>
                                                            <a href="/endokrinnye-zabolevaniya" class="sw-nav-dropdown-link">Эндокринные заболевания</a>
                                                            <a href="/bolezni-legkih" class="sw-nav-dropdown-link">Болезни легких</a>
                                                            <a href="/bolezni-nosa-gorla-i-ushej" class="sw-nav-dropdown-link">Болезни носа, горла и ушей</a>
                                                            <a href="/autoimmunnye-zabolevaniya" class="sw-nav-dropdown-link">Аутоиммунные заболевания</a>
                                                            <a href="/bolezni-mochepolovoj-sistemy" class="sw-nav-dropdown-link">Болезни мочеполовой системы</a>
                                                            <a href="/varikoznaya-bolezn" class="sw-nav-dropdown-link">Варикозная болезнь</a>
                                                    </div>
                    </div>
                                    <a href="/sovety" class="sw-nav-pill ">
                        Народные советы                    </a>
                                    <div class="sw-nav-dropdown-wrap">
                        <a href="/vitaminy-i-mineraly" class="sw-nav-pill ">
                            Витамины и минералы <span class="sw-nav-caret">▾</span>
                        </a>
                        <div class="sw-nav-dropdown">
                                                            <a href="/makroelementy" class="sw-nav-dropdown-link">Макроэлементы</a>
                                                            <a href="/mikroelementy" class="sw-nav-dropdown-link">Микроэлементы</a>
                                                            <a href="/vitaminy" class="sw-nav-dropdown-link">Витамины</a>
                                                    </div>
                    </div>
                                    <a href="/viktoriny-i-testy" class="sw-nav-pill ">
                        Викторины и тесты                    </a>
                            </nav>

            <div class="sw-header-actions">
                                <button type="button" class="sw-icon-btn" onclick="document.getElementById('sw-search-modal').classList.add('is-open')" aria-label="Поиск">
                    <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>
                </button>
                <button type="button" class="sw-icon-btn" id="sw-theme-toggle" aria-label="Переключить тему">
                    <span class="sw-icon-moon">
                        <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>
                    </span>
                    <span class="sw-icon-sun">
                        <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>
                    </span>
                </button>
                <button type="button" class="sw-icon-btn sw-mobile-toggle" id="sw-mobile-btn" aria-label="Меню">
                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>
                </button>
            </div>
        </div>
    </header>

<div class="sw-search-modal" id="sw-search-modal">
    <div class="sw-search-modal-content">
        <button type="button" class="sw-search-close" onclick="document.getElementById('sw-search-modal').classList.remove('is-open')">✕</button>
        <h2 style="margin:0 0 24px; text-align:center; font-size:2rem; font-weight:800;">Давайте найдем нужную Вам статью</h2>
        <form action="/" method="get" class="sw-search-form">
            <input type="text" name="q" placeholder="Например: ромашка" required autofocus>
            <button type="submit">Искать на сайте</button>
        </form>
    </div>
</div>

<div class="sw-container"></div>
<main class="sw-container">
    <section class="sw-cat-hero" style="text-align:center; padding: 56px 20px 32px;">
    <div style="display:inline-flex; align-items:center; justify-content:center; padding:8px 20px; border-radius:999px; background:var(--sw-primary-tonal); color:var(--sw-primary); font-weight:800; font-size:0.9rem; margin-bottom:20px; border:1px solid var(--sw-primary-tonal-border);">
        Ошибка 404
    </div>
    <h1 class="sw-cat-hero-title" style="font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin: 0 0 16px; letter-spacing: -0.04em;">
        Страница не найдена
    </h1>
    <p style="color:var(--sw-text-muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto 32px; line-height: 1.6;">
        Вы перешли на страницу, которой не существует — возможно, она была перемещена или удалена, либо в ссылку закралась опечатка. Воспользуйтесь поиском или выберите один из полезных материалов ниже.
    </p>

    <form action="/" method="get" class="sw-search-form" style="max-width: 580px; margin: 0 auto 24px;">
        <input type="text" name="q" placeholder="Например: ромашка" required>
        <button type="submit">Искать на сайте</button>
    </form>

    <div style="margin-bottom: 20px;">
        <a href="/" class="sw-btn sw-btn-outline" style="padding:12px 26px; border-radius:999px; font-weight:700;">← Вернуться на главную</a>
    </div>
</section>

    <h2 class="sw-section-title" style="margin-top: 20px;">Полезные статьи, которые стоит прочитать</h2>
    <section class="sw-grid-posts">
                    <article class="sw-post-card">
                                    <a href="/bagulnik"><img src="/uploads/2011/09/bagulnik_bolotnyj.jpg" class="sw-post-card-img" alt="Багульник болотный" loading="lazy"></a>
                                <div>
                                            <a href="/lekarstvennye-rasteniya-i-travy" class="sw-chip">
                            Лекарственные растения и травы                        </a>
                                        <h3 class="sw-post-card-title"><a href="/bagulnik">Багульник болотный</a></h3>
                    <p class="sw-post-card-excerpt">Багульник болотный – Ledum palustre L. – вечнозелёный душистый кустарник из семейства вересковых, высотой от 15 до 125 см. Багульник &amp;nbsp;растёт в лесной и тундрово...</p>
                </div>
                <div class="sw-post-meta">
                    <span class="sw-meta-item">
                        <svg class="sw-meta-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>
                        4 сентября                    </span>
                    <span class="sw-meta-item">
                        <svg class="sw-meta-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"></path><circle cx="12" cy="12" r="3"></circle></svg>
                        1                    </span>
                </div>
            </article>
                    <article class="sw-post-card">
                                    <a href="/pomidory-dlya-zdorovya"><img src="/uploads/2021/11/tomatoes-1.jpg" class="sw-post-card-img" alt="Помидоры для здоровья" loading="lazy"></a>
                                <div>
                                            <a href="/lekarstvennye-rasteniya-i-travy" class="sw-chip">
                            Лекарственные растения и травы                        </a>
                                        <h3 class="sw-post-card-title"><a href="/pomidory-dlya-zdorovya">Помидоры для здоровья</a></h3>
                    <p class="sw-post-card-excerpt">Вместе с картофелем, баклажанами и стручковым перцем, помидоры относятся к семейству паслёновых. Томат возделывают как однолетник, но он принадлежит к многолетним тр...</p>
                </div>
                <div class="sw-post-meta">
                    <span class="sw-meta-item">
                        <svg class="sw-meta-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>
                        17 ноября                    </span>
                    <span class="sw-meta-item">
                        <svg class="sw-meta-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"></path><circle cx="12" cy="12" r="3"></circle></svg>
                        1                    </span>
                </div>
            </article>
                    <article class="sw-post-card">
                                    <a href="/baklazhany"><img src="/uploads/2018/07/Baklazhan_1.jpg" class="sw-post-card-img" alt="Баклажаны" loading="lazy"></a>
                                <div>
                                            <a href="/lekarstvennye-rasteniya-i-travy" class="sw-chip">
                            Лекарственные растения и травы                        </a>
                                        <h3 class="sw-post-card-title"><a href="/baklazhany">Баклажаны</a></h3>
                    <p class="sw-post-card-excerpt">Баклажан – однолетние растение. Цветки фиолетовые, однополые. Плод – крупная ягода, которая имеет интенсивную фиолетовую окраску. Вес ягоды от 50 до 1000 грамм. Форм...</p>
                </div>
                <div class="sw-post-meta">
                    <span class="sw-meta-item">
                        <svg class="sw-meta-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>
                        14 июня                    </span>
                    <span class="sw-meta-item">
                        <svg class="sw-meta-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"></path><circle cx="12" cy="12" r="3"></circle></svg>
                        1                    </span>
                </div>
            </article>
            </section>
</main>

<div id="sw-toast" class="sw-toast">Успешно: Ссылка скопирована в буфер обмена!</div>

<div class="sw-container"></div>
<footer class="sw-footer sw-footer-pro is-light-footer"><div class="sw-container"><div class="sw-footer-pro-grid sw-footer-cols-3 has-text-col"><div class="sw-footer-col"><strong class="sw-footer-title">О проекте</strong><ul class="sw-footer-menu"><li><a href="/o-sajte">О сайте</a></li><li><a href="/kontakty">Контакты</a></li><li><a href="/ispolzuemaya-literatura">Литература</a></li><li><a href="/tablitsa-mer-i-vesov">Таблица мер и весов</a></li><li><a href="/kalkulyator-mer-i-vesov">Калькулятор мер и весов</a></li></ul></div><div class="sw-footer-col"><strong class="sw-footer-title">Рубрики</strong><ul class="sw-footer-menu"><li><a href="/rasteniya-i-travy">Растения и травы</a></li><li><a href="/sovety">Народные советы</a></li><li><a href="/spravochnik-boleznej">Справочник болезней</a></li><li><a href="/vitaminy-i-mineraly">Витамины и минералы</a></li><li><a href="/viktoriny-i-testy">Викторины, тесты, квизы</a></li></ul></div><div class="sw-footer-col sw-footer-col-text"><strong class="sw-footer-title">Предупреждение:</strong><div class="sw-footer-text-body">Сайт предоставляет справочную информацию. Адекватная диагностика и лечение болезни возможны под наблюдением добросовестного врача. У любых препаратов есть противопоказания. Необходима консультация специалиста, а также подробное изучение инструкции!</div><div class="sw-footer-contacts"><div class="sw-footer-contact-row">Свяжитесь с нами: <a href="mailto:admin@greenapteka.ru" class="sw-footer-contact-email">admin@greenapteka.ru</a></div></div></div></div><div class="sw-footer-bottom"><div class="sw-copyright">© 2026 Зелёная Аптека (greenapteka.ru). Все права защищены.</div><div class="sw-footer-bottom-legal"><a href="/pravoobladatelyam">Правообладателям</a><a href="/politika-gookie">Политика файлов Cookie</a><a href="/polzovatelskoe-soglashenie">Пользовательское соглашение</a><a href="/politika-konfidentsialnosti">Политика конфиденциальности</a></div><div class="sw-socials"><a href="https://vk.ru/greenaptekaru" class="sw-social-link" style="--hover-color: #0077FF;" target="_blank" rel="noopener" title="ВКонтакте">ВК</a><a href="https://t.me/greenapteka" class="sw-social-link" style="--hover-color: #24A1DE;" target="_blank" rel="noopener" title="Telegram">TG</a><a href="https://ok.ru/greenapteka" class="sw-social-link" style="--hover-color: #EE8208;" target="_blank" rel="noopener" title="Одноклассники">ОК</a></div></div></div></footer>
<!-- Global Scroll to Top Button -->
<button class="sw-back-to-top" id="sw-back-to-top" onclick="window.scrollTo({top:0, behavior:'smooth'})" aria-label="Наверх">↑</button>


<!-- Cookie Consent Banner -->
<div id="sw-cookie-banner" class="sw-cookie-banner">
    <div class="sw-cookie-text">
        Мы используем файлы cookie для улучшения работы сайта. Продолжая просмотр, вы соглашаетесь с использованием cookie.                    <a href="/politika-konfidentsialnosti" target="_blank">Политика конфиденциальности</a>
            </div>
    <button type="button" class="sw-btn sw-btn-primary" id="sw-cookie-accept">Понятно</button>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
    if (!localStorage.getItem("sw_cookie_accepted")) {
        const banner = document.getElementById("sw-cookie-banner");
        if (banner) banner.classList.add("is-visible");
    }
    const acceptBtn = document.getElementById("sw-cookie-accept");
    if (acceptBtn) {
        acceptBtn.addEventListener("click", function() {
            localStorage.setItem("sw_cookie_accepted", "true");
            const banner = document.getElementById("sw-cookie-banner");
            if (banner) banner.classList.remove("is-visible");
        });
    }
});
</script>

<!-- Exit Intent Popup -->
<div id="sw-exit-popup" class="sw-exit-modal">
    <div class="sw-exit-content">
        <button type="button" class="sw-exit-close" id="sw-exit-close-btn">✕</button>
        <div class="sw-exit-icon">👋</div>
        <h3 class="sw-exit-title">Подождите, не уходите!</h3>
        <p class="sw-exit-desc">Подписывайтесь на наши соцсети, чтобы первыми получать полезные советы и рекомендации.</p>
        
        <div class="sw-exit-socials">
                            <a href="https://vk.ru/greenaptekaru" target="_blank" rel="noopener" class="sw-exit-soc-btn" style="--brand-color: #0077ff;">ВКонтакте</a>
                            <a href="https://t.me/greenapteka" target="_blank" rel="noopener" class="sw-exit-soc-btn" style="--brand-color: #24a1de;">Telegram</a>
                            <a href="https://ok.ru/greenapteka" target="_blank" rel="noopener" class="sw-exit-soc-btn" style="--brand-color: #ee8208;">Одноклассники</a>
                    </div>
    </div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
    const popup = document.getElementById("sw-exit-popup");
    const closeBtn = document.getElementById("sw-exit-close-btn");
    let hasShown = sessionStorage.getItem("sw_exit_shown");

    function showExitPopup() {
        if (!hasShown && popup) {
            popup.classList.add("is-open");
            sessionStorage.setItem("sw_exit_shown", "true");
            hasShown = "true";
        }
    }

    if (closeBtn && popup) {
        closeBtn.addEventListener("click", () => popup.classList.remove("is-open"));
        popup.addEventListener("click", (e) => { if (e.target === popup) popup.classList.remove("is-open"); });
    }

    // Улучшенный триггер ухода с сайта (Exit-Intent)
    document.addEventListener("mouseout", function(e) {
        // Если мышь уходит за верхнюю границу экрана
        if (!e.relatedTarget && e.clientY < 10) {
            showExitPopup();
        }
    });
    
    // Альтернативный триггер для мобильных (нажатие кнопки "Назад")
    window.addEventListener("popstate", function(event) {
        showExitPopup();
    });
});
</script>

<script>
    document.addEventListener("DOMContentLoaded", function() {
        const themeBtn = document.getElementById("sw-theme-toggle");
        if (themeBtn) {
            themeBtn.addEventListener("click", function() {
                const current = document.documentElement.getAttribute("data-theme") === "dark" ? "dark" : "light";
                const next = current === "dark" ? "light" : "dark";
                document.documentElement.setAttribute("data-theme", next);
                localStorage.setItem("sw_theme", next);
            });
        }
        const searchModal = document.getElementById("sw-search-modal");
        if (searchModal) {
            searchModal.addEventListener("click", function(e) { if (e.target === searchModal) searchModal.classList.remove("is-open"); });
        }
        const menuBtn = document.getElementById("sw-mobile-btn");
        const navMenu = document.getElementById("sw-main-nav");
        if (menuBtn && navMenu) {
            menuBtn.addEventListener("click", function() {
                const isOpen = navMenu.classList.toggle("is-open");
                document.body.style.overflow = isOpen ? "hidden" : "";
            });
            // Обработка двухуровневых пунктов в шапке (аккордеон на мобильном + заглушки # на ПК)
            navMenu.querySelectorAll(".sw-nav-dropdown-wrap").forEach(function(wrap) {
                const trigger = wrap.querySelector(":scope > .sw-nav-pill");
                if (!trigger) return;
                trigger.addEventListener("click", function(e) {
                    const href = (trigger.getAttribute("href") || "").trim();
                    const isDummy = (href === "" || href === "#" || href.toLowerCase().startsWith("javascript:"));
                    const isMobile = window.matchMedia("(max-width: 900px)").matches;
                    if (isDummy) {
                        e.preventDefault();
                        wrap.classList.toggle("is-sub-open");
                    } else if (isMobile) {
                        // На мобильном первый тап по родительскому пункту раскрывает подменю, второй — переходит в раздел
                        if (!wrap.classList.contains("is-sub-open")) {
                            e.preventDefault();
                            wrap.classList.add("is-sub-open");
                        }
                    }
                });
            });
        }
        
        document.querySelectorAll("[data-copy-url]").forEach(function(btn) {
            btn.addEventListener("click", function() {
                const originalText = this.innerHTML;
                const urlToCopy = this.getAttribute("data-copy-url");
                const successFeedback = () => {
                    btn.innerHTML = "✓ Ссылка скопирована";
                    btn.style.borderColor = "var(--sw-primary)";
                    btn.style.color = "var(--sw-primary)";
                    setTimeout(() => {
                        btn.innerHTML = originalText;
                        btn.style.borderColor = "";
                        btn.style.color = "";
                    }, 3000);
                };
                
                if (navigator.clipboard && window.isSecureContext) {
                    navigator.clipboard.writeText(urlToCopy).then(successFeedback).catch(e => console.error(e));
                } else {
                    let textArea = document.createElement("textarea");
                    textArea.value = urlToCopy;
                    textArea.style.position = "fixed";
                    textArea.style.left = "-999999px";
                    document.body.appendChild(textArea);
                    textArea.focus();
                    textArea.select();
                    try { document.execCommand("copy"); successFeedback(); } catch (err) {}
                    document.body.removeChild(textArea);
                }
            });
        });

        
        // === ИНИЦИАЛИЗАЦИЯ 3D FLIP-КАРТОЧЕК В СТАТЬЕ ===
        document.querySelectorAll(".sw-post-flip-card").forEach(function(card) {
            card.addEventListener("click", function(e) {
                if (e.target.closest("a.sw-post-flip-cta")) return;
                this.classList.toggle("is-flipped");
            });
        });

        // === ИНИЦИАЛИЗАЦИЯ OMNIVIDEO (БЕЗ ЗАГРУЗКИ ВИДЕО ДО КЛИКА НА ПЛАТФОРМУ) ===
        document.querySelectorAll(".sw-omnivideo").forEach(function(box) {
            const stage = box.querySelector(".sw-ov-stage");
            const btns  = box.querySelectorAll(".sw-ov-plat-btn");
            if (!stage || !btns.length) return;

            function loadPlatformVideo(btn) {
                btns.forEach(function(b) { b.classList.remove("is-active"); });
                btn.classList.add("is-active");
                const plat  = btn.getAttribute("data-plat") || "";
                const embed = btn.getAttribute("data-embed") || "";
                if (!embed) return;

                stage.classList.add("is-playing");
                if (plat === "media" || /\.(mp4|webm|ogg)(\?.*)?$/i.test(embed)) {
                    stage.innerHTML = '<video src="' + embed.replace(/"/g, "&quot;") + '" controls autoplay playsinline></video>';
                } else {
                    stage.innerHTML = '<iframe src="' + embed.replace(/"/g, "&quot;") + '" allow="autoplay; encrypted-media; fullscreen; picture-in-picture" allowfullscreen loading="lazy"></iframe>';
                }
            }

            btns.forEach(function(btn) {
                btn.addEventListener("click", function(e) {
                    e.preventDefault();
                    e.stopPropagation();
                    loadPlatformVideo(this);
                });
            });

            stage.addEventListener("click", function() {
                if (!stage.querySelector("iframe, video") && btns[0]) {
                    loadPlatformVideo(btns[0]);
                }
            });
        });
        
        // === ИНТЕРАКТИВНЫЕ МОДУЛИ v1.58: ЧЕК-ЛИСТЫ, ТАБЫ, SMART FAQ, УМНЫЕ ОПРОСЫ ===
        (function() {
            // 1. Чек-листы (с плашкой «Молодец!» при выполнении всех пунктов)
            function updateChecklistState(wrapper) {
                const boxes = wrapper.querySelectorAll('.smart-checklist-list input[type="checkbox"]');
                const msg   = wrapper.querySelector('.scl-completion-message');
                const reset = wrapper.querySelector('.scl-reset-link');
                if (!boxes.length) return;
                let checked = 0;
                boxes.forEach(b => { if (b.checked) checked++; });
                const allDone = (checked === boxes.length);
                if (msg)   msg.style.display   = allDone ? 'block' : 'none';
                if (reset) reset.style.display = allDone ? 'block' : 'none';
            }
            document.querySelectorAll('.smart-checklist-wrapper').forEach(w => {
                updateChecklistState(w);
                w.addEventListener('change', function(e) {
                    if (e.target && e.target.matches('input[type="checkbox"]')) {
                        updateChecklistState(w);
                    }
                });
                const resetLink = w.querySelector('.scl-reset-link a');
                if (resetLink) {
                    resetLink.addEventListener('click', function(e) {
                        e.preventDefault();
                        w.querySelectorAll('input[type="checkbox"]').forEach(b => { b.checked = false; });
                        updateChecklistState(w);
                    });
                }
            });

            // 2. Умные Табы (Десктопные вкладки + Мобильный аккордеон по порядку вкладок)
            document.querySelectorAll('.smart-tabs-container').forEach(tc => {
                const tabs    = tc.querySelectorAll('.smart-tabs-nav li');
                const mobHead = tc.querySelectorAll('.smart-tab-mobile-head');
                const panels  = tc.querySelectorAll('.smart-tab-panel');

                const activateTab = (target, allowMobileToggle = false) => {
                    const targetPanel = tc.querySelector('.smart-tab-panel[data-panel="' + target + '"]');
                    if (allowMobileToggle && targetPanel && targetPanel.classList.contains('active')) {
                        targetPanel.classList.remove('active');
                        mobHead.forEach(mh => { if (mh.getAttribute('data-tab') === target) mh.classList.remove('active'); });
                        return;
                    }
                    tabs.forEach(t => t.classList.toggle('active', t.getAttribute('data-tab') === target));
                    mobHead.forEach(mh => mh.classList.toggle('active', mh.getAttribute('data-tab') === target));
                    panels.forEach(p => p.classList.toggle('active', p.getAttribute('data-panel') === target));
                };

                tabs.forEach(tab => {
                    tab.addEventListener('click', function() {
                        activateTab(this.getAttribute('data-tab'), false);
                    });
                });
                mobHead.forEach(mh => {
                    mh.addEventListener('click', function() {
                        activateTab(this.getAttribute('data-tab'), true);
                    });
                });
            });

            // 3. Smart FAQ (Аккордеон со стрелочкой и синей полоской активного вопроса)
            document.querySelectorAll('.smart-faq-container').forEach(fc => {
                fc.querySelectorAll('.sf-question').forEach(qEl => {
                    qEl.addEventListener('click', function() {
                        const item = this.closest('.sf-item');
                        const ans  = item ? item.querySelector('.sf-answer') : null;
                        if (!item || !ans) return;
                        const isOpen = item.classList.contains('active');
                        fc.querySelectorAll('.sf-item').forEach(other => {
                            other.classList.remove('active');
                            const oa = other.querySelector('.sf-answer');
                            if (oa) oa.style.display = 'none';
                        });
                        if (!isOpen) {
                            item.classList.add('active');
                            ans.style.display = 'block';
                        }
                    });
                });
            });

            // 4. Умные Опросы (Smart Polls Pro)
            document.querySelectorAll('.sp-poll-container').forEach(pollEl => {
                const pollId = pollEl.getAttribute('data-poll-id');
                const items  = pollEl.querySelectorAll('.sp-item');
                const btn    = pollEl.querySelector('.sp-btn-submit');
                const votedKey = 'sw_poll_voted_' + pollId;

                const showVotedState = (percents, total) => {
                    pollEl.classList.add('voted');
                    if (btn) btn.style.display = 'none';
                    const totTxt = pollEl.querySelector('.sp-total-text');
                    const thanks = pollEl.querySelector('.sp-thanks');
                    const afterCnt = pollEl.querySelector('.sp-total-count-after');
                    if (totTxt) totTxt.style.display = 'none';
                    if (thanks) thanks.style.display = 'block';
                    if (afterCnt && total !== undefined) afterCnt.textContent = String(total);

                    items.forEach((it, idx) => {
                        const pVal = (percents && percents[idx] !== undefined)
                            ? percents[idx]
                            : (parseInt(it.getAttribute('data-init-perc') || '0', 10));
                        const bar = it.querySelector('.sp-fill-bar');
                        const lbl = it.querySelector('.sp-perc-val');
                        if (bar) bar.style.width = pVal + '%';
                        if (lbl) { lbl.textContent = pVal + '%'; lbl.style.display = 'inline-block'; }
                    });
                };

                if (pollId && localStorage.getItem(votedKey)) {
                    showVotedState(null, pollEl.querySelector('.sp-total-count')?.textContent);
                }

                items.forEach(it => {
                    it.addEventListener('click', function() {
                        if (pollEl.classList.contains('voted')) return;
                        items.forEach(x => x.classList.remove('selected'));
                        this.classList.add('selected');
                        if (btn) btn.style.display = 'block';
                    });
                });

                if (btn) {
                    btn.addEventListener('click', function() {
                        if (pollEl.classList.contains('voted')) return;
                        const sel = pollEl.querySelector('.sp-item.selected');
                        if (!sel) return;
                        const optIdx = sel.getAttribute('data-idx');
                        btn.disabled = true;
                        btn.textContent = 'Сохраняем голос...';

                        const fd = new FormData();
                        fd.append('poll_id', pollId);
                        fd.append('option_index', optIdx);

                        fetch('/api/poll_vote', { method: 'POST', body: fd })
                        .then(r => r.json())
                        .then(res => {
                            if (res && res.success && res.data) {
                                localStorage.setItem(votedKey, '1');
                                showVotedState(res.data.percents, res.data.total);
                            } else {
                                btn.disabled = false;
                                btn.textContent = 'ПРОГОЛОСОВАТЬ';
                            }
                        })
                        .catch(() => {
                            btn.disabled = false;
                            btn.textContent = 'ПРОГОЛОСОВАТЬ';
                        });
                    });
                }
            });
        })();

        // === ИНИЦИАЛИЗАЦИЯ ФОТОАЛЬБОМОВ И ПОЛНОЭКРАННОГО LIGHTBOX СО СВАЙПАМИ ===
        (function() {
            const albums = document.querySelectorAll('.sw-album');
            if (!albums.length) return;

            let lb = document.getElementById('sw-lightbox-modal');
            if (!lb) {
                lb = document.createElement('div');
                lb.id = 'sw-lightbox-modal';
                lb.innerHTML = `
                    <div class="sw-lb-top">
                        <span class="sw-lb-counter" id="sw-lb-counter">1 / 1</span>
                        <button type="button" class="sw-lb-close" id="sw-lb-close" title="Закрыть (Esc)">✕</button>
                    </div>
                    <button type="button" class="sw-lb-arrow sw-lb-prev" id="sw-lb-prev" title="Предыдущее фото">‹</button>
                    <div class="sw-lb-stage"><img id="sw-lb-img" src="" alt=""></div>
                    <button type="button" class="sw-lb-arrow sw-lb-next" id="sw-lb-next" title="Следующее фото">›</button>
                    <div id="sw-lb-caption" style="display:none;"></div>
                `;
                document.body.appendChild(lb);
            }

            let currentItems = [];
            let currentIndex = 0;
            const lbImg = document.getElementById('sw-lb-img');
            const lbCap = document.getElementById('sw-lb-caption');
            const lbCnt = document.getElementById('sw-lb-counter');

            function renderLbSlide() {
                if (!currentItems.length) return;
                if (currentIndex < 0) currentIndex = currentItems.length - 1;
                if (currentIndex >= currentItems.length) currentIndex = 0;
                const item = currentItems[currentIndex];
                lbImg.style.opacity = '0.35';
                setTimeout(() => {
                    lbImg.src = item.src;
                    lbImg.alt = item.caption || '';
                    lbImg.style.opacity = '1';
                }, 60);
                lbCnt.textContent = (currentIndex + 1) + ' / ' + currentItems.length;
                if (item.caption && item.caption.trim() !== '') {
                    lbCap.textContent = item.caption;
                    lbCap.style.display = 'block';
                } else {
                    lbCap.style.display = 'none';
                }
            }

            function openLightbox(items, startIdx) {
                currentItems = items;
                currentIndex = startIdx || 0;
                renderLbSlide();
                lb.classList.add('is-open');
            }

            function closeLightbox() {
                lb.classList.remove('is-open');
            }

            document.getElementById('sw-lb-close').addEventListener('click', closeLightbox);
            document.getElementById('sw-lb-prev').addEventListener('click', (e) => { e.stopPropagation(); currentIndex--; renderLbSlide(); });
            document.getElementById('sw-lb-next').addEventListener('click', (e) => { e.stopPropagation(); currentIndex++; renderLbSlide(); });
            lb.addEventListener('click', (e) => { if (e.target === lb) closeLightbox(); });

            document.addEventListener('keydown', (e) => {
                if (!lb.classList.contains('is-open')) return;
                if (e.key === 'Escape') closeLightbox();
                else if (e.key === 'ArrowLeft') { currentIndex--; renderLbSlide(); }
                else if (e.key === 'ArrowRight') { currentIndex++; renderLbSlide(); }
            });

            let touchStartX = 0;
            lb.addEventListener('touchstart', (e) => { if (e.changedTouches && e.changedTouches[0]) touchStartX = e.changedTouches[0].screenX; }, { passive: true });
            lb.addEventListener('touchend', (e) => {
                if (!e.changedTouches || !e.changedTouches[0]) return;
                const diff = e.changedTouches[0].screenX - touchStartX;
                if (Math.abs(diff) > 45) {
                    if (diff < 0) currentIndex++; else currentIndex--;
                    renderLbSlide();
                }
            }, { passive: true });

            albums.forEach((albumEl) => {
                const dataList = [];
                albumEl.querySelectorAll('.sw-album-data-item').forEach((imgEl) => {
                    dataList.push({
                        src: imgEl.getAttribute('src') || imgEl.getAttribute('data-src') || '',
                        caption: imgEl.getAttribute('data-caption') || imgEl.getAttribute('alt') || ''
                    });
                });
                if (!dataList.length) return;

                albumEl.querySelectorAll('[data-open-idx]').forEach((trigger) => {
                    trigger.addEventListener('click', function(e) {
                        if (e.target.closest('.sw-stage-nav')) return;
                        const idx = parseInt(this.getAttribute('data-open-idx'), 10) || 0;
                        openLightbox(dataList, idx);
                    });
                });

                const stageImg = albumEl.querySelector('.sw-stage-img');
                const stageCap = albumEl.querySelector('.sw-stage-caption');
                const stageWrap = albumEl.querySelector('.sw-album-stage');
                const thumbs = albumEl.querySelectorAll('.sw-album-thumb-btn');
                if (stageImg && stageWrap) {
                    let stIdx = 0;
                    const updateStage = (newIdx) => {
                        if (newIdx < 0) newIdx = dataList.length - 1;
                        if (newIdx >= dataList.length) newIdx = 0;
                        stIdx = newIdx;
                        const it = dataList[stIdx];
                        stageImg.src = it.src;
                        stageImg.alt = it.caption || '';
                        stageWrap.setAttribute('data-open-idx', String(stIdx));
                        if (stageCap) {
                            if (it.caption && it.caption.trim() !== '') {
                                stageCap.textContent = it.caption;
                                stageCap.style.display = 'block';
                            } else {
                                stageCap.style.display = 'none';
                            }
                        }
                        thumbs.forEach((tb, ti) => tb.classList.toggle('is-active', ti === stIdx));
                    };
                    const prevBtn = albumEl.querySelector('.sw-stage-prev');
                    const nextBtn = albumEl.querySelector('.sw-stage-next');
                    if (prevBtn) prevBtn.addEventListener('click', (e) => { e.stopPropagation(); updateStage(stIdx - 1); });
                    if (nextBtn) nextBtn.addEventListener('click', (e) => { e.stopPropagation(); updateStage(stIdx + 1); });
                    thumbs.forEach((tb, ti) => {
                        tb.addEventListener('click', (e) => { e.stopPropagation(); updateStage(ti); });
                    });
                    let stTouchX = 0;
                    stageWrap.addEventListener('touchstart', (e) => { if (e.changedTouches[0]) stTouchX = e.changedTouches[0].screenX; }, { passive: true });
                    stageWrap.addEventListener('touchend', (e) => {
                        if (!e.changedTouches[0]) return;
                        const d = e.changedTouches[0].screenX - stTouchX;
                        if (Math.abs(d) > 45) updateStage(d < 0 ? stIdx + 1 : stIdx - 1);
                    }, { passive: true });
                }
            });
        })();

        const backToTopBtn = document.getElementById("sw-back-to-top");
        window.addEventListener("scroll", function() {
            if (backToTopBtn) {
                const docHeight = document.documentElement.scrollHeight - window.innerHeight;
                if (docHeight > 0) {
                    if ((window.scrollY / docHeight) * 100 > 30) backToTopBtn.classList.add("is-visible");
                    else backToTopBtn.classList.remove("is-visible");
                }
            }
        }, { passive: true });
        const postId = 0;
        if (postId > 0) {
            let maxScroll = 0; let scrollSent = false;
            window.addEventListener("scroll", function() {
                const docHeight = document.documentElement.scrollHeight - window.innerHeight;
                if (docHeight > 0) {
                    const currentPercent = Math.round((window.scrollY / docHeight) * 100);
                    if (currentPercent > maxScroll) maxScroll = currentPercent;
                }
            }, { passive: true });
            document.addEventListener("visibilitychange", function() {
                if (document.visibilityState === "hidden" && !scrollSent && maxScroll >= 10) {
                    scrollSent = true;
                    navigator.sendBeacon("/api/telemetry", JSON.stringify({ action: "scroll", id: postId, percent: maxScroll }));
                }
            });
            if ("IntersectionObserver" in window) {
                const seenOffers = new Set();
                const observer = new IntersectionObserver(function(entries) {
                    entries.forEach(function(entry) {
                        if (entry.isIntersecting) {
                            const offerId = parseInt(entry.target.getAttribute("data-offer-id"), 10);
                            if (offerId && !seenOffers.has(offerId)) {
                                seenOffers.add(offerId);
                                fetch("/api/telemetry", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ action: "offer_view", id: offerId, post_id: postId }) });
                            }
                        }
                    });
                }, { threshold: 0.5 });
                document.querySelectorAll("[data-offer-id]").forEach(el => observer.observe(el));
            }
            const rateButtons = document.querySelectorAll(".sw-star-btn");
            const rateBox = document.getElementById("sw-rating-box");
            if (rateButtons.length && rateBox) {
                if (localStorage.getItem("sw_rated_" + postId)) {
                    rateButtons.forEach(b => b.classList.add("is-rated"));
                    const msg = rateBox.querySelector(".sw-rating-thanks");
                    if (msg) msg.style.display = "inline-block";
                }
                rateButtons.forEach(function(btn) {
                    btn.addEventListener("click", function() {
                        if (localStorage.getItem("sw_rated_" + postId)) return;
                        const score = parseInt(this.getAttribute("data-score"), 10);
                        localStorage.setItem("sw_rated_" + postId, score);
                        btn.classList.add("is-rated");
                        const msg = rateBox.querySelector(".sw-rating-thanks");
                        if (msg) msg.style.display = "inline-block";
                        fetch("/api/telemetry", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ action: "rate", id: postId, score: score }) }).catch(e=>{});
                    });
                });
            }
        }
    });
</script>
    <!-- Yandex.RTB R-A-17926877-3 -->
<script>
window.yaContextCb.push(() => {
    Ya.Context.AdvManager.render({
        "blockId": "R-A-17926877-3",
        "type": "floorAd",
        "platform": "touch"
    })
})
</script>
<!-- Yandex.RTB R-A-17926877-7 -->
<script>
window.yaContextCb.push(() => {
    Ya.Context.AdvManager.render({
        "blockId": "R-A-17926877-7",
        "type": "fullscreen",
        "platform": "touch"
    })
})
</script>
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
   (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
   m[i].l=1*new Date();
   for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
   k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
   (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");

   ym(29563035, "init", {
        clickmap:true,
        trackLinks:true,
        accurateTrackBounce:true
   });
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/29563035" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<!-- Top100 (Kraken) Counter -->
<script>
    (function (w, d, c) {
    (w[c] = w[c] || []).push(function() {
        var options = {
            project: 6683975,
        };
        try {
            w.top100Counter = new top100(options);
        } catch(e) { }
    });
    var n = d.getElementsByTagName("script")[0],
    s = d.createElement("script"),
    f = function () { n.parentNode.insertBefore(s, n); };
    s.type = "text/javascript";
    s.async = true;
    s.src =
    (d.location.protocol == "https:" ? "https:" : "http:") +
    "//st.top100.ru/top100/top100.js";

    if (w.opera == "[object Opera]") {
    d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(window, document, "_top100q");
</script>
<noscript>
  <img src="//counter.rambler.ru/top100.cnt?pid=6683975" alt="Топ-100" />
</noscript>
<!-- END Top100 (Kraken) Counter -->
<!-- Top.Mail.Ru counter -->
<script type="text/javascript">
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({id: "3041957", type: "pageView", start: (new Date()).getTime()});
(function (d, w, id) {
  if (d.getElementById(id)) return;
  var ts = d.createElement("script"); ts.type = "text/javascript"; ts.async = true; ts.id = id;
  ts.src = "https://top-fwz1.mail.ru/js/code.js";
  var f = function () {var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ts, s);};
  if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); }
})(document, window, "tmr-code");
</script>
<noscript><div><img src="https://top-fwz1.mail.ru/counter?id=3041957;js=na" style="position:absolute;left:-9999px;" alt="Top.Mail.Ru" /></div></noscript>
<!-- /Top.Mail.Ru counter -->
<script>
    (function() {
        var cronPixel = new Image();
        cronPixel.src = "https://hub.serweb.ru/wp-cron.php?doing_wp_cron&nocache=" + new Date().getTime();
    })();
</script></body>
</html>
