/* #################################### User.css ##################################*/


/* ===== модуль Кнопка «Наверх» ===== */
.lavm-to-top {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px)); /* учет панели жестов iPhone */
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #3b82f6;
    color: #fff;
    border: 1px solid gold;
    border-radius: 10px;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);

    /* скрыта по умолчанию, появляется после прокрутки (класс is-visible ставит JS) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.3s;
}

.lavm-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lavm-to-top:hover,
.lavm-to-top:focus {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
}

.lavm-to-top__arrow {
    font-size: 20px;
    line-height: 1;
}

/* На телефоне: только стрелка в круглой кнопке */
@media (max-width: 767.98px) {
    .lavm-to-top {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        width: 46px;
        height: 46px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .lavm-to-top__text {
        display: none;
    }
}



/* ===== Статичный фон главной ===== */
body.forhome::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    z-index: -1;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('/images/bg/LAVM-Иконы-01.jpg') center top / cover no-repeat #0f0f14; /*LAVM-фрезерЧПУ-ok.jpg*/
    pointer-events: none;
}

/* Не даём body и баннеру закрывать слой собственным фоном */
body.forhome,
.forhome .container-banner,
.forhome .container-banner .banner-overlay,
.forhome #mod-custom113 {
    background: transparent !important;
    background-image: none !important;
    background-attachment: scroll !important;
}

/* Убираем второе затемнение на первом экране */
.forhome .container-banner .banner-overlay .overlay {
    background-color: transparent !important;
}




/* ===== МОДУЛЬ «Блоки главной»: подарок, производство, заказ, хранение, доставка, чертёж ===== */

