﻿/* ==========================================================================
   1. ИМПОРТ ФИРМЕННЫХ ШРИФТОВ И СИСТЕМНЫЙ СБРОС (BOX-SIZING)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

/* Глобальный сброс для всех компонентов каталога во избежание конфликтов */
.categories-section *,
.catalog-filters *,
.products-grid *,
.pagination *,
.product-page * {
    box-sizing: border-box;
}

/* Общий ограничитель ширины для монолитного выравнивания всех блоков */
.categories-section,
.catalog-filters,
.products-grid,
.pagination,
.product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

/* ==========================================================================
   2. БЛОК КАТЕГОРИЙ ТЕХНИКИ (CATEGORIES SECTION)
   ========================================================================== */
.categories-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.categories-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    color: #1e293b;
    margin: 0 0 20px 0;
    letter-spacing: 0.02em;
}

/* Сетка категорий - 4 колонки в ряд на десктопе */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
}

/* Карточка-папка */
.category-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Эффект при наведении на категорию - деликатный фирменный тинт */
.category-card > a:hover {
    background-color: #f0f9ff;
    border-color: #3CB5F6;
}

.category-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.category-card > a:hover h3 {
    color: #3CB5F6;
}

/* Умный селектор для тега <p>: включается в работу ТОЛЬКО если внутри есть контент */
.category-card p:not(:empty) {
    display: block;
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* Если тег пустой - полностью изолируем его из верстки */
.category-card p:empty {
    display: none;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   3. ГОРИЗОНТАЛЬНЫЕ ТЕГОВЫЕ ФИЛЬТРЫ (CATALOG FILTERS)
   ========================================================================== */
.catalog-filters {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 40px;
}

.catalog-filters h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    color: #1e293b;
    margin: 0 0 20px 0;
    letter-spacing: 0.02em;
}

/* Разделение групп фильтров */
.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 10px 0;
    letter-spacing: 0.03em;
}

.filter-engine,
.filter-capacity {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Стилизация кнопок фильтра */
.filter-engine a,
.filter-capacity a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.filter-engine a:hover,
.filter-capacity a:hover {
    color: #3CB5F6;
    border-color: #3CB5F6;
    background: #f0f9ff;
}

/* Активное состояние кнопки */
.filter-engine a.active,
.filter-capacity a.active {
    background: #3CB5F6;
    color: #ffffff;
    border-color: #3CB5F6;
    cursor: default;
    box-shadow: 0 4px 6px -1px rgba(60, 181, 246, 0.2);
}

/* ==========================================================================
   4. СЕТКА КАТАЛОГА ТОВАРОВ (PRODUCTS GRID)
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 30px;
    row-gap: 40px;
    margin-bottom: 40px;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card > a:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 
                0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

.product-card > a:hover h3 {
    color: #3CB5F6;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    width: 100%;
    background: #ffffff;
    padding: 15px;
    margin-bottom: 20px;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #94a3b8;
    text-transform: uppercase;
    line-height: 1.35;
    height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 16px 0;
}

/* Выделение модели */
.product-card h3 .prod-model {
    font-weight: 700;
    color: #1e293b;
    transition: color 0.2s ease;
    display: inline-block;
}

.product-card > a:hover h3 .prod-model {
    color: #3CB5F6;
}

/* Оптимизированный блок технических характеристик на плитках */
.product-specs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.spec-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
}

