

/* Start:/local/templates/eco_26/css/blog.css?177685548917650*/
/**
 * =============================================================================
 * BLOG & ARTICLES
 * =============================================================================
 * Styles for the blog listing (grid) and the single article view (longread).
 * 
 * SECTIONS:
 * 1. Blog Grid & Cards
 * 2. Single Article Page
 * =============================================================================
 */

/* ========================================= */
/* 1. BLOG GRID & CARDS                      */
/* ========================================= */
/* ========================================= */
/* БЛОГ / СТАТЬИ (Masha Edition)             */
/* ========================================= */

.blog-card {
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 5px !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Эффект при наведении на всю карточку */
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(35, 57, 47, 0.08) !important;
    border-color: rgba(185, 153, 97, 0.3);
}

/* Обложка статьи: жестко фиксируем пропорции 3/2, чтобы сетка была ровной */
.blog-card__img-link {
    overflow: hidden;
    border-radius: 5px 5px 0 0;
    aspect-ratio: 3/2; 
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* Заглушка (когда нет картинки) */
.blog-card__svg-placeholder {
    height: 100%;
    background-color: rgba(35, 57, 47, 0.03); /* Очень легкий фирменный фон */
    transition: background-color 0.4s ease;
}

.blog-card:hover .blog-card__svg-placeholder {
    background-color: rgba(185, 153, 97, 0.06); /* При наведении фон теплеет */
}

/* Картинка: легкий зум при наведении */
.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover .blog-card__img {
    transform: scale(1.05);
}

/* Анимация заголовка */
.blog-card__title a {
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card__title a {
    color: var(--color-secondary) !important;
}

/* Анимация ссылки "Читать статью" */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-read-more {
    color: var(--color-primary) !important;
}

.blog-card:hover .blog-read-more i {
    transform: translateX(5px);
}

/* ========================================= */
/* 2. SINGLE ARTICLE PAGE                    */
/* ========================================= */

.article-container {
    background: #fff; padding: 40px 60px;
    border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.article-header { text-align: center; margin-bottom: 40px; }

.article-date {
    display: inline-block; color: var(--color-secondary);
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: 15px; font-size: 0.9rem;
}

.article-title {
    font-family: var(--font-family-base);
    font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1;
    color: var(--color-primary); margin-bottom: 30px;
}

.article-cover {
    width: 100%; height: auto; border-radius: 6px;
    margin-bottom: 40px; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Article Content */
.article-content {
    font-family: var(--font-family-base);
    font-size: var(--text-size-fluid);
    line-height: 1.8; color: #333;
}

.article-content p { margin-bottom: 1.5em; }

.article-content h2, .article-content h3 {
    margin-bottom: 0.8em; color: var(--color-primary);
}

.article-content img {
    max-width: 100%; height: auto; border-radius: 4px; margin: 20px 0;
}

.article-content blockquote {
    border-left: 4px solid var(--color-secondary);
    padding-left: 20px; font-style: italic; font-size: 1.3rem;
    color: #555; margin: 40px 0;
}

@media (max-width: 768px) {
    .article-container { padding: 20px; }
}

/* ========================================= */
/* ТИПОГРАФИКА И ВЕРСТКА СТАТЬИ КМ0          */
/* ========================================= */

.article-content {
    /* Делаем шрифт крупнее, а строки плотнее для "журнального" вида */
    font-family: var(--font-family-base, "EB Garamond", serif);
    font-size: 1.4rem; 
    line-height: 1.5; 
    color: #2b2b2b;
    letter-spacing: 0.01em;
}

.article-content p { 
    margin-bottom: 1.4em; 
}

.article-content h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.article-content h2 i {
    color: var(--color-secondary); /* Золотые иконки в заголовках */
    font-size: 0.9em;
}

/* Глобальное скругление по требованию босса */
.article-content img,
.art-placeholder-img,
.card-list li,
.faq-item {
    border-radius: 5px !important;
}

/* Плейсхолдеры изображений (placehold.co) */
.art-placeholder-figure {
    margin: 35px 0;
    width: 100%;
}
.art-placeholder-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.art-caption {
    font-family: var(--font-family-secondary);
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}

/* Списки-карточки */
.card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}
.card-list li {
    background: #fff;
    border: 1px solid rgba(133, 102, 60, 0.15);
    border-left: 4px solid var(--color-secondary);
    padding: 20px;
    flex: 1 1 calc(50% - 15px);
    min-width: 250px;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1.1rem; /* Увеличили текст в карточках */
    line-height: 1.4;
}
.card-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.card-list li strong {
    color: var(--color-primary);
    font-family: var(--font-family-secondary);
    display: block;
    margin-bottom: 8px;
    font-size: 1.15em;
}

/* Модификаторы списков (теперь на Bootstrap Icons) */
.icon-list-check {
    list-style: none;
    padding-left: 0;
}
.icon-list-check li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
}
.icon-list-check li::before {
    content: '\F26A'; /* bi-check-circle-fill */
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-secondary);
    font-size: 1.2rem;
}

.icon-list-warning {
    list-style: none;
    padding-left: 0;
}
.icon-list-warning li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
}
.icon-list-warning li::before {
    content: '\F33A'; /* bi-exclamation-triangle-fill */
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 2px;
    color: #D8A73A; 
    font-size: 1.2rem;
}

