.products article .text sub, .products article .text sup {
    margin-right: 0!important;
}
.ya-share2__container_size_m .ya-share2__badge .ya-share2__icon{
    background-size: 40px 40px!important;
}
.contact .contact-block {
    margin-top: 25px!important;
}

/* === Стили для кнопки "Заказать звонок" в меню === */
.call-order-button {
    margin-left: auto !important;
    padding-left: 30px !important;
}

.call-order-button a {
    background-color: #de0200 !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    margin-left: 20px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(222, 2, 0, 0.3) !important;
    border: 2px solid transparent !important;
    position: relative !important;
}

.call-order-button a:hover {
    background-color: #b30100 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(222, 2, 0, 0.5) !important;
    border-color: #de0200 !important;
}
.call-order-button a::after {
    background-color: transparent !important;

}

.call-order-button a:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(222, 2, 0, 0.4) !important;
}

/* Анимация пульсации для привлечения внимания */
@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(222, 2, 0, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(222, 2, 0, 0.6);
    }
    100% {
        box-shadow: 0 2px 8px rgba(222, 2, 0, 0.3);
    }
}

.call-order-button a {
    animation: pulse 2s infinite;
}

.call-order-button a:hover {
    animation: none;
}

/* === Стили карточек товаров === */
.products-category {
    padding: 0 0;
}

.products article {
    margin-bottom: 30px;
    position: relative;
}

.products article .figure-grid {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: #fff;
}

.products article:hover .figure-grid {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.products article .figure-grid .image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.products article .figure-grid .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.products article:hover{
    transform: scale(1.05);
}

.products article .figure-grid .text {
    text-align: center;
}

.products article .figure-grid .text .title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products article .figure-grid .text .title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.products article .figure-grid .text .title a:hover {
    color: #c41e3a;
}

.products article .figure-grid .text sup {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #c41e3a;
    margin-right: 0 !important;
}

.products article .figure-grid .redblock {
    width: 50px;
    height: 3px;
    background: #c41e3a;
    margin: 15px auto 0;
}

/* === Кнопка "Подробнее" === */
.products article .btn-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: fit-content;
    background: #00000082;
    border: none;
    color: white;
    z-index: 20;
    transform: scale(1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    padding: 12px;
    text-align: center;
}

/* Article должен быть позиционирован относительно */
.products article {
    position: relative;
}

.products article:hover .btn-add {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.02);
}

.products article .btn-add:hover {
    background: #2c2c2c6e;
    transform: scale(1.1);
}