/* ---------- 1. ОБЩАЯ ПОДЛОЖКА И ПЕРЕМЕННЫЕ (меняйте здесь — обновится везде) ---------- */
.lavm-article-cards {
    --lavm-card-bg: rgba(244, 248, 255, 0.85);   /* подложка карточек (0.85 — непрозрачность) */
    --lavm-card-border: rgba(71, 123, 255, 0.6); /* рамка карточек */
    --lavm-card-shadow: 0 5px 18px rgba(0, 74, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --lavm-btn-bg: #477bff;                      /* кнопки: обычный цвет */
    --lavm-btn-hover: #1d4ed8;                   /* кнопки: при наведении/нажатии */
    --lavm-btn-border: gold;                     /* кнопки: золотая рамка */
    --lavm-btn-shadow: 0 4px 12px rgba(71, 123, 255, 0.3);
    --lavm-focus: #7050ff;                       /* контур фокуса (клавиатура) */

    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 20px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(71, 123, 255, 0.4);
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(0, 74, 255, 0.7);
}

/* ---------- 2. ОБЫЧНАЯ КАРТОЧКА ---------- */
.lavm-article-cards .lavm-card {
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: 22px 24px;
    color: #002d59;                              /* цвет текста */
    background: var(--lavm-card-bg);
    border: 1.5px solid var(--lavm-card-border);
    border-radius: 12px;
    box-shadow: var(--lavm-card-shadow);
}
.lavm-article-cards .lavm-card p { margin: 0; }
.lavm-article-cards .lavm-card p + p { margin-top: 12px; }   /* отступ между абзацами */
.lavm-article-cards .lavm-card-heading { margin-bottom: 12px; font-size: 1.15rem; font-weight: 700; }
.lavm-article-cards .lavm-card ul { margin: 0; padding-left: 24px; }
.lavm-article-cards .lavm-card li { margin: 8px 0; line-height: 1.6; }

/* ---------- 3. ПЛАВНОЕ ПРОЯВЛЕНИЕ КАРТОЧКИ (класс добавляет JS) ---------- */
.lavm-reveal {
    opacity: 0.2;                                /* насколько бледная */
    filter: blur(6px);                           /* размытие: 3px мягко, 10px сильно */
    transition: opacity 3s ease-out, filter 3s ease-out;   /* длительность */
    will-change: opacity, filter;
}
.lavm-reveal.is-shown { opacity: 1; filter: blur(0); }

/* ---------- 4. ГЛАВНАЯ КАРТОЧКА «Лучший подарок» ---------- */
.lavm-article-cards .lavm-card.lavm-card-intro {
    position: relative;
    isolation: isolate;
    background: rgba(255, 245, 212, 0.97);       /* фон и прозрачность */
    border: 2px solid #d4af37;                   /* индивидуальная рамка */
    border-radius: 14px;
}
.lavm-article-cards .lavm-card.lavm-card-intro > * { position: relative; z-index: 2; }  /* контент поверх рамки */

.lavm-article-cards .lavm-card-intro-media { display: flex; justify-content: center; align-items: center; margin-bottom: 10px; }
.lavm-article-cards .lavm-media-img {
    display: block;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    border-radius: 7px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.lavm-article-cards .lavm-card-intro-title {
    margin: 0 0 14px;
    font: 700 clamp(1.65rem, 2.8vw, 2.35rem)/1.35 "Times New Roman", Times, Georgia, serif;
    text-align: center;
    color: #164397;
    text-shadow: 0 1px 2px rgba(22, 67, 151, 0.15);
}

/* Золотая «волна» в заголовке («икона объёмная») */
@keyframes lavmTextGoldWave { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.lavm-article-cards .lavm-card-intro-title .lavm-title-gold {
    background: linear-gradient(90deg, #8a5a10 0%, #d4af37 20%, #fff7d1 35%, #d4af37 50%, #8a5a10 65%, #fff7d1 80%, #8a5a10 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #b87b1e;                              /* запасной цвет, если градиент не поддерживается */
    animation: lavmTextGoldWave 5s ease-in-out infinite;
    filter: drop-shadow(0 1px 1px rgba(90, 55, 10, 0.3));
    white-space: nowrap;
}

.lavm-article-cards .lavm-card-intro-text {
    margin: 0;
    color: #164397;
    font-size: 1.05rem;
    line-height: 1.65;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ---------- 5. КАРТОЧКА ПРОИЗВОДСТВА ---------- */
.lavm-card-production { display: flex; flex-direction: column; gap: 12px; }
.lavm-production-media { width: 100%; max-width: 220px; margin: 0 auto; }
.lavm-production-img { display: block; width: 100%; height: auto; border: 1px solid #cbd5e1; border-radius: 6px; }
@media (min-width: 768px) {
    .lavm-card-production { flex-direction: row; align-items: center; }
    .lavm-production-content { flex: 1; }
    .lavm-production-media { flex-shrink: 0; width: 100px; margin: 0; }
}

/* ---------- 6. КАРТОЧКА ИНДИВИДУАЛЬНОГО ЗАКАЗА + КНОПКА «Регистрация» ---------- */
.lavm-article-cards .lavm-card-order .lavm-order-instruction {
    margin-top: 12px;
    padding: 14px 16px;
    color: #111;
    background: rgba(71, 123, 255, 0.15);
    border-left: 3px solid var(--lavm-focus);
    border-radius: 6px;
}
.lavm-article-cards .lavm-card-order .lavm-order-button-wrap { display: flex; justify-content: center; align-items: center; margin-top: 22px; }

.lavm-article-cards .lavm-card-order .lavm-register-3d {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
    min-width: 220px;
    max-width: 100%;
    min-height: 76px;
    padding: 10px 24px 12px 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    background: var(--lavm-btn-bg);
    border: 1px solid var(--lavm-btn-border);
    border-radius: 14px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.lavm-article-cards .lavm-card-order .lavm-avatar-3d {
    display: block;
    flex: 0 0 58px;
    width: 58px;
    height: 65px;
    overflow: visible;
    filter: drop-shadow(0 2px 3px rgba(71, 123, 255, 0.35));
    transition: transform 0.25s ease, filter 0.25s ease;
}
.lavm-article-cards .lavm-card-order .lavm-register-label {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(32, 20, 100, 0.65), 0 2px 3px rgba(25, 15, 80, 0.4);
}
.lavm-article-cards .lavm-card-order .lavm-register-arrow { margin-left: 2px; color: #ffe8a1; font-size: 1.8rem; font-weight: 400; line-height: 1; }

/* Наведение — только для мыши (на iPhone «залипало» бы после касания) */
@media (hover: hover) and (pointer: fine) {
    .lavm-article-cards .lavm-card-order .lavm-register-3d:hover {
        color: #fff;
        text-decoration: none;
        background: var(--lavm-btn-hover);
        border: 2px solid #d5b45b;
        transform: scale(1.05);
        box-shadow: var(--lavm-btn-shadow);
    }
    .lavm-article-cards .lavm-card-order .lavm-register-3d:hover .lavm-avatar-3d {
        transform: translateY(-2px) scale(1.04);
        filter: drop-shadow(0 3px 5px rgba(112, 80, 255, 0.55));
    }
}
.lavm-article-cards .lavm-card-order .lavm-register-3d:active { transform: translateY(3px); }
.lavm-article-cards .lavm-card-order .lavm-register-3d:focus-visible { outline: 3px solid var(--lavm-focus); outline-offset: 5px; }

/* ---------- 7. СПИСОК ХРАНЕНИЯ (солнце, огонь, вода) И ФЛАГИ ---------- */
.lavm-storage-list { margin: 12px 0 0; padding-left: 0; list-style: none; }
.lavm-storage-list li { position: relative; margin-bottom: 12px; padding-left: 36px; line-height: 1.5; }
.lavm-storage-list li::before { position: absolute; left: 0; top: 0; font-size: 1.3rem; line-height: 1; }
.lavm-storage-list li.sun::before  { content: "☀️"; }
.lavm-storage-list li.fire::before { content: "🔥"; }
.lavm-storage-list li.drop::before { content: "💧"; }

.lavm-article-cards .lavm-country { display: inline; white-space: nowrap; }
.lavm-article-cards .lavm-flag { display: inline-block; margin-right: 3px; font-size: 1.05em; line-height: 1; vertical-align: -1px; }

/* ---------- 8. КАРТОЧКА С КНОПКАМИ: «Скачать чертёж» + «Выражаю благодарность» ---------- */
.lavm-article-cards .lavm-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* Объединённая карточка: две строки (кнопка + текст / кнопка) */
.lavm-article-cards .lavm-card-actions.lavm-card-actions-merged { flex-direction: column; align-items: stretch; }
.lavm-article-cards .lavm-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lavm-article-cards .lavm-actions-row p { margin: 0; }

/* Общая кнопка карточек */
.lavm-article-cards .lavm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 11px 22px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    background: var(--lavm-btn-bg);
    border: 1px solid var(--lavm-btn-border);
    border-radius: 9px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .lavm-article-cards .lavm-button:hover {
        color: #fff;
        background: var(--lavm-btn-hover);
        border: 1px solid var(--lavm-btn-border);
        transform: scale(1.05);
        box-shadow: var(--lavm-btn-shadow);
    }
}
.lavm-article-cards .lavm-button:active { background: var(--lavm-btn-hover); }
.lavm-article-cards .lavm-button:focus-visible { outline: 3px solid var(--lavm-focus); outline-offset: 3px; }

/* ---------- 9. ТЕЛЕФОНЫ ---------- */
@media (max-width: 600px) {
    .lavm-article-cards .lavm-card { padding: 18px; }
    .lavm-article-cards .lavm-card.lavm-card-intro { padding: 24px 20px; border-radius: 14px; }
    .lavm-article-cards .lavm-card-intro-text { font-size: 0.95rem; }
    .lavm-article-cards .lavm-card-actions { flex-direction: column; align-items: stretch; }
    .lavm-article-cards .lavm-button { width: 100%; }
    .lavm-article-cards .lavm-card-order .lavm-register-3d { display: flex; width: 100%; max-width: 340px; min-width: 0; min-height: 72px; margin-inline: auto; padding: 8px 14px; gap: 8px; }
    .lavm-article-cards .lavm-card-order .lavm-avatar-3d { flex-basis: 52px; width: 52px; height: 59px; }
    .lavm-article-cards .lavm-card-order .lavm-register-label { font-size: 1rem; }
}

/* ---------- 10. ЕСЛИ У ЧЕЛОВЕКА ОТКЛЮЧЕНЫ АНИМАЦИИ ---------- */
@media (prefers-reduced-motion: reduce) {
    .lavm-reveal { opacity: 1; filter: none; transition: none; }
    .lavm-article-cards .lavm-card-order .lavm-register-3d,
    .lavm-article-cards .lavm-card-order .lavm-avatar-3d { transition: none; }
}




/* Фиксация отображения информера Яндекс.Метрики в футере */
.ym-advanced-informer,
img[class*="ym-advanced-informer"] {
    width: 88px !important;
    height: 31px !important;
    max-width: none !important;
    object-fit: contain !important;
    display: inline-block !important;
}

/* Полное скрытие блока дополнительных ссылок и стрелочек «Подробнее» в блоге */
/* Полное скрытие кнопки «Подробнее» в модуле статей (mod_articles) */
.mod-articles-item .readmore,
.mod-articles-item p.readmore {
    display: none !important;
}


/* Кнопка назад для Phocagallery */
/* Контейнер выравнивания */
.pg-bottom-back-wrapper {
    display: flex !important;
    justify-content: center !important;
    margin: 30px 0 20px 0 !important;
    width: 100% !important;
}

/* Внешняя светло-серая карточка */
.pg-custom-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
    background-color: #f2f2f2 !important; /* Светло-серый фон карточки */
    padding: 8px 22px 8px 10px !important;
    border-radius: 12px !important;        /* Форма плашки */
    border: 1px solid #e0e0e0 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease-in-out !important;
}

.pg-custom-back-btn:hover {
    background-color: #e5e5e5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

/* Серый круг (уменьшенная версия верхнего круга Phoca) */
.pg-custom-back-circle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;               /* Диаметр круга */
    height: 48px !important;
    background-color: #a3a8ab !important;/* Цвет оригинального круга */
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Четкая белая стрелка влево */
.pg-custom-back-circle svg {
    width: 26px !important;
    height: 26px !important;
    fill: #ffffff !important;
    background: transparent !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Текст "Назад" с правой стороны */
.pg-custom-back-label {
    color: #222222 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}




/* иконка для скачивания на фотографиях для зарегистрированных пользователей в joomla phocagallery */
/* templates/cassiopeia_lavm/html/com_phocagallery/category/default_images.php обновленные условия блока // ICON DOWNLOAD */
/* 1. Карточка фотографии — базовая рамка */
.pg-item-box {
    position: relative !important;
    z-index: 1 !important;
}
/* 2. Делаем промежуточные контейнеры «сквозными» (position: static),
      чтобы ссылка Rutube растягивалась ровно по всей карточке .pg-item-box */
.pg-item-box-info,
.pg-item-box-icons-box {
    position: static !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}
/* 3. Ссылка Rutube растягивается НА ВСЮ картинку */
.pg-item-box a[href*="rutube"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important; /* Выше картинки, перехватывает клик */
    background: transparent !important;
    display: block !important;
}
/* 4. Скрываем ненужные элементы (лупу и старую иконку внешней ссылки) */
.pg-item-box svg.ph-si-ext-link1,
.pg-item-box-icons-box a.pg-photoswipe-button-copy {
    display: none !important;
}
/* 5. Иконка скачивания — в правом верхнем углу (ВЫШЕ Rutube: z-index: 20) */
.pg-item-box a[href*="phocadownload"] {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 20 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    border-radius: 4px !important;
    padding: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
/* 6. Размер и цвет иконки скачивания */
.pg-item-box a[href*="phocadownload"] svg {
    width: 22px !important;
    height: 22px !important;
    fill: #ffffff !important;
    color: #ffffff !important;
}
/* 7. Эффект при наведении на картинку */
.pg-item-box-image img {
    transition: transform 0.4s ease, filter 0.4s ease !important;
}
.pg-item-box:hover .pg-item-box-image img {
    transform: scale(1.07) !important;
    filter: brightness(1.1) !important;
}
/* 8. ПОЛНОЭКРАННЫЙ ПРОСМОТР (PHOTOSWIPE) */
.pswp,
#phpswipe {
    z-index: 10001 !important;
}
/* Скрываем дубликаты иконок во всплывающем окне */
.pswp .pg-item-box-icons-box,
.pswp a[href*="phocadownload"],
.pswp a[href*="rutube"] {
    display: none !important;
}



/* Кнопка валюты, созданная через JS */
/* Контейнер для центрирования кнопки валюты */
.currency-switcher {
    margin-top: 20px;
    margin-bottom: 25px;
    clear: both;
    display: flex;
    justify-content: center; /* Центрирует кнопку на любых экранах */
    width: 100%;
}
/* Твой стиль для кнопки изменения валюты */
.currency-toggle-btn {
    padding: 14px 30px;
    background: #3b82f6; /* цвет кнопки */
    border: 1px solid gold;;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}
.currency-toggle-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
    color: white; /* Текст остается белым при наведении */
    border: 1px solid gold;
}

/* ########################### Чтобы звезды не глючили в joomshopping #################### */
.js-backend-stars-wrapper {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    height: 20px;
}
/* Скрываем стандартные круглые радио-кнопки */
.js-backend-stars-wrapper input[type="radio"] {
    display: none !important;
}

/* Базовый вид звезды (выключена) */
.js-backend-stars-wrapper label {
    display: block;
    width: 20px;
    height: 20px;
    background: url(/components/com_jshopping/images/star.png) no-repeat 0 0px !important;
    cursor: pointer;
    margin: 0 2px 0 0;
    padding: 0;
}
/* Подсвечиваем звезду при наведении и все перед ней */
.js-backend-stars-wrapper label:hover,
.js-backend-stars-wrapper label:hover ~ label {
    background-position: 0 -19px !important;
}
/* Подсвечиваем выбранную звезду и все перед ней */
.js-backend-stars-wrapper input[type="radio"]:checked ~ label {
    background-position: 0 -19px !important;
}
/* Поддержка правильной подсветки при наведении */
.js-backend-stars-wrapper input[type="radio"]:checked ~ label:hover,
.js-backend-stars-wrapper input[type="radio"]:checked ~ label:hover ~ label,
.js-backend-stars-wrapper label:hover ~ input[type="radio"]:checked ~ label {
    background-position: 0 -19px !important;}


/* Подгоняем карусель под высоту экрана на компьютерах и ноутбуках */
@media (min-width: 992px) {
    #carouselexamplecaptions .carousel-item img {
        max-height: 60vh; /* Картинка не превысит 70% высоты экрана */
        object-fit: contain; /* Картинка сжимается пропорционально и видна целиком */
        width: 100%;
    }
}

/* 1. Выделяем карточку модуля "Родителям посвящается" и задаем фиолетовую рамку и тень */
.container-top-b .top-b.card.hide-in-gallery:has(#mod-custom133),
.top-b.card.hide-in-gallery:has(#mod-custom133) {
    border: 2px solid rgba(138, 43, 226, 0.7) !important; /* Фиолетовая рамка в тон */
    border-radius: 12px !important; /* Скругление */
    box-shadow: 0 6px 15px rgba(138, 43, 226, 0.7) !important; /* Фиолетовое свечение */
    overflow: hidden !important;
    background-color: #ffffff !important;
}
/* 2. Настраиваем фиолетовую плашку фона для заголовка "Родителям посвящается" */
.container-top-b .top-b.card.hide-in-gallery:has(#mod-custom133) .card-header,
.top-b.card.hide-in-gallery:has(#mod-custom133) .card-header {
    background-color: rgba(138, 43, 226, 0.4) !important; /* Полупрозрачный фиолетовый фон плашки */
    color: #ffffff !important;      /* Насыщенный фиолетовый цвет букв */
    font-weight: 800 !important;    /* Жирный шрифт */
    text-align: center !important;   /* Текст строго посередине */
    letter-spacing: 1px !important;  /* Отступ между буквами */
    padding: 15px 10px !important;   /* Объемные отступы */
    border-bottom: none !important;  /* Убираем лишние рамки снизу */
}
/* 3. Оформление внутреннего текста */
#mod-custom133 {
    padding: 15px 10px !important;
    color: #0b005b !important; /* Основной читаемый цвет текста */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}



/* ==========================================================================
   ОФОРМЛЕНИЕ МОДУЛЯ «КАК РАЗМЕСТИТЬ ИКОНУ ДОМА» (Один в один как «Описание Икон»)
   ========================================================================== */
/* 1. Выделяем карточку модуля "РАЗМЕСТИТЬ ИКОНУ" и задаем рамку в тон */
.container-bottom-b .bottom-b.card:has(#mod-custom136),
.bottom-b.card:has(#mod-custom136) {
    border: 2px solid rgba(0, 76, 255, 0.7) !important; /* Рамка точно такого же цвета, как у О нас */
    border-radius: 12px !important;
    box-shadow: 0 6px 15px rgba(0, 76, 255, 0.7) !important; /* Мягкое синее свечение по краям */
    overflow: hidden !important;
    margin-bottom: 25px !important;
    background: #c8d3fff0 !important;
}

/* 1. Заголовок модуля: белый текст на синем фоне, без белых полос под ним */
div.bottom-b .card-header,
div.grid-child-container-bottom-b .card-header {
    background: #7a9cff !important; /* Тот самый синий цвет шапки */
    color: #ffffff !important;
    font-weight: bold !important;
    text-align: center !important;
    border-bottom: none !important; /* Убираем белую полосу снизу */
    padding: 12px 16px !important;
    border-radius: 12px !important;
}

/* 2. Общий контейнер карточки модуля */
div.bottom-b .card, 
div.grid-child-container-bottom-b .card {
    background: rgba(122, 156, 255, 0.25) !important; /* Светло-синяя полупрозрачная подложка */
    border: 1px solid rgba(122, 156, 255, 0.4) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
}

div.bottom-b .card-body,
div.grid-child-container-bottom-b .card-body {
    padding: 16px 0 !important;
    background: transparent !important;
}

/* 3. Вводный текст с красной строки, темно-синий с единой тенью */
.placement-intro {
    color: #1a237e !important;
    font-size: 1rem !important;
    line-height: 1.55 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 16px !important;
    padding: 0 20px !important; /* Отступы с боков */
}

/* 4. Сетка плашек с отступами по бокам */
.placement-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 0 20px !important; /* Отступы слева и справа у плашек */
}

/* 5. ВСЕ ПЛАШКИ ОДИНАКОВОГО ЦВЕТА (приглушенные) */
.placement-grid .placement-card {
    width: 100% !important;
    background: rgba(30, 35, 50, 0.55) !important; /* Одинаковый приглушенный темно-синий/серый фон */
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px;
    padding: 14px 18px !important;
    transition: border-color 0.3s ease;
}

.placement-grid .placement-card:hover {
    border-color: rgba(212, 175, 55, 0.4) !important;
}

/* Заголовки плашек */
.placement-grid .placement-card h3 {
    color: #ffffff !important;
    font-size: 1rem !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Списки внутри плашек */
.placement-grid .placement-card ul {
    margin: 0 !important;
    padding-left: 18px !important;
}

.placement-grid .placement-card li {
    color: #e0e0e0 !important;
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
    margin-bottom: 4px !important;
}

.placement-grid .placement-card strong {
    color: #ffffff !important;
}

/* 6. Блок «Важный нюанс» снизу с такими же отступами по бокам */
.placement-note {
    margin: 16px 20px 0 20px !important;
    padding: 12px 16px !important;
    background: rgba(30, 35, 50, 0.55) !important;
    border-left: 4px solid #d4af37 !important;
    border-radius: 0 8px 8px 0;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}




/* #################################### О НАС ##################################*/

/* 1. Переносим текст строго под слайдер */
.container-top-a .top-a.card:has(#mod-custom114) .carousel-item {
    display: flex !important;
    flex-direction: column !important;
}

/* 2. Настраиваем блок с текстом: прозрачный фон и выравнивание по центру */
.container-top-a .top-a.card:has(#mod-custom114) .carousel-caption {
    position: static !important; /* Опускает текст вниз под картинку */
    width: 100% !important;
    padding: 15px 10px !important;
    margin-top: 15px !important;
    background-color: transparent !important; /* Полностью убираем серую подложку */
    border: none !important;
    box-shadow: none !important;
    text-align: center !important; /* ВЫРАВНИВАНИЕ СТРОГО ПО ЦЕНТРУ */

    /* Эффект анимации: плавное появление и легкий сдвиг вверх */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease-in-out,
                transform 0.8s ease-in-out !important;
}

/* Когда слайд становится активным, текст плавно проявляется */
.container-top-a .top-a.card:has(#mod-custom114) .carousel-item.active .carousel-caption {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Стрелочки слайдера: яркий сине-фиолетовый цвет */

/* Настраиваем кнопки переключения слайдов */
#carouselexamplecaptions .carousel-control-prev,
#carouselexamplecaptions .carousel-control-next {
    display: flex !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 12% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.8 !important;
    visibility: visible !important;
    z-index: 20 !important;
    background: transparent !important;
    border: none !important;
    transition: opacity 0.2s ease !important;
}

/* Скрываем стандартные значки Bootstrap */
#carouselexamplecaptions .carousel-control-prev-icon,
#carouselexamplecaptions .carousel-control-next-icon {
    display: none !important;
}

/* Общие настройки нарисованных стрелок */
#carouselexamplecaptions .carousel-control-prev::before,
#carouselexamplecaptions .carousel-control-next::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    border-color: #4935ff;
    border-style: solid;
    border-width: 0;
}

/* Левая стрелка */
#carouselexamplecaptions .carousel-control-prev::before {
    border-left-width: 4px;
    border-bottom-width: 4px;
    transform: rotate(45deg);
}

/* Правая стрелка */
#carouselexamplecaptions .carousel-control-next::before {
    border-right-width: 4px;
    border-top-width: 4px;
    transform: rotate(45deg);
}

/* При наведении курсора стрелочки становятся ярче */
#carouselexamplecaptions .carousel-control-prev:hover,
#carouselexamplecaptions .carousel-control-next:hover {
    opacity: 1 !important;
}


/* 4. Делаем весь текст синим в тон заголовка О НАС */
.container-top-a .top-a.card:has(#mod-custom114) .carousel-caption h5,
.container-top-a .top-a.card:has(#mod-custom114) .carousel-caption p,
.container-top-a .top-a.card:has(#mod-custom114) .carousel-caption span {
    color: #2a00f7ad !important; /* ВАШ ТОЧНЫЙ СИНИЙ ЦВЕТ ТЕКСТА */
    background-color: transparent !important; /* Принудительно стираем серый фон из HTML */
}

/* 5. Адаптивные шрифты и настройки для мобильных устройств */
@media (max-width: 768px) {

    /* Уменьшаем отступ над подписью */
    .container-top-a .top-a.card:has(#mod-custom114) .carousel-caption {
        margin-top: 10px !important;
    }

    /* Уменьшаем главный заголовок слайда на телефонах */
    .container-top-a .top-a.card:has(#mod-custom114) .carousel-caption h5 span {
        font-size: 16pt !important; /* Вместо исходных 24pt */
        line-height: 1.3 !important;
    }

    /* Уменьшаем описание под заголовком на телефонах */
    .container-top-a .top-a.card:has(#mod-custom114) .carousel-caption p span {
        font-size: 11pt !important; /* Вместо исходных 12pt */
        line-height: 1.4 !important;
    }

    /* Скрываем точки индикаторов на мобильных, чтобы освободить место */
    .container-top-a .top-a.card:has(#mod-custom114) .carousel-indicators {
        display: none !important;
    }
}

/* 6. Выделяем карточку модуля "О нас" и задаем рамку в тон */
.container-top-a .top-a.card:has(#mod-custom114) {
    border: 2px solid rgba(0, 76, 255, 0.7) !important; /* Рамка точно такого же цвета, как фон плашки */
    border-radius: 12px !important;
    box-shadow: 0 6px 15px rgba(0, 76, 255, 0.7) !important;
    overflow: hidden !important;
    background-color: #fffced;
}

/* 7. Настраиваем сине-голубую плашку фона для заголовка */
.container-top-a .top-a.card:has(#mod-custom114) .card-header {
    background-color: rgba(87, 63, 255, 0.36) !important; /* ВАШ ТОЧНЫЙ ЦВЕТ ФОНА ПЛАШКИ */
    color: #1c00a4c9 !important; /* Исходный цвет букв заголовка */
    font-weight: 800 !important; /* Шрифт толстый и жирный */
    text-align: center !important; /* Текст строго посередине */
    letter-spacing: 1px !important; /* Благородный отступ между буквами */
    padding: 15px 10px !important; /* Внутренние отступы, чтобы плашка выглядела объемно */
    border-bottom: none !important; /* Убираем лишние рамки снизу */
}



/* ################################ меню Иконы ##################################*/
/* 1. Карточки икон: персиковый фон, разделение и заметные объемные тени */
.com-content-category-blog__item.blog-item {
    background-color: #fff1e6 !important;
    border: 1px solid #ffd8be !important;
    border-radius: 16px !important;
    padding: 25px !important;
    margin-bottom: 35px !important;
/* Новая сочная, плотная тень, которую точно видно */
    box-shadow: 0 8px 24px rgba(139, 69, 19, 0.2), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease !important;
}
/* Эффект «оживания» карточки при наведении мыши (становится еще объемнее) */
.com-content-category-blog__item.blog-item:hover {
    transform: translateY(-5px) !important; /* Приподнимается повыше */
    box-shadow: 0 16px 36px rgba(255, 107, 1, 0.5) !important; /* Тень становится густой и глубокой */
}
/* Удаляем отступ у самой последней карточки */
.com-content-category-blog__item.blog-item:last-child {
    margin-bottom: 0 !important;
}
/* 2. Картинка внутри блога: оранжевый ободок и своя мягкая тень */
.com-content-category-blog__item.blog-item figure.item-image img {
    border: 3px solid #ff7f50 !important; /* Сочный оранжевый ободок */
    padding: 4px !important;              /* Зазор между картинкой и ободком */
    background-color: #fff !important;    /* Белая подложка под картинкой */
    border-radius: 10px !important;       /* Аккуратное скругление ободка */
}
/* 3. ШРИФТЫ: Благородный кофейно-шоколадный цвет вместо черного */
.com-content-category-blog__item.blog-item p,
.com-content-category-blog__item.blog-item span,
.com-content-category-blog__item.blog-item strong {
    color: #4a3321 !important; /* Глубокий кофейный цвет (очень мягкий для глаз) */
}
/* Кнопка «Назад»: копия стиля .lavm-btn с главной */
/* Две кнопки друг под другом, по центру */
/* Кнопки в модуле bottom-a: стиль как .lavm-btn на главной */
#backToIconModule.btn-primary,
#catalogBtnModule.btn-primary {
    background: #3b82f6 !important;
    border: 1px solid gold !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: normal !important;
    padding: 14px 30px !important;
    transition: 0.3s !important;
    box-shadow: none !important;
}

#backToIconModule.btn-primary:hover,
#catalogBtnModule.btn-primary:hover {
    background: #1d4ed8 !important;
    border-color: gold !important;
    color: #fff !important;
    transform: scale(1.05);
}




/* ################################ модуль Описание Икон ##################################*/

/* Плавный скролл до модуля Описание Икон*/
html { scroll-behavior: smooth; }

/* Полностью стираем фон, рамку и тени внешней карточки Cassiopeia ТОЛЬКО вокруг модуля 135 */
.container-bottom-a .bottom-a.card:has(#mod-custom135),
.container-bottom-a .bottom-a.card:has(#mod-custom135) .card-body {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* === ОФОРМЛЕНИЕ КАРТОЧКИ И ПЛАШКИ ПОД СТИЛЬ МОДУЛЯ "О НАС" === */
.sidebar-left.card.mod-small-images {
    border: 2px solid rgba(0, 76, 255, 0.7) !important; /* Точная синяя рамка */
    box-shadow: 0 6px 15px rgba(0, 76, 255, 0.7) !important; /* Ваша сочная синяя тень */
    background: #c8d3fff0 !important; /* Легкий чистый фон под списком */
    padding: 0 !important; /* Убираем дефолтные отступы, чтобы плашка легла в края */
    overflow: hidden !important; /* Защита скругления уголков */
    border-radius: 12px !important;
}

/* Настраиваем ту самую полупрозрачную сине-голубую плашку фона для заголовка */
.sidebar-left.card.mod-small-images .card-header {
    background-color: rgba(58, 98, 255, 0.4) !important; /* Ваш точный цвет полупрозрачной плашки */
    color: #ffffff !important;     /* Сине-голубой цвет текста заголовка #0076f7*/
    font-weight: 800 !important;    /* Шрифт толстый и жирный */
    text-align: center !important;   /* Текст строго посередине */
    letter-spacing: 1px !important;  /* Благородный отступ между буквами */
    padding: 15px 10px !important;   /* Внутренние отступы для объема */
    border-bottom: none !important;  /* Убираем лишние рамки снизу */
    margin: 0 !important;
}

/* Настройка внутренних отступов для тела модуля (где список икон) */
.sidebar-left.card.mod-small-images .card-body {
    padding: 20px 15px !important;
}

/* 2. Настройка списков */
.sidebar-left.card.mod-small-images ul { padding: 0 !important; margin: 0 !important; }
.sidebar-left.card.mod-small-images li { list-style: none !important; margin-bottom: 22px !important; }
.sidebar-left.card.mod-small-images li:last-child { margin-bottom: 0 !important; }

/* 3. Контейнер: картинка СЛЕВА, текст СПРАВА, защита от вылезания */
.sidebar-left.card.mod-small-images .mod-articles-item-content {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    overflow: hidden !important;
}

/* 4. Картинка: РАЗМЕР МЕНЯТЬ ТУТ (вместо 70px) */
.sidebar-left.card.mod-small-images figure.mod-articles-image {
    flex: 0 0 100px !important; /* Фиксированная ширина картинки */
    margin: 0 12px 0 0 !important; /* Отступ только справа, до текста */
}

.sidebar-left.card.mod-small-images figure.mod-articles-image img {
    width: 100% !important; height: auto !important;
    border: 1px solid #00cfff !important;
    padding: 3px !important; background: #fff !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important; /* Добавлена мягкая тень для объема */
    transition: transform 0.15s ease, box-shadow 0.15s ease !important; /* Плавность нажатия и тени */
}

/* Эффект физического нажатия при наведении */
.sidebar-left.card.mod-small-images figure.mod-articles-image:hover img {
    transform: scale(0.93) !important; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* 5. Общий блок для текста: защита от вылезания слов */
.sidebar-left.card.mod-small-images .mod-articles-item-content p {
    flex: 1 !important;
    margin: 0 !important;
    min-width: 0 !important;
    word-break: break-word !important;
    color: #333333 !important; /* Чуть более насыщенный цвет для лучшей читаемости */
}

/* 6. ШРИФТ ДЛЯ ВСЕГО ТЕКСТА: МЕНЯТЬ ТУТ (вместо 11pt) */
.sidebar-left.card.mod-small-images .mod-articles-item-content p,
.sidebar-left.card.mod-small-images .mod-articles-item-content span {
    font-size: 11pt !important; /* Сжимает и название 14pt, и текст за ним */
    line-height: 1.35 !important;
}

.sidebar-left.card.mod-small-images .mod-articles-item-content span {
    display: inline !important; /* Оставляем описание на той же строке */
}

/* Улучшение типографики и иерархии (названия и ссылок) */
.sidebar-left.card.mod-small-images .mod-articles-item-title a,
.sidebar-left.card.mod-small-images strong {
    font-weight: 700 !important;
    color: #1a237e !important; /* Глубокий оттенок для заголовков икон */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important; /* Темная объемная тень для контраста на фоне */
    transition: color 0.2s ease !important;
}

.sidebar-left.card.mod-small-images .mod-articles-item-title a:hover {
    color: #004cff !important; /* Подсветка при наведении на название иконы */
}

/* АДАПТИВНОСТЬ: Перенос текста ПОД картинку на узких экранах (от 991px до 1340px) */
@media (min-width: 991px) and (max-width: 1340px) {
    /* Разрешаем перенос элементов, если им тесно */
    .sidebar-left.card.mod-small-images .mod-articles-item-content {
        flex-wrap: wrap !important;
    }
    
    /* Заставляем текст занять всю ширину под картинкой */
    .sidebar-left.card.mod-small-images .mod-articles-item-content p {
        flex: none !important;
        width: 100% !important;
        margin-top: 8px !important; /* Отступ текста от картинки сверху */
    }
}





/* СТИЛИЗАЦИЯ БЛОКА КОММЕНТАРИЕВ И ПРЕДУПРЕЖДЕНИЙ PHOCA GALLERY */
/* 1. Делаем красивую обертку для всего блока комментариев */
#phocagallery-comments {
    max-width: 800px;
    margin: 40px auto;
    padding: 25px;
    background: #f8f9fa; /* Мягкий светлый фон */
    border: 1px solid #e9ecef;
    border-radius: 8px; /* Скругленные углы */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); /* Легкая тень */
}
/* 2. Оформляем заголовок "Отправить комментарий" */
#phocagallery-comments h4 {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #6c757d; /* Стильная подчеркивающая линия */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* 3. Превращаем скучный текст предупреждения в красивое уведомление */
/*#phocagallery-comments p:has(text),*/
#phocagallery-comments p {
    background-color: #fff3cd; /* Приятный пастельно-желтый цвет предупреждения */
    color: #856404; /* Темно-золотой цвет текста для читаемости */
    padding: 15px 20px;
    border-left: 5px solid #ffc107; /* Яркая акцентная полоса слева */
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    margin: 15px 0 0 0;
    display: flex;
    align-items: center;
}
/* Добавляем перед текстом предупреждения иконку замочка (опционально, через встроенный шрифт) */
#phocagallery-comments p::before {
    content: "🔒 ";
    margin-right: 10px;
    font-size: 18px;
}
/* 4. Наводим порядок во вкладках phTabsContainer, чтобы убрать лишние рамки */
.phTabsContainer {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}
/* СТИЛИЗАЦИЯ ФОРМЫ КОММЕНТАРИЕВ ДЛЯ АВТОРИЗОВАННЫХ ПОЛЬЗОВАТЕЛЕЙ PHOCA GALLERY */
/* 1. Сбрасываем жесткую табличную верстку, делаем её адаптивной */
#phocagallery-comments-form table,
#phocagallery-comments-form tbody,
#phocagallery-comments-form tr {
    display: block !important;
    width: 100% !important;
}
#phocagallery-comments-form tr {
    margin-bottom: 20px !important;
}
/* Делаем ячейки таблицы блочными, чтобы они переносились на мобильных */
#phocagallery-comments-form td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    color: #495057 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    margin-bottom: 5px !important;
    text-align: left !important;
}
/* Скрываем пустые технические ячейки, которые использовались для отступов */
/* #phocagallery-comments-form td:first-child:contains('&nbsp;'), */
#phocagallery-comments-form td:empty {
    display: none !important;
}
/* 2. Стилизуем текстовые поля ввода (Имя, Заголовок, Текст) */
#phocagallery-comments-form input[type="text"],
#phocagallery-comments-form textarea {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    font-size: 15px !important;
    color: #212529 !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}
