:root {
    --primary: #2c2c2c;
    --accent: #ED9121;
    --text: #1a1a1a;
    --light-bg: #f8f9fa;
    --border: #ddd;
    --radius: 0px;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: system-ui, sans-serif;
    color: var(--text);
}

img { max-width: 100%; height: auto; }

.page-wrapper { flex: 1 0 auto; padding-bottom: 2rem; }

.container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* =========================================
   ВЕРХНЯЯ ПАНЕЛЬ
   ========================================= */
.header-top {
    background: #333333;
    color: #fff;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header-top__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.header-top__left, .header-top__right { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.header-city { display: flex; align-items: center; gap: 0.3rem; color: #fff; font-weight: 500; }
.header-top-menu { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.header-top a { color: #fff; text-decoration: none; }
.header-top a:hover { color: #ddd; }
.wa-link { color: #fff !important; }

/* =========================================
   ЛОГОТИП
   ========================================= */
.header__logo-row { background: #000; padding: 0; margin: 0; }
.header__logo-row .container { padding: 0; display: flex; align-items: center; height: 45px; }
.header__logo-row .logo { display: flex; align-items: center; height: 100%; text-decoration: none; line-height: 0; }
.header__logo-row .logo img { display: block; height: 100%; width: auto; }

/* =========================================
   ПАНЕЛЬ ИНСТРУМЕНТОВ
   ========================================= */
.header__tools-row { background: #fff; border-bottom: 1px solid var(--border); padding: 0.8rem 0; }
.header__tools-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.catalog-btn { display: flex; align-items: center; gap: 0.5rem; background: var(--primary); color: #fff; text-decoration: none; padding: 0.6rem 1.2rem; font-size: 1rem; font-weight: 600; transition: background 0.2s; border: none; }
.catalog-btn:hover { background: #1a1a1a; }
.burger-icon { font-size: 1.2rem; }
.header__catalog { position: relative; }
.catalog-dropdown { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); min-width: 250px; display: none; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.header__catalog:hover .catalog-dropdown { display: block; }
.catalog-dropdown ul { list-style: none; margin: 0; padding: 0.5rem 0; }
.catalog-dropdown li a { display: block; padding: 0.5rem 1.2rem; text-decoration: none; color: var(--primary); font-weight: 500; white-space: nowrap; }
.catalog-dropdown li a:hover { background: var(--light-bg); color: var(--accent); }
.header-search { flex: 1; min-width: 250px; }
.header-search form { display: flex; border: 1px solid var(--border); overflow: hidden; background: #fff; }
.header-search input { flex: 1; border: none; padding: 0.6rem; font-size: 0.9rem; outline: none; color: var(--text); }
.header-search button { background: var(--accent); color: #fff; border: none; padding: 0.6rem 1rem; cursor: pointer; }
.header__icons { display: flex; gap: 1.2rem; align-items: center; }
.icon-item { display: flex; align-items: center; gap: 0.3rem; text-decoration: none; color: var(--text); font-size: 0.9rem; }
.icon-item:hover { color: var(--primary); }
.cart-icon .cart-count { background: var(--accent); color: #fff; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: bold; margin-left: 2px; }

/* =========================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================= */
.breadcrumbs { margin: 1.5rem auto 2rem; padding: 0 2rem; max-width: 1450px; font-size: 0.9rem; color: #555; }
.breadcrumbs a { color: var(--primary); text-decoration: none; font-weight: 500; }
.breadcrumbs a:hover { color: #d35400; text-decoration: underline; }

/* =========================================
   СТРАНИЦА КАТАЛОГА
   ========================================= */
.catalog-page { margin-top: 1rem; }
.catalog-title { margin-bottom: 1.5rem; font-size: 1.8rem; color: var(--text); font-weight: 700; }
.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; }
.catalog-sidebar { border: 1px solid var(--border); padding: 1rem; background: #fff; }
.sidebar-block { margin-bottom: 1.5rem; }
.sidebar-block h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--primary); font-weight: 600; }
.subcat-list { list-style: none; padding: 0; margin: 0; }
.subcat-list li { margin-bottom: 0.3rem; }
.subcat-list a { text-decoration: none; color: var(--primary); font-size: 0.9rem; font-weight: 500; }
.subcat-list a:hover { color: var(--accent); text-decoration: none; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2rem 0 1rem; }
.pagination__arrow { text-decoration: none; color: var(--primary); padding: 0.3rem 0.8rem; border: 1px solid var(--border); font-weight: 500; }
.pagination__arrow:hover { background: var(--light-bg); }
@media (max-width: 768px) { .catalog-layout { grid-template-columns: 1fr; } .catalog-sidebar { order: 2; } }

/* =========================================
   ГЛАВНАЯ СТРАНИЦА
   ========================================= */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.category-card { display: block; text-align: center; border: 1px solid var(--border); padding: 1.5rem 1rem; text-decoration: none; color: var(--primary); transition: box-shadow 0.2s; background: #fff; font-weight: 500; }
.category-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px); }
.category-card img { width: 100%; height: 120px; object-fit: contain; margin-bottom: 1rem; }
.category-card__title { font-weight: 600; font-size: 1.1rem; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.news-card { border: 1px solid var(--border); overflow: hidden; background: #fff; transition: box-shadow 0.2s; }
.news-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.news-card__img { width: 100%; height: 160px; object-fit: cover; }
.news-card__info { padding: 1rem; }

/* =========================================
   КАРТОЧКА ТОВАРА
   ========================================= */
.product-card { border: 1px solid var(--border); overflow: hidden; background: #fff; transition: box-shadow 0.2s; position: relative; }
.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.product-card__img { width: 100%; }
.product-card__img img { width: 100%; height: 200px; object-fit: cover; display: block; background: #f5f5f5; }
.product-card__header { padding: 1rem 1rem 0; }
.product-card__article { font-size: 0.8rem; color: #777; margin-bottom: 0.3rem; font-weight: 500; }
.product-card__title { font-size: 1rem; margin: 0 0 0.5rem; line-height: 1.3; word-break: break-word; }
.product-card__title a { color: var(--primary); text-decoration: none; font-weight: 600; }
.product-card__title a:hover { color: #d35400; }
.product-card__info { padding: 1rem; }
.price { font-weight: 700; font-size: 1.5rem; margin: 0.5rem 0; color: var(--text); }
.stock { font-size: 1rem; margin-bottom: 0.5rem; }
.in-stock { color: #27ae60; } .out-of-stock { color: #e74c3c; }
.btn-cart { background-color: var(--accent) !important; color: #fff !important; border: none !important; padding: 0.5rem 1.2rem; font-size: 1rem; cursor: pointer; font-weight: 600; }
.btn-cart:hover { background-color: #d35400 !important; }

/* =========================================
   СТРАНИЦА ТОВАРА
   ========================================= */
.product-page { display: flex; flex-wrap: wrap; gap: 2rem; margin: 2rem auto; }
.product-header { width: 100%; margin-bottom: 1rem; }
.product-gallery { position: relative; }
.product-content { width: 100%; margin-top: 2rem; }
.product-price { font-size: 1.8rem; font-weight: bold; margin-bottom: 0.5rem; color: var(--text); }
.product-buy-block { margin-bottom: 1.5rem; }
.product-stock { margin-bottom: 1rem; font-size: 1rem; }
.product-props { list-style: none; padding: 0; }
.product-props li { display: flex; justify-content: space-between; padding: 0.45rem 0; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.prop-name { font-weight: 600; color: var(--text); } .prop-value { color: #555; }
.product-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.action-link { padding: 0.3rem 0.6rem; font-size: 0.85rem; border: 1px solid var(--border); background: #fff; color: var(--text); text-decoration: none; cursor: pointer; }
.action-link:hover { background: var(--light-bg); }
.tabs-nav { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn { background: none; border: none; padding: 0.8rem 1.8rem; font-size: 1.05rem; font-weight: 600; color: #555; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-btn:hover { color: var(--primary); background: var(--light-bg); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--accent); }
.tab-pane { display: none; } .tab-pane.active { display: block; }
.spec-group { margin-bottom: 1.5rem; }
.spec-group h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; color: var(--primary); border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; font-weight: 600; }
.spec-group table { width: 100%; border-collapse: collapse; }
.spec-group td { padding: 0.4rem 0.6rem; border-bottom: 1px dotted var(--border); }
.spec-group td:first-child { width: 40%; font-weight: 600; }

/* =========================================
   КОРЗИНА
   ========================================= */
.cart-table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.cart-table th, .cart-table td { padding: 0.7rem; border: 1px solid var(--border); }
.cart-table thead { background: var(--light-bg); }
.cart-remove { color: #e74c3c; text-decoration: none; font-weight: bold; }

/* =========================================
   ФУТЕР
   ========================================= */
.footer { background: #333333; color: #fff; padding: 2rem 0; flex-shrink: 0; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer__bottom { text-align: center; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 1rem; }
.footer a { color: #ddd; text-decoration: none; } .footer a:hover { color: #fff; }
.footer h4 { font-size: 1.1rem !important; font-weight: 600; }


/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 768px) { .container { padding: 0 1rem; } .product-page { flex-direction: column; } }

/* ----- ФИЛЬТРЫ ----- */
.filter-form .sidebar-block { margin-bottom: 1.2rem; }
.filter-range { display: flex; align-items: center; gap: 0.5rem; }
.filter-range input { width: 80px; padding: 0.3rem; border: 1px solid var(--border); border-radius: 4px; font-size: 0.85rem; }
.filter-checkbox { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; cursor: pointer; color: var(--text); }
.btn-apply-filters, .btn-reset-filters { display: inline-block; margin-top: 0.8rem; padding: 0.4rem 1rem; font-size: 0.9rem; border: 1px solid var(--border); background: #fff; color: var(--primary); text-decoration: none; cursor: pointer; font-weight: 500; }
.btn-apply-filters { background: var(--accent); color: #fff; }
.filter-group { border-bottom: 1px solid var(--border); margin-bottom: 0.8rem; }
.filter-group__title { font-size: 0.95rem; font-weight: 600; padding: 0.5rem 0; cursor: pointer; display: flex; justify-content: space-between; color: var(--primary); }
.filter-group__title::after { content: '\25B8'; font-size: 0.8rem; transition: transform 0.2s; margin-left: auto; }
details[open] > .filter-group__title::after { transform: rotate(90deg); }

/* ----- ПОИСК ----- */
.search-title { margin-bottom: 1rem; color: var(--text); }
.search-page-form { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; max-width: 600px; }
.search-page-form input { flex: 1; padding: 0.6rem; border: 1px solid var(--border); font-size: 1rem; color: var(--text); }
.search-page-form button { padding: 0.6rem 1.2rem; background: var(--accent); color: #fff; border: none; cursor: pointer; font-size: 1rem; }
.product__title { font-size: 1.4rem; margin: 0.5rem 0 0; line-height: 1.3; color: var(--text); }

/* ===== ГАЛЕРЕЯ ===== */
.gallery-wrapper { display: flex; flex-direction: row; gap: 1rem; width: 100%; }
.main-image { flex: 1; min-width: 0; }
.main-image img { width: 100%; height: auto; }
.thumbnails { display: flex; flex-direction: column; gap: 0.5rem; flex: 0 0 70px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.thumbnails img { width: 70px; height: 70px; object-fit: cover; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; }
.thumbnails img:hover { border-color: var(--primary); }
.gallery-wrapper a { display: block; text-decoration: none; color: inherit; border: none; outline: none; }
.product__article { font-size: 0.9rem; color: #777; margin-bottom: 0.5rem; font-weight: 500; }
@media (max-width: 768px) { .gallery-wrapper { flex-direction: column; } .thumbnails { flex-direction: row; flex-wrap: wrap; } }

/* ===== НОВИНКА ===== */
.new-badge { position: absolute; top: 10px; right: 10px; background: #ED9121; color: #fff; font-size: 0.75rem; padding: 4px 10px; border-radius: 4px; z-index: 10; }

/* ===== СЛАЙДЕР ===== */
.slider-container { position: relative; width: 100%; max-width: 1400px; margin: 0 auto 2rem; overflow: hidden; }
.slider-wrapper { display: flex; transition: transform 0.5s ease; }
.slide { flex: 1 0 100%; } .slide img { width: 100%; display: block; }
.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: #fff; border: none; font-size: 2rem; padding: 0.5rem 1rem; cursor: pointer; z-index: 10; }
.slider-prev { left: 10px; } .slider-next { right: 10px; }
.slider-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; }
.dot.active { background: #fff; }

/* ===== ВИДЫ ОТОБРАЖЕНИЯ ===== */
.change-view-mode-block { display: flex; gap: 0.5rem; margin-bottom: 1rem; justify-content: flex-end; }
.change-view-mode-item { padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px; color: #666; background: #fff; text-decoration: none; cursor: pointer; }
.change-view-mode-item:hover { background: var(--light-bg); color: var(--primary); }
.change-view-mode-item.active { background: var(--primary); color: #fff; }

/* Сетка */
.products-grid,
.products-view-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 0.5rem !important;
}

/* На мобильных — одна колонка */
@media (max-width: 768px) {
    .products-grid,
    .products-view-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Список */
.products-view-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}
.products-view-list .product-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    padding: 1rem !important;
    border: 1px solid var(--border);
    background: #fff;
    gap: 1rem;
    height: auto !important;
    max-width: 100% !important;
}
.products-view-list .product-card__img {
    flex: 0 0 150px !important;
    width: 150px !important;
    height: 150px !important;
    min-width: 150px !important;
    order: 1 !important;
    background: #f5f5f5;
    overflow: hidden;
}
.products-view-list .product-card__img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}
.products-view-list .product-card__info-block {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    order: 2 !important;
}
.products-view-list .product-card__title {
    font-size: 1rem !important;
    white-space: normal !important;
    word-break: break-word !important;
}
.products-view-list .product-card__buy {
    flex: 0 0 auto !important;
    min-width: 140px !important;
    text-align: right !important;
    order: 3 !important;
}
@media (max-width: 768px) {
    .products-view-list .product-card { flex-direction: column !important; }
    .products-view-list .product-card__img { width: 100% !important; height: 200px !important; }
}

/* ----- ОСТАЛЬНОЕ ----- */
.text-md-left { text-align: left !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; }
.product-buy-block .btn-cart { width: 100% !important; max-width: 250px; padding: 0.6rem 1.5rem !important; font-size: 1rem !important; }
.product-actions .action-link { display: inline-flex !important; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0 !important; border-radius: 4px; }
#pack-price { font-size: 0.9rem !important; }

.catalog-categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem; margin: 2rem 0; }

.catalog-category-card {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    transition: box-shadow 0.3s ease;
}

.catalog-category-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.category-card__image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.category-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: none;
    padding: 1rem 0.8rem;
}

.category-card__overlay-text {
    display: block;
    color: #000 !important;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.catalog-category-card:hover .category-card__overlay-text {
    color: #ED9121 !important;
}

@media (max-width: 768px) {
    .tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        flex-shrink: 0;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/*-----текст в отзывах-----*/
.tab-pane#tab-reviews p {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    color: var(--text);
}

/* список подкатегорий для мобилок */
.subcategories-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

.subcategories-bar a {
    color: var(--primary);
    font-weight: 500;
    border-color: #ccc;
}
.subcategories-bar a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Ссылки в новостях и проектах */
.news-card a,
.project-card a,
article a {
    color: var(--primary) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.news-card a:hover,
.project-card a:hover,
article a:hover {
    color: #ED9121 !important;
    text-decoration: none !important;
}

/* Заголовки новостей/проектов */
.news-card h3 a,
.project-card h3 a,
article h1 a {
    color: var(--primary) !important;
    text-decoration: none !important;
    font-weight: 600;
}

.news-card h3 a:hover,
.project-card h3 a:hover,
article h1 a:hover {
    color: #ED9121 !important;
}

/*==========================================================================================================*/

/* ----- ФИЛЬТР ЦВЕТОВ ----- */
.filter-colors__wrapper {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}
.filter-colors__wrapper::-webkit-scrollbar {
    width: 4px;
}
.filter-colors__wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}
.filter-colors__section {
    margin-bottom: 8px;
}
.filter-colors__divider {
    font-size: 0.8rem;
    color: #999;
    padding: 6px 0 4px;
    border-bottom: 1px solid #eee;
    margin-bottom: 6px;
}
.filter-color-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.85rem;
    user-select: none;
}
.filter-color-item:hover {
    background: #f0f0f0;
}
.filter-color-item.active {
    background: #fff3e0;
    font-weight: 500;
}
.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.15);
}
.temp-dot {
    border-radius: 2px;
}
.color-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.color-count {
    color: #999;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.filter-select-all {
    display: block;
    width: 100%;
    padding: 5px;
    margin-top: 8px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-select-all:hover {
    background: #f5f5f5;
    color: #ED9121;
    border-color: #ED9121;
}

/*------остальные фильтры для св.л----------------*/
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s;
    color: var(--text);
}
.filter-checkbox:hover {
    background: #f5f5f5;
}
.filter-checkbox.active {
    background: #fff3e0;
}
.filter-count {
    color: #999;
    font-size: 0.8rem;
    margin-left: auto;
}



/* Выравнивание карточки товара */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card__info {
    margin-top: auto;
}

/* Ограничение высоты названия */
.product-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.6em;
}

/* Для режима списка */
.products-view-list .product-card__title {
    min-height: auto;
    -webkit-line-clamp: unset;
}


/*--------стили для файлов  pdf  в карточке товара------------------------------*/
.files-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.file-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: #fafafa;
}
.file-link:hover {
    border-color: #ED9121;
    background: #fff8f0;
}
.file-icon {
    font-size: 1.2rem;
}
.file-name {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/*----------------------------------------*/

/* ===== ДЕРЕВО КАТЕГОРИЙ ===== */
.catalog-tree {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.5rem;
}

.catalog-tree__section {
    border: 1px solid #ddd;
    padding: 1.25rem;
    background: #fff;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.catalog-tree__section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: #ED9121;
}

.catalog-tree__title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ED9121;
    padding-bottom: 0.5rem;
}

.catalog-tree__title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.catalog-tree__title a:hover {
    color: #ED9121;
}

.catalog-tree__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
}

.catalog-tree__links a {
    position: relative;
    padding-left: 12px;
    color: #555;
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.5;
    transition: color 0.2s;
}

.catalog-tree__links a::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #ED9121;
    font-weight: bold;
}

.catalog-tree__links a:hover {
    color: #ED9121;
}

@media (max-width: 768px) {
    .catalog-tree {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}



/* Исправление для мобильной версии */
@media (max-width: 768px) {
    .catalog-layout {
        display: flex;
        flex-direction: column;
    }
    .catalog-sidebar {
        order: 2;
        width: 100%;
        max-width: 100%;
    }
    .catalog-products {
        order: 1;
        width: 100%;
        max-width: 100%;
    }
    .products-view-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .product-card {
        max-width: 100%;
        overflow: hidden;
    }
    .product-card__title {
        font-size: 0.85rem !important;
    }
    .price {
        font-size: 1.1rem !important;
    }
    .filter-colors__wrapper {
        max-height: 250px;
    }
    .filter-checkbox {
        font-size: 0.85rem;
    }
    .color-name {
        font-size: 0.8rem;
    }
}


/*----стиль для выпадающей категории---------------------*/
.catalog-dropdown li a.active {
    background: #fff3e0;
    color: #ED9121;
    font-weight: 600;
}


/* ===== БАННЕР РЕМОНТА ===== */
.renovation-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1450px;
    margin: 0 auto 3rem;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    padding: 2rem;
    align-items: center;
}

.renovation-banner__content h2 {
    font-size: 1.8rem;
    margin: 0 0 1rem;
    color: #1a1a1a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.renovation-banner__content p {
    font-size: 1.1rem;
    color: #555;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.renovation-banner__features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.renovation-banner__features span {
    color: #2c2c2c;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-renovation {
    display: inline-block;
    background: #ED9121;
    color: #fff;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-renovation:hover {
    background: #d35400;
}

.renovation-banner__image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .renovation-banner {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .renovation-banner__content h2 {
        font-size: 1.4rem;
    }
}



/*----------------------------------------*/

/* ===== МИНИ-ГАЛЕРЕЯ ===== */
.mini-gallery {
    padding: 10px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.mini-gallery h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    text-align: center;
}

.mini-gallery__subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

.mini-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mini-gallery__item {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 0px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.mini-gallery__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.mini-gallery__image {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.mini-gallery__item:hover .mini-gallery__image {
    transform: scale(1.03);
}

.mini-gallery__badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
}

.mini-gallery__item:hover .mini-gallery__badge {
    opacity: 1;
}

.mini-gallery__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
}

.mini-gallery__info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

.mini-gallery__arrow {
    font-size: 20px;
    color: #c9a84c;
    transition: transform 0.3s ease;
}

.mini-gallery__item:hover .mini-gallery__arrow {
    transform: translateX(4px);
}

/* ===== ЛАЙТБОКС ===== */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
    object-fit: contain;
}

.gallery-lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
}

.gallery-lightbox__close:hover {
    color: #ED9121;
}

.gallery-lightbox__prev,
.gallery-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    z-index: 10;
    transition: background 0.3s;
}

.gallery-lightbox__prev {
    left: 30px;
    border-radius: 0 6px 6px 0;
}

.gallery-lightbox__next {
    right: 30px;
    border-radius: 6px 0 0 6px;
}

.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover {
    background: rgba(237,145,33,0.8);
}

.gallery-lightbox__counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1rem;
    background: rgba(0,0,0,0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    z-index: 10;
}

/* ===== АДАПТИВ ДЛЯ ГАЛЕРЕИ ===== */
@media (max-width: 1024px) {
    .mini-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mini-gallery {
        padding: 40px 16px;
    }
    .mini-gallery h2 {
        font-size: 28px;
    }
    .mini-gallery__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .mini-gallery__info h3 {
        font-size: 15px;
    }
    .gallery-lightbox img {
        max-width: 90%;
        max-height: 70%;
    }
    .gallery-lightbox__prev {
        left: 10px;
    }
    .gallery-lightbox__next {
        right: 10px;
    }
}/*------------------------------*/
/* ===== СТРАНИЦА РЕМОНТА ===== */
.renovation-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.renovation-hero {
    text-align: center;
    padding: 1rem 0;
}

.renovation-hero h1 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.renovation-hero p {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

/* ===== УСЛУГИ ===== */
.renovation-services {
    padding: 40px 0;
}

.renovation-services h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #1a1a1a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
}

.renovation-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.renovation-service {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.5rem;
    background: #fff;
    transition: all 0.3s ease;
    text-align: center;
}

.renovation-service:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #ED9121;
    transform: translateY(-2px);
}

.renovation-service h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    font-weight: 700;
}

.renovation-service p {
    color: #555;
    line-height: 1.5;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== ПЯТЬ ШАГОВ ===== */
.renovation-steps {
    padding: 40px 0;
}

.renovation-steps h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #1a1a1a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.renovation-steps__intro {
    text-align: center;
    color: #666;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.5;
    font-size: 1rem;
}

.renovation-steps__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}

.renovation-step {
    position: relative;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 2rem 1.25rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    transition: all 0.3s ease;
    text-align: center;
}

.renovation-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: #ED9121;
}

.renovation-step span {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    margin-bottom: 1rem;
    min-height: 2.5em;
    line-height: 1.3;
}

.renovation-step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 1rem;
    background: #ED9121;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.renovation-step:hover::before {
    background: #d35400;
}

/* ===== ПАРТНЁР ===== */
.renovation-partner {
    border-left: 3px solid #ED9121;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
  /*  border-radius: 0 6px 6px 0;  */
    margin: 40px 0;
}

.renovation-partner h2 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.renovation-partner p {
    color: #555;
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

.renovation-partner a {
    color: #ED9121;
    text-decoration: none;
    font-weight: 600;
}

.renovation-partner a:hover {
    text-decoration: underline;
}

/* ===== КАЛЬКУЛЯТОР ===== */
.renovation-calculator {
    background: #f8f9fa;
    /* border-radius: 0px;  */
    padding: 50px 40px;
    margin: 40px 0;
}

.renovation-calculator h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 700;
}

.calculator-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 35px;
    font-size: 16px;
    line-height: 1.5;
}

.calc-page {
    display: none;
    max-width: 600px;
    margin: 0 auto;
}

.calc-page.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
}

.radio-group label {
    display: block;
    font-weight: 400;
    padding: 10px 15px;
    margin-bottom: 5px;
    border: 2px solid #e0e0e0;
    /* border-radius: 10px;  */
    cursor: pointer;
    transition: border-color 0.3s;
    font-size: 0.95rem;
}

.radio-group label:hover {
    border-color: #ED9121;
}

.radio-group:has(input[type="radio"]:checked) label {
    border-color: #ED9121;
    background: rgba(237, 145, 33, 0.05);
}

.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ED9121;
    outline: none;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-next, .btn-prev, .btn-submit {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-next {
    background: #ED9121;
    color: white;
}

.btn-next:hover {
    background: #d35400;
}

.btn-prev {
    background: #e0e0e0;
    color: #333;
}

.btn-prev:hover {
    background: #d0d0d0;
}

.btn-submit {
    background: #ED9121;
    color: white;
    width: 100%;
}

.btn-submit:hover {
    background: #d35400;
}

.results-grid {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    color: #333;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.total {
    font-weight: 700;
    font-size: 19px;
    color: #1a1a1a;
    border-top: 2px solid #ED9121;
    border-bottom: none;
    padding-top: 18px;
    margin-top: 5px;
}

.price {
    color: #2f332f;
    font-weight: 500;
    white-space: nowrap;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .renovation-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .renovation-steps__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .renovation-page {
        padding: 1rem;
    }
    .renovation-calculator {
        padding: 30px 20px;
    }
    .result-item {
        font-size: 14px;
        padding: 12px 0;
    }
    .result-item.total {
        font-size: 17px;
    }
    .renovation-services__grid {
        grid-template-columns: 1fr;
    }
    .renovation-steps__grid {
        grid-template-columns: 1fr;
    }
}