

/* Start:/local/templates/eco_26/components/bitrix/catalog/eco_complex/style.css?178005502717805*/


/* ==========================================================================
   Moved from /local/templates/eco_26/css/catalog.css
   Component scope: bitrix:catalog template "eco_complex".
   Catalog toolbar, sorting, premium category header, and SEO text controls belong to the complex catalog page.
   ========================================================================== */

/* ========================================= */
/* 1. TOOLBAR & SORTING                      */
/* ========================================= */

.catalog-toolbar {
    background-color: #ffffff; /* White background for contrast */
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
    z-index: 100;
}

/* --- Sorting Dropdown (Seamless) --- */
#catalogSort {
    position: relative;
    display: inline-block;
}

#catalogSort .btn-sort {
    border: 1px solid transparent;
    background: transparent;
    font-family: var(--font-family-secondary);
    font-size: 0.95rem;
    color: var(--color-text-main);
    display: flex; align-items: center; gap: 8px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    z-index: 100;
    transition: background-color 0.1s, border-color 0.1s;
}

#catalogSort .btn-sort:hover { color: var(--color-secondary); }

/* Active State (Open) */
#catalogSort .dropdown-toggle.show {
    background-color: #ffffff;
    border-color: #f0f0f0;
    border-bottom-color: #ffffff;
    color: var(--color-secondary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 1002;
}

/* Dropdown Menu */
#catalogSort .dropdown-menu {
    position: absolute; top: 100% !important; left: 0 !important;
    margin-top: -1px !important;
    border: 1px solid #f0f0f0 !important; border-top: none !important;
    border-radius: 0 8px 8px 8px !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    background-color: #fff !important;
    padding-top: 5px !important; padding-bottom: 8px !important;
    min-width: 100% !important; width: max-content;
    display: none; z-index: 1001;
}

#catalogSort .dropdown-menu.show {
    display: block !important;
    animation: fadeInStable 0.2s ease-out forwards;
}

@keyframes fadeInStable { from { opacity: 0; } to { opacity: 1; } }

#catalogSort .dropdown-item {
    font-size: 0.9rem !important; padding: 8px 20px !important;
    color: var(--color-text-main) !important; background: transparent !important;
    transition: color 0.2s ease;
}

#catalogSort .dropdown-item:hover {
    background-color: #f8f8f8 !important; color: var(--color-primary) !important;
}

#catalogSort .dropdown-item.active {
    background-color: var(--color-bg-light) !important;
    color: var(--color-secondary) !important;
    font-weight: 600 !important;
}

/* --- Filter Toggle Button --- */
.filter-toggle-btn {
    font-family: var(--font-family-secondary);
    font-weight: 600;
    border: 1px solid #e0e0e0;
    color: var(--color-text-main);
    border-radius: 6px;
    padding: 8px 18px;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

.filter-toggle-btn:hover {
    border-color: var(--color-secondary); color: var(--color-secondary);
    background: transparent;
}

.filter-toggle-btn[aria-expanded="true"] {
    background-color: var(--color-primary); color: #fff;
    border-color: var(--color-primary);
}

.filter-badge {
    display: block; width: 6px; height: 6px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

/* ========================================= */
/* 6. SEO TEXT BLOCK                         */
/* ========================================= */

/* --- Стили для текстового блока в каталоге --- */

/* --- Стили для текстового блока в каталоге (Masha VIP Edition) --- */

.catalog-middle-text {
    max-width: 100%;
    margin-top: 1rem;
    margin-bottom: 3.5rem; /* Хорошо отбиваем текст от идущих ниже карточек товаров */
}

.catalog-middle-text .text-content-wrapper {
    /* 1. Классический шрифт */
    font-family: var(--font-family-base);

    /* 2. Делаем размер чуть крупнее и плавнее (clamp спасет на разных экранах) */
    font-size: clamp(1.1rem, 1.2vw, 1.25rem);

    /* 3. Цвет приглушаем, чтобы не бил по глазам жестким контрастом */
    color: var(--color-text-main);
    opacity: 0.85;

    /* 4. Даем тексту дышать! line-height 1.4 — это мало для премиума */
    line-height: 1.75;

    /* 5. Идеальная длина строки для чтения */
    /* max-width: 900px; */

    /* 6. Добавляем изящную акцентную линию слева */
    padding-left: 1.8rem;
    border-left: 2px solid var(--color-secondary);
}

/* 7. Премиальная фишка: Классическая Буквица для первого символа текста */
.catalog-middle-text .text-content-wrapper::first-letter {
    float: left;
    font-size: 3.6em;
    color: var(--color-primary); /* Берем цвет главного заголовка */
    line-height: 0.8;
    padding-right: 0.15em;
    padding-top: 0.05em;
    font-weight: 600;
}
/* Оформляем заголовки внутри текста, чтобы они выделялись */
.catalog-middle-text .text-content-wrapper h2,
.catalog-middle-text .text-content-wrapper h3 {
    font-family: var(--font-family-base);
    color: var(--color-primary); /* Твой фирменный зеленый */
    font-weight: var(--font-weight-medium);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center; /* Заголовки по центру смотрятся премиально */
}

.catalog-middle-text .text-content-wrapper h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Адаптивный размер */
}

/* Буквица (первая буква большая) - если хочешь совсем "дорого-богато" */
/* Раскомментируй, если нравится эффект */
/*
.text-content-wrapper > p:first-child::first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    padding-right: 10px;
    padding-top: 5px;
    color: var(--color-secondary);
    font-family: var(--font-family-base);
}
*/

/* Списки внутри текста */
.catalog-middle-text .text-content-wrapper ul {
    list-style: none; /* Убираем стандартные точки */
    padding-left: 1.5rem;
}

.catalog-middle-text .text-content-wrapper ul li {
    position: relative;
    margin-bottom: 0.5rem;
}

.catalog-middle-text .text-content-wrapper ul li::before {
    /* Делаем красивые золотые буллеты вместо точек */
    content: "—";
    color: var(--color-secondary); /* Твой золотой */
    position: absolute;
    left: -1.5rem;
    font-weight: bold;
}

/* Ссылки внутри текста */
.catalog-middle-text .text-content-wrapper a {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-secondary-accent-light);
    transition: all 0.3s ease;
}

.catalog-middle-text .text-content-wrapper a:hover {
    color: var(--color-secondary);
    border-color: transparent;
}