/* Крупный нумерованный список */
.styled-number-list {
    list-style: none;
    counter-reset: my-counter;
    padding-left: 0;
    margin-bottom: 35px;
}
.styled-number-list li {
    counter-increment: my-counter;
    position: relative;
    padding-left: 65px;
    margin-bottom: 20px;
    min-height: 45px;
    display: flex;
    align-items: center;
}
.styled-number-list li::before {
    content: counter(my-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--color-secondary);
    color: white;
    border-radius: 5px !important; /* Делаем квадраты со скруглением 5px вместо кругов! */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-family-secondary);
    font-size: 1.4em;
}

/* Выразительный блок FAQ */
.faq-section {
    margin-top: 20px;
}
.faq-item {
    background: #fbfaf8; /* Очень легкий теплый оттенок */
    border: 1px solid rgba(185, 153, 97, 0.2);
    border-left: 4px solid var(--color-primary); /* Акцент основным зеленым */
    padding: 20px 25px;
    margin-bottom: 15px;
}
.faq-question {
    font-family: var(--font-family-secondary);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.faq-answer {
    margin: 0;
    font-size: 1.1rem;
    color: #444;
}

.article-content a {
    text-decoration: underline;
}

/* ========================================= */
/* СТИЛИ ДЛЯ ТАБЛИЦ В СТАТЬЯХ                */
/* ========================================= */
.eco-table-wrapper {
    overflow-x: auto;
    margin: 35px 0;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.eco-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background: #fff;
    font-family: var(--font-family-secondary);
}
.eco-table th {
    background-color: var(--color-primary);
    color: #fff;
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.eco-table th:last-child { border-right: none; }
.eco-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-right: 1px solid rgba(0,0,0,0.05);
    color: #444;
    font-size: 1.05rem;
    line-height: 1.5;
    vertical-align: top;
}
.eco-table td:last-child { border-right: none; }
.eco-table tr:last-child td { border-bottom: none; }
.eco-table tr:hover td { background-color: #faf9f7; }

/* ========================================= */
/* МАША: ЖЕСТКИЙ СБРОС И ЗАЩИТА СТИЛЕЙ       */
/* ========================================= */

/* --- 1. КНОПКА "НАЗАД К СТАТЬЯМ" --- */
.article-header .btn-contact-solid,
.article-footer .btn-contact-solid {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: var(--font-family-secondary, sans-serif) !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    color: var(--color-primary) !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    line-height: 1 !important;
}

.article-header .btn-contact-solid:hover,
.article-footer .btn-contact-solid:hover {
    border-color: var(--color-secondary) !important;
    color: var(--color-secondary) !important;
    box-shadow: 0 8px 20px rgba(185, 153, 97, 0.15) !important;
    transform: translateY(-3px) !important;
}

.article-header .btn-contact-solid i,
.article-footer .btn-contact-solid i {
    font-size: 1.2rem !important;
    color: var(--color-secondary) !important;
    transition: transform 0.3s ease !important;
    line-height: 0 !important;
}

.article-header .btn-contact-solid:hover i {
    transform: translateX(-4px) !important; /* Стрелочка "Назад" едет влево */
}

.article-footer .btn-contact-solid:hover i {
    transform: translateX(-4px) !important;
}


/* --- 2. ЗАЩИТА СПИСКОВ В СТАТЬЕ ОТ ТИРЕ --- */

/* Жестко убиваем все левые псевдоэлементы у ВСЕХ списков внутри статьи */
.article-content ul li::before,
.article-content ol li::before {
    content: none !important;
    display: none !important;
}

/* Жестко убиваем тире у карточек (Почему это выгодно) */
.article-content .card-list li::after,
.article-content .card-list li::before {
    content: none !important;
    display: none !important;
}

/* Делаем красивые дефолтные списки (ul) в статьях (золотые ромбики вместо тире) */
.article-content ul:not(.card-list):not(.icon-list-check):not(.icon-list-warning):not(.styled-number-list) {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 1.5rem !important;
}

.article-content ul:not(.card-list):not(.icon-list-check):not(.icon-list-warning):not(.styled-number-list) li {
    position: relative !important;
    padding-left: 20px !important;
    margin-bottom: 10px !important;
}

.article-content ul:not(.card-list):not(.icon-list-check):not(.icon-list-warning):not(.styled-number-list) li::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 15px !important;
    width: 6px !important;
    height: 6px !important;
    background-color: var(--color-secondary) !important;
    transform: rotate(45deg) !important; /* Ромбик */
    display: block !important;
}

/* Дефолтные нумерованные списки (ol) в статьях */
.article-content ol:not(.styled-number-list) {
    list-style: decimal !important;
    padding-left: 20px !important;
    margin-bottom: 1.5rem !important;
}

.article-content ol:not(.styled-number-list) li {
    padding-left: 5px !important;
    margin-bottom: 10px !important;
}

/* ========================================= */
/* ВНУТРИСТАТЕЙНАЯ НАВИГАЦИЯ (Оглавление)    */
/* ========================================= */

/* Плавный скролл для всей страницы (чтобы якоря не прыгали резко) */
html {
    scroll-behavior: smooth;
}

/* Фикс отступа для якорных ссылок (учитываем прилипающую шапку) */
.article-content h2[id], 
.article-content h3[id],
#article-toc {
    scroll-margin-top: 90px; /* Для мобильных: 80px шапка + 20px запас */
}