#phocagallery-comments-form input[type="text"]:focus,
#phocagallery-comments-form textarea:focus {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}
/* Текстовое поле делаем чуть выше и удобнее для набора */
#phocagallery-comments-form textarea {
    min-height: 120px !important;
    resize: vertical !important;
}
/* 3. Превращаем текстовые BB-коды (B, I, U) и смайлики в красивые кнопки */
.pg-comment-btn {
    display: inline-block !important;
    padding: 6px 12px !important;
    margin: 0 4px 6px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #495057 !important;
    background-color: #e9ecef !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}
.pg-comment-btn:hover {
    background-color: #dee2e6 !important;
    color: #212529 !important;
    border-color: #adb5bd !important;
}
/* Делаем жирный, курсив и подчеркнутый визуально понятными */
.pg-comment-btn.pg-b { font-weight: bold !important; }
.pg-comment-btn.pg-i { font-style: italic !important; }
.pg-comment-btn.pg-u { text-decoration: underline !important; }
/* 4. Оформляем счетчик символов */
#phocagallery-comments-form td:has(input[name="phocagallerycommentscountin"]) {
    font-size: 13px !important;
    color: #6c757d !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-top: -10px !important;
}
/* Стилизуем маленькие поля счетчиков */
#phocagallery-comments-form input.comment-input2 {
    display: inline-block !important;
    width: 50px !important;
    padding: 2px 5px !important;
    background: transparent !important;
    border: none !important;
    font-weight: bold !important;
    color: #212529 !important;
    text-align: center !important;
}
/* 5. Выравниваем по центру и укрупняем главную кнопку "Отправить" */
#phocagallery-comments-form td[align="right"] {
    text-align: center !important;
    margin-top: 15px !important;
}
#phocagallerycommentssubmit {
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08) !important;
    cursor: pointer !important;
}
/* Посвящается родителям скрываем модуль на страницах внутри папок Phocagallery */
body[class*="view-category"] .hide-in-gallery,
body:has(div.pg-category-view) .hide-in-gallery {
    display: none !important;
}
/* Полностью убираем кнопку Share из всплывающего окна PhotoSwipe */
.pswp__button--share {
    display: none !important;
}