/* --- Стили для блока SEO текста с "читать дальше" --- */
.seo-section-wrapper {
    margin-top: 60px; margin-bottom: 40px; padding-top: 40px;
    border-top: 1px solid rgba(185, 153, 97, 0.2);
}

.seo-text-container {
    position: relative; overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.seo-text-container.collapsed { max-height: 120px; }

.seo-content, .seo-content p {
    font-family: var(--font-family-secondary);
    color: var(--color-text-muted); text-align: justify;
}

.seo-content a { color: var(--color-text-muted); text-decoration: underline; }

@media (min-width: 992px) {
    .seo-content { column-count: 2; column-gap: 60px; }
}

.seo-content h1, .seo-content h2, .seo-content h3 {
    font-family: var(--font-family-base); color: var(--color-primary);
    margin-top: 0; font-size: 1.5rem; margin-bottom: 1rem;
    break-inside: avoid-column;
}

.seo-fade-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 80px;
    pointer-events: none; opacity: 0; transition: opacity 0.4s;
    background: linear-gradient(to bottom, rgba(243, 240, 235, 0), #f3f0eb);
}

.seo-text-container.collapsed .seo-fade-overlay { opacity: 1; }

/* Read More Button */
.btn-seo-premium {
    display: inline-flex; align-items: center; gap: 10px;
    background-color: transparent; border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    font-family: var(--font-family-secondary);
    font-size: 0.8rem; font-weight: 100; text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 30px; border-radius: 4px;
    transition: all 0.3s ease; cursor: pointer; margin-top: 20px;
}

.btn-seo-premium i {
    font-size: 0.9rem; transition: transform 0.3s; color: var(--color-secondary);
}

.btn-seo-premium:hover {
    background-color: var(--color-secondary); color: #fff;
    border-color: var(--color-header-text);
    box-shadow: 0 5px 15px rgba(185, 153, 97, 0.2);
    transform: translateY(-2px);
}

.btn-seo-premium:hover i { color: #fff; transform: translateY(2px); }
.btn-seo-premium.expanded i { transform: rotate(180deg); }

/* ========================================= */
/* PREMIUM CATEGORY HEADER (Сделано Машей 😘) */
/* ========================================= */

.premium-category-header {
    position: relative;
    padding: 60px 40px 80px;
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--color-primary); /* Подстраховка */
}

.premium-category-header .breadcrumb-item a,
.premium-category-header .breadcrumb-item.active,
.premium-category-header .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.premium-category-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.4) !important;
}

.premium-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.05); /* Легкий запас под анимацию если захочешь */
}

.premium-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Используем твой фирменный градиент из карточек товаров */
    background: linear-gradient(135deg, rgba(35, 57, 47, 0.95) 0%, rgba(20, 45, 35, 0.85) 50%, rgba(96, 138, 123, 0.9) 100%);
    z-index: 1;
}