/* === Гарантийный знак === */
.products article .figure-grid .garant {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.products article .figure-grid .garant img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

/* === Кнопка просмотра === */
.products article .action-links {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.products article .action-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 1;
}

.products article:hover .action-btn {
    opacity: 1;
}

.products article .action-btn:hover {
    background: #c41e3a;
    color: white;
    transform: scale(1.1);
}

/* === Лейблы === */
.products article .label {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 5;
}

.products article .label-info {
    background: #17a2b8;
    color: white;
}

.products article .label-warning {
    background: #ffc107;
    color: #212529;
    top: 50px;
    font-size: 11px;
    max-width: 150px;
    line-height: 1.2;
}

/* === Responsive === */
@media (max-width: 767px) {
    .products-category {
        padding: 20px 0;
    }
    
    .category-header h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .breadcrumbs {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .breadcrumbs .separator {
        margin: 0 5px;
    }
    
    .products article .figure-grid .image {
        height: 200px;
    }
    
    /* .products article .figure-grid .text {
        padding: 15px 10px;
    } */
    
    .products article .figure-grid .text .title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .products article .figure-grid .text sup {
        font-size: 12px;
        margin-top: 8px;
    }
    
    .products article .figure-grid .garant img {
        width: 50px !important;
    }
    
    .products article .btn-add {
        position: absolute !important;
        width: 100% !important;
        height: fit-content !important;
        font-size: 13px !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        opacity: 1 !important;
        transform: scale(1) !important;
        z-index: 20 !important;
        border: none !important;
        color: white !important;
        cursor: pointer !important;
        padding: 10px !important;
        text-align: center !important;
        display: block !important;
        text-decoration: none !important;
    }
    
    .products article .action-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .products article .label-warning {
        font-size: 10px;
        padding: 3px 6px;
        max-width: 120px;
    }
    
    /* На мобильных показываем эффекты без hover */
    .products article .garant {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    
    .products article .action-btn {
        opacity: 0.8;
        transform: scale(1);
    }
}

@media (max-width: 575px) {
    .category-header h1 {
        font-size: 20px;
    }
    
    .breadcrumbs {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .breadcrumbs .separator {
        display: none;
    }
    
    .products article .figure-grid .image {
        height: auto !important;
    }
    
    /* .products article .figure-grid .text {
        padding: 12px 8px;
    } */
    
    .products article .figure-grid .text .title {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .products article .figure-grid .text sup {
        font-size: 11px;
    }
    
    .products article .figure-grid .garant img {
        width: 40px !important;
    }
    
    .products article .btn-add {
        position: absolute !important;
        width: 100% !important;
        height: fit-content !important;
        font-size: 12px !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        opacity: 1 !important;
        transform: scale(1) !important;
        z-index: 20 !important;
        border: none !important;
        color: white !important;
        cursor: pointer !important;
        padding: 8px 12px !important;
        text-align: center !important;
        display: block !important;
        text-decoration: none !important;
    }
}

/* === Tablet стили === */
@media (min-width: 768px) and (max-width: 991px) {
    .products article .figure-grid .image {
        height: 240px;
    }
    
    .products article .figure-grid .text .title {
        font-size: 15px;
    }
    
    .products article .figure-grid .garant img {
        width: 70px;
    }
}

/* === Breadcrumbs === */
.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #c41e3a;
}

.breadcrumbs .separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumbs .current {
    color: #c41e3a;
    font-weight: 600;
}

.category-description {
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    line-height: 1.6;
}

/* === No Products === */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products p {
    font-size: 18px;
    margin-bottom: 20px;
}

.no-products .btn-primary {
    background: #c41e3a;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* === Улучшенные hover эффекты === */
.products article .garant {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.products article:hover .garant,
.products article.hovered .garant,
.products article .garant.show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.products article .btn-add {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.products article:hover .btn-add,
.products article.hovered .btn-add,
.products article .btn-add.show {
    opacity: 1;
    transform: scale(1.02);
}

.products article .action-btn {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.products article:hover .action-btn,
.products article.hovered .action-btn,
.products article .action-btn.show {
    opacity: 1;
    transform: scale(1.1);
}

/* === Состояния загрузки === */
.products.loading {
    position: relative;
}

.products.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 1000;
    pointer-events: none;
}

.products.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #c41e3a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* === Анимации появления === */
.products article {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.products article.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* === Задержки для каскадной анимации === */
.products article:nth-child(3n+1) { transition-delay: 0.1s; }
.products article:nth-child(3n+2) { transition-delay: 0.2s; }
.products article:nth-child(3n+3) { transition-delay: 0.3s; }
.products article:nth-child(n+4) { transition-delay: calc(0.1s + (var(--index, 0) * 0.05s)); }

/* === Пульсация для новых товаров === */
.products article.new-product .figure-grid::before {
    content: 'НОВИНКА';
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4757;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 20;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* === Улучшенная галерея === */
.action-links {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.products article:hover .action-links {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* === Эффект при клике === */
.products article .btn-add:active {
    transform: scale(0.95) translateY(0);
}

.products article .action-btn:active {
    transform: scale(0.9);
}

/* === Индикатор наличия === */
.products article.in-stock .figure-grid::after {
    content: '✓';
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 25px;
    height: 25px;
    background: #2ed573;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 15;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.products article.in-stock:hover .figure-grid::after {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s;
}

/* === Стили для публикаций (статей) === */

/* Архив публикаций (список) */
.blog.blog-block article {
    margin-bottom: 15px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog.blog-block article:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.blog.blog-block article a {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog.blog-block article .image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.blog.blog-block article .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog.blog-block article:hover .image img {
    transform: scale(1.05);
}

.blog.blog-block article .entry {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog.blog-block article .entry .title {
    margin-bottom: 15px;
    flex: 1;
}

.blog.blog-block article .entry .title h2 {
    font-size: 18px;
    line-height: 1.4;
    color: #fff;
    margin: 0;
    font-weight: 600;
}

.blog.blog-block article .entry .description {
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.blog.blog-block article .show-more {
    padding: 0 20px 20px;
}

.blog.blog-block article .show-more .btn {
    width: 100%;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.blog.blog-block article:hover .show-more .btn {
    background: #c0392b;
}

/* Отдельная публикация */
.blog.blog_info {
    padding: 40px 0;
}

.blog-post {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.blog-post-title {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 30px;
}

.blog-post-title .blog-title {
    font-size: 32px;
    line-height: 1.3;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-post-title .blog-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 400;
    margin-bottom: 20px;
}

.blog-meta {
    margin-bottom: 20px;
}

.blog-meta .date {
    color: #999;
    font-size: 14px;
}

.blog-meta .date i {
    margin-right: 5px;
}

.blog-post-image {
    text-align: center;
    margin-bottom: 30px;
}

.blog-post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.blog-post-text {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.blog-post-text h2 {
    font-size: 26px;
    margin: 30px 0 20px;
    color: #333;
    font-weight: 600;
}

.blog-post-text h3 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: #333;
    font-weight: 600;
}

.blog-post-text p {
    margin-bottom: 20px;
}

.blog-post-text ul, .blog-post-text ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-post-text li {
    margin-bottom: 8px;
}

.blog-post-text strong {
    font-weight: 600;
    color: #333;
}

.blog-navigation {
    margin: 40px 0 30px;
    padding: 30px 0;
    border-top: 2px solid #f8f9fa;
}

.blog-navigation a {
    display: block;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.blog-navigation a:hover {
    background: #e74c3c;
    color: white;
    text-decoration: none;
}

.blog-navigation a span {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.blog-navigation a small {
    font-size: 12px;
    opacity: 0.8;
}

.back-to-list {
    margin-top: 30px;
}

.btn-outline-main {
    background: transparent;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-main:hover {
    background: #e74c3c;
    color: white;
    text-decoration: none;
}

/* Пагинация для публикаций */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.pagination-nav .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-nav .page-numbers:hover,
.pagination-nav .page-numbers.current {
    background: #e74c3c;
    color: white;
    text-decoration: none;
}

/* Адаптивность для публикаций */
@media (max-width: 768px) {
    .blog-post {
        padding: 20px;
        margin: 0 10px;
    }
    
    .blog-post-title .blog-title {
        font-size: 24px;
    }
    
    .blog-post-title .blog-subtitle {
        font-size: 16px;
    }
    
    .blog.blog-block article .entry {
        padding: 15px;
    }
    
    .blog.blog-block article .show-more {
        padding: 0 15px 15px;
    }
    
    .blog.blog-block article .image {
        height: 200px;
    }
}

/* Placeholder для отсутствующих изображений */
.no-image {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

/* ===================================
   СТИЛИ ДЛЯ ВИДЕОБЛОГА
   =================================== */

/* Основные стили видеоблога */
.blog.videoblog {
    padding: 0 0;
}

.blog.videoblog article {
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: #fff;
}

.blog.videoblog article:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

/* Видео контейнер */
.video_ {
    position: relative;
    overflow: hidden;
    background: #000;
    height: 250px;
}

.video_ iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Превью с кнопкой play - НЕ ИСПОЛЬЗУЕТСЯ (теперь только iframe) */
/*
.video-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-link:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 48px;
    opacity: 0.9;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.video-link:hover .video-play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}
*/

/* Информация о видео */
.entry.entry-table {
    padding: 20px;
}

.entry.entry-table .title {
    margin-bottom: 10px;
}

.entry.entry-table .title h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    color: #fff;
}

.entry.entry-table .title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry.entry-table .title a:hover {
    color: #b8860b;
}

.entry.entry-table .description {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Мета информация видео */
.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #888;
}

.video-meta .date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-meta .youtube-link {
    color: #ff0000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.video-meta .youtube-link:hover {
    color: #cc0000;
}

/* Отдельная страница видео */
.video-single {
    padding: 40px 0;
}

.video-post {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.video-post-title {
    text-align: center;
    margin-bottom: 30px;
}

.video-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.video-subtitle {
    color: #666;
    font-weight: normal;
    margin-bottom: 20px;
}

/* Видеоплеер на отдельной странице */
.video-player {
    margin-bottom: 30px;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    overflow: hidden;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Текст видео */
.video-post-text {
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 16px;
}

.video-post-text h2,
.video-post-text h3,
.video-post-text h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #333;
}

.video-post-text p {
    margin-bottom: 15px;
}

/* Теги видео */
.video-tags {
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.video-tags .tags a {
    display: inline-block;
    padding: 5px 10px;
    margin: 2px;
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    border-radius: 15px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.video-tags .tags a:hover {
    background: #b8860b;
    color: white;
}

/* Навигация между видео */
.video-navigation {
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.video-navigation .nav-previous,
.video-navigation .nav-next {
    margin-bottom: 15px;
}

.video-navigation a {
    display: block;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.video-navigation a:hover {
    background: #b8860b;
    color: white;
}

.video-navigation span {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.video-navigation small {
    font-size: 12px;
    opacity: 0.8;
}

/* Социальные кнопки */
.social-share {
    text-align: center;
    margin-bottom: 30px;
}

.social-share h4 {
    margin-bottom: 15px;
    color: #333;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-social {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-social:hover {
    transform: translateY(-2px);
    color: white;
}

.btn-facebook { background: #3b5998; }
.btn-facebook:hover { background: #2d4373; }

.btn-vk { background: #45668e; }
.btn-vk:hover { background: #365a7b; }

.btn-telegram { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    text-align: center;
    gap: 6px;
 }
 .btn-telegram .fa {
        font-size: 35px;
    }
.tg-link-header { background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%); }
.btn-telegram:hover {
                            background: linear-gradient(135deg, #0066aa 0%, #004488 100%);
                            transform: translateY(-2px);
                            box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
                            color: white;
                            text-decoration: none;
                        }

/* Анимация для привлечения внимания к Telegram кнопке */
                        @keyframes telegramPulse {
                            0% { box-shadow: 0 4px 12px rgba(0, 136, 204, 0.15); }
                            50% { box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3); }
                            100% { box-shadow: 0 4px 12px rgba(0, 136, 204, 0.15); }
                        }
                        
                        .btn-telegram {
                            animation: telegramPulse 3s ease-in-out infinite;
                        }
                        
                        .btn-telegram:hover {
                            animation: none;
                        }

.btn-youtube { background: #ff0000; }
.btn-youtube:hover { background: #cc0000; }

/* Кнопка возврата к списку */
.back-to-list {
    margin-bottom: 20px;
}

/* Адаптивность для видеоблога */
@media (max-width: 768px) {
    .video-title {
        font-size: 24px;
    }
    
    .video-post {
        padding: 20px 15px;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .video-navigation .row > div {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .video_ {
        height: 200px;
    }
    
    .video-thumbnail {
        height: 200px;
    }

    
}

/* ===================================
   СТИЛИ ДЛЯ INFINITE SCROLL
   =================================== */

/* Индикатор загрузки */
.loading-spinner {
    padding: 30px 0;
    text-align: center;
    color: #666;
}

.loading-spinner i {
    font-size: 24px;
    margin-right: 10px;
    color: #b8860b;
}

.loading-spinner span {
    font-size: 16px;
    vertical-align: middle;
}

/* Сообщение об окончании */
.end-of-content {
    padding: 30px 0;
    text-align: center;
    color: #888;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.end-of-content p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* Анимация появления новых элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog.videoblog article {
    transition: all 0.3s ease;
}

/* Плавное появление загружаемых элементов */
.blog.videoblog .col-sm-4 {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Улучшенная анимация для видео iframe */
.video_ iframe {
    transition: opacity 0.3s ease;
}

.video_:hover iframe {
    opacity: 0.9;
}

/* Улучшенный спиннер */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Отключаем изменение цвета фона в классе .contact.contact-single:after */
.contact.contact-single:after {
    background: none !important;
    display: none !important;
}

/* Адаптивные стили для контактных блоков */
.contact-info-responsive {
    position: relative;
    z-index: 10;
}

/* Десктоп - блоки поверх карты справа */
@media (min-width: 992px) {
    .contact-blocks-wrapper {
        position: absolute !important;
        top: 50% !important;
        right: 50px !important;
        transform: translateY(10%) !important;
        width: 350px !important;
        padding: 0 !important;
    }
    
    .contact-blocks-wrapper .contact-block-schedule,
    .contact-blocks-wrapper .contact-block-phone,
    .contact-blocks-wrapper .contact-block-social {
        width: 100% !important;
        padding: 0 !important;
        float: none !important;
    }
    
    #contacts {
        min-height: 600px !important;
    }
    
    #map {
        height: 600px !important;
    }
}

/* Планшет и мобильный - блоки под картой в сетке */
@media (max-width: 991px) {
    .contact-blocks-wrapper {
        position: static !important;
        background-color: #0d0f10;
        padding: 20px 15px !important;
        transform: none !important;
        width: 100% !important;
    }
    
    #map {
        position: static !important;
        height: 300px !important;
    }
    
    #map iframe {
        height: 300px !important;
    }
    
    .contact-blocks-wrapper .contact-block-schedule,
    .contact-blocks-wrapper .contact-block-phone {
        padding: 0 10px !important;
        margin-bottom: 15px !important;
    }
    
    .contact-blocks-wrapper .contact-block-social {
        padding: 0 0 !important;
    }
}

/* Мобильный - вертикальное расположение */
@media (max-width: 767px) {
    .contact-blocks-wrapper .contact-block-schedule,
    .contact-blocks-wrapper .contact-block-phone {
        width: 100% !important;
        padding: 0 !important;
        float: none !important;
    }
    
    .contact-inner-flex {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .contact-icon {
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
    
    .contact-text {
        text-align: center !important;
    }
}

/* Базовые стили для flex контейнеров */
.contact-inner-flex {
    display: flex;
    align-items: center;
    text-align: left;
}

.contact-icon {
    margin-right: 20px;
    font-size: 60px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.contact-text {
    flex: 1;
}

.contact-block-phone .contact-text {
    text-align: right;
}

.contact-block-schedule .contact-text {
    text-align: center;
}

@media (max-width: 767px) {
    .contact-block-phone .contact-text,
    .contact-block-schedule .contact-text {
        text-align: center !important;
    }
}

/* Социальные ссылки */
.social-links-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 45px;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 36px;
}

.social-link[href*="paper-plane"] i {
    font-size: 30px;
}

@media (max-width: 767px) {
    .social-link {
        width: 70px;
        height: 45px;
    }
    
    .social-link i {
        font-size: 36px;
    }
    
    .social-link[href*="paper-plane"] i {
        font-size: 16px;
    }
}

/* Hover эффекты для блоков контактов */
.contact-block-phone > div:hover,
.contact-block-schedule > div:hover,
.contact-block-social > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover эффекты для социальных кнопок */
.social-link:hover {
    background-color: rgba(255,255,255,0.2) !important;
    transform: scale(1.1);
}

.social-link[href*="facebook"]:hover {
    background-color: #3b5998 !important;
}

.social-link[href*="telegram"]:hover,
.social-link[href*="t.me"]:hover {
    background-color: #0088cc !important;
}

.social-link[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%) !important;
}

.social-link[href*="youtube"]:hover {
    background-color: #ff0000 !important;
}

.social-link[href*="mailto"]:hover {
    background-color: #4CAF50 !important;
}

/* Hover эффекты для телефонов */
a[href^="tel:"]:hover {
    color: #4CAF50 !important;
    transition: color 0.3s ease;
}

/* Секция контактов - общие стили */
#contacts {
    min-height: 400px;
}

/* === Принудительное отображение кнопок товаров на всех устройствах === */
.products article .btn-add {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 20 !important;
}

/* Убеждаемся, что article позиционирован правильно */
.products article {
    position: relative !important;
}

/* === Стили для категорий мебели с изображениями === */
.furniture-categories {
    margin: 30px 0;
}

.category-item {
    position: relative;
    min-height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background-size: 120% auto;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: local;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-size 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    
    /* Принудительная обрезка */
    contain: layout style paint;
    isolation: isolate;
}

.clickable-category {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    
    /* Эффект маски для изображения */
    -webkit-mask: 
        radial-gradient(circle at top, transparent 0%, black 0%);
    mask: 
        radial-gradient(circle at top, transparent 0%, black 0%);
    
    /* Принудительная обрезка содержимого */
    clip-path: inset(0);
    contain: layout style paint;
}

.clickable-category:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.clickable-category:active {
    transform: translateY(-1px) scale(1.005);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background-size: 130% auto;
}

.category-item:not(.clickable-category):hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.45) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background 0.3s ease;
}

.category-item:hover .category-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.category-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.category-content h4 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    line-height: 1.2;
}

.category-content h4 {
    color: white !important;
}

.category-content p {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 6px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    opacity: 0.95;
}

.category-content p:last-child {
    margin-bottom: 0;
}

/* Десктопная версия */
@media (min-width: 992px) {
    .category-item {
        min-height: 200px;
    }
    
    .category-content h4 {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .category-content p {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .category-overlay {
        padding: 25px;
    }
}

/* Планшетная версия */
@media (min-width: 768px) and (max-width: 991px) {
    .category-item {
        min-height: 190px;
    }
    
    .category-content h4 {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .category-content p {
        font-size: 16px;
        margin-bottom: 7px;
    }
    
    .category-overlay {
        padding: 22px;
    }
}

/* Мобильная версия */
@media (max-width: 767px) {
    .category-item {
        min-height: 160px;
        border-radius: 10px;
    }
    
    .category-overlay {
        padding: 18px;
    }
    
    .category-content h4 {
        font-size: 28px;
        margin-bottom: 10px;
        letter-spacing: 0.5px;
    }
    
    .category-content p {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .category-item {
        min-height: 140px;
        border-radius: 8px;
    }
    
    .category-overlay {
        padding: 15px;
    }
    
    .category-content h4 {
        font-size: 26px;
        margin-bottom: 8px;
    }
    
    .category-content p {
        font-size: 14px;
        line-height: 1.2;
        margin-bottom: 5px;
    }
    .products article {
    margin-bottom: 0 !important;
}
}

/* Дополнительные стили для компактности */
.furniture-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-content strong {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

/* Улучшенная читаемость на разных фонах */
.category-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* Анимации при прокрутке */
@media (prefers-reduced-motion: no-preference) {
    .category-item {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.5s ease forwards;
    }
    
    .category-item:nth-child(1) { animation-delay: 0.05s; }
    .category-item:nth-child(2) { animation-delay: 0.1s; }
    .category-item:nth-child(3) { animation-delay: 0.15s; }
    .category-item:nth-child(4) { animation-delay: 0.2s; }
    .category-item:nth-child(5) { animation-delay: 0.25s; }
    .category-item:nth-child(6) { animation-delay: 0.3s; }
    .category-item:nth-child(7) { animation-delay: 0.35s; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Адаптивные логотипы === */
.logo-mobile {
    display: block !important;
}

.logo-desktop {
    display: none !important;
}

/* Десктопные экраны - показывать desktop логотип */
@media (min-width: 768px) {
    .logo-mobile {
        display: none !important;
    }
    
    .logo-desktop {
        display: block !important;
    }
}

/* === Responsive navigation menu === */
/* Hide floating menu on screens smaller than 1200px */
@media (max-width: 1199px) {
    .navigation-main .floating-menu {
        display: none !important;
    }
}

/* Ensure floating menu is visible on screens 1200px and larger */
@media (min-width: 1200px) {
    .navigation-main .floating-menu {
        display: block !important;
    }
    
    /* Hide mobile menu button on large screens */
    .navigation-main .open-menu {
        display: none !important;
    }
}

/* Show mobile menu button only on small screens */
@media (max-width: 1199px) {
    .navigation-main .open-menu {
        display: block !important;
    }
    .navigation-main {
        height: 60px !important;
    }
    .navbar-fixed{
        height: 60px !important;   
    }
    .header-content{
        margin-top: 00px !important;
    }
}

/* === Custom Mobile Modal Menu Styles === */
.mobile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.mobile-modal-content {
    position: relative;
    width: 100%;
    min-height: 100%;
    background-color: #0c0c0c;
    padding: 20px;
    box-sizing: border-box;
}

.mobile-modal-close-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10001;
}

.mobile-modal-close {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    border-radius: 50%;
    cursor: pointer;
    text-align: center;
    line-height: 40px;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.mobile-modal-close:hover {
    background-color: #b30100;
    transform: scale(1.1);
}

.mobile-modal-body {
    padding-top: 80px;
    padding-bottom: 40px;
}

.mobile-modal-contact {
    text-align: center;
    margin-bottom: 40px;
}

.mobile-modal-categories {
    margin-bottom: 40px;
}

.mobile-modal-categories .categories {
    padding: 0 20px;
}

.mobile-modal-categories .categories figure {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #1a1a1a;
}


.mobile-modal-categories .categories figure i {
    font-size: 36px;
    color: #fff;
    margin-bottom: 10px;
    display: block;
}

.mobile-modal-categories .categories figcaption {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-modal-categories .categories a {
    text-decoration: none;
    color: inherit;
}

.mobile-modal-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
}

.mobile-modal-link {
    display: block;
    text-align: center;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 10px;
    text-decoration: none !important;
    color: #fff !important;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mobile-modal-link:hover {
    background-color: #de0200 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(222, 2, 0, 0.3);
    border-color: #de0200;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .mobile-modal-content {
        padding: 15px;
    }
    
    .mobile-modal-close-wrapper {
        top: 15px;
        right: 15px;
    }
    
    .mobile-modal-body {
        padding-top: 70px;
        padding-bottom: 30px;
    }
    
    .mobile-modal-categories .categories {
        padding: 0 10px;
    }
    
    .mobile-modal-categories .categories figure {
        margin-bottom: 20px;
        padding: 15px 5px;
    }
    
    .mobile-modal-categories .categories figure i {
        font-size: 28px;
    }
    
    .mobile-modal-categories .categories figcaption {
        font-size: 12px;
    }
    
    .mobile-modal-links {
        padding: 0 10px;
        gap: 15px;
    }
    
    .mobile-modal-link {
        padding: 15px;
        font-size: 16px;
    }
}

/* === Additional Mobile Modal Enhancements === */

/* Ensure modal is hidden during page transitions */
.mobile-modal-overlay.fade-out {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
}

/* Hide modal completely when not needed */
@media (min-width: 1200px) {
    .mobile-modal-overlay {
        display: none !important;
    }
}

/* Add loading state for links inside modal */
.mobile-modal-overlay a.loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
    position: relative !important;
}

.mobile-modal-overlay a.loading::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid transparent !important;
    border-top: 2px solid currentColor !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    transform: translateY(-50%) !important;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg) !important; }
    100% { transform: translateY(-50%) rotate(360deg) !important; }
}

/* Ensure smooth transitions for modal links */
.mobile-modal-overlay a {
    transition: all 0.3s ease !important;
}

.mobile-modal-overlay a:active {
    transform: scale(0.95) !important;
}

/* === Табсы (Полезные ссылки) - Мобильная адаптация === */
/* На мобильных устройствах описание всегда видимо */
@media (max-width: 768px) {
    /* Делаем figcaption всегда видимым на мобильных */
    .tabsy-wrapper .tabsy .tabsy-links figcaption {
        opacity: 1 !important;
        visibility: visible !important;
        bottom: 0 !important;
        transform: translateY(0) !important;
    }
    
    /* Убираем эффекты наведения на мобильных */
    .tabsy-wrapper .tabsy .tabsy-links figure:hover figcaption {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    /* Корректируем высоту элементов для лучшей читаемости */
    .tabsy-wrapper .tabsy .tabsy-links figure {
        min-height: 200px !important;
    }
    
    /* Улучшаем читаемость текста */
    .tabsy-wrapper .tabsy .tabsy-links figcaption .desc,
    .tabsy-wrapper .tabsy .tabsy-links figcaption .title,
    .tabsy-wrapper .tabsy .tabsy-links figcaption .date {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    }
}

/* На планшетах также показываем описание */
@media (min-width: 769px) and (max-width: 1024px) {
    .tabsy-wrapper .tabsy .tabsy-links figcaption {
        opacity: 0.9 !important;
        visibility: visible !important;
    }
}
.single-product-rassrochka{
    position: absolute;
    top: 0;
    right: 0;
}
.single-product-rassrochka img{
    width: 100px;
    height: auto;
}
@media (max-width: 460px) {
    .single-product-rassrochka{
    right: 0;
    top: 4.2%;
}
    .single-product-rassrochka img{
    width: 80px;
    height: auto;
}
}