.spec-lbl {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.spec-dots {
    flex-grow: 1;
    border-bottom: 1px dotted #cbd5e1;
    margin: 0 10px;
    position: relative;
    top: -4px;
}

.spec-val-container {
    display: flex;
    align-items: baseline;
    gap: 3px;
    text-align: right;
}

.spec-val {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    font-variant-numeric: tabular-nums; 
    transition: color 0.25s ease;
}

.spec-unit {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}

.product-card > a:hover .spec-val {
    color: #3CB5F6;
}

.product-card > a:hover .spec-dots {
    border-bottom-color: #94a3b8;
}

/* ==========================================================================
   5. ПАГИНАЦИЯ (PAGINATION)
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.pagination nav {
    display: block;
}

ul.seNavigator {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
    align-items: center;
}

ul.seNavigator li.pagen a,
ul.seNavigator li.pagen span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

ul.seNavigator li.pagen a:hover {
    color: #3CB5F6;
    border-color: #3CB5F6;
    background: #f0f9ff;
}

ul.seNavigator li.pagen.active span.pagenactive {
    color: #ffffff;
    background: #3CB5F6;
    border-color: #3CB5F6;
    cursor: default;
}

ul.seNavigator li.pagen.disabled span {
    color: #cbd5e1;
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* ==========================================================================
   6. ГЛОБАЛЬНАЯ КАРТОЧКА ТОВАРА (ДЕТАЛЬНАЯ СТРАНИЦА)
   ========================================================================== */
.product-page {
    margin: 40px auto;
}

.product-main-title {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 400;
    color: #94a3b8;
    text-transform: uppercase;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 24px;
    letter-spacing: 0.01em;
}

.product-main-title .prod-model {
    font-weight: 700;
    color: #1e293b;
}

.product-main-title:hover .prod-model {
    color: #3CB5F6;
    transition: color 0.2s ease;
}

/* Двухколоночный макет карточки */
.product-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

/* ==========================================================================
   7. УЛУЧШЕННЫЙ БЛОК ГАЛЕРЕИ ТОВАРА (ФОТО + СКРОЛЛИРУЕМАЯ ЛЕНТА)
   ========================================================================== */
.product-gallery-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

/* Оболочка слайдера миниатюр с управляющими стрелками */
.thumbs-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 90px;
    height: 420px; /* СТРОГО СОВПАДАЕТ С ВЬЮПОРТОМ ДЛЯ ИСКЛЮЧЕНИЯ ЛЮБЫХ СДВИГОВ И ПЕРЕСЧЕТОВ */
    flex-shrink: 0;
    user-select: none;
}

/* Стилизация кнопок навигации */
.thumb-scroll-arrow {
    width: 100%;
    height: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.thumb-scroll-arrow:hover {
    background: #f0f9ff;
    border-color: #3CB5F6;
    color: #3CB5F6;
}

.thumb-scroll-arrow:active {
    transform: scale(0.95);
}

/* Колонка вертикальных миниатюр слева */
.gallery-vertical-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    flex: 1 1 0%; /* Занимает всю свободную высоту родительского слайдера нативно */
    min-height: 0; /* Предотвращает неконтролируемое растягивание флекс-элемента */
    overflow-y: scroll;
    scroll-behavior: smooth;
    padding-right: 0;
    
    /* Скрытие дефолтных полос прокрутки */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.gallery-vertical-thumbs::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.thumb-item {
    width: 100%;
    aspect-ratio: 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.thumb-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumb-item:hover {
    border-color: #3CB5F6;
    background: #f0f9ff;
}

.thumb-item.active {
    border-color: #3CB5F6;
    box-shadow: 0 0 0 2px rgba(60, 181, 246, 0.15);
}

/* Главный блок вьюпорта */
.gallery-main-viewport {
    flex-grow: 1;
    height: 420px; /* Фиксированная высота вьюпорта для предотвращения скачков и перерасчетов */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gallery-main-viewport a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 24px;
    text-decoration: none;
    cursor: zoom-in;
}

.gallery-main-viewport img {
    height: 100%; /* Жесткое ограничение по высоте для исключения скачков */
    width: auto;   /* Автоматическая пропорциональная ширина */
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.15s ease;
}

/* Лупа в углу */
.zoom-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-main-viewport:hover .zoom-badge {
    background: #3CB5F6;
    transform: scale(1.1);
}

/* ==========================================================================
   8. ПРАВАЯ ПАНЕЛЬ И ХАРАКТЕРИСТИКИ
   ========================================================================== */
.product-details-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
}

.details-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #64748b;
    font-size: 14px;
}

.detail-value {
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
}

/* Раздел характеристик */
.product-specs-section {
    margin-top: 60px;
    border-top: 1px solid #e2e8f0;
    padding-top: 40px;
}

.product-specs-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0f172a;
    margin-bottom: 30px;
}

.specs-groups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.spec-group-block h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #3CB5F6;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.spec-group-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.spec-detail-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.spec-name {
    font-size: 14px;
    color: #475569;
}

.spec-leader-dots {
    flex-grow: 1;
    border-bottom: 1px dotted #cbd5e1;
    margin: 0 10px;
}

.spec-value {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.spec-unit {
    font-size: 12px;
    color: #94a3b8;
}


/* ==========================================================================
   10. ГЛАВНЫЙ ДВУХКОЛОНОЧНЫЙ БЛОК (PRODUCT MAIN)
   ========================================================================== */
.product-main-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Левая: фото, Правая: описание */
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

/* ЛЕВАЯ КОЛОНКА: ВИЗУАЛ */
.product-visual-column {
    width: 100%;
}

.product-image-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 480px;
    overflow: hidden;
}