/* ############################### Красивый ФУТЕР ###################### */
.footer {
    z-index: 2;
    /* Мягкий статический перелив слева направо (синий -> зеленый -> оранжевый -> фиолетовый) */
    background: linear-gradient(90deg, #152141 0%, #163a30 35%, #965315 70%, #4c1d73 100%);
}
/* Жесткое центрирование всего содержимого футера */
/* Полное центрирование подвала и блоков внутри него */
footer.container-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

footer.container-footer .grid-child,
footer.container-footer .mod-footer,
.container-footer .footer1, 
.container-footer .footer2 {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.container-footer .footer1 div,
.container-footer .footer1 a {
    text-align: center !important;
    display: inline-block !important;
}

/* ############################### СТИЛИЗАЦИЯ СТРАНИЦЫ КОНТАКТОВ ###################### */
/* Карточка "Наши контакты"  */

/* Контейнер карточки (здесь меняется цвет обложки/фона) */
.my-contacts {
    padding: 20px;
    background-color: #fffced; /* <-- МЕНЯТЬ ЦВЕТ ОБЛОЖКИ/ФОНА ЗДЕСЬ */
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 76, 255, 0.7); /* Синяя тень */
    border: 2px solid rgba(0, 76, 255, 0.7) !important;
    margin-top: 15px;
}

/* Главный заголовок "Наши контакты" */
.my-contacts > p:first-child {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000399;
    margin-bottom: 25px;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}

/* Строки с контактами (email, телефон, адрес) */
.my-contacts > p:not(:first-child) {
    font-size: 1.05rem;
    color: #212529;
    font-weight: 500;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Ссылки внутри карточки */
.my-contacts a {
    color: #0d6efd !important;
    text-decoration: none;
    font-weight: 600;
}

.my-contacts a:hover {
    text-decoration: underline;
}

/* Иконки Font Awesome перед строками */
.my-contacts > p:not(:first-child)::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    display: inline-block;
}

/* 1. Иконка Конверта (email) */
.my-contacts > p:nth-child(2)::before {
    content: "\f0e0";
    color: #fd7e14;
}

/* 2. Иконка Телефона */
.my-contacts > p:nth-child(3)::before {
    content: "\f095";
    color: #198754;
}

/* 3. Иконка Геолокации (адрес) */
.my-contacts > p:nth-child(4)::before {
    content: "\f3c5";
    color: #dc3545;
}

/* Скрываем пустые абзацы внутри карточки */
.my-contacts p:empty {
    display: none !important;
}
/* КНОПКА контактов - На главную */
.lavm-home-btn {
  padding: 14px 30px;
  background: #3b82f6; /* цвет кнопки */
  border: 1px solid gold;
  border-radius: 10px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
  display: inline-block;
  text-align: center;
}

.lavm-home-btn:hover {
  background: #1d4ed8;
  transform: scale(1.05);
  border: 1px solid gold;
  color: #fff;
  box-shadow: 0 4px 12px rgba(71, 123, 255, 0.3);
}
/* Контейнер для центрирования кнопки и отступов */
.button-container {
    display: flex;
    justify-content: center; /* Выравнивает кнопку строго по центру */
    margin-top: 25px;        /* Отступ сверху (от карточки контактов) */
    margin-bottom: 25px;     /* Отступ снизу (до футера) */
}
/* Убираем белый фон, рамки и отступы у модуля кнопки в позиции bottom-b */
.grid-child.container-bottom-b .card,
#mod-custom141,
#mod-custom141 .card-body {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}




/* ######################## Для МЕНЮ ############################ */
@keyframes glowmove {
   0% { background-position: 0% 50%; }
   50% { background-position: 100% 50%; }
   100% { background-position: 0% 50%; }
}
/* Чтобы модуль не заходил за хедер, а оставался все время видимым на странице*/
/* для модуля sticky-top */
.sticky-top {
  z-index: 999;
  position: sticky;
  top: 105px;
}
/* Для МЕНЮ изменение формы и цвета кнопок */
/* Базовый вид всех кнопок (и обычных, и активных) */
.container-header .mod-menu li a,
.container-header .mod-menu li.active a,
.container-header .mod-menu li.current a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    border-radius: 100px; 
    transition: all 0.3s ease;
    text-decoration: none !important;
    background-color: transparent !important; /* Убираем фон у всех */
    color: inherit !important;                /* Цвет текста как у всех */
}
/* убираем МЕНЮ налево */
.container-header .container-nav {
    justify-content: flex-start !important;
    gap: 20px; /* Задает расстояние между логотипом и началом меню */
}
/* Эффект ПРИ НАВЕДЕНИИ на МЕНЮ для абсолютно любой кнопки */
.container-header .mod-menu li a:hover,
.container-header .mod-menu li.active a:hover,
.container-header .mod-menu li.current a:hover {
    background-color: #0056b3 !important; /* Цвет засветки */
    color: #ffffff !important;           /* Цвет текста при наведении */
    text-decoration: none !important;}