.premium-title {
    font-family: var(--font-family-base, "EB Garamond", serif);
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.premium-subtitle {
    font-family: var(--font-family-secondary);
    color: var(--color-secondary); /* Твой золотой */
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(185, 153, 97, 0.15); /* Полупрозрачный золотой */
    border: 1px solid rgba(185, 153, 97, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 1.5rem;
}

.premium-features span {
    font-family: var(--font-family-secondary);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .premium-category-header {
        padding: 40px 20px;
        border-radius: 5px; /* На мобилках лучше без скруглений по краям экрана */
    }
    .premium-features {
        flex-direction: column;
        gap: 20px !important;
    }
}

/* ========================================= */
/* 1. БАЗА ДЛЯ УНИВЕРСАЛЬНОГО БЛОКА SEO      */
/* ========================================= */

.seo-text-container {
    position: relative;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Сворачивается всегда (стандартный блок в подвале) */
.seo-text-container.collapse-always.collapsed {
    max-height: 120px;
}

/* Сворачивается ТОЛЬКО НА МОБИЛЬНЫХ (на десктопе развернут всегда) */
.seo-text-container.collapse-mobile.collapsed {
    max-height: none;
}

/* Прячем кнопку на десктопе для блока "только мобильные" */
@media (min-width: 769px) {
    .seo-section-wrapper.mobile-only-wrapper .btn-seo-premium {
        display: none !important;
    }
}

/* ========================================= */
/* 2. АДАПТАЦИЯ ДЛЯ ТЕМНОЙ ШАПКИ (PREMIUM)   */
/* ========================================= */

.premium-description .seo-section-wrapper {
    margin: 0;
    padding: 0;
    border-top: none;
}

.premium-description .seo-content,
.premium-description .seo-content p {
    color: inherit;
    font-family: var(--font-family-base);
    text-align: left;
    font-size: var(--text-size-fluid);
    line-height: 1.2;
}

/* МАГИЯ АЛЬФА-МАСКИ: градиентное растворение на обрезающем контейнере */
.premium-description .seo-text-container.collapsed {
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.premium-description .seo-text-container:not(.collapsed) {
    -webkit-mask-image: none;
    mask-image: none;
}

.premium-description .btn-seo-premium {
    margin-top: 5px;
    padding: 5px 0px;
    border: none;
    background: transparent;
    color: var(--color-secondary); /* Золотой цвет */
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.9rem;
    font-weight: 400;
    box-shadow: none;
}

/* МАША: Жестко глушим Bootstrap-овский фокус, чтобы не залипала белым */
.premium-description .btn-seo-premium:focus,
.premium-description .btn-seo-premium:active,
.premium-description .btn-seo-premium:focus-visible {
    color: var(--color-secondary) !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Белеет ТОЛЬКО когда мышка реально наведена */
.premium-description .btn-seo-premium:hover {
    background: transparent !important;
    color: #ffffff !important;
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.premium-description .btn-seo-premium:hover i {
    transform: translateY(2px);
    color: #ffffff !important;
}

/* ========================================= */
/* 3. КОМПАКТНОСТЬ ШАПКИ НА МОБИЛКАХ (<768px)*/
/* ========================================= */

@media (max-width: 768px) {

    /* Текст в свернутом виде занимает 0 пикселей (полностью скрыт) */
    .premium-description .seo-text-container.collapsed {
        max-height: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Уменьшаем отступы самой шапки */
    .premium-category-header {
        padding: 20px 15px 25px !important;
    }

    /* Уплотняем заголовки */
    .premium-title {
        font-size: 2rem !important;
        line-height: 1.1 !important;
    }

    .premium-subtitle {
        font-size: 0.85rem !important;
        margin-top: 5px !important;
    }

    /* Уменьшаем отступы SEO-блока */
    .premium-description {
        margin-top: 10px !important;
    }

    .premium-description .btn-seo-premium {
        margin-top: 5px !important;
        padding: 0 !important;
        font-size: 0.85rem !important;
    }

    /* Ужимаем иконки преимуществ */
    .premium-category-header .premium-features {
        margin-top: 15px !important;
        gap: 12px !important;
    }

    .premium-category-header .feature-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }

    .premium-category-header .feature-item span {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .premium-category-header .feature-item small {
        font-size: 0.75rem;
    }
}

/* ========================================= */
/* МАША: ОДНА СТРОКА В ШАПКЕ НА ДЕСКТОПЕ     */
/* ========================================= */

@media (min-width: 769px) {
    .premium-description .seo-text-container.collapsed {
        /* Ровно одна строка (учитывая наш line-height: 1.6) */
        max-height: 0.1rem !important;

        /* Сдвигаем маску прозрачности, чтобы она съедала только самый-самый низ букв,
           иначе строка будет нечитаемой */
        -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    }
}

/* End */


/* Start:/local/templates/eco_26/components/bitrix/catalog.element/eco_element/style.css?178005502739886*/
/* ==========================================================================
   Moved from /local/templates/eco_26/css/detail.css
   Component scope: bitrix:catalog.element template "eco_element".
   Product detail layout, gallery, price, calculator, downloads, and mobile rules live with the detail component.
   ========================================================================== */

/**
 * =============================================================================
 * PRODUCT DETAIL PAGE
 * =============================================================================
 * Styles for the single product view component.
 *
 * SECTIONS:
 * 1. Page Layout & Headers
 * 2. Navigation (Previous/Next)
 * 3. Image Gallery (LightGallery & Thumbnails)
 * 4. Product Info & Pricing
 * 5. Description Block (Expandable)
 * 6. Related Products & Downloads
 * 7. Calculator & FAQ
 * 8. Mobile Adjustments
 * =============================================================================
 */

/* ========================================= */
/* 1. PAGE LAYOUT & HEADERS                  */
/* ========================================= */

.eco-product-v3 {
    margin-top: 1.5rem;
    /* Compensate for missing H1 */
    position: relative;
    z-index: 5;
}

@media (max-width: 991px) {
    .eco-product-v3 {
        margin-top: 1rem;
    }
}

/* Green Main Block (The "Hero" of the product) */
/* 1. Обновленный главный блок */
/* 1. Обновленный главный блок (БЕЗ OVERFLOW: HIDDEN) */
.product-main-block {
    background: linear-gradient(227.99deg, #23392F 0.01%, #142D23 27.85%);
    border-radius: 5px;
    padding: 10px 20px !important;
    padding-bottom: 25px !important;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px !important;
    position: relative;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    z-index: 1; /* Устанавливаем контекст наложения */
}

/* 2. Логотип через растянутый фон (ничего не обрезаем через overflow) */
.product-main-block::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 5px; /* Скругление как у родителя */

    background-image: url('/local/templates/eco_26/images/logo_outline.svg');
    background-repeat: no-repeat;

    /* Задаем размер логотипа */
    background-size: 450px 450px;

    /* Сдвигаем логотип в правый нижний угол, частично за рамки */
    background-position: right -50px bottom -50px;

    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

/* 3. Адаптив для телефонов */
@media (max-width: 768px) {
    .product-main-block::after {
        background-size: 250px 250px;
        background-position: right -20px bottom -20px;
        opacity: 0.08;
    }
}

/* Typography inside Green Block */
.product-main-block h1 {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.product-main-block h2 {
    font-family: var(--font-family-base);
    color: #D08C55;
    font-size: clamp(30px, 3vw, 24px);
}

.page-title {
    font-family: var(--font-family-base);
    color: #ffffff !important;
    font-weight: 500;
    line-height: 1.1;
    font-size: clamp(30px, 3vw, 36px);
}

/* Typography outside Green Block */
.container-transparent {
    color: var(--color-text-main);
}

.container-transparent h2 {
    font-family: var(--font-family-base);
    font-size: clamp(24px, 3vw, 42px);
    color: #D08C55;
    margin-bottom: 30px;
}

/* Detail Page Badges */
.product-badges-header {
    display: flex;
    margin-top: 10px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.product-badges-header .badge-item {
    font-size: 11px;
    padding: 6px 12px;
    letter-spacing: 0.1em;
}


/* ========================================= */
/* 2. NAVIGATION (PREVIOUS/NEXT)             */
/* ========================================= */

.nav-col {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0px;
}

.navigation-buttons-wrapper {
    display: flex !important;
    gap: 10px;
    align-items: center;
}

.nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(208, 140, 85, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    flex-shrink: 0;
}

.nav-btn i {
    font-size: 1rem;
    color: #D08C55;
    margin-top: 1px;
    transition: color 0.3s;
}

.nav-btn:hover {
    background: #D08C55;
    border-color: #D08C55;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover i {
    color: #fff;
}

.nav-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}


/* ========================================= */
/* 3. IMAGE GALLERY (LIGHTGALLERY)           */
/* ========================================= */

.product-gallery {
    position: relative;
}

.lightgallery-item {
    cursor: zoom-in;
    display: block;
}

/* Main Image */
/* Контейнер: убираем жесткую высоту и лишние фоны */
.block.main-image a {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    text-align: center;
    /* На случай, если вертикальное фото центрируется */
}

.block.main-image a:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Сама картинка: умный ресайз */
.block.main-image img {
    width: 100%;
    height: auto;
    /* Горизонтальные фото (16:9) идеально схлопнутся без пустот! */
    /*max-height: 650px;/* /* Вертикальные фото (9:16) упрутся в этот потолок */
    object-fit: contain;
    /* Спасает пропорции вертикальных кадров */
    display: block;
    margin: 0 auto;
    /* Если вертикальное фото уже колонки, оно встанет по центру */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* На мобилках ограничиваем высоту вертикальных фото, чтобы не занимали весь экран */
@media (max-width: 991px) {
    .block.main-image img {
        max-height: 60vh;
    }
}

/* Zoom Overlay */
.block.main-image a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3Cpath d='M11 8v6M8 11h6'/%3E%3C/svg%3E") no-repeat center center;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    pointer-events: none;
}

.block.main-image a:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Thumbnails */
.thumbnails-container .thumb {
    cursor: pointer;
}

.thumbnails-container .thumb a {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.95;
}

.thumbnails-container .thumb a:hover,
.thumbnails-container .thumb a.active {
    opacity: 1;
    border-color: #D08C55;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.thumbnails-container .thumb img {
    width: 100%;
    height: 100%;
    /* Квадрат — идеальная форма для смешанного контента */
    aspect-ratio: 1 / 1;
    /* Обрезаем края, чтобы миниатюра всегда была заполнена */
    object-fit: cover;
    transition: transform 0.3s;
    border-radius: 6px;
}


/* ========================================= */
/* 4. PRODUCT INFO & PRICING                 */
/* ========================================= */

/* Pricing Typography */
.modern-product-action-wrapper .price-value {
    font-family: var(--font-family-base);
    font-weight: 500;
    line-height: 0.9;
    color: #fff;
    font-size: 4rem;
}

.modern-product-action-wrapper .unit-label {
    font-family: var(--font-family-base);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 1);
    margin-top: 4px;
    line-height: 1;
}

.modern-product-action-wrapper .separator-line {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    opacity: 1;
}

/* Specs List */
.product-specs-wrapper h2 {
    font-family: var(--font-family-base);
    color: var(--color-secondary);
    margin-bottom: 25px;
    font-weight: 100;
}

.product-specs {
    font-family: var(--font-family-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

.spec-row {
    margin-bottom: 10px !important;
    align-items: baseline !important;
}

.spec-name {
    color: #fff;
    font-weight: 400;
    opacity: 0.6;
    letter-spacing: 0.02em;
}

.spec-value {
    color: #ffffff;
    font-weight: 400 !important;
    letter-spacing: 0.03em;
}

.spec-dots {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
    background: none;
    height: 1px;
    margin: 0 12px;
    flex-grow: 1;
    opacity: 0.6;
    top: -0px;
    position: relative;
}

/* Action Buttons (Add to Cart) */
.btn-gold-gradient {
    background: linear-gradient(135deg, #D08C55 0%, #9E6A3C 100%);
    border: none;
    color: white !important;
    letter-spacing: 0.05em;
    border-radius: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s;
}

.btn-gold-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #EBB285 0%, #B8855D 100%);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
}

.btn-gold-gradient:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(208, 140, 85, 0.4) !important;
    color: white;
}

.btn-gold-gradient:hover::before {
    opacity: 1;
}

.btn-gold-gradient:active {
    transform: translateY(-1px);
    transition-duration: 0.1s;
}

/* 3. Layout Grid for Actions (WIDER QUANTITY) */
.actions-row {
    /* Расширили до 150px, чтобы влезло 3 знака комфортно */
    grid-template-columns: 150px 1fr;
    align-items: stretch;
}

@media (max-width: 400px) {
    .actions-row {
        grid-template-columns: 1fr;
        /* На мобилках друг под другом */
    }
}

/* 4. Quantity Glass Control */
.quantity-glass-control {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 54px;
    padding: 4px !important;
}

/* Убираем стрелки input number */
.items-count::-webkit-outer-spin-button,
.items-count::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.items-count {
    -moz-appearance: textfield;
    font-family: var(--font-family-secondary);
    font-size: 1.3rem;
    /* Чуть крупнее шрифт цифры */
    width: 100%;
}

.items-count:focus {
    background: transparent !important;
    color: white !important;
    box-shadow: none !important;
}

/* Кнопки +/- (Круги) */
.btn-icon {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
    /* Явный курсор */
}

.btn-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Waterproof Toggle */
.option-toggle-card {
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.option-toggle-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.water-proof-wrapper.is-checked .option-toggle-card {
    background: rgba(97, 85, 245, 0.1);
    border-color: #6155F5;
}

.custom-toggle-slider {
    width: 44px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    position: relative;
    transition: 0.3s;
    display: inline-block;
}

.custom-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked+.custom-toggle-slider {
    background-color: #6155F5;
}

input:checked+.custom-toggle-slider::after {
    transform: translateX(20px);
}


.product-info {
    position: sticky;
    top: 135px;
    /* Отступ сверху. Если есть плавающая шапка, увеличь до 80-100px */
    height: max-content;
    /* Обязательно, иначе залипнет весь контейнер целиком */
    z-index: 10;
}

/* МАША: Жестко фиксируем ширину правой колонки на десктопе,
   чтобы тексты-предупреждения для анонимов ее не разрывали */
@media (min-width: 768px) {
    .product-info {
        width: 320px;
    }
}

/* ========================================= */
/* 5. DESCRIPTION BLOCK (EXPANDABLE)         */
/* ========================================= */

.product-description {
    margin-top: 40px;
}

.product-description h2 {
    font-family: var(--font-family-base);
    color:var(--color-secondary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* МАША: Отступ для плавного скролла к заголовку (учитываем высоту шапки) */
.product-description h2 {
    scroll-margin-top: 150px;
}

.product-description h3 {
    font-family: var(--font-family-base);
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.product-description-content {
    font-family: var(--font-family-base);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1.2rem;
    font-weight: 100;
}

/* ========================================= */
/* МАША: БОКОВОЙ FAQ И ОПИСАНИЕ (ТЕМНАЯ ТЕМА)*/
/* ========================================= */

.product-info-split {
    /* Возвращаем stretch, чтобы колонка FAQ была во всю высоту описания */
    align-items: stretch !important;
}

@media (min-width: 1200px) {
    .product-faq-sidebar {
        position: sticky;
        /* Отступ от верха экрана при скролле.
           Сделай его чуть больше, чем у основного блока цены (там было 135px),
           чтобы они шли друг за другом или не конфликтовали с шапкой. */
        top: 140px;
        z-index: 5;
        height: max-content; /* Чтобы сам блок не растягивался визуально */
        transition: top 0.3s ease;
    }
}

.product-description-wrapper {
    overflow: hidden;
    position: relative;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-bottom: 1px solid rgba(208, 140, 85, 0.3);
    padding-bottom: 20px;
}

/* Темная тема для FAQ сайдбара */
.product-faq-sidebar {
    background: rgba(255, 255, 255, 0.03);
    /* Очень легкое осветление */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.faq-sidebar-title {
    color: var(--color-secondary) !important;
    /* Золотой заголовок */
    font-family: var(--font-family-base);
    /* */
    font-size: 1.4rem;
    border-bottom: 1px solid  rgba(208, 140, 85, 0.3) !important;
    padding-bottom: 15px;
}

/* Кастомизация аккордеона под темный фон */
.mini-faq-accordion .accordion-item {
    background: transparent !important;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-bottom: 0;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.mini-faq-accordion .accordion-item:last-child {
    border-bottom: none !important;
}

.mini-faq-accordion .accordion-button {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 1.2rem 0;
    font-family: var(--font-family-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: none !important;
}

.mini-faq-accordion .accordion-button:not(.collapsed) {
    color: var(--color-secondary) !important;
    /* */
}

/* Умная перекраска иконки аккордеона Bootstrap */
.mini-faq-accordion .accordion-button::after {
    filter: invert(1) grayscale(100%) opacity(0.5);
    /* Белая стрелочка */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.mini-faq-accordion .accordion-button:not(.collapsed)::after {
    color: var(--color-secondary) !important;
    /* Золотая стрелочка */
}

.mini-faq-accordion .accordion-body {
    color: rgba(255, 255, 255, 0.6);
    padding: 0 0 1.2rem 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.all-faq-link {
    color: #D08C55;
    font-size: 0.85rem;
    font-family: var(--font-family-secondary);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.all-faq-link:hover {
    opacity: 1;
    color: #D08C55;
}


/* Кнопка "Показать полностью" */

.toggle-desc-btn {
    display: block;
    margin: -18px auto 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #142D23;
    border: 1px solid rgba(208, 140, 85, 0.5);
    cursor: pointer;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-desc-btn:hover {
    border-color: #D08C55;
    background: #1a382d;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(208, 140, 85, 0.2);
}

.toggle-desc-btn.expanded .arrow-icon {
    transform: rotate(180deg);
}

/* Стили для терминов глоссария */
.eco-term {
    color: #fff;
    /* Твой зеленый */
    border-bottom: 1px dashed var(--color-secondary);
    /* Золотой пунктир */
    cursor: help;
    transition: all 0.2s;
}

.eco-term:hover,
.eco-term:focus {
    color: var(--color-secondary);
    border-bottom-style: solid;
    outline: none;
    /* Убираем синюю рамку при фокусе */
}

/* Стилизация самого Popover (Bootstrap) под дизайн */
.popover {
    border-color: var(--color-secondary);
    font-family: var(--font-family-secondary);
}

.popover-header {
    background-color: var(--color-primary);
    color: #fff;
    font-family: var(--font-family-base);
    font-size: 1.3rem;
}

.popover-body {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.4;
    font-family: var(--font-family-base);
}


/* ========================================= */
/* 6. RELATED PRODUCTS & DOWNLOADS           */
/* ========================================= */

.compatible-item-link {
    background: linear-gradient(172.93deg, #D08C55 0%, #9E6A3C 100%);
    transition: background 0.3s;
}

.compatible-item-link:hover {
    background: linear-gradient(172.93deg, #E3A878 0%, #B07A52 100%);
}

.product-downloads-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.product-downloads-section h2 {
    font-family: var(--font-family-base);
    color: white;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    opacity: 0.7;
}

.files-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    align-items: flex-start;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    border: none;
    cursor: pointer;
}

.file-item-icon {
    /* МАША: Увеличили размер иконок с 40px до 64px */
    width: 64px;
    height: 64px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.file-item:hover .file-item-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(208, 140, 85, 0.6));
}

.file-item:hover .file-item-label {
    color: #D08C55;
    transform: translateY(3px);
}

/* Стили для заблокированного файла */
.file-item.restricted {
    position: relative;
    cursor: pointer;
    /* Чтобы знали, что можно тыкнуть */
    overflow: hidden;
}

/* Эффект замыливания контента */
.file-item.restricted .file-item-icon,
.file-item.restricted .file-item-label {
    filter: blur(2px) grayscale(80%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Иконка замка поверх */
.file-item-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.5);
    /* Немного затемним фон под замком */
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.file-item.restricted:hover .file-item-icon,
.file-item.restricted:hover .file-item-label {
    filter: blur(4px) grayscale(50%);
    /* При наведении еще мутнее */
}




/* ========================================= */
/* 7. CALCULATOR & FAQ                       */
/* ========================================= */

/* 1. Обновляем сам контейнер калькулятора */
.project-calculator {
    background-color: #142D23; /* Оставляем только фоновый цвет */
    padding: 30px;
    border-radius: 5px;
    color: white;

    /* Добавляем эти свойства, чтобы логотип жил внутри блока */
    position: relative;
    z-index: 1;
}

.eco-accordion .accordion-item {
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    border-radius: 8px !important;
    margin-bottom: 15px;
}

.eco-accordion .accordion-button {
    background-color: #fff;
    color: var(--color-primary);
    font-family: var(--font-family-base);
    font-size: 1.15rem;
    font-weight: 500;
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
}

.eco-accordion .accordion-button:not(.collapsed) {
    background-color: #fff;
    color: var(--color-secondary);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05) !important;
}

.eco-accordion .accordion-button::after {
    filter: grayscale(100%) opacity(0.5);
}

.eco-accordion .accordion-button:not(.collapsed)::after {
    filter: sepia(100%) hue-rotate(5deg) saturate(500%) brightness(0.9);
}


/* ========================================= */
/* 8. MOBILE ADJUSTMENTS                     */
/* ========================================= */

@media (max-width: 991px) {
    .product-main-block {
        padding: 20px 20px;
    }

    .header-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .nav-col {
        justify-content: flex-start !important;
        width: 100%;
    }

    .project-calculator {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .product-badges-header {
        margin-bottom: 6px;
    }

    .thumbnails-container .thumb img {
        height: auto;
    }

    .files-grid {
        gap: 20px;
        justify-content: space-between;
    }

    .file-item {
        width: 30%;
    }
}

/* ========================================= */
/* МАША: ЕДИНЫЙ ШРИФТ ДЛЯ БЛОКА FAQ          */
/* ========================================= */

/* 1. Задаем базовый шрифт для всего сайдбара */
.product-faq-sidebar {
    font-family: var(--font-family-base) !important;
}

/* 2. Жестко перебиваем шрифты Bootstrap для кнопок (вопросов) */
.mini-faq-accordion .accordion-button {
    font-family: inherit !important;
    font-size: 1.1rem !important; /* Сделали чуть крупнее для лучшей читаемости */
    font-weight: 500 !important;
}

/* 3. Применяем тот же шрифт к тексту ответов */
.mini-faq-accordion .accordion-body {
    font-family: inherit !important;
    font-size: 1.2rem !important;
}

/* ========================================= */
/* МАША: КНОПКА "РАССЧИТАТЬ ПРОЕКТ"          */
/* ========================================= */

.btn-calc-project {
    background: rgba(255, 255, 255, 0.05); /* Легчайшая стеклянная подложка */
    border: 1px solid rgba(255, 255, 255, 0.4); /* Заметная белая рамка вместо сливающегося золота */
    color: #ffffff !important; /* Белоснежный текст */
    font-family: var(--font-family-secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Эффект при наведении: кнопка заливается белым, текст становится темно-зеленым */
.btn-calc-project:hover {
    background: #ffffff;
    color: #142D23 !important; /* Темно-зеленый из твоего фона */
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

/* Красивый скользящий блик света */
.btn-calc-project::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: -1;
}

.btn-calc-project:hover::after {
    left: 200%;
}

.btn-calc-project:active {
    transform: translateY(0);
}

/* === VISUAL DOCKING STYLES === */
.product-visual-wrapper {
    position: relative;
}

.visual-clip-layer {
    position: relative;
    border-radius: 0.25rem;
    line-height: 0;
    overflow: hidden; /* МАША: Обрезаем слои, чтобы не вылезали за пределы картинки */
}

.visual-clip-layer a.lightgallery-item {
    display: block;
    line-height: 0;
}

.molding-phantom-visual-layer {
    position: absolute;
    pointer-events: none;
    opacity: 0.15; /* МАША: Прозрачность 15% в изначальном виде */
    transition: opacity 0.3s ease;
    z-index: 5;
    transform-origin: center center;
}

.molding-phantom-visual {
    width: 100%;
    transform-origin: center center;
}

.molding-phantom-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.molding-interaction-layer {
    position: absolute;
    z-index: 10;
    cursor: crosshair;
    transform-origin: center center;
}

.molding-hover-zone {
    width: 100%;
    transform-origin: center center;
}

.molding-hover-zone img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0; /* Only needed for dimensions and hit area */
}

.molding-phantom-visual-layer.active-visual {
    opacity: 1;
}

/* Info Box */
.molding-info-box {
    position: absolute;
    background: var(--color-primary, #23392F);
    border: none;
    border-radius: 6px;
    padding: 15px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.m-info-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
}

.m-info-close:hover {
    color: var(--color-white, #fff);
}

.molding-info-box.active-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.m-info-title {
    color: var(--color-white, #fff);
    font-family: var(--font-family-base, "EB Garamond", serif);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.2;
    padding-right: 15px;
}

.m-info-price {
    color: var(--color-white, #fff);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
}

.m-info-btns {
    display: flex;
    gap: 10px;
}

.m-btn-v, .m-btn-b {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    font-weight: 500;
}

.m-btn-v {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white, #fff);
    position: relative;
}

.m-btn-v:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white, #fff);
}

/* Убираем лупу на кнопке Смотреть */
.m-info-btns .m-btn-v::before,
.m-info-btns .m-btn-v::after {
    display: none !important;
    content: none !important;
}

.m-btn-b {
    background: transparent;
    border: 1px solid var(--color-secondary, #b99961);
    color: var(--color-secondary, #b99961);
}

.m-btn-b:hover {
    background: var(--color-secondary, #b99961);
    color: var(--color-primary, #23392F);
}

/* Toggle Switch */
.visual-docking-toggle {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.6);
    padding: 8px 15px;
    border-radius: 30px;
    z-index: 20;
    backdrop-filter: blur(5px);
}

.toggle-label {
    color: #fff;
    font-size: 13px;
    user-select: none;
}

.custom-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    margin: 0;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.2);
    transition: .4s;
    border-radius: 20px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.custom-switch input:checked + .switch-slider {
    background-color: #D08C55;
}

.custom-switch input:checked + .switch-slider:before {
    transform: translateX(16px);
}

.product-visual-wrapper.show-all-docking .molding-phantom-visual-layer {
    opacity: 1 !important;
}

/* Hint Animation */
.masha-onboarding-hint {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    z-index: 30;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 6px 12px 6px 8px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: fadeOutHint 1s ease 5s forwards; /* Исчезает через 5 секунд */
    transition: opacity 0.3s;
}

/* При наведении прячем подсказку сразу */
.molding-interaction-layer:hover .masha-onboarding-hint {
    opacity: 0 !important;
}

@keyframes fadeOutHint {
    0% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

.hint-pulse {
    width: 10px;
    height: 10px;
    background: #D08C55;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(208, 140, 85, 0.7);
    animation: pulseHint 2s infinite;
}

.hint-text {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

@keyframes pulseHint {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(208, 140, 85, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(208, 140, 85, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(208, 140, 85, 0); }
}

/* ==========================================================================
   Moved from /local/templates/eco_26/css/promo.css
   Component scope: bitrix:catalog.element template "eco_element".
   These promo alert and promo price rules are used inside the product detail card.
   ========================================================================== */

/* ==========================================================================
   ПРЕМИАЛЬНЫЙ БЛОК АКЦИИ В ДЕТАЛЬНОЙ КАРТОЧКЕ
   ========================================================================== */

/* Обертка уведомления */
.promo-premium-alert {
    background: linear-gradient(135deg, rgba(208, 140, 85, 0.1) 0%, rgba(208, 140, 85, 0.02) 100%);
    border: 1px solid rgba(208, 140, 85, 0.3);
    border-radius: 8px;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
}

/* Элегантная полоска слева */
.promo-premium-alert::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--color-secondary); /* Золотой из твоих переменных */
}

/* Иконка и заголовки */
.promo-premium-icon {
    color: var(--color-secondary);
    font-size: 1.2rem;
}

.promo-premium-title {
    color: #fff;
    font-family: var(--font-family-base); /* Garamond */
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    font-weight: 500;
}

.promo-premium-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-family-secondary);
    line-height: 1.5;
}

.promo-premium-highlight {
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Таймер */
.promo-premium-timer {
    font-family: var(--font-family-secondary);
    font-size: 1.1rem;
    color: var(--color-secondary);
    font-weight: 200;
    letter-spacing: 1px;
}

/* --- МАГИЯ ЦЕНЫ --- */
/* Золотая цена, если товар участвует в акции */
.price-value.promo-price-active {
    color: var(--color-secondary) !important;
    text-shadow: 0 4px 15px rgba(208, 140, 85, 0.2);
}

/* Премиальный бейдж скидки (зачеркнутая цена) */
.eco-promo-discount-badge-premium {
    background: var(--color-secondary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-family-secondary);
    box-shadow: 0 2px 8px rgba(208, 140, 85, 0.3);
    line-height: 1.3;
}

/* ==========================================================================
   Moved mobile product overrides from /local/templates/eco_26/css/mobile.css
   Component scope: bitrix:catalog.element template "eco_element".
   Mobile full-width product detail adjustments belong to the product detail component.
   ========================================================================== */

/* ========================================= */
/* 5. PRODUCT PAGE HACKS (NUCLEAR FULL WIDTH)*/
/* ========================================= */

@media (max-width: 991.98px) {

    /* Remove Top Spacing */
    .eco-product-v3 {
        margin-top: 0 !important;
        padding-top: 5px !important;
    }
    .product-navigation-row { margin-bottom: 10px !important; }

    /* Full Bleed Block */
    .product-main-block {
        margin-left: -15px !important; margin-right: -15px !important;
        width: 100vw !important; max-width: 100vw !important;
        border-radius: 0 !important; border: none !important; box-shadow: none !important;
        padding: 0 !important; overflow: hidden;
    }

    /* Images */
    .product-gallery-area, .product-gallery-area .col-lg-6 {
        padding: 0 !important; margin: 0 !important;
        width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important;
    }

    .main-image, .block.main-image, .main-image-wrapper {
        padding: 0 !important;
        margin-left: -12px !important; margin-right: -12px !important;
        margin-bottom: 15px !important;
        border-radius: 0 !important; background: transparent !important; border: none !important;
    }

    .main-image img, .main-image-wrapper img {
        display: block; width: 100% !important; height: auto !important;
        border-radius: 0 !important;
    }

    /* Restore Padding for Thumbnails */
    .thumbnails-container { width: 100% !important; }

    /* Restore Padding for Info/Text */
    .product-info-area {
        padding: 25px 15px 40px 15px !important;
        background: transparent !important;
    }

    /* Reset inner containers */
    .product-main-block > .container,
    .product-main-block > .row {
        margin: 0 !important; width: 100% !important; max-width: 100% !important;
    }

    /* Header Row (Title | Arrows) */
    .header-row {
        display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
        align-items: center !important;
        margin-bottom: 15px !important; margin-top: 10px !important; padding-top: 10px !important;
    }

    .header-row .col-lg-9 {
        width: auto !important; flex: 1 1 auto !important; order: 1 !important;
        padding-right: 15px; margin-top: 0px; padding-left: 15px;
    }

    .page-title {
        font-size: 1.6rem !important; line-height: 1.2 !important; margin: 0 !important;
    }

    .header-row .nav-col {
        width: auto !important; flex: 0 0 auto !important; order: 2 !important;
        justify-content: flex-end !important; margin: 0 !important; padding-right: 15px;
    }

    .nav-btn { width: 36px; height: 36px; }
    .nav-btn i { font-size: 0.9rem; }
}

/* ==========================================================================
   Moved mobile file-download scroller from /local/templates/eco_26/css/mobile.css
   Component scope: bitrix:catalog.element template "eco_element".
   Download file strip is rendered inside the product detail component.
   ========================================================================== */

/* --- Horizontal Scroll Files --- */
@media (max-width: 991.98px) {
    .files-grid {
        display: flex !important; flex-wrap: nowrap !important; overflow-x: auto;
        justify-content: flex-start; gap: 15px;
        scrollbar-width: none; padding-bottom: 5px;
    }
    .files-grid::-webkit-scrollbar { display: none; }
    .file-item { flex: 0 0 auto; width: auto !important; min-width: 60px; }
}

/* End */


/* Start:/local/templates/eco_26/components/bitrix/catalog.section.list/albums_carousel/style.css?17800550278284*/
.eco-albums-carousel-wrapper {
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

/* Заголовок блока */
.carousel-title {
    font-family: var(--font-family-base, "EB Garamond", serif);
    color: var(--color-primary, #23392F);
    font-weight: 500;
}

/* Кнопки навигации */
.carousel-nav-container {
    display: flex;
    gap: 10px;
}
.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-secondary, #b99961);
    background: transparent;
    color: var(--color-secondary, #b99961);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}
.carousel-btn:hover {
    background: var(--color-secondary, #b99961);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(185, 153, 97, 0.3);
}

/* ========================================= */
/* ПРЕМИАЛЬНАЯ КАРТОЧКА АЛЬБОМА              */
/* ========================================= */

.album-slide-card {
    display: block;
    text-decoration: none;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.album-slide-card:hover {
    border-color: rgba(185, 153, 97, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Контейнер картинки (Фикс пропорций 3:4) */
.slide-img-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 133%; 
    background: #f0f0f0;
    overflow: hidden;
    border-radius: 8px;
}

.slide-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

/* Оверлей: градиент снизу вверх для читаемости текста */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 45, 35, 0.95) 0%, rgba(20, 45, 35, 0.3) 50%, transparent 100%);
    opacity: 0.85;
    transition: opacity 0.4s ease, background 0.4s ease;
}

/* Контент слайда (Заголовок и кнопка) */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 25px; /* Добавили воздуха */
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Заголовок альбома */
.slide-title {
    color: #ffffff !important;
    font-family: var(--font-family-base, "EB Garamond", serif) !important;
    font-size: 1.4rem !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    text-shadow: none !important; /* Убили дешевую тень */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease !important;
    transform: translateY(20px); /* Спрятали чуть ниже, пока нет наведения */
}

/* Ссылка с анимацией */
.slide-link-text {
    font-family: var(--font-family-secondary, "Avantgarde", sans-serif) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.15em !important; /* Разрядка для дорогого вида */
    color: var(--color-secondary, #b99961) !important;
    text-transform: uppercase !important;
    margin-top: 12px !important;
    opacity: 0 !important;
    transform: translateY(15px) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Изящная стрелочка */
.slide-link-text::after {
    content: '→';
    font-size: 1.4em;
    line-height: 1;
    transition: transform 0.3s ease;
}

/* Счетчик количества фото (идеальный круг) */
.slide-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary, #142D23);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-secondary, sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* ========================================= */
/* HOVER-ЭФФЕКТЫ                             */
/* ========================================= */

.album-slide-card:hover .slide-img-wrap img { 
    transform: scale(1.08) !important; 
}

.album-slide-card:hover .slide-overlay { 
    opacity: 1 !important; 
    background: linear-gradient(to top, rgba(20, 45, 35, 0.95) 0%, rgba(20, 45, 35, 0.5) 50%, rgba(20, 45, 35, 0.1) 100%);
}

.album-slide-card:hover .slide-title { 
    transform: translateY(0); 
}

.album-slide-card:hover .slide-link-text { 
    opacity: 1 !important; 
    transform: translateY(0) !important; 
}

.album-slide-card:hover .slide-link-text::after { 
    transform: translateX(5px); 
}

.album-slide-card:hover .slide-count {
    transform: scale(1.1);
    color: var(--color-secondary, #b99961);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Swiper фиксы */
.swiper-wrapper { display: flex; }
.swiper-slide { height: auto; }

@media (max-width: 576px) {
    .carousel-nav-container { display: none; }
    .slide-content { padding: 20px 15px; }
    .slide-title { font-size: 1.2rem !important; transform: translateY(0); } /* На мобилках показываем сразу */
    .slide-link-text { opacity: 1 !important; transform: translateY(0) !important; }
    .eco-albums-carousel-wrapper {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
        width: calc(100% + 30px);
    }
}

/* ========================================= */
/* ФИКС ОБРУБЛЕННЫХ ТЕНЕЙ ДЛЯ СЛАЙДЕРА       */
/* ========================================= */

/* 1. Убираем жесткий overflow у самой обертки компонента, если он там есть */
.eco-albums-carousel-wrapper {
    overflow: visible !important;
}

/* 2. Расширяем границы самого Swiper-контейнера */
.eco-albums-carousel-wrapper .swiper-container {
    padding-top: 15px;
    padding-bottom: 40px; /* Основное место для нашей падающей тени */
    padding-left: 15px;
    padding-right: 15px;
    
    /* Компенсируем паддинги, чтобы карточки остались на своих местах */
    margin-top: -15px;
    margin-bottom: -40px;
    margin-left: -15px;
    margin-right: -15px;
}

/* Опционально: немного утихомирим саму тень, чтобы она была более бархатной */
.album-slide-card:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   Moved mobile carousel sizing from /local/templates/eco_26/css/mobile.css
   Component scope: carousel templates.
   Mobile slide widths and carousel title alignment belong to the carousel components.
   ========================================================================== */

/* --- Carousels (Albums/Articles) --- */
@media (max-width: 991.98px) {
    .eco-albums-carousel-wrapper, .eco-articles-wrapper {
        margin-left: -15px; margin-right: -15px;
    }

    .art-carousel-title, .carousel-title, .faq-section h3 {
        display: block; width: 100%; text-align: center;
    }

    .eco-albums-carousel-wrapper .slide-title { font-size: 1.25rem; }

    /* Resized slides for mobile */
    .eco-albums-carousel-wrapper .swiper-slide,
    .eco-articles-wrapper .swiper-slide {
        width: 70vw !important; /* Smaller, cleaner look */
        max-width: 280px !important;
        height: auto !important;
        display: flex; flex-direction: column;
    }
}

/* End */


/* Start:/local/templates/eco_26/components/bitrix/news.list/articles_carousel/style.css?17800550275081*/
/* --- СТИЛИ КАРУСЕЛИ СТАТЕЙ --- */

/* Фикс для Flexbox контейнеров */
.content-column { min-width: 0 !important; }

.eco-articles-wrapper {
    margin-bottom: 70px;
    position: relative;
}

/* Заголовок */
.art-carousel-title {
    font-family: var(--font-family-base, "Times New Roman", serif);
    color: var(--color-primary, #23392F);
    font-weight: 500;
}

/* Кнопки навигации */
.art-nav-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-secondary, #b99961);
    background: transparent;
    color: var(--color-secondary, #b99961);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.art-nav-btn:hover {
    background: var(--color-secondary, #b99961);
    color: #fff;
}

/* --- КАРТОЧКА СТАТЬИ (Журнальный стиль) --- */
.article-slide {
    height: auto;
    display: flex;
}

.article-card {
    background: #fff;
    border: none;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* Картинка (Горизонтальная 3:2) */
.art-img-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 66%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.art-img-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .art-img-wrap img {
    transform: scale(1.05);
}

/* Тело карточки */
.art-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border: 1px solid rgba(0,0,0,0.03);
    border-top: none;
}

/* Дата */
.art-date {
    font-size: 0.8rem;
    color: var(--color-secondary, #b99961);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: var(--font-family-secondary, sans-serif);
}

/* Заголовок статьи */
.art-title {
    font-family: var(--font-family-base, serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.3;
    color: var(--color-primary, #23392F);
    margin-bottom: 12px;
    font-weight: 500;
    transition: color 0.3s;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .art-title {
    color: var(--color-secondary, #b99961);
}

/* Анонс */
.art-preview {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ссылка "Читать" */
.art-link-more {
    font-family: var(--font-family-secondary, sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-secondary, #b99961);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.art-link-more i {
    transition: transform 0.3s ease;
}

.article-card:hover .art-link-more i {
    transform: translateX(5px);
}

/* Swiper фиксы */
.swiper-container { width: 100%; overflow: hidden; }
.swiper-wrapper { display: flex; }

@media (max-width: 576px) {
    .art-nav-container {
        display: none !important;
    }
    .art-body {
        padding: 15px;
    }
    .art-title {
        font-size: 1.2rem;
    }
    .eco-articles-wrapper {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
        width: calc(100% + 30px);
    }
}

/* ==========================================================================
   Moved mobile carousel sizing from /local/templates/eco_26/css/mobile.css
   Component scope: carousel templates.
   Mobile slide widths and carousel title alignment belong to the carousel components.
   ========================================================================== */

/* --- Carousels (Albums/Articles) --- */
@media (max-width: 991.98px) {
    .eco-albums-carousel-wrapper, .eco-articles-wrapper {
        margin-left: -15px; margin-right: -15px;
    }

    .art-carousel-title, .carousel-title, .faq-section h3 {
        display: block; width: 100%; text-align: center;
    }

    .eco-albums-carousel-wrapper .slide-title { font-size: 1.25rem; }

    /* Resized slides for mobile */
    .eco-albums-carousel-wrapper .swiper-slide,
    .eco-articles-wrapper .swiper-slide {
        width: 70vw !important; /* Smaller, cleaner look */
        max-width: 280px !important;
        height: auto !important;
        display: flex; flex-direction: column;
    }
}

/* End */
/* /local/templates/eco_26/components/bitrix/catalog/eco_complex/style.css?178005502717805 */
/* /local/templates/eco_26/components/bitrix/catalog.element/eco_element/style.css?178005502739886 */
/* /local/templates/eco_26/components/bitrix/catalog.section.list/albums_carousel/style.css?17800550278284 */
/* /local/templates/eco_26/components/bitrix/news.list/articles_carousel/style.css?17800550275081 */