.product-hero-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Картинка не деформируется */
}

/* ПРАВАЯ КОЛОНКА: ИНФОРМАЦИЯ */
.product-info-column {
    display: flex;
    flex-direction: column;
}

.product-detail-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    color: #0f172a;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.product-short-description {
    font-size: 15px;
    line-height: 1.6;
    color: #475569; /* Slate/600 для легкой читаемости */
    margin: 0 0 30px 0;
}

/* ГРУППА КНОПОК CTA */
.product-cta-actions-group {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

/* Главная залитая кнопка */
.cta-btn.btn-filled {
    background: #3CB5F6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(60, 181, 246, 0.25);
}

.cta-btn.btn-filled:hover {
    background: #17a2f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(60, 181, 246, 0.35);
}

/* Второстепенная контурная кнопка */
.cta-btn.btn-outline {
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.cta-btn.btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-2px);
}

.cta-btn:active {
    transform: translateY(0);
}

/* БЛОК СКАЧИВАНИЯ PDF */
.pdf-download-block-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    max-width: 450px;
}

.pdf-link-container {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.pdf-icon-box {
    width: 44px;
    height: 44px;
    background: #fee2e2;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.svg-pdf-icon {
    width: 26px;
    height: 26px;
    fill: #ef4444; /* Фирменный красный цвет PDF */
}

.pdf-meta-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdf-filename {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.pdf-link-container:hover .pdf-filename {
    color: #3CB5F6;
}

.pdf-filesize {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* ==========================================================================
   11. СЕКЦИОННЫЕ ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ (ЗАГОЛОВКИ БЛОКОВ)
   ========================================================================== */
.section-block-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    color: #0f172a;
    margin: 40px 0 8px 0;
    letter-spacing: 0.02em;
}

.title-decor-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}

.title-decor-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    display: inline-block;
}

.title-decor-dots span:first-child {
    background: #3CB5F6; /* Первая точка всегда акцентная */
}

/* ==========================================================================
   12. ТАБЛИЦА ХАРАКТЕРИСТИК (CHARACTERISTICS)
   ========================================================================== */
.characteristics-grid-table {
    display: flex;
    flex-direction: column;
    max-width: 900px; /* Расположение по центру, не на всю ширину (Пункт 4) */
    margin: 0 auto 15px auto;
}