/* 1-й пункт — Синий фон */
.container-header .mod-menu li:nth-child(1) a:hover {
    background-color: #0056b3 !important;}
/* 2-й пункт — Зеленый фон */
.container-header .mod-menu li:nth-child(2) a:hover {
    background-color: #28a745 !important;}
/* 3-й пункт — Оранжевый фон */
.container-header .mod-menu li:nth-child(4) a:hover {
    background-color: #19692c !important;}
/* 4-й пункт — Фиолетовый фон */
.container-header .mod-menu li:nth-child(3) a:hover {
    background-color: #6f42c1 !important;}
/* все меню сузить */
.metismenu.mod-menu .metismenu-item {
    padding-left: 0.1em !important;  /* Было 1em, уменьшили левый отступ */
    padding-right: 0.1em !important; /* Было 1em, уменьшили правый отступ */
}



/* ################# делаем хедер прозрачным forhome ################## */
.forhome .container-header {
  background-color: transparent;
  background-image: unset;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transition: background-color 0.5s;
}
.forhome .container-banner .banner-overlay {
  height: 100vh;
}
/* Появляющаяся шапка с эффектом стекла */
.forhome .container-header.scrolled {
  position: fixed;
  left: 0;
  width: 100%;
  background: rgba(0, 50, 150, 0.4); /* эффект стекла */
  backdrop-filter: blur(4px) saturate(180%);
  z-index: 1000;
}
/* Светящаяся полоса снизу */
.forhome .container-header.scrolled::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #00abff85, #0145ffe0, #2e00adc9);
  background-size: 400% 400%;
  animation: glowmove 2.5s linear infinite;
  /*box-shadow: 0 0 20px 6px rgba(0, 89, 255, 0.7);*/
  z-index: 2;
  pointer-events: none;
}

/* Расходящееся свечение от полоски */
.forhome .container-header.scrolled::before {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 4px;
background: transparent;
/*box-shadow: 0 0 8px 2px rgba(0, 89, 255, 0.65);*/
animation: lavm-shadow-spread 1.5s ease-in-out infinite alternate;
z-index: 1;
pointer-events: none;
}

/* Свечение расширяется и усиливается */
@keyframes lavm-shadow-spread {
0% {
box-shadow: 0 0 8px 2px rgba(0, 89, 255, 0.5);
}
100% {
box-shadow: 0 0 20px 12px rgba(0, 89, 255, 0.9);
}
}

/*Описание Икон и Лучший подарок на одном уровне */
.forhome .lavm-article-cards {
    margin-top: -16px !important;
    padding-top: 12px !important;
}


/* ######################### делаем хедер для nothomemenu ################# */
.nothomemenu .container-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 96, 0, 0.5); /* эффект стекла */
  backdrop-filter: blur(4px) saturate(180%);
  z-index: 1000;
}
.nothomemenu .container-banner .banner-overlay {
  height: 100vh;
}
/* Светящаяся полоса снизу (постоянная) */
.nothomemenu .container-header::after,
.nothomemenu .container-header.scrolled::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #dfff009c, #ff8300, #ff3000);
  background-size: 400% 400%;
  animation: glowmove 4s linear infinite, nothomemenu-pink-glow 1.5s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}
/*############# РАСХОДЯЩЕЕСЯ РОЗОВО-ФИОЛЕТОВОЕ СВЕЧЕНИЕ ###############*/
@keyframes nothomemenu-pink-glow {
  0% { box-shadow: 0 0 8px 2px rgba(255, 105, 220, 0.5); }
  100% { box-shadow: 0 0 20px 12px rgba(255, 84, 0, 0.72); }
}

/* тело будет начинаться от хедера nothomemenu*/
body.nothomemenu {
  padding-top: 112px;
  background: rgba(91, 0, 253, 0.26);
}



/* ################################################### Оформление для страниц com_jshopping ########################################## */