@media (min-width: 992px) {
    .article-content h2[id], 
    .article-content h3[id],
    #article-toc {
        scroll-margin-top: 160px; /* Для десктопа: 140px шапка + 20px запас */
    }
}

/* Стиль кнопки "Вернуться к содержанию" */
.back-to-toc {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family-secondary, sans-serif);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary) !important;
    text-decoration: none !important;
    opacity: 0.7;
    transition: all 0.3s ease !important;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.back-to-toc:hover {
    opacity: 1;
    color: var(--color-primary) !important;
    transform: translateX(5px); /* Легкое смещение вправо для динамики */
}

.back-to-toc i {
    font-size: 1.2rem;
    line-height: 0;
    transition: transform 0.3s ease;
}

.back-to-toc:hover i {
    transform: translateY(-2px); /* Стрелочка вверх чуть подпрыгивает */
}

/* ========================================= */
/* МАША: ТОЧЕЧНЫЕ ФИКСЫ ПОСЛЕ СБРОСА СТИЛЕЙ  */
/* ========================================= */

/* 1. Возвращаем к жизни крупные цифры в нумерованном списке */
.article-content ol.styled-number-list li::before {
    content: counter(my-counter) !important;
    display: flex !important;
}

/* 2. Принудительно делаем текст на золотой кнопке белым */
.lead-form-section .btn-secondary {
    color: #ffffff !important;
}