.spec-row-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.spec-row-lbl {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.spec-group-tag {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 4px;
}

.spec-row-dots {
    flex-grow: 1;
    border-bottom: 1px dotted #cbd5e1;
    margin: 0 12px;
    position: relative;
    top: -4px;
}

.spec-row-val {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
    white-space: nowrap;
}

.spec-row-unit {
    color: #94a3b8;
    font-weight: 500;
    font-size: 12px;
}

/* ИНТЕРАКТИВНЫЙ ВЫЕЗД ДОПОЛНИТЕЛЬНЫХ ХАРАКТЕРИСТИК */
.specs-hidden-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.characteristics-toggle-box {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 40px;
}

.se-button.button-secondary {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.se-button.button-secondary:hover {
    border-color: #3CB5F6;
    color: #3CB5F6;
    background: #f0f9ff;
}

.svg-chevron-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* ==========================================================================
   13. ОСОБЕННОСТИ МОДЕЛИ (UNIQUE FEATURES)
   ========================================================================== */
.features-industrial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.feature-industrial-card {
    background: #f8fafc; /* Легкая серая плашка на всю ширину (Пункт 5) */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    transition: border-color 0.2s;
}

.feature-industrial-card:hover {
    border-color: #cbd5e1;
}

.feature-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.feature-group-en-key {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.feature-group-ru-title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: #0f172a;
    margin: 0;
}

.feature-items-list {
    margin: 0;
    padding: 0 0 0 16px;
    color: #475569;
}

.feature-items-list li {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.feature-items-list li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   14. ПРЕИМУЩЕСТВА (KEY ADVANTAGES)
   ========================================================================== */
.advantages-two-columns-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Две колонки (Пункт 6) */
    gap: 30px;
    margin-bottom: 40px;
}

.advantage-row-card {
    display: flex;
    gap: 16px;
    align-items: start;
}

.advantage-icon-column {
    flex-shrink: 0;
    margin-top: 2px;
}

.svg-checkmark-blue {
    width: 24px;
    height: 24px;
}

.svg-circle-bg {
    fill: #f0f9ff;
    stroke: #3CB5F6;
    stroke-width: 1.5;
}

.svg-path-check {
    fill: none;
    stroke: #3CB5F6;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.advantage-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.advantage-sub-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #64748b;
}

.advantage-sub-list li {
    font-size: 13px;
    line-height: 1.5;
}

/* ==========================================================================
   15. АДАПТИВНЫЕ МЕДИА-ЗАПРОСЫ
   ========================================================================== */

@media (max-width: 1199px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .products-grid {
        column-gap: 20px;
        row-gap: 30px;
    }
    .product-image {
        height: 240px;
    }
}

/* Планшетная версия */
@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .catalog-filters {
        padding: 20px;
    }
    .product-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-main-container {
        grid-template-columns: 1fr; /* Колонки встают в стек */
        gap: 30px;
    }
    
    .product-image-wrapper {
        height: 380px;
    }
    
    .features-industrial-grid {
        grid-template-columns: 1fr;
    }
}

/* Мобильная версия */
@media (max-width: 575px) {
    .categories-section,
    .catalog-filters,
    .products-grid,
    .pagination,
    .product-page {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
        row-gap: 16px;
    }
    
    .category-card > a {
        padding: 16px;
    }
    
    .catalog-filters {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .filter-engine,
    .filter-capacity {
        gap: 6px;
    }
    
    .filter-engine a,
    .filter-capacity a {
        padding: 10px 14px;
        font-size: 14px;
        flex-grow: 1;
    }
    
    .product-card > a {
        padding: 16px;
    }
    
    .product-image {
        height: 220px;
        margin-bottom: 12px;
    }
    
    .product-card h3 {
        font-size: 16px;
        height: auto;
        max-height: 44px;
    }
    
    .pagination {
        margin: 30px 0;
    }

    .product-main-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .product-detail-title {
        font-size: 26px;
    }
    
    .product-image-wrapper {
        height: 280px;
        padding: 15px;
    }
    
    .product-cta-actions-group {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-btn {
        width: 100%; /* Кнопки растягиваются на всю ширину экрана */
    }
    
    .advantages-two-columns-grid {
        grid-template-columns: 1fr;
    }
    
    .spec-row-lbl, .spec-row-val {
        font-size: 13px;
    }
    
    .spec-row-dots {
        margin: 0 6px;
    }

    /* Мобильный горизонтальный скролл миниатюр */
    .product-gallery-layout {
        flex-direction: column-reverse;
        gap: 12px;
    }
    
    .gallery-vertical-thumbs {
        flex-direction: row;
        width: 100%;
        max-height: none !important;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 6px;
        padding-right: 0;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Скрытие стрелок прокрутки на мобильных устройствах */
    .thumb-scroll-arrow {
        display: none !important;
    }
    
    .thumbs-slider-container {
        width: 100%;
        flex-direction: row;
        height: auto !important; /* Сброс фиксированной высоты на мобильных устройствах */
    }

    /* Кастомный горизонтальный скроллбар */
    .gallery-vertical-thumbs::-webkit-scrollbar {
        height: 5px;
    }
    
    .thumb-item {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .gallery-main-viewport {
        border-radius: 6px;
        height: 280px; /* Стабильная высота на мобильных */
        padding: 15px;
    }
    
    .gallery-main-viewport img {
        height: 100%;
        width: auto;
        max-width: 100%;
    }
    
    .specs-groups-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==========================================================================
   КНОПКА "ПОКАЗАТЬ ЕЩЕ" (AJAX LOAD MORE)
   ========================================================================== */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 25px;
    width: 100%;
}

#loadMoreProductsBtn {
    padding: 12px 36px;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    color: #3CB5F6;
    background: #ffffff;
    border: 2px solid #3CB5F6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#loadMoreProductsBtn:hover {
    background: #3CB5F6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(60, 181, 246, 0.25);
    transform: translateY(-2px);
}

/* ==========================================================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ КАРТОЧЕК (AJAX STAGGER EFFECT)
   ========================================================================== */
@keyframes fadeInUpAJAX {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ajax-loaded-card {
    opacity: 0; /* Скрываем до начала анимации */
    animation: fadeInUpAJAX 1.0s cubic-bezier(0.3, 1, 0.6, 1) forwards;
}