/* ---------- 1. БАЗА: переменные, прозрачный контейнер, фиксированный фон ---------- */
.com_jshopping {
    --shop-bg: rgba(255, 255, 255, 0.87);                    /* общая белая подложка блоков */
    --shop-shadow: 0 6px 20px rgba(55, 186, 19, 0.5);        /* зелёное свечение блоков */
    --shop-text: #e1e4e6;                                    /* светлый текст на тёмном фоне */
    --shop-text-shadow: 1px 1px 2px rgba(128, 255, 0, 0.8);  /* тень светлого текста */
    position: relative;
    z-index: 1;
    padding: 0;
    background: transparent !important;                      /* контейнер магазина полностью прозрачный */
}
/* Фиксированный фон на весь экран */
.com_jshopping::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/bg/LAVM-Иконы-01.jpg'); /* путь к картинке */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
}
/* Дисконтный код: поле ввода, а кнопка «Активировать» под ним */
.com_jshopping .cart_block_discount .span12 {
    flex-direction: column;     /* элементы друг под другом, а не в ряд */
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Отменяем общие крупные фоны JoomShopping, чтобы открыть картинку */
.com_jshopping .row, .jshop .block_products { background: transparent !important; padding: 0 !important; box-shadow: none !important; }

/* ---------- 2. УДАЛЕНИЕ / ЗАМЕНА ТЕКСТОВ ---------- */
/* Удаление ненужного текста и подложки в joomshopping */
#mxcpr, #mxcpr a { font-size: 0.1px !important; }
#div_delivery { display: none !important; }

/* «Отзывы могут оставлять…»: скрываем старый текст и выводим новый */
.review_text_not_login { font-size: 0 !important; }
.review_text_not_login::after {
    content: "Отзывы могут оставлять,\A только зарегистрированные пользователи.";
    display: block !important;
    color: #222 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    white-space: pre-wrap !important;
}

/* Скрываем модули Письма и Звонка на страницах деталей заказа и информации о группах */
body.task-order .bottom-a.card, body.task-order .bottom-b.card,
body.task-groupsinfo .bottom-a.card, body.task-groupsinfo .bottom-b.card { display: none !important; }

/* Меняем «Логин» на «Авторизация»: 1) скрываем старое слово, 2) подставляем новое */
.jshop.pagelogin h1, .comjshop h1 { font-size: 0 !important; margin-bottom: 20px !important; }
.jshop.pagelogin h1::before, .comjshop h1::before {
    content: "Авторизация" !important;     /* ← свой текст здесь */
    display: block !important;
    visibility: visible !important;
    color: #212529 !important;             /* родной цвет текста шаблона */
    font-size: 2.25rem !important;         /* стандартный размер h1 в Cassiopeia */
    font-weight: 700 !important;
}

/* «Спасибо за заказ»: первый абзац + вторая строчка через :after */
.com_jshopping .container-component main > p:first-of-type {
    display: block !important;
    margin: 0 0 20px !important;
    color: var(--shop-text) !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    text-shadow: var(--shop-text-shadow) !important;
}
.com_jshopping .container-component main > p:first-of-type:after {
    content: "Мы отправили подтверждение и детали чека на вашу электронную почту.";
    display: block !important;             /* перенос на новую строку */
    margin-top: 20px !important;
    color: var(--shop-text) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-shadow: var(--shop-text-shadow) !important;
}
/* «Вы ничего не заказали» */
.com_jshopping div.myorders_no_orders:first-of-type {
    display: block !important;
    margin: 30px 0 !important;
    color: var(--shop-text) !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    text-align: center !important;
    text-shadow: var(--shop-text-shadow) !important;
}

/* «* Звездочкой отмечены поля…»: скрываем старый текст, показываем новый в подложке */
.com_jshopping .requiredtext { visibility: hidden; color: #c0392b !important; font-size: 15px !important; text-align: left !important; }
.com_jshopping .requiredtext::before { content: "* Звездочкой отмечены поля для обязательного заполнения!" !important; visibility: visible; }

/* ---------- 3. ПОДЛОЖКИ ТОВАРОВ ---------- */
/* Индивидуальная подложка КАЖДОГО товара в списке */
.com_jshopping .product_item,
.com_jshopping .product_block,
.com_jshopping .jshop_list_product .product {
    display: block !important;
    box-sizing: border-box;
    width: 40% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 20px;
    padding: 24px !important;
    background-color: rgba(255, 255, 255, 0.07) !important;           /* почти прозрачный белый */
    backdrop-filter: blur(3px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(3px) saturate(120%) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;            /* тонкий чистый кант */
    border-radius: 28px !important;
    box-shadow: 0 8px 18px rgba(55, 186, 19, 0.4) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
}
/* Эффект ТОЛЬКО когда карточка по центру экрана (класс is-centered ставит JS) */
.com_jshopping .product_item.is-centered,
.com_jshopping .product_block.is-centered,
.com_jshopping .jshop_list_product .product.is-centered {
    background-color: rgba(255, 255, 255, 0.85) !important;
    transform: translate(6px, -6px) scale(1.01) !important;
    box-shadow: 6px 30px 60px rgba(0, 0, 0, 0.10) !important;
}
/* Подложка карточки внутри страницы товара (ширина 60%, по центру) */
.com_jshopping .productfull {
    display: block !important;
    box-sizing: border-box;
    width: 60% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 20px;
    padding: 20px !important;
    background-color: var(--shop-bg) !important;
    border-radius: 18px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
/* Рейтинг слева */
.block_rating_hits table { float: left !important; width: auto; border: 0; }
/* Цена и кнопки снизу */
@media (min-width: 992px) { .col-lg-8 { flex: none; width: 100%; } }
/* Убираем рамки и старые тени наведения шаблона у элемента продукта */
.jshop_list_product .block_product { border: none !important; }
.com_jshopping .jshop_list_product .block_product:hover { box-shadow: none !important; border-radius: 0 !important; }

/* ---------- 4. ПОДЛОЖКА: категории, производитель, описания, отзывы, корзина, заказ, формы ---------- */
/* Белый блок шириной 60% по центру */
.com_jshopping #jshop_review_write,
.com_jshopping .jshop.jshop_subtotal,
.com_jshopping .jshop .groups_list,
.com_jshopping .myorders_total,
.com_jshopping .myorders_block_info,
.com_jshopping .jshop.myorderinfo,
.com_jshopping .myaccount_urls,
.com_jshopping .jshop_profile_data,
.com_jshopping span.review,                     /* оставить отзыв */
.com_jshopping .other_delivery_adress,
.com_jshopping .checkout_pfinish_block .checkoutinfo,
.com_jshopping .checkout_shipping_block #table_shippings,
.com_jshopping .checkout_payment_block #table_payments,
.com_jshopping .jshop.checkout .name,
.com_jshopping .discount_code .name,
.com_jshopping .coupon_box .name,
.com_jshopping #discount_code_block .name,
.com_jshopping .discount_code,
.com_jshopping .coupon_box,
.com_jshopping .jshop.checkout,                 /* вся страница оформления заказа */
.com_jshopping .jshop.pagelogin,                /* вход / регистрация */
.com_jshopping .jshop.myaccount,                /* личный кабинет */
.com_jshopping .jshop.editaccount,              /* редактирование профиля */
.com_jshopping .jshop_rules_page,               /* правила / условия доставки */
.com_jshopping .wishlist_empty_text,
.com_jshopping .cart_empty_text,
.com_jshopping .table.jshop,
.com_jshopping .category,
.com_jshopping .review_item,
.com_jshopping .review_header,
.com_jshopping .review_text_not_login,
.com_jshopping .jhop_list_category .category,
.com_jshopping .cart_table_list,
.com_jshopping .checkout_block,
.com_jshopping .manufacturer_block,
.com_jshopping .jshop_list_manufacturer .manufacturer,
.com_jshopping .checkout_step,                  /* отдельные шаги оформления */
.com_jshopping .register_block,                 /* регистрация при заказе */
.com_jshopping .jshop_list_order,               /* список заказов */
.com_jshopping .jshop_order_details,            /* детали заказа */
.com_jshopping .block_sorting_count,            /* панель сортировки товаров */
.com_jshopping .pagination,                     /* кнопки страниц (1, 2, 3...) */
.com_jshopping .product_compare,                /* страница сравнения */
/* Формы восстановления пароля / логина (com_users): /userreset и аналогичные */
.com_jshopping .com-users-reset__form,
.com_jshopping .com-users-reset-confirm__form,
.com_jshopping .com-users-reset-complete__form,
.com_jshopping .com-users-remind__form,
.com_jshopping .com-users-profile,
.com_jshopping .com-users-profile__edit,
.com_jshopping .com-users-registration,
.com_jshopping table.jshop.cartwishlist,
.com_jshopping table.jshop.cart,
.com_jshopping .com-users-login {
    display: block !important;
    box-sizing: border-box;
    width: 60% !important;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 20px !important;
    background-color: var(--shop-bg) !important;
    border-radius: 18px !important;
    box-shadow: var(--shop-shadow) !important;
}
/* Формы внутри общей подложки — без собственного фона, чтобы не было «карточки в карточке» */
.com_jshopping .com-users-profile { display: flow-root !important; }   /* подложка охватывает «плавающую» кнопку «Параметры профиля» */
.com_jshopping .com-users-login__form,
.com_jshopping .com-users-profile__edit-form,
.com_jshopping .com-users-registration__form { margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.com_jshopping .com-users-login__options { margin-top: 20px; }

/* Белый блок шириной 100% (форма регистрации, заголовки, соглашение, подсказка про звёздочку) */
.com_jshopping div.jshop_register,              /* форма регистрации */
.com_jshopping .jshop h1,
.com_jshopping .cart_block_discount .name,
.com_jshopping .row_agb,
.com_jshopping .pfinish_comment_block .name,
.com_jshopping .requiredtext::before {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 20px;
    padding: 20px !important;
    background-color: var(--shop-bg) !important;
    border-radius: 18px !important;
    box-shadow: var(--shop-shadow) !important;
}
/* Меню заказа */
.com_jshopping #jshop_menu_order {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    background-color: var(--shop-bg) !important;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
}
/* Блок скидочного кода: элементы друг под другом по центру */
.com_jshopping .cart_block_discount {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 20px auto !important;
    text-align: center !important;
}

/* ---------- 5. КНОПКИ ---------- */
/* Контейнеры кнопок корзины / избранного / «назад» — по центру */
.jshop.cart_buttons, .jshop.wishlish_buttons, .button_back { display: flex !important; justify-content: center !important; width: 100% !important; float: none !important; }
/* Зазор между кнопками: по 10px с каждой стороны = 20px между соседними */
.jshop.cart_buttons .pull-left, .jshop.cart_buttons .pull-right,
.jshop.wishlish_buttons .pull-left, .jshop.wishlish_buttons .pull-right,
.button_back .pull-left, .button_back .pull-right, .button_back a, .button_back input { margin: 0 10px !important; }
/* Кнопки «Далее» (next) — посередине */
#payment_submit.button,
.com_jshopping input[type="submit"][name="next"].btn-success,
.com_jshopping input[type="submit"].btn-success.button {
    display: block !important;
    float: none !important;                /* сбрасываем прижатие к боку */
    margin: 20px auto !important;
    padding: 12px 35px !important;
    font-size: 16px !important;
}
/* Кнопка «Регистрироваться» — посередине */
.com_jshopping .btn-primary { display: table !important; margin: 20px auto !important; }
/* Кнопка «Выйти» */
input[type="button"][onclick*="logout"].btn.button {
    padding: 10px 20px;
    color: #fff !important;
    font-weight: bold;
    background-color: #1e3a8a !important;  /* тёмно-синий */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
/* Наведение — только для мыши (на iPhone не «залипает») */
@media (hover: hover) and (pointer: fine) {
    input[type="button"][onclick*="logout"].btn.button:hover { background-color: #2563eb !important; }  /* яркий синий */
}

/* ---------- 6. ХЕДЕР МАГАЗИНА ---------- */
/* Фиксация хедера на всех страницах магазина */
.com_jshopping .container-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(55, 186, 19, 0.4) !important;     /* эффект стекла, зеленоватый */
    backdrop-filter: blur(4px) saturate(180%);
}
/* Светящаяся зелёная полоса снизу хедера */
.com_jshopping .container-header::after,
.com_jshopping .container-header.scrolled::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(135deg, #00ffbf, #00a26c, #005035);
    background-size: 400% 400%;
    animation: glowmove 4s linear infinite, jshopping-green-glow 1.5s ease-in-out infinite alternate;
}
@keyframes jshopping-green-glow {
    0%   { box-shadow: 0 0 8px 2px rgba(55, 255, 0, 0.5); }
    100% { box-shadow: 0 0 20px 12px rgba(55, 255, 0, 0.9); }
}
/* Отступ сверху для контента, чтобы его не перекрывал фиксированный хедер (меняйте при необходимости) */
.com_jshopping .site-grid { margin-top: 88px; }
/* Высота оверлея баннера (если используется) */
.com_jshopping .container-banner .banner-overlay { height: 100vh; }






/* ############## Контейнер Мой кабинет ############## */
.custom-cabinet-grid {
    display: flex;
    flex-direction: column;
    margin-top: 25px;}
.cabinet-row {
    display: flex;
    align-items: center;
    gap: 20px; /* Расстояние между кнопкой и текстом по горизонтали */
    margin-bottom: 25px !important; /* Отступ между кнопками по вертикали */}
.cabinet-row:last-child {
    margin-bottom: 0 !important;
}
.btn-cabinet {
    display: inline-block;
    width: 220px;
    text-align: center;
    padding: 12px 15px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.btn-cabinet:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);}
.btn-cabinet:active {
    transform: scale(0.98);
}
/* Цветовая палитра кнопок */
.btn-profile { background-color: #0d6efd; }
.btn-profile:hover { background-color: #0b5ed7; }

.btn-orders { background-color: #198754; }
.btn-orders:hover { background-color: #157347; }

.btn-review { background-color: #6f42c1; }
.btn-review:hover { background-color: #59359a; }

.btn-discount { background-color: #fd7e14; }
.btn-discount:hover { background-color: #e6710f; }

.btn-logout { background-color: #dc3545; }
.btn-logout:hover { background-color: #bb2d3b; }
/* Текст описания */
.cabinet-text {
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.4;
}
/* Адаптивность для мобильных экранов */
@media (max-width: 576px) {
    .cabinet-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .btn-cabinet {
        width: 100%;
    }
}


/* ######################## делаем хедер для forphotos ####################### */
/* Убираем лишние надписи */
div[style*="display:block;color:#ccc;text-align:right;"] {
    display: none !important;
}
.forphotos .container-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(209, 29, 225, 0.4); /* эффект стекла */
  backdrop-filter: blur(4px) saturate(180%);
  z-index: 1000;
}
/* Светящаяся полоса снизу (постоянная) */
.forphotos .container-header::after,
.forphotos .container-header.scrolled::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #8000ff, #eb00ff, #800030);
  background-size: 400% 400%;
  animation: glowmove 4s linear infinite, forphotos-pink-glow 1.5s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}
/*############# РАСХОДЯЩЕЕСЯ РОЗОВО-ФИОЛЕТОВОЕ СВЕЧЕНИЕ ###############*/
@keyframes forphotos-pink-glow {
  0% { box-shadow: 0 0 8px 2px rgba(255, 105, 220, 0.5); }
  100% { box-shadow: 0 0 20px 12px rgba(192, 38, 211, 0.9); }
}
/* тело будет начинаться от хедера forphotos*/
body.forphotos {
  padding-top: 112px;
  background: rgba(91, 0, 253, 0.26);
}




/* ################################ делаем хедер для forlogin ################## */
.forlogin .container-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 124, 255, 0.4); /* эффект стекла */
  backdrop-filter: blur(4px) saturate(180%);
  z-index: 1000;
}
.forlogin .container-banner .banner-overlay {
  height: 100vh;
}
/* Светящаяся полоса снизу (постоянная) */
.forlogin .container-header::after,
.forlogin .container-header.scrolled::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #00b7ff, #0044fd, #3700cf);
  background-size: 400% 400%;
  animation: glowmove 4s linear infinite, forlogin-blue-glow 1.5s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}
/*############# РАСХОДЯЩЕЕСЯ СИНЕ-ФИОЛЕТОВОЕ СВЕЧЕНИЕ ###############*/
@keyframes forlogin-blue-glow {
  0% { box-shadow: 0 0 8px 2px rgba(75, 100, 255, 0.5); }
  100% { box-shadow: 0 0 20px 12px rgba(0, 57, 255, 0.7); }
}

/* тело будет начинаться от хедера forlogin*/
body.forlogin {
  padding-top: 112px;
  background: rgba(58, 98, 255, 0.4);
}

/* ################################ делаем хедер для formachine ################## */
.formachine .container-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 255, 64, 0.4); 
  backdrop-filter: blur(4px) saturate(180%);
  z-index: 1000;
}
/* Светящаяся полоса снизу (постоянная) */
.formachine .container-header::after,
.formachine .container-header.scrolled::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #dbff9b, #00fd1c, #008220);
  background-size: 400% 400%;
  animation: glowmove 4s linear infinite, formachine-pink-glow 1.5s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}
/*############# РАСХОДЯЩЕЕСЯ РОЗОВО-ФИОЛЕТОВОЕ СВЕЧЕНИЕ ###############*/
@keyframes formachine-pink-glow {
  0% { box-shadow: 0 0 8px 2px rgba(138, 255, 105, 0.64); }
  100% { box-shadow: 0 0 20px 12px rgba(0, 255, 16, 0.73); }
}
/* тело будет начинаться от хедера formachine*/
body.formachine {
  padding-top: 112px;
  background: rgba(91, 0, 253, 0.26);
}


/* убрать лишнее подчеркивание, чтобы лого встало на место */
.mod-custom p {margin: 0;}
/* Меню сделать посередине (center)*/
/* Изменение шрифтов */
.page-header h2 {text-decoration:none;}
h1,h2,h3,h4,h5,h6 {font-weight:400;}

/* Убираем подчеркивание у активного пункта меню */
.container-header .metismenu > li.active > a::after {background: none;}
/* Опционально: убираем подчеркивание при наведении на пункты меню */
.container-header .metismenu > li > a::after {content: none;}

/* без подчеркивания, для логина */
.list-unstyled li a {text-decoration: none;}


/* ############# Для HERO! ############ */
/* ЦЕНТРАЛЬНЫЙ БЛОК */
  .lavm-center {
  position: relative; /*relative*/
  z-index: 3; /* чтобы сделать поверх меню, задать 10 */
  text-align: center;
  padding: 0px 20px;
  overflow: visible;
  color: var(--blue); /* white; */
}
/* КНОПКА на главной Смотреть каталог */
.lavm-btn {
  padding: 14px 30px;
  background: #3b82f6; /* цвет кнопки */
  border: 1px solid gold;
  border-radius: 10px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}
.lavm-btn:hover {
  background: #1d4ed8;
  transform: scale(1.05);
  border: 1px solid gold;
  color: #fff;
  box-shadow: 0 4px 12px rgba(71, 123, 255, 0.3);
}
/* КНОПКА на главной Контакты */
.lavmk-btn {
  padding: 14px 30px;
  background: #3b82f6; /* цвет кнопки */
  border: 1px solid gold;
  border-radius: 10px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}
.lavmk-btn:hover {
  background: #1d4ed8;
  transform: scale(1.05);
  border: 1px solid gold;
  color: #fff;
  box-shadow: 0 4px 12px rgba(71, 123, 255, 0.3);
}


/* ################################ LAVM СНЕЖИНКИ ################################ */

#lavm-container {
    position: absolute !important;
    left: 0 !important;
    width: 100vw !important;                 /* На всю ширину экрана */
    overflow: hidden !important;             /* Обрезает снежинки строго по низу баннера */
    z-index: 2 !important;
    pointer-events: none !important;         /* Клики проходят сквозь снежинки */
    opacity: 1;
    transition: opacity 0.6s ease-in-out;    /* Плавное появление и исчезновение */
}

/* Состояние, когда снежинки скрыты при скролле (класс ставит JS) */
#lavm-container.lavm-hidden {
    opacity: 0;
    pointer-events: none !important;
}

/* Элементы падения */
.lavm-item {
    position: absolute !important;
    will-change: transform;
    animation: lavm-fall linear infinite;
}

/* Текст снежинок */
.lavm-inner {
    display: inline-block !important;
    font-weight: bold !important;
    font-size: clamp(16px, 3vw, 36px) !important;   /* Размер на компьютере */
    color: rgba(255, 255, 255, 0.07) !important;    /* Прозрачность снежинок */
    will-change: transform;
}

/* Анимация падения на динамическую высоту баннера */
@keyframes lavm-fall {
    0%   { transform: translateY(-40px); }
    100% { transform: translateY(var(--banner-height, 500px)); }
}

/* ===== ТЕЛЕФОНЫ: снежинки покрупнее ===== */
@media (max-width: 767.98px) {
    .lavm-inner {
        font-size: 25px !important;                 /* ← РАЗМЕР НА ТЕЛЕФОНЕ МЕНЯТЬ ТУТ */
        color: rgba(255, 255, 255, 0.07) !important; /* Чуть заметнее на маленьком экране */
    }
}



/* ######################### ОПТИМИЗАЦИЯ ВИДА ДЛЯ МОБИЛЬНЫХ ###############################################################*/
/* ВАЖНО: блок должен стоять ПОСЛЕ основного (десктопного) кода, иначе его правила будут перебиты */
@media (max-width: 991.98px) {

    /* ========== forhome: хедер главной ========== */
    .forhome .container-header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        background-color: transparent;
        background-image: unset;
        transition: background-color 0.5s;
    }

    /* ========== Бургер-меню ========== */
    .navbar-toggler {
        position: fixed;
        top: 20px;
        right: 10px;
        z-index: 9999;
        display: block;
        width: 70px;                        /* крупная квадратная кнопка */
        height: 70px;
        background: #060c29;
        border: 4px solid white !important;
        border-radius: 20px;                /* скругление углов */
        -webkit-tap-highlight-color: transparent;   /* iPhone: без серой вспышки */
    }
    /* Выезжающее меню: прижато справа, на 98px ниже верхнего края */
    .navbar-collapse {
        position: fixed;
        top: 98px;
        bottom: auto;
        right: 0;
        height: auto;                       /* подстраивается под высоту контента */
        padding: 15px;
        overflow-y: auto;
        background-color: rgba(6, 12, 41, 0.9);               /* полупрозрачный тёмно-синий */
        border-top: 1px solid rgba(255, 255, 255, 0.5);       /* тонкая грань сверху */
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);    /* тонкая грань снизу */
        box-shadow: 0 -5px 20px rgba(0, 100, 255, 0.5);       /* лёгкая тень */
    }
    .navbar-collapse.collapsing { height: auto; transform: translateX(100%); transition: transform 0.3s ease; }
    .navbar-collapse.show { transform: translateX(0); transition: transform 0.3s ease-out; }
    .metismenu.mod-menu .metismenu-item.active > a { text-decoration: none; }

    /* Подпункты: отменяем абсолютное позиционирование */
    .navbar-collapse .metismenu .mm-collapse { position: relative !important; top: auto !important; left: auto !important; width: 100%; }
    .navbar-collapse .metismenu .mm-collapsing { display: block; transition: height 0.35s ease; }
    .navbar-collapse .metismenu .mm-collapse.mm-show { display: block; }   /* полностью открытое меню — блочное */
    .navbar-collapse .metismenu .mm-collapse a { display: block !important; padding-left: 20px !important; }   /* ссылки в выпадающем списке */
    .container-header .metismenu > li.level-1 > ul { min-width: 0; }       /* убирает принудительное расширение меню влево */

    /* Убираем стандартное кольцо фокуса (без !important, иначе анимация не сработает) */
    .navbar-toggler:focus, .navbar-toggler:active { outline: none; box-shadow: none; }

    /* Пульсирующее кольцо при нажатии */
    .navbar-toggler.is-pulse { animation: burger-pulse 1.6s ease-in-out; }
    @keyframes burger-pulse {
        0%   { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.9); }
        15%  { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.55); }   /* быстро растёт */
        60%  { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.55); }   /* держится ~1 секунду */
        100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }        /* плавно возвращается */
    }

    /* ========== Хедеры разделов: общая часть ========== */
    .com_jshopping .container-header,
    .nothomemenu .container-header,
    .forphotos .container-header,
    .forlogin .container-header,
    .formachine .container-header {
        position: fixed !important;
        top: 0;
        bottom: auto;
        width: 100%;
        padding: 0;
        z-index: 1000;
        backdrop-filter: blur(4px) saturate(180%);   /* эффект стекла */
    }
    /* Цвет хедера каждого раздела (порядок важен, если у страницы несколько классов) */
    .com_jshopping .container-header { background: rgba(55, 186, 19, 0.4); }    /* магазин: зелёный */
    .nothomemenu .container-header   { background: rgba(255, 96, 0, 0.5); }     /* прочие страницы: оранжевый */
    .forphotos .container-header     { background: rgba(209, 29, 225, 0.4); }   /* фотографии: фиолетовый */
    .forlogin .container-header      { background: rgba(0, 124, 255, 0.4); }    /* вход: синий */
    .formachine .container-header    { background: rgba(0, 255, 64, 0.4); }     /* станок: ярко-зелёный */

    /* ========== joomshopping ========== */
    .com_jshopping .site-grid { margin-top: 98px !important; }   /* отступ под хедером */
    /* Фон: на мобильных затемнение слабее (0.4 вместо 0.5); остальное берётся из основного кода */
    .com_jshopping::before { background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/bg/LAVM-Иконы-01.jpg'); }
    /* Убрать полосочки: ниже продукта и в таблице корзины */
    .jshop_list_product .block_product { border: none !important; }
    .jshop.cart tr { border-bottom: none !important; }

    /* Полная ширина блоков; внутренние отступы уменьшены для экономии места */
    .com_jshopping #jshop_review_write,
    .com_jshopping table.jshop.cartwishlist,
    .com_jshopping table.jshop.cart,
    .com_jshopping .jshop.jshop_subtotal,
    .com_jshopping .jshop .groups_list,
    .com_jshopping .myorders_total,
    .com_jshopping .myorders_block_info,
    .com_jshopping .jshop.myorderinfo,
    .com_jshopping .myaccount_urls,
    .com_jshopping .jshop_profile_data,
    .com_jshopping .form-validate,              /* оставить отзыв (имя, email, прочее на подложку) */
    .com_jshopping span.review,                 /* оставить отзыв */
    .com_jshopping .productfull,
    .com_jshopping .product_item,
    .com_jshopping .product_block,
    .com_jshopping .jshop_list_product .product,
    .com_jshopping .other_delivery_adress,
    .com_jshopping .checkout_pfinish_block .checkoutinfo,
    .com_jshopping .checkout_shipping_block #table_shippings,
    .com_jshopping .requiredtext,
    .com_jshopping .checkout_payment_block #table_payments,
    .com_jshopping div.jshop_register,
    .com_jshopping .jshop.cart .name,
    .com_jshopping .jshop.checkout .name,
    .com_jshopping .discount_code .name,
    .com_jshopping .coupon_box .name,
    .com_jshopping #discount_code_block .name,
    .com_jshopping .discount_code,
    .com_jshopping .coupon_box,
    .com_jshopping .jshop.checkout,             /* вся анкета / страница оформления заказа */
    .com_jshopping .jshop.cart,                 /* вся страница корзины */
    .com_jshopping .jshop.pagelogin,            /* вход / регистрация */
    .com_jshopping .jshop.myaccount,            /* личный кабинет */
    .com_jshopping .jshop.editaccount,          /* редактирование профиля */
    .com_jshopping .jshop_rules_page,           /* правила / условия доставки */
    .com_jshopping .wishlist_empty_text,
    .com_jshopping .cart_empty_text,
    .com_jshopping table.jshop,
    .com_jshopping .category,
    .com_jshopping .review_item,
    .com_jshopping .review_header,
    .com_jshopping .review_text_not_login,
    .com_jshopping .jhop_list_category .category,
    .com_jshopping .cart_table_list,
    .com_jshopping .checkout_block,
    .com_jshopping .manufacturer_block,
    .com_jshopping .jshop_list_manufacturer .manufacturer,
    .com_jshopping .checkout_step,              /* отдельные шаги оформления */
    .com_jshopping .register_block,             /* регистрация при заказе */
    .com_jshopping .jshop_list_order,           /* список заказов */
    .com_jshopping .jshop_order_details,        /* детали заказа */
    .com_jshopping .block_sorting_count,        /* панель сортировки товаров */
    .com_jshopping .pagination,                 /* кнопки страниц (1, 2, 3...) */
    .com_jshopping .product_compare,            /* страница сравнения */
    /* Страницы com_users: вход, профиль, регистрация, восстановление пароля */
    .com_jshopping .com-users-login,
    .com_jshopping .com-users-profile,
    .com_jshopping .com-users-profile__edit,
    .com_jshopping .com-users-registration,
    .com_jshopping .com-users-reset__form,
    .com_jshopping .com-users-reset-confirm__form,
    .com_jshopping .com-users-reset-complete__form,
    .com_jshopping .com-users-remind__form {
        width: 100% !important;                 /* на смартфонах карточка занимает всю ширину экрана */
        padding: 15px !important;
    }
    /* Формы внутри общей подложки: свой отступ не нужен, иначе он удвоится
       (у них есть класс .form-validate, и они попали бы под правило выше) */
    .com_jshopping .com-users-login__form,
    .com_jshopping .com-users-profile__edit-form,
    .com_jshopping .com-users-registration__form { padding: 0 !important; }

} /* ################### конец @media (max-width: 991.98px) ОПТИМИЗАЦИЯ ВИДА ДЛЯ МОБИЛЬНЫХ ###################### */

