/* ==========================================================================
   1. БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Arial', sans-serif; 
    color: #333; 
    line-height: 1.5; 
    background: #f4f4f4; 
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

:root {
    --primary-blue: #2c5f8a;
    --dark-blue: #1a3c57;
    --border-color: #ddd;
    --accent-orange: #e67e22;
    --light-bg: #f9f9f9;
    --text-gray: #666;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

.product-page {
    width:100%;
}

/* ==========================================================================
   2. ХЕДЕР (Общий для всех страниц)
   ========================================================================== */
header {
    background: #fff;
    border-bottom: 2px solid var(--primary-blue);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }

/* Логотип */
.logo-block { display: flex; align-items: center; gap: 15px; }
.logo-img { width: 65px; height: auto; display: block; }
.logo-text { 
    font-size: 16px; 
    font-weight: bold; 
    color: var(--primary-blue); 
    line-height: 1.2; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Навигация */
nav ul { display: flex; gap: 30px; }
nav a { font-weight: bold; color: #444; transition: 0.3s; }
nav a:hover, nav a.active { color: var(--primary-blue); }


/* ==========================================================================
   НАВИГАЦИЯ В ХЕДЕРЕ (С иконками)
   ========================================================================== */
header nav ul { 
    display: flex; 
    gap: 35px; /* Увеличили расстояние между пунктами для солидности */
    align-items: center; 
}

header nav a { 
    font-weight: bold; 
    color: #444; 
    transition: 0.3s; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-decoration: none;
    font-size: 17px; /* УВЕЛИЧИЛИ РАЗМЕР ШРИФТА (было 15px) */
}

/* Иконки в хедере (чуть крупнее, чтобы соответствовать тексту) */
header nav a::before {
    content: "";
    display: inline-block;
    width: 20px; /* Увеличили с 18px */
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7; 
    transition: opacity 0.3s, transform 0.3s;
}

header nav a:hover::before {
    opacity: 1;
    transform: translateY(-2px);
}

header nav a:hover, header nav a.active { 
    color: var(--primary-blue); 
}

/* Конкретные иконки */
header nav a[href="/index.php"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5f8a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

header nav a[href="/cat.html"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5f8a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3C/svg%3E");
}

header nav a[href="/about.html"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5f8a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

header nav a[href="/contacts.html"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5f8a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* Телефон */
/* ==========================================================================
   БЛОК КОНТАКТОВ В ХЕДЕРЕ (Телефон + Кнопка)
   ========================================================================== */
.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Выравниваем всё по правому краю */
    gap: 8px; /* Отступ между телефоном и кнопкой */
}

/* Телефон с иконкой */
/* Телефон с иконкой */
.header-phone {
    display: flex;
    align-items: center; /* Центрируем по вертикали */
    justify-content: flex-end; /* Прижимаем к правому краю */
    gap: 6px; /* Чуть уменьшили отступ между иконкой и текстом */
    font-size: 20px;
    font-weight: bold;
    color: var(--dark-blue);
    line-height: 1; /* Убираем лишнюю высоту строки, чтобы выровнять */
}

/* Иконка трубки */
.header-phone svg {
    width: 18px; /* Уменьшили размер (было 22px) */
    height: 18px;
    color: var(--primary-blue); /* Цвет иконки */
    flex-shrink: 0;
    
    /* Точная подгонка по вертикали (опускаем на 1-2 пикселя) */
    position: relative;
    top: -1px; 
    stroke-width: 2.5; /* Сделали линию чуть жирнее, чтобы не терялась */
}

/* Ссылка на телефон */
.header-phone a {
    color: var(--dark-blue);
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1; /* Убираем лишнюю высоту у текста */
}

.header-phone a:hover {
    color: var(--primary-blue);
}

/* Кнопка "Каталог продукции" (без изменений) */
.btn-header-catalog {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-header-catalog:hover {
    background-color: var(--primary-blue);
    color: #fff;
}

.btn-header-catalog svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}
/* ==========================================================================
   3. ФУТЕР (Общий для всех страниц)
   ========================================================================== */
footer { background: #222; color: #aaa; padding: 40px 0; font-size: 14px;  }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-col h4 { color: #fff; margin-bottom: 15px; }
.footer-col p { margin-bottom: 5px; }
.footer-col a { color: #aaa; transition: 0.2s; }
.footer-col a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 30px; border-top: 1px solid #444; padding-top: 20px; }

/* ==========================================================================
   4. ГЛАВНАЯ СТРАНИЦА (Hero)
   ========================================================================== */
.hero {
    position: relative; height: 90vh; background: #000;
    overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero video {
    position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%); z-index: 1; opacity: 0.6;
    object-fit: cover; /* Важно для пропорций видео */
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 800px; padding: 0 20px; }
.hero-content h1 { font-size: 36px; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.7); }
.hero-content p { font-size: 26px; margin-bottom: 30px; }

/* Кнопки (Общие) */
.btn {
    display: inline-block; background: var(--primary-blue); color: #fff;
    padding: 15px 40px; font-size: 18px; font-weight: bold; border-radius: 5px;
    transition: 0.3s; border: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--dark-blue); }

/* ==========================================================================
   5. ОБЩИЕ ЭЛЕМЕНТЫ КАТАЛОГА (Сетка, Заголовки)
   ========================================================================== */
/* Узкий блок с фоном */

.page-header { 
    position: relative; /* Важно для позиционирования видео */
    color: #fff; 
    padding: 50px 0; 
    margin-bottom: 30px; 
    overflow: hidden; /* Скрываем видео, выходящее за края */
    background: #000; /* Черный фон на время загрузки */
}

/* Видео */
.page-header-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0; /* Видео на заднем плане */
    object-fit: cover; /* Заполняем блок, сохраняя пропорции */
    opacity: 0.6; /* Делаем его чуть приглушенным */
}

/* Затемняющий слой */
.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 60, 87, 0.6); /* Цвет твоего --dark-blue с прозрачностью */
    z-index: 1; /* Над видео, но под текстом */
}

/* ==========================================================================
   КРОШКИ (Только последний элемент, чистый CSS)
   ========================================================================== */

/* Настраиваем контейнер */
.breadcrumbs {
    text-align: center;
    margin-bottom: 10px;
}

/* ==========================================================================
   ПЛАВНОЕ ПОЯВЛЕНИЕ ДЛЯ КРОШЕК
   ========================================================================== */

.breadcrumbs {
    /* Запускаем анимацию с названием fadeInBreadcrumb */
    /* Длительность 0.8s, плавность ease-in-out */
    animation: fadeInBreadcrumb 3s ease-in-out forwards;
}

@keyframes fadeInBreadcrumb {
    from {
        opacity: 0;
        transform: translateY(5px); /* Легкий сдвиг вниз для эффекта "выезда" */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.speedbar__inner {
    font-size: 0; /* Скрываем весь текст (и разделители ») */
    display: block;
}

/* Скрываем все ссылки (ЧЗНО, Задвижки) */
.speedbar__inner a {
    display: none !important;
}

/* Делаем видимым только текст, который находится вне тегов <a> */
/* (это и есть последний элемент "Задвижки клиновые стальные") */
.speedbar__inner {
    font-size: 24px; /* Возвращаем размер шрифта */
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

/* --- ХИТРОСТЬ: Скрываем стрелки » --- */
/* Мы не можем скрыть их напрямую, так как это текст.
   Но мы можем сделать их прозрачными, а последний элемент оставить видимым. */
.speedbar__inner {
    /* Оставляем только текст после последней стрелки */
    position: relative;
    color: transparent; /* Делаем весь текст прозрачным */
}

/* Возвращаем цвет только для последнего текстового узла */
/* CSS не умеет выбирать текстовые узлы, поэтому используем трюк с background-clip */
.speedbar__inner {
    color: #fff; /* Возвращаем цвет */
    /* А как убрать «»? Никак без JS или правки шаблона. */
}

.page-header h2 { font-size: 32px; margin-bottom: 5px; }
.page-header p { font-size: 16px; opacity: 0.9; }

/* Сетка: Сайдбар + Контент */
.catalog-layout { 
    display: flex; 
    gap: 30px; 
    padding-bottom: 60px; 
    align-items: flex-start; /* Важно для работы sticky */
}
.catalog-content { flex-grow: 1; min-width: 0; }

/* ==========================================================================
   6. САЙДБАР (Гармошка/Аккордеон)
   ========================================================================== */
.catalog-sidebar {
    flex: 0 0 300px; /* Фиксированная ширина */
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    
    /* Фиксация при скролле */
    position: sticky;
    top: 110px; 
    z-index: 100;
    max-height: calc(100vh - 110px); 
    overflow-y: auto;
}

/* Кастомный скроллбар для меню */
.catalog-sidebar::-webkit-scrollbar { width: 4px; }
.catalog-sidebar::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.clean-accordion .accordion-item {
    border-bottom: 1px solid #eef2f4;
    width: 100%;
}
.clean-accordion .accordion-item:last-child { border-bottom: none; }

.clean-accordion .accordion-header {
    display: flex;
    align-items: center;
    padding: 14px 15px;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}
.clean-accordion .accordion-header:hover { background-color: #f1f5f8; }

.clean-accordion .sidebar-item-icon {
    width: 40px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clean-accordion .sidebar-item-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.clean-accordion .sidebar-item-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333333;
    font-weight: 400;
    margin-left: 12px;
    padding-right: 10px;
}

.clean-accordion .accordion-arrow {
    font-size: 10px;
    color: #9aa8ad;
    margin-left: auto;
    transition: transform 0.25s ease, color 0.25s;
}

/* Открытое состояние */
.clean-accordion .accordion-item.is-open .accordion-header { background-color: #ffffff; }
.clean-accordion .accordion-item.is-open .sidebar-item-text { color: #000; font-weight: 500; }
.clean-accordion .accordion-item.is-open .accordion-arrow {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

/* Контент гармошки */
.clean-accordion .accordion-content {
    background-color: #ffffff;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.2s ease, visibility 0.3s;
}
.clean-accordion .accordion-item.is-open .accordion-content {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
}

.clean-accordion .submenu-list {
    list-style: none;
    padding: 8px 15px 15px 59px; /* Выравнивание по тексту */
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.clean-accordion .submenu-list a {
    font-size: 13px;
    color: #666666;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s ease;
    display: inline-block;
    font-weight: normal;
}
.clean-accordion .submenu-list a:hover { color: var(--primary-blue); font-weight: 500; }
.clean-accordion .submenu-list a.active { color: var(--primary-blue); font-weight: 500; pointer-events: none; }

/* ==========================================================================
   7. СТРАНИЦА КАТАЛОГА (Сетка товаров)
   ========================================================================== */
.catalog-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; background: #fff; padding: 10px 20px; border: 1px solid var(--border-color);
}
.catalog-toolbar span { font-size: 14px; color: var(--text-gray); }
.catalog-toolbar select { padding: 5px; border: 1px solid #ccc; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product-card {
    background: #fff; border: 1px solid var(--border-color); padding: 15px;
    display: flex; flex-direction: column; transition: 0.3s;
}
.product-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-color: var(--primary-blue); }
.product-img { width: 100%; height: 180px; background: #f0f0f0; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 14px; }
.product-title { font-size: 15px; font-weight: bold; margin-bottom: 5px; color: #222; min-height: 40px; }
.product-sku { font-size: 12px; color: #888; margin-bottom: 10px; }
.product-price { font-size: 18px; font-weight: bold; color: var(--primary-blue); margin-bottom: 15px; }

.product-actions { margin-top: auto; display: flex; gap: 10px; }
.btn-buy { flex-grow: 1; background: var(--primary-blue); color: #fff; border: none; padding: 10px; cursor: pointer; font-weight: bold; transition: 0.3s; border-radius: 4px; }
.btn-buy:hover { background: var(--dark-blue); }
.btn-more { background: #fff; color: var(--primary-blue); border: 1px solid var(--primary-blue); padding: 10px; cursor: pointer; font-weight: bold; transition: 0.3s; border-radius: 4px; }
.btn-more:hover { background: #eef4f9; }

/* ==========================================================================
   8. СТРАНИЦА ТОВАРА (Карточка)
   ========================================================================== */
.product-main { display: flex; gap: 40px; background: #fff; padding: 30px; border: 1px solid var(--border-color); margin-bottom: 30px; }
.product-gallery { width: 35%; flex-shrink: 0; }
.main-image { width: 100%; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 16px; border: 1px solid #eee; margin-bottom: 10px; }
.thumbnails { display: flex; gap: 10px; }
.thumb { width: 70px; height: 70px; background: #f0f0f0; border: 1px solid #ddd; cursor: pointer; }
.thumb.active { border-color: var(--primary-blue); }

.product-info { flex-grow: 1; }
.product-info h1 { font-size: 20px; margin-bottom: 10px; color: #222; }
.product-info .sku { font-size: 14px; color: #888; margin-bottom: 20px; }
.price-box { margin-bottom: 25px; }
.price-box .price { font-size: 32px; font-weight: bold; color: var(--primary-blue); }
.price-box .price-note { font-size: 13px; color: #777; }

.short-specs { margin-bottom: 30px; border-top: 1px solid #eee; padding-top: 20px; }
.short-specs li { font-size: 15px; margin-bottom: 10px; display: flex; justify-content: space-between; border-bottom: 1px dashed #eee; padding-bottom: 5px; }
.short-specs span { color: #666; }

.actions { display: flex; gap: 15px; }
.btn-request { background: #fff; color: var(--primary-blue); border: 1px solid var(--primary-blue); padding: 15px 30px; font-size: 16px; font-weight: bold; cursor: pointer; border-radius: 4px; transition: 0.3s; }
.btn-request:hover { background: #eef4f9; }

/* Табы */
.tabs-section { background: #fff; border: 1px solid var(--border-color); }
.tabs-header { display: flex; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; }
.tab-btn { padding: 15px 30px; background: none; border: none; font-size: 16px; font-weight: bold; color: #666; cursor: pointer; border-bottom: 3px solid transparent; transition: 0.2s; }
.tab-btn.active { color: var(--primary-blue); border-bottom-color: var(--primary-blue); }
.tab-btn:hover { color: var(--primary-blue); }

.tab-content { padding: 30px; display: none;}
.tab-content.active { display: block; }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid #f0f0f0; }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 12px 0; font-size: 15px; }
.specs-table td:first-child { color: #666; width: 40%; }
.specs-table td:last-child { font-weight: bold; color: #222; }

.size-table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 14px; text-align: center; }
.size-table th { background: #7192c3; padding: 10px; border: 1px solid #ddd; font-weight: bold; }
.size-table td { padding: 8px; border: 1px solid #ddd; }

/* ==========================================================================
   9. СТРАНИЦА МАТРИЦЫ (Таблица подбора)
   ========================================================================== */
.product-title-block { margin-bottom: 20px; }
.product-title-block h1 { font-size: 26px; color: #222; margin-bottom: 10px; }
.product-title-block p { font-size: 15px; color: #555; }

.matrix-wrapper {  overflow-x: auto; font-size:14px; width:100%;}
.matrix-wrapper p {  margin-bottom:10px}
table { width: 100%; border-collapse: collapse; border: 1px solid var(--border-color); background: #fff;}
table th { background: var(--dark-blue); color: #fff; padding: 15px 10px; font-size: 14px; font-weight: bold; text-align: center; border-right: 1px solid #2c5f8a; white-space: nowrap; }
table th:first-child { border-left: none; }
table th:last-child { border-right: none; }

table td { padding: 12px 10px; text-align: center; font-size: 14px; vertical-align: middle; }
table tbody tr:nth-child(even) td { background-color: #f9fbfc; }
table td:first-child { background-color: #eef4f9 !important; font-weight: bold; color: var(--dark-blue); text-align: center; }
table td:nth-child(2) { background-color: #eef4f9 !important; font-weight: bold;  }




.specs-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border-color); background: #fff;}
.specs-table th { background: var(--dark-blue); color: #fff; padding: 15px 10px; font-size: 14px; font-weight: bold; text-align: center; border-right: 1px solid #2c5f8a; white-space: nowrap; }
.specs-table th:first-child { border-left: none; }
.specs-table th:last-child { border-right: none; }

.specs-table td { padding: 5px 10px; text-align: left; font-size: 14px; vertical-align: middle; border: 1px solid #eee; }
.specs-table tbody tr:nth-child(even) td { background-color: #f9fbfc; }
.specs-table td:first-child { background-color: #fff !important; font-weight: bold; color: var(--dark-blue); text-align: left;  }
.specs-table td:nth-child(2) { background-color: #fff !important; font-weight: normal;  }


.product-info th { background: var(--dark-blue); color: #fff; padding: 15px 10px; font-size: 14px; font-weight: bold; text-align: center; border-right: 1px solid #2c5f8a; white-space: nowrap; }
.product-info th:first-child { border-left: none; }
.product-info th:last-child { border-right: none; }

.product-info td { padding: 5px 10px; text-align: left; font-size: 14px; vertical-align: middle; border: 1px solid #eee; }
.product-info tbody tr:nth-child(even) td { background-color: #f9fbfc; }
.product-info td:first-child { background-color: #fff !important; font-weight: bold; color: var(--dark-blue); text-align: left;}
.product-info td:nth-child(2) { background-color: #fff !important; font-weight: normal; }

.uk-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border-color); background: #fff;}
.uk-table th { background: var(--dark-blue); color: #fff; padding: 15px 10px; font-size: 14px; font-weight: bold; text-align: center; border-right: 1px solid #2c5f8a; white-space: nowrap; }
.uk-table th:first-child { border-left: none; }
.uk-table th:last-child { border-right: none; }

.uk-table td { padding: 5px 10px; text-align: left; font-size: 14px; vertical-align: middle; border: 1px solid #eee; }
.uk-table tbody tr:nth-child(even) td { background-color: #f9fbfc; }
.uk-table td:first-child { background-color: #fff !important; font-weight: bold; color: var(--dark-blue); text-align: left; }
.uk-table td:nth-child(2) { background-color: #fff !important; font-weight: normal;  }

.table-wrapper a { color: var(--primary-blue); text-decoration: none; border-bottom: 1px dashed rgba(44, 95, 138, 0.4); transition: 0.2s; }
.table-table a:hover { color: var(--accent-orange); border-bottom-color: var(--accent-orange); }



/* ---------- 28. МАРКИРОВКА (арматура) ---------- */
.marking-container {
    display: flex;
    flex-wrap: wrap;
    padding: clamp(16px, 2vw, 30px);
    border-radius: 4px;
    max-width: 1250px;
    width: 100%;
    gap: clamp(20px, 2.5vw, 30px);
    margin: 0 auto;
}

.scheme-area {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    min-width: 0;
    flex: 1 1 480px;
}

.code-row {
    display: flex;
    border: 1px solid #333;
    background: #fff;
    height: 42px;
    width: 100%;
    max-width: 420px;
    margin-left: clamp(0px, 20vw, 280px);
    margin-bottom: 30px;
}

.code-segment {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border-right: 1px solid #333;
    transition: all 0.2s ease;
    cursor: pointer;
}

.code-segment:last-child {
    border-right: none;
}

.scheme-row {
    display: flex;
    align-items: center;
    height: 42px;
    margin-bottom: 16px;
    position: relative;
}

.parameter-box {
    background: #fff;
    border: 1px solid #333;
    padding: 10px;
    font-size: 13px;
    width: 250px;
    max-width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

.line-container {
    flex-grow: 1;
    height: 100%;
    position: relative;
}

.css-line {
    position: absolute;
    top: 50%;
    left: 0;
    border-top: 1.5px solid #333;
    transition: border-color 0.2s ease;
}

.css-line::after {
    content: '';
    position: absolute;
    right: 0;
    width: 1.5px;
    background-color: #333;
    transition: background-color 0.2s ease, width 0.2s ease;
}

.l-join-type { width: 65px; }
.l-join-type::after { height: 51px; top: -51px; }

.l-diameter { width: 135px; }
.l-diameter::after { height: 109px; top: -109px; }

.l-pressure { width: 205px; }
.l-pressure::after { height: 167px; top: -167px; }

.l-body-material { width: 275px; }
.l-body-material::after { height: 225px; top: -225px; }

.l-disc-material { width: 345px; }
.l-disc-material::after { height: 283px; top: -283px; }

.l-control-type { width: 415px; }
.l-control-type::after { height: 341px; top: -341px; }

.reference-guide {
    background: #fff;
    padding: 20px;
    width: 200px;
    max-width: 100%;
    margin-left: auto;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.reference-guide h3 {
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #000;
}

.reference-guide h3:first-child { margin-top: 0; }
.reference-guide p { color: #333; margin-bottom: 2px; }

.marking-container:has(.p-join-type:hover) .p-join-type,
.marking-container:has(.c-join-type:hover) .p-join-type,
.marking-container:has(.p-join-type:hover) .c-join-type,
.marking-container:has(.c-join-type:hover) .c-join-type { background: #d1e7dd !important; font-weight: bold; }
.marking-container:has(.p-join-type:hover) .l-join-type,
.marking-container:has(.c-join-type:hover) .l-join-type { border-top: 2.5px solid #0f5132 !important; }
.marking-container:has(.p-join-type:hover) .l-join-type::after,
.marking-container:has(.c-join-type:hover) .l-join-type::after { background-color: #0f5132 !important; width: 2.5px; }

.marking-container:has(.p-diameter:hover) .p-diameter,
.marking-container:has(.c-diameter:hover) .p-diameter,
.marking-container:has(.p-diameter:hover) .c-diameter,
.marking-container:has(.c-diameter:hover) .c-diameter { background: #cff4fc !important; font-weight: bold; }
.marking-container:has(.p-diameter:hover) .l-diameter,
.marking-container:has(.c-diameter:hover) .l-diameter { border-top: 2.5px solid #055160 !important; }
.marking-container:has(.p-diameter:hover) .l-diameter::after,
.marking-container:has(.c-diameter:hover) .l-diameter::after { background-color: #055160 !important; width: 2.5px; }

.marking-container:has(.p-pressure:hover) .p-pressure,
.marking-container:has(.c-pressure:hover) .p-pressure,
.marking-container:has(.p-pressure:hover) .c-pressure,
.marking-container:has(.c-pressure:hover) .c-pressure { background: #fff3cd !important; font-weight: bold; }
.marking-container:has(.p-pressure:hover) .l-pressure,
.marking-container:has(.c-pressure:hover) .l-pressure { border-top: 2.5px solid #664d03 !important; }
.marking-container:has(.p-pressure:hover) .l-pressure::after,
.marking-container:has(.c-pressure:hover) .l-pressure::after { background-color: #664d03 !important; width: 2.5px; }

.marking-container:has(.p-body-material:hover) .p-body-material,
.marking-container:has(.c-body-material:hover) .p-body-material,
.marking-container:has(.p-body-material:hover) .c-body-material,
.marking-container:has(.c-body-material:hover) .c-body-material { background: #f8d7da !important; font-weight: bold; }
.marking-container:has(.p-body-material:hover) .l-body-material,
.marking-container:has(.c-body-material:hover) .l-body-material { border-top: 2.5px solid #842029 !important; }
.marking-container:has(.p-body-material:hover) .l-body-material::after,
.marking-container:has(.c-body-material:hover) .l-body-material::after { background-color: #842029 !important; width: 2.5px; }

.marking-container:has(.p-disc-material:hover) .p-disc-material,
.marking-container:has(.c-disc-material:hover) .p-disc-material,
.marking-container:has(.p-disc-material:hover) .c-disc-material,
.marking-container:has(.c-disc-material:hover) .c-disc-material { background: #e2d9f3 !important; font-weight: bold; }
.marking-container:has(.p-disc-material:hover) .l-disc-material,
.marking-container:has(.c-disc-material:hover) .l-disc-material { border-top: 2.5px solid #432874 !important; }
.marking-container:has(.p-disc-material:hover) .l-disc-material::after,
.marking-container:has(.c-disc-material:hover) .l-disc-material::after { background-color: #432874 !important; width: 2.5px; }

.marking-container:has(.p-control-type:hover) .p-control-type,
.marking-container:has(.c-control-type:hover) .p-control-type,
.marking-container:has(.p-control-type:hover) .c-control-type,
.marking-container:has(.c-control-type:hover) .c-control-type { background: #e2e3e5 !important; font-weight: bold; }
.marking-container:has(.p-control-type:hover) .l-control-type,
.marking-container:has(.c-control-type:hover) .l-control-type { border-top: 2.5px solid #41464b !important; }
.marking-container:has(.p-control-type:hover) .l-control-type::after,
.marking-container:has(.c-control-type:hover) .l-control-type::after { background-color: #41464b !important; width: 2.5px; }

/* ---------- 29. ДЕКОДЕР (задвижки КЗС) ---------- */
.decoder-card {
    display: flex;
    flex-wrap: wrap;
    padding: clamp(16px, 2vw, 30px);
    border-radius: 4px;
    max-width: 1250px;
    width: 100%;
    gap: clamp(20px, 2.5vw, 30px);
    margin: 0 auto;
}

.blueprint-zone {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    min-width: 0;
    flex: 1 1 480px;
}

.valve-code-bar {
    display: flex;
    border: 1px solid #333;
    background: #fff;
    height: 42px;
    width: 100%;
    max-width: 420px;
    margin-left: clamp(0px, 20vw, 280px);
    margin-bottom: 30px;
}

.code-unit {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border-right: 1px solid #333;
    transition: all 0.2s ease;
    cursor: pointer;
}

.code-unit:last-child {
    border-right: none;
}

.interactive-row {
    display: flex;
    align-items: center;
    height: 42px;
    margin-bottom: 16px;
    position: relative;
}

.card-param-box {
    background: #fff;
    border: 1px solid #333;
    padding: 10px;
    font-size: 13px;
    width: 250px;
    max-width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

.connector-track {
    flex-grow: 1;
    height: 100%;
    position: relative;
}

.solid-trace {
    position: absolute;
    top: 50%;
    left: 0;
    border-top: 1.5px solid #333;
    transition: border-color 0.2s ease;
}

.solid-trace::after {
    content: '';
    position: absolute;
    right: 0;
    width: 1.5px;
    background-color: #333;
    transition: background-color 0.2s ease, width 0.2s ease;
}

.wire-join { width: 72px; }
.wire-join::after { height: 51px; top: -51px; }

.wire-size { width: 156px; }
.wire-size::after { height: 109px; top: -109px; }

.wire-press { width: 240px; }
.wire-press::after { height: 167px; top: -167px; }

.wire-body { width: 324px; }
.wire-body::after { height: 225px; top: -225px; }

.wire-drive { width: 408px; }
.wire-drive::after { height: 283px; top: -283px; }

.legend-panel {
    background: #fff;
    padding: 20px;
    width: 200px;
    max-width: 100%;
    margin-left: auto;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.legend-panel h3 {
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #000;
    font-weight: bold;
}

.legend-panel h3:first-child { margin-top: 0; }
.legend-panel p { color: #333; margin-bottom: 4px; }

.decoder-card:has(.trigger-join:hover) .trigger-join,
.decoder-card:has(.segment-join:hover) .trigger-join,
.decoder-card:has(.trigger-join:hover) .segment-join,
.decoder-card:has(.segment-join:hover) .segment-join { background: #d1e7dd !important; font-weight: bold; }
.decoder-card:has(.trigger-join:hover) .wire-join,
.decoder-card:has(.segment-join:hover) .wire-join { border-top: 2.5px solid #0f5132 !important; }
.decoder-card:has(.trigger-join:hover) .wire-join::after,
.decoder-card:has(.segment-join:hover) .wire-join::after { background-color: #0f5132 !important; width: 2.5px; }

.decoder-card:has(.trigger-size:hover) .trigger-size,
.decoder-card:has(.segment-size:hover) .trigger-size,
.decoder-card:has(.trigger-size:hover) .segment-size,
.decoder-card:has(.segment-size:hover) .segment-size { background: #cff4fc !important; font-weight: bold; }
.decoder-card:has(.trigger-size:hover) .wire-size,
.decoder-card:has(.segment-size:hover) .wire-size { border-top: 2.5px solid #055160 !important; }
.decoder-card:has(.trigger-size:hover) .wire-size::after,
.decoder-card:has(.segment-size:hover) .wire-size::after { background-color: #055160 !important; width: 2.5px; }

.decoder-card:has(.trigger-press:hover) .trigger-press,
.decoder-card:has(.segment-press:hover) .trigger-press,
.decoder-card:has(.trigger-press:hover) .segment-press,
.decoder-card:has(.segment-press:hover) .segment-press { background: #fff3cd !important; font-weight: bold; }
.decoder-card:has(.trigger-press:hover) .wire-press,
.decoder-card:has(.segment-press:hover) .wire-press { border-top: 2.5px solid #664d03 !important; }
.decoder-card:has(.trigger-press:hover) .wire-press::after,
.decoder-card:has(.segment-press:hover) .wire-press::after { background-color: #664d03 !important; width: 2.5px; }

.decoder-card:has(.trigger-body:hover) .trigger-body,
.decoder-card:has(.segment-body:hover) .trigger-body,
.decoder-card:has(.trigger-body:hover) .segment-body,
.decoder-card:has(.segment-body:hover) .segment-body { background: #f8d7da !important; font-weight: bold; }
.decoder-card:has(.trigger-body:hover) .wire-body,
.decoder-card:has(.segment-body:hover) .wire-body { border-top: 2.5px solid #842029 !important; }
.decoder-card:has(.trigger-body:hover) .wire-body::after,
.decoder-card:has(.segment-body:hover) .wire-body::after { background-color: #842029 !important; width: 2.5px; }

.decoder-card:has(.trigger-drive:hover) .trigger-drive,
.decoder-card:has(.segment-drive:hover) .trigger-drive,
.decoder-card:has(.trigger-drive:hover) .segment-drive,
.decoder-card:has(.segment-drive:hover) .segment-drive { background: #e2e3e5 !important; font-weight: bold; }
.decoder-card:has(.trigger-drive:hover) .wire-drive,
.decoder-card:has(.segment-drive:hover) .wire-drive { border-top: 2.5px solid #41464b !important; }
.decoder-card:has(.trigger-drive:hover) .wire-drive::after,
.decoder-card:has(.segment-drive:hover) .wire-drive::after { background-color: #41464b !important; width: 2.5px; }






/* ==========================================================================
   10. АДАПТИВНОСТЬ (Мобильная версия)
   ========================================================================== */
@media (max-width: 992px) {
    .catalog-layout { flex-direction: column; align-items: stretch; }
    .catalog-sidebar { 
        flex: none; 
        width: 100%; 
        position: static; /* Отключаем фиксацию на планшетах/телефонах */
        max-height: none;
    }
    .product-main { flex-direction: column; }
    .product-gallery { width: 100%; }
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero-content h1 { font-size: 32px; }
    .footer-grid { flex-direction: column; text-align: center; }
    .actions { flex-direction: column; }
    .btn-request, .btn-buy { width: 100%; }
    .logo-block { flex-direction: column; text-align: center; gap: 5px; }
    .logo-text { font-size: 14px; }
    .header-phone { text-align: center; }
}

.tableui {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tableui th,
.tableui td {
  border: 1px solid #d9d9d9;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
     background-color: #fff !important;
    font-weight: normal;
    width: 100px;
}
.tableui th {

  background-color: #fff !important;
  font-weight: 600;
  color: var(--dark-blue);
}
.tableui tbody tr:nth-child(even) td { background-color: #fff !important; }
.tableui td:first-child { background-color: #fff !important; width: auto; text-align:left;}
.tableui td:nth-child(2) { background-color: #fff !important; width: auto;  text-align:left; }


/* Кнопка "Добавить в запрос" */
.btn-add-to-request {
    width: 100%;
    background: #fff;
    color: #2c5f8a;
    border: 1px solid #2c5f8a;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    border-radius: 4px;
    margin-top: 10px;
}
.btn-add-to-request:hover { background: #eef4f9; }
.btn-add-to-request.added { background: #2c5f8a; color: #fff; border-color: #2c5f8a; }

/* Плавающий виджет */
.request-cart-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #2c5f8a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
    transform: translateY(150%);
}
.request-cart-widget.active { transform: translateY(0); }
.request-cart-widget .cart-count { background: #2c5f8a; color: #fff; border-radius: 50%; padding: 2px 8px; font-weight: bold; }
.request-cart-widget .btn-view-cart { background: #2c5f8a; color: #fff; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-weight: bold; }

/* ==========================================================================
   УВЕДОМЛЕНИЯ (TOAST)
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Чтобы клики проходили сквозь пустую область */
}

.toast {
    background: #fff;
    color: #333;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    min-width: 280px;
    max-width: 400px;
    pointer-events: auto;
    border-left: 5px solid #ccc;
    
    /* Анимация появления */
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Показываем уведомление */
.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Типы уведомлений */
.toast.success { border-left-color: #27ae60; }
.toast.error { border-left-color: #e74c3c; }
.toast.info { border-left-color: var(--primary-blue); }

/* Иконка (эмодзи) */
.toast-icon { font-size: 20px; }


/* ==========================================================================
   БЫСТРЫЙ ПЕРЕХОД В КАТАЛОГ (6 ПЛИТОК)
   ========================================================================== */
.quick-links-section {
 padding:0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--dark-blue);
    margin-bottom: 40px;
    font-weight: bold;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    gap: 20px;
    /* Автоматически создаст 2 ряда, так как 6 элементов */
}

.quick-link-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.ql-image {
    width: 100%;
    height: 300px;
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;

}

.ql-title {
    padding: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-blue);
    background: #fff;
}

/* Адаптив для плитки */
@media (max-width: 992px) {
    .quick-links-grid { grid-template-columns: repeat(2, 1fr); } /* 2 колонки на планшетах */
}
@media (max-width: 576px) {
    .quick-links-grid { grid-template-columns: 1fr; } /* 1 колонка на телефонах */
    .ql-image { height: 150px; }
}

/* --- АДАПТИВНОСТЬ МАТРИЦЫ --- */
@media (max-width: 768px) {
    .matrix-table {
        min-width: 700px; /* Не даем таблице сжаться до нечитаемого состояния */
        font-size: 12px; /* Чуть уменьшаем текст */
    }
    .matrix-table th, 
    .matrix-table td {
        padding: 8px 5px; /* Уменьшаем отступы, чтобы больше влезло */
    }
    
    /* Визуальная подсказка, что таблицу можно скроллить */
    .matrix-wrapper::after {
        content: "← Прокрутите таблицу →";
        display: block;
        text-align: center;
        font-size: 12px;
        color: #888;
        padding: 10px 0;
        background: #f9f9f9;
    }
}


/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 60, 87, 0.95); /* Темно-синий, как в шапке */
    color: #fff;
    z-index: 10000;
    padding: 20px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    display: none; /* Скрыт по умолчанию, покажем через JS */
    box-sizing: border-box;
    
    /* Анимация появления */
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.show {
    display: block;
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    flex-grow: 1;
    min-width: 250px;
}

.cookie-content a {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
}

.cookie-content a:hover {
    color: #e67e22; /* Оранжевый акцент */
}

.btn-cookie {
    background: #fff;
    color: #1a3c57;
    border: none;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}

.btn-cookie:hover {
    background: #e67e22;
    color: #fff;
}

/* Адаптив для телефонов */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .btn-cookie {
        width: 100%;
    }
}


/* ==========================================================================
   COOKIE WALL (Блокировка сайта до согласия)
   ========================================================================== */

/* Когда сайт заблокирован, запрещаем скролл */
body.cookie-locked {
    overflow: hidden !important;
    height: 100vh;
}

/* Обертка сайта */
#site-wrapper {
    transition: filter 0.5s ease;
    min-height: 100vh;
}

/* Класс для размытия */
#site-wrapper.blurred {
    filter: blur(8px);
    pointer-events: none; /* Блокируем все клики внутри */
    user-select: none; /* Запрещаем выделять текст */
}

/* Стили для самого баннера (остаются как были, но добавим центровку) */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 60, 87, 0.98); /* Плотный фон, чтобы перекрыть блюр */
    color: #fff;
    z-index: 10000;
    padding: 20px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
    display: none;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.show {
    display: block;
    transform: translateY(0);
}

/* ... (остальные стили .cookie-content, .btn-cookie из прошлого ответа оставляем без изменений) ... */





        .about-page {
            padding: 60px 0;
        }

        .about-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .about-header h1 {
            font-size: 38px;
            color: var(--dark-blue);
            margin-bottom: 15px;
            font-weight: 900;
        }

        .about-header p {
            font-size: 18px;
            color: var(--text-gray);
            max-width: 800px;
            margin: 0 auto;
        }

        /* Карточки с блоками текста */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
        }

        .about-card {
            background: #fff;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.03);
            border-left: 5px solid var(--primary-blue);
        }

        .about-card h2 {
            font-size: 24px;
            color: var(--dark-blue);
            margin-bottom: 20px;
            font-weight: bold;
        }

        .about-card p {
            font-size: 16px;
            margin-bottom: 15px;
            color: #444;
        }

        .about-card p:last-child { margin-bottom: 0; }

        /* Выделение важного */
        .highlight-text {
            font-weight: bold;
            color: var(--dark-blue);
        }

        /* Список продукции */
        .product-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .product-list li {
            background: #f9fbfc;
            padding: 12px 15px;
            border-radius: 4px;
            font-size: 15px;
            display: flex;
            align-items: center;
            border: 1px solid #eef2f4;
        }

        .product-list li::before {
            content: "✓";
            color: var(--primary-blue);
            font-weight: bold;
            margin-right: 10px;
            font-size: 16px;
        }

        /* Блок с преимуществами (Логистика) */
        .advantage-box {
            background: var(--primary-blue);
            color: #fff;
            padding: 40px;
            border-radius: 8px;
            margin-top: 10px;
        }

        .advantage-box h2 {
            color: #fff;
            font-size: 24px;
            margin-bottom: 20px;
        }

        .advantage-box p {
            color: #eef4f9;
            font-size: 16px;
            margin-bottom: 15px;
        }

        .advantage-box .highlight-text {
            color: #fff;
            text-decoration: underline;
        }

        /* Блок развития */
        .dev-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 15px;
        }

        .dev-list li {
            font-size: 16px;
            display: flex;
            align-items: flex-start;
        }

        .dev-list li::before {
            content: "→";
            color: var(--primary-blue);
            font-weight: bold;
            margin-right: 12px;
            margin-top: 2px;
        }

        /* Адаптив */
        @media (max-width: 768px) {
            .about-header h1 { font-size: 28px; }
            .about-card { padding: 25px; }
            .advantage-box { padding: 25px; }
            .product-list { grid-template-columns: 1fr; }
        }
        
        
        
        
        /* ==========================================================================
           СТРАНИЦА КОНТАКТОВ
           ========================================================================== */
        .contacts-page { padding: 60px 0; }

        .contacts-header { margin-bottom: 40px; text-align: center; }
        .contacts-header h1 { font-size: 36px; color: var(--dark-blue); margin-bottom: 10px; font-weight: 900; }
        .contacts-header p { font-size: 16px; color: var(--text-gray); }

        /* Верхняя сетка: Левая колонка (Реквизиты) и Правая (Контакты + Банк) */
        .contacts-top-grid {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr; /* Левая чуть шире */
            gap: 30px;
            align-items: start;
            margin-bottom: 30px;
        }

        /* Общие стили карточек */
        .info-card {
            background: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.03);
            border-top: 4px solid var(--primary-blue);
            height: 100%; /* Чтобы карточки в правой колонке были одинаковыми */
        }

        .info-card h2 {
            font-size: 20px;
            color: var(--dark-blue);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }

        /* Правая колонка (стек) */
        .contacts-right-stack {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        /* Основные контакты (телефон, почта) */
        .main-contact-item {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
            font-size: 18px;
            font-weight: bold;
        }
        .main-contact-item:last-child { margin-bottom: 0; }
        .main-contact-item .icon {
            font-size: 24px;
            background: #eef4f9;
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            color: var(--primary-blue);
            flex-shrink: 0;
        }

        /* Списки реквизитов */
        .requisites-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        .requisites-list li {
            display: flex;
            flex-direction: column;
            gap: 3px;
            font-size: 14px;
        }
        .requisites-list .label {
            color: #888;
            font-weight: bold;
            text-transform: uppercase;
            font-size: 12px;
            letter-spacing: 0.5px;
        }
        .requisites-list .value {
            color: #222;
            font-weight: 500;
        }

        /* ==========================================================================
           КАРТА (НА ВСЮ ШИРИНУ)
           ========================================================================== */
        .map-fullwidth-block {
            background: #fff;
            padding: 10px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.03);
            width: 100%;
        }

        .map-fullwidth-block h2 {
            font-size: 20px;
            color: var(--dark-blue);
            padding: 20px 20px 10px 20px;
            margin: 0;
        }

        .map-container {
            width: 100%;
            height: 400px; /* Высота карты */
            background: #eee;
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        /* Заглушка для карты */
        .map-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #777;
            background: #eef2f4;
            text-align: center;
      
        }

        /* Адаптив */
        @media (max-width: 992px) {
            .contacts-top-grid {
                grid-template-columns: 1fr; /* В одну колонку на планшетах */
            }
            .map-container {
                height: 300px;
            }
        }
        
        .map-container iframe {
    filter: grayscale(100%); /* 100% — полностью серый, 50% — полуцветной */
    transition: filter 0.3s ease;
}

/* Бонус: при наведении карта возвращает цвет (опционально) */
.map-container iframe:hover {
    filter: grayscale(0%);
}




        /* ==========================================================================
           СТРАНИЦА КАТЕГОРИИ
           ========================================================================== */
        .category-page { padding: 40px 0 60px; }

        .category-header { margin-bottom: 30px; }
        .category-header h1 { font-size: 32px; color: var(--dark-blue); margin-bottom: 10px; }
        .category-header .breadcrumbs { font-size: 14px; color: #888; }
        .category-header .breadcrumbs a { color: #888; text-decoration: underline; }
        .category-header .breadcrumbs a:hover { color: var(--primary-blue); }

        /* Верхний блок (Общий контейнер) */
        .category-intro {
            background: #fff;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.04);
            margin-bottom: 40px;
        }

        /* Текстовый блок, который обтекает фото */
        .intro-content { 
            position: relative; 
        }

        .intro-content p { 
            font-size: 16px; 
            color: #444; 
            margin-bottom: 15px; 
            text-align: justify; 
        }

        /* Фотография справа (обтекание) */
        .intro-image-right {
            float: right; /* Прижимаем вправо */
            width: 40%; /* Ширина фото */
            margin: 0 0 20px 30px; /* Отступы: снизу 20, слева 30 (чтобы текст не прилипал) */
            border-radius: 6px;
            overflow: hidden;

        }
        
        .intro-image-right img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }

        /* Блок с ассортиментом */
        .specs-block { 
            margin-top: 30px; 
            background: #f9fbfc; 
            padding: 25px; 
            border-radius: 6px; 
            border-left: 4px solid var(--primary-blue); 
            clear: both; /* Очищаем обтекание, чтобы блок не наезжал на фото, если фото длинное */
        }
        
        .specs-block h3 { font-size: 18px; color: var(--dark-blue); margin-bottom: 15px; }
        
 /* Список в блоке ассортимента */
.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    font-size: 15px;
    margin-bottom: 15px; /* Отступ между пунктами списка */
    padding-left: 20px; /* Место под маркер (точку) */
    position: relative; /* Для позиционирования маркера */
    line-height: 1.5;
}

/* Рисуем маркер (точку) вручную */
.specs-list li::before {
    content: "•";
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Делаем strong блочным, чтобы он был на отдельной строке */
.specs-list li strong {
    display: block; /* Заставляет текст под ним перенестись на новую строку */
    color: #222;
    margin-bottom: 3px; /* Небольшой отступ до основного текста */
    font-weight: bold;
}

 
/* ==========================================================================
   БЛОК ПРЕИМУЩЕСТВ (На чистом inline-block)
   ========================================================================== */

/* Контейнер */
/* Контейнер (если используешь flex) */
.features-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch; /* ВАЖНО: растягивает карточки по высоте */
    margin: 40px 0;
}

/* Карточка */
.feature-card {
    background: #fff !important;
    padding: 25px 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
    border-top: 3px solid var(--primary-blue) !important;
    
    /* Делаем карточку флекс-контейнером */
    display: flex !important;
    flex-direction: column !important; /* Элементы друг под другом */
    
    /* Ширина: 3 колонки (вычитаем gap) */
    width: calc(33.333% - 14px) !important; 
    box-sizing: border-box !important;
    text-align: center !important;
}

/* Текст внутри карточки */
.feature-card p {
    font-size: 14px !important;
    color: #666 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    
    /* ВАЖНО: заставляет текст занимать всё оставшееся место */
    flex-grow: 1; 
}

/* Адаптив */
@media (max-width: 992px) {
    .feature-card {
        width: calc(50% - 10px) !important; /* 2 в ряд */
    }
}
@media (max-width: 768px) {
    .feature-card {
        width: 100% !important; /* 1 в ряд */
    }
}


/* ==========================================================================
   ИКОНКИ В БЛОКЕ ПРЕИМУЩЕСТВ (Стиль Feather)
   ========================================================================== */

.feature-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 15px auto; /* Центрируем и даем отступ снизу */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.feature-card:hover .feature-icon {
    opacity: 1;
}

/* 1. Полное соответствие (Галочка в круге) */
.feature-card:nth-child(1) .feature-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5f8a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
}

/* 2. Отгрузка с завода (Завод/Здание) */
.feature-card:nth-child(2) .feature-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5f8a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V7l8-4 8 4v14M9 21v-6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v6'/%3E%3C/svg%3E");
}

/* 3. Доставка (Грузовик) */
.feature-card:nth-child(3) .feature-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c5f8a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
}