/* На всякий случай защищаем и вторую кнопку (прозрачную) при наведении */
.lead-form-section .btn-outline-secondary:hover {
    color: #ffffff !important;
    background-color: var(--color-secondary) !important;
}

/* ========================================= */
/* МАША: ОГЛАВЛЕНИЕ СТАТЬИ (TOC)             */
/* ========================================= */

#article-toc {
    background: #fdfdfc !important; /* Делаем фон чуть чище и контрастнее */
    border: 1px solid rgba(35, 57, 47, 0.1) !important; /* Меняем бледную рамку на строгую зеленоватую */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important; /* Легкий объем */
}

#article-toc ul li a {
    color: var(--color-primary) !important; /* Жестко возвращаем глубокий зеленый цвет тексту */
    font-weight: 500 !important; /* Делаем текст чуть плотнее */
    border-bottom: 1px solid rgba(35, 57, 47, 0.2) !important; /* Аккуратное подчеркивание */
    text-decoration: none !important; /* Убиваем стандартное подчеркивание браузера */
    transition: all 0.3s ease !important;
}

#article-toc ul li a:hover {
    color: var(--color-secondary) !important; /* Золото появляется только при наведении */
    border-bottom-color: var(--color-secondary) !important;
    padding-left: 5px !important; /* Легкий сдвиг вправо для динамики */
}
/* End */


/* Start:/local/templates/eco_26/css/article_content.css?17768554891995*/
/* --- ТИПОГРАФИКА СТАТЕЙ (Eco L'epnina Style) --- */

.article-content {
    font-family: var(--font-family-base, "EB Garamond", serif);
    font-size: 1.25rem; /* Крупный, читаемый шрифт */
    line-height: 1.7;
    color: var(--color-text-main, #142D23);
    max-width: 850px;
    margin: 0 auto;
}

/* Заголовки внутри статьи */
.article-content h2 {
    font-size: 2rem;
    color: var(--color-primary, #23392F);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
}

/* Абзацы и отступы */
.article-content p {
    margin-bottom: 1.8rem;
}

/* Списки */
.article-content ul, .article-content ol {
    margin-bottom: 2rem;
}

.article-content li {
    margin-bottom: 0.8rem;
}

.article-content ul li {
    list-style: none;
    position: relative;
}

.article-content ul li::before {
    content: "—";
    position: absolute;
    left: -1.5rem;
    color: var(--color-secondary, #b99961);
}

/* Цитаты */
.article-content blockquote {
    margin: 3rem 0;
    padding: 2rem;
    border-left: 3px solid var(--color-secondary, #b99961);
    background: rgba(185, 153, 97, 0.05);
    font-style: italic;
    font-size: 1.4rem;
}

/* Картинки внутри текста */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Ссылки */
.article-content a {
    color: var(--color-secondary, #b99961);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.3s;
}

.article-content a:hover {
    opacity: 0.8;
    color: var(--color-primary, #23392F);
}

/* Фикс для мобилок */
@media (max-width: 768px) {
    .article-content {
        font-size: 1.15rem;
    }
    .article-content h2 {
        font-size: 1.6rem;
    }
}

/* End */


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

/* Фикс для 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);
    }
}

/* End */


/* Start:/local/templates/eco_26/components/bitrix/catalog.section.list/albums_carousel/style.css?17771876007226*/
.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;
}
/* End */
/* /local/templates/eco_26/css/blog.css?177685548917650 */
/* /local/templates/eco_26/css/article_content.css?17768554891995 */
/* /local/templates/eco_26/components/bitrix/news.list/articles_carousel/style.css?17768554894024 */
/* /local/templates/eco_26/components/bitrix/catalog.section.list/albums_carousel/style.css?17771876007226 */