/* Фикс размытия и зума iframe Rutube на iPhone/iOS */
.modal-dialog,
.modal-content,
.modal-body {
    overflow: hidden !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Принудительный аппаратный рендеринг без пикселизации */
.pg-detail-item-box iframe {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* ===== Заголовок ИКОНЫ ОБЪЁМНЫЕ: золотой градиент ===== */
/* Заголовок: ровная золотая обводка по краю букв */
.forhome .lavm-center strong span {
    --outline-color: gold;   /* ← МЕНЯТЬ ЦВЕТ ТУТ */
    --outline-width: 1px;    /* ← ВИДИМАЯ ТОЛЩИНА СНАРУЖИ БУКВЫ */

    text-shadow: none;
    -webkit-text-stroke: calc(var(--outline-width) * 2) var(--outline-color);
    paint-order: stroke fill;   /* контур под заливкой: внутрь буквы не заходит */
}
/* ===== Читаемость подзаголовка на баннере ===== */

/* 1. Мягкая тень только у подзаголовка (span - прямой потомок div со стилем) */
.forhome .lavm-center > div[style*="text-align"] > span {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

/* только на странице фотогалереи */
body.forphotos .mfp-wrap {
    overflow: hidden !important;      /* окно с фото само не прокручивается */
    overscroll-behavior: none;
}
/* Более тёмный фон за открытым фото */
body.forphotos .mfp-bg {
    background: #000 !important;
}

body.forphotos .mfp-bg.mfp-ready {
    opacity: 0.95 !important;   /* 0.8 было по умолчанию; 1 = полностью чёрный */
}


/* ===== Кнопка слайдшоу для PHOCAGALLERY: по центру сверху, в стиле кнопок сайта ===== */
.lavm-slideshow-btn {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    margin: 0 auto;          /* центрирование без transform */
    width: max-content;
    z-index: 1100;           /* выше окна просмотра (у Magnific 1043) */

    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #3b82f6;
    border: 1px solid gold;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
    transition: 0.3s;
    -webkit-tap-highlight-color: transparent;
}

/* Иконка play/pause: золотая */
.lavm-slideshow-btn svg {
    width: 16px;
    height: 16px;
    fill: gold;
    flex-shrink: 0;
}

/* Наведение: только на устройствах с мышью (на iPhone не «залипает») */
@media (hover: hover) and (pointer: fine) {
    .lavm-slideshow-btn:hover {
        background: #1d4ed8;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(71, 123, 255, 0.3);
    }
}

/* Кратковременный отклик в момент нажатия */
.lavm-slideshow-btn:active {
    background: #1d4ed8;
}

/* Убираем след фокуса после касания, но оставляем для клавиатуры */
.lavm-slideshow-btn:focus:not(:focus-visible) {
    outline: none;
}

/* ############# Кнопка «Назад» в материалах: стиль кнопок сайта #######*/
.lavm-back-wrap {
    text-align: center;
    margin: 30px 0 10px;
}

.lavm-back-btn {
    display: inline-block;
    padding: 14px 30px;
    background: #3b82f6;
    border: 1px solid gold;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.lavm-back-btn:visited {
    color: #fff;
}

/* Наведение только на устройствах с мышью (на iPhone не «залипает») */
@media (hover: hover) and (pointer: fine) {
    .lavm-back-btn:hover {
        background: #1d4ed8;
        color: #fff;
        text-decoration: none;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(71, 123, 255, 0.3);
    }
}

.lavm-back-btn:active {
    background: #1d4ed8;
    color: #fff;
}

.lavm-back-btn:focus:not(:focus-visible) {
    outline: none;
}


