/*
Theme Name: Bonasort
Theme URI: https://bonasort.by
Description: Кастомная тема Bonasort — лёгкая WooCommerce без Elementor
Author: Bonasort Dev
Version: 1.0.0
Text Domain: bonasort
Tags: e-commerce, woocommerce, custom, performance
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
*/

:root {
    --bs-primary: #88222f;
    --bs-primary-hover: #cc253b;
    --bs-primary-soft: #88222fc2;
    --bs-primary-light: #f8eef0;
    --bs-dark: #333333;
    --bs-gray: #555555;
    --bs-gray-light: #7a7a7a;
    --bs-gray-lighter: #999999;
    --bs-bg-light: #fbfbfb;
    --bs-bg-gray: #f4f4f4;
    --bs-bg-darker: #f9f9f9;
    --bs-border: #e8e8e8;
    --bs-border-dark: #d9d9d9;
    --bs-white: #ffffff;
    --bs-success: #28a745;
    --bs-danger: #dc3545;
    --bs-warning: #ffc107;
    --bs-info: #17a2b8;

    --bs-font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --bs-font-head: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --bs-font-mono: 'SF Mono', Monaco, Consolas, monospace;

    --bs-font-size: 15px;
    --bs-font-size-sm: 13px;
    --bs-font-size-xs: 12px;
    --bs-font-size-lg: 18px;
    --bs-font-size-xl: 24px;
    --bs-line-height: 1.6;

    --bs-container: 1222px;
    --bs-container-sm: 768px;
    --bs-container-md: 1024px;

    --bs-radius: 4px;
    --bs-radius-lg: 8px;
    --bs-radius-sm: 2px;
    --bs-radius-round: 50%;

    --bs-transition: 0.25s ease;
    --bs-transition-slow: 0.4s ease;

    --bs-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --bs-shadow: 0 4px 15px rgba(0,0,0,0.08);
    --bs-shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --bs-shadow-hover: 0 8px 25px rgba(0,0,0,0.12);

    --bs-gap: 20px;
    --bs-gap-sm: 10px;
    --bs-gap-xs: 5px;
    --bs-gap-lg: 30px;
    --bs-gap-xl: 40px;

    --bs-header-h: 120px;
    --bs-adminbar-h: 32px;

    --bs-z-header: 1000;
    --bs-z-dropdown: 900;
    --bs-z-overlay: 9998;
    --bs-z-modal: 9999;
    --bs-z-sticky: 500;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: var(--bs-font-size);
}

body {
    font-family: var(--bs-font-body);
    font-size: var(--bs-font-size);
    line-height: var(--bs-line-height);
    color: var(--bs-dark);
    background: var(--bs-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color var(--bs-transition);
}
a:hover { color: var(--bs-primary-hover); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bs-font-head);
    font-weight: 600;
    line-height: 1.3;
    color: var(--bs-dark);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { list-style: none; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    padding: 10px 15px;
    outline: none;
    transition: border-color var(--bs-transition);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--bs-primary);
}

table {
    width: 100%;
    border-collapse: collapse;
}

hr {
    border: none;
    border-top: 1px solid var(--bs-border);
    margin: 20px 0;
}

.container {
    max-width: var(--bs-container);
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid { padding: 0 15px; }

.bs-grid { display: grid; gap: var(--bs-gap); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--bs-radius);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    transition: all var(--bs-transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--bs-primary);
    color: var(--bs-white);
    border-color: var(--bs-primary);
}
.btn-primary:hover {
    background: var(--bs-primary-hover);
    border-color: var(--bs-primary-hover);
    color: var(--bs-white);
    transform: translateY(-1px);
    box-shadow: var(--bs-shadow);
}

.btn-outline {
    background: transparent;
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-outline:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.btn-light {
    background: var(--bs-bg-light);
    color: var(--bs-dark);
    border-color: var(--bs-border);
}
.btn-light:hover {
    background: var(--bs-bg-gray);
}

.btn-link {
    background: none;
    border: none;
    color: var(--bs-primary);
    padding: 4px 0;
    font-weight: 500;
}
.btn-link:hover { color: var(--bs-primary-hover); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--bs-radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-primary { background: var(--bs-primary); color: var(--bs-white); }
.badge-success { background: var(--bs-success); color: var(--bs-white); }
.badge-warning { background: var(--bs-warning); color: var(--bs-dark); }
.badge-light { background: var(--bs-bg-gray); color: var(--bs-gray); }

.site-header {
    position: relative;
    z-index: var(--bs-z-header);
    background: var(--bs-white);
}

.header-topbar {
    background: var(--bs-primary);
    color: var(--bs-white);
    font-size: var(--bs-font-size-sm);
    padding: 8px 0;
}
.header-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.header-topbar a { color: var(--bs-white); }
.header-topbar a:hover { opacity: 0.8; }
.header-topbar .topbar-text { font-weight: 600; }
.header-topbar .topbar-contacts {
    display: flex;
    gap: 20px;
    align-items: center;
}
.header-topbar .topbar-contacts a {
    display: flex;
    align-items: center;
    gap: 5px;
}
.header-topbar .topbar-contacts i { font-size: 12px; }

.header-main {
    border-bottom: 1px solid var(--bs-border);
    padding: 15px 0;
    background: var(--bs-white);
    transition: transform var(--bs-transition);
}
.header-main.hidden { transform: translateY(-100%); }
.header-main .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.site-logo img {
    max-height: 60px;
    width: auto;
}

.header-search {
    flex: 1;
    max-width: 600px;
    position: relative;
}
.header-search .search-form {
    display: flex;
    border: 2px solid var(--bs-border);
    border-radius: var(--bs-radius);
    overflow: hidden;
    background: var(--bs-white);
    transition: border-color var(--bs-transition);
}
.header-search .search-form:focus-within { border-color: var(--bs-primary); }
.header-search .search-cat {
    position: relative;
    border-right: 1px solid var(--bs-border);
}
.header-search .search-cat select {
    border: none;
    border-radius: 0;
    padding: 10px 35px 10px 15px;
    background: var(--bs-bg-light);
    font-size: 13px;
    appearance: none;
    cursor: pointer;
    height: 100%;
    min-width: 160px;
}
.header-search .search-cat::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--bs-gray-light);
    pointer-events: none;
}
.header-search .search-input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
}
.header-search .search-submit {
    background: var(--bs-primary);
    color: var(--bs-white);
    padding: 0 20px;
    font-weight: 600;
    font-size: 14px;
    transition: background var(--bs-transition);
}
.header-search .search-submit:hover { background: var(--bs-primary-hover); }

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--bs-white);
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    box-shadow: var(--bs-shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: var(--bs-z-dropdown);
    display: none;
}
.search-results-dropdown.show { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--bs-bg-gray);
    transition: background var(--bs-transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bs-bg-light); }
.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--bs-radius-sm);
    flex-shrink: 0;
}
.search-result-item .result-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--bs-dark);
    margin-bottom: 2px;
}
.search-result-item .result-price {
    font-size: 13px;
    color: var(--bs-primary);
    font-weight: 600;
}
.search-results-dropdown .no-results {
    padding: 20px;
    text-align: center;
    color: var(--bs-gray-light);
}
.search-results-dropdown .see-all {
    display: block;
    padding: 12px;
    text-align: center;
    background: var(--bs-bg-light);
    font-weight: 600;
    font-size: 13px;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.header-tools .tool-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bs-gray);
    font-size: 13px;
    font-weight: 500;
    position: relative;
}
.header-tools .tool-item:hover { color: var(--bs-primary); }
.header-tools .tool-item i { font-size: 18px; }
.header-tools .tool-count {
    background: var(--bs-primary);
    color: var(--bs-white);
    border-radius: var(--bs-radius-round);
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 5px;
}
.header-tools .header-social {
    display: flex;
    gap: 7px;
    padding-left: 20px;
    border-left: 1px solid var(--bs-border);
}
.header-social a {
    width: 32px;
    height: 32px;
    border-radius: var(--bs-radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-bg-gray);
    color: var(--bs-gray);
    font-size: 14px;
    transition: all var(--bs-transition);
}
.header-social a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
    transform: scale(1.1);
}

.header-bottom {
    border-bottom: 1px solid var(--bs-border);
    background: var(--bs-white);
}
.header-bottom .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.categories-trigger {
    background: var(--bs-primary);
    color: var(--bs-white);
    padding: 12px 20px;
    border-radius: var(--bs-radius);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
    transition: background var(--bs-transition);
    flex-shrink: 0;
}
.categories-trigger:hover { background: var(--bs-primary-hover); }
.categories-trigger .hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 18px;
}
.categories-trigger .hamburger span {
    height: 2px;
    background: var(--bs-white);
    border-radius: 2px;
    transition: all var(--bs-transition);
}
.categories-trigger:hover .hamburger span:nth-child(1) { width: 12px; }
.categories-trigger:hover .hamburger span:nth-child(2) { width: 18px; }
.categories-trigger:hover .hamburger span:nth-child(3) { width: 14px; }

.categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 350px;
    max-height: 500px;
    overflow-y: auto;
    background: var(--bs-white);
    box-shadow: var(--bs-shadow-lg);
    border-radius: 0 0 var(--bs-radius) var(--bs-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--bs-transition);
    z-index: var(--bs-z-dropdown);
    padding: 5px 0;
}
.categories-trigger:hover .categories-dropdown,
.categories-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.categories-dropdown li { border-bottom: 1px solid var(--bs-bg-gray); }
.categories-dropdown li:last-child { border-bottom: none; }
.categories-dropdown li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: var(--bs-dark);
    font-size: 14px;
    transition: all var(--bs-transition);
}
.categories-dropdown li a:hover {
    background: var(--bs-bg-light);
    color: var(--bs-primary);
    padding-left: 20px;
}
.categories-dropdown .cat-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}
.categories-dropdown .has-children > a::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 10px;
    color: var(--bs-gray-light);
}

.main-nav { flex: 1; }
.main-nav ul {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}
.main-nav li { position: relative; }
.main-nav a {
    color: var(--bs-dark);
    font-weight: 500;
    font-size: 14px;
    padding: 12px 0;
    display: block;
    position: relative;
    transition: color var(--bs-transition);
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: var(--bs-primary);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bs-primary);
    transition: width var(--bs-transition);
}
.main-nav a:hover::after { width: 100%; }

.mobile-header {
    display: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--bs-border);
    background: var(--bs-white);
    position: sticky;
    top: 0;
    z-index: var(--bs-z-header);
}
.mobile-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.mobile-header .mobile-logo img { max-height: 40px; }
.mobile-header .mobile-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}
.mobile-header .mobile-actions button,
.mobile-header .mobile-actions a {
    font-size: 22px;
    color: var(--bs-dark);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-header .mobile-actions button:hover,
.mobile-header .mobile-actions a:hover { color: var(--bs-primary); }

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: var(--bs-white);
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
    z-index: var(--bs-z-modal);
    overflow-y: auto;
    transition: left var(--bs-transition-slow);
    -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { left: 0; }

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: var(--bs-z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all var(--bs-transition-slow);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }

.mobile-nav .nav-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: var(--bs-gray);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-nav .nav-tabs {
    display: flex;
    border-bottom: 2px solid var(--bs-bg-gray);
    margin-top: 50px;
}
.mobile-nav .nav-tabs button {
    flex: 1;
    padding: 15px;
    font-weight: 600;
    color: var(--bs-gray-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--bs-transition);
    font-size: 14px;
}
.mobile-nav .nav-tabs button.active {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.mobile-nav .nav-content { padding: 15px; }
.mobile-nav .nav-content > ul > li {
    border-bottom: 1px solid var(--bs-bg-gray);
}
.mobile-nav .nav-content > ul > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--bs-dark);
    font-weight: 500;
}
.mobile-nav .nav-content > ul > li > a:hover { color: var(--bs-primary); }
.mobile-nav .nav-content img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.mobile-nav .tab-content { display: none; }
.mobile-nav .tab-content.active { display: block; }

.page-header-section {
    background: var(--bs-bg-gray);
    padding: 20px 0;
    border-bottom: 1px solid var(--bs-border);
}
.page-header-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.page-header-section h1 {
    font-size: 32px;
    color: var(--bs-dark);
    margin: 0;
}

.breadcrumbs {
    font-size: var(--bs-font-size-sm);
    color: var(--bs-gray-light);
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.breadcrumbs a { color: var(--bs-gray-light); }
.breadcrumbs a:hover { color: var(--bs-primary); }
.breadcrumbs .sep {
    color: var(--bs-gray-lighter);
    margin: 0 4px;
}
.breadcrumbs .current { color: var(--bs-dark); font-weight: 500; }

.page-header-actions { display: flex; gap: 10px; align-items: center; }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bs-gray);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--bs-radius);
    background: var(--bs-white);
    border: 1px solid var(--bs-border);
    cursor: pointer;
    transition: all var(--bs-transition);
}
.back-btn:hover {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    padding: 30px 0;
    align-items: start;
}

.shop-sidebar {
    position: sticky;
    top: 20px;
}
.shop-sidebar .widget {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--bs-border);
}
.shop-sidebar .widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.shop-sidebar .widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--bs-dark);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bs-primary);
}
.shop-sidebar .product-categories {
    font-size: 14px;
}
.shop-sidebar .product-categories li {
    padding: 6px 0;
    border-bottom: 1px solid var(--bs-bg-gray);
}
.shop-sidebar .product-categories li:last-child { border-bottom: none; }
.shop-sidebar .product-categories .current-cat > a {
    color: var(--bs-primary);
    font-weight: 600;
}
.shop-sidebar .product-categories .children {
    padding-left: 15px;
    margin-top: 6px;
    border-left: 2px solid var(--bs-bg-gray);
}
.shop-sidebar .product-categories .children li {
    font-size: 13px;
    padding: 4px 0;
}
.shop-sidebar .product-categories .cat-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.shop-sidebar .product-categories .cat-item .count {
    color: var(--bs-gray-light);
    font-size: 12px;
    background: var(--bs-bg-gray);
    padding: 2px 8px;
    border-radius: var(--bs-radius-round);
}

.shop-sidebar .widget-products li {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bs-bg-gray);
}
.shop-sidebar .widget-products li:last-child { border-bottom: none; }
.shop-sidebar .widget-products img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--bs-radius-sm);
    flex-shrink: 0;
}
.shop-sidebar .widget-products .product-info { flex: 1; }
.shop-sidebar .widget-products .product-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--bs-dark);
    line-height: 1.3;
    margin-bottom: 4px;
    display: block;
}
.shop-sidebar .widget-products .product-title:hover { color: var(--bs-primary); }

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: var(--bs-bg-light);
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    flex-wrap: wrap;
    gap: 10px;
}
.shop-toolbar .result-count {
    font-size: var(--bs-font-size-sm);
    color: var(--bs-gray-light);
}
.shop-toolbar .toolbar-right {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}
.shop-toolbar .ordering {
    display: flex;
    align-items: center;
    gap: 8px;
}
.shop-toolbar .ordering label {
    font-size: 13px;
    color: var(--bs-gray);
}
.shop-toolbar .ordering select {
    padding: 6px 30px 6px 12px;
    font-size: 13px;
    border-radius: var(--bs-radius);
    border: 1px solid var(--bs-border);
    background: var(--bs-white);
    appearance: none;
    cursor: pointer;
}
.shop-toolbar .per-page {
    display: flex;
    gap: 5px;
    align-items: center;
}
.shop-toolbar .per-page a {
    padding: 4px 10px;
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius-sm);
    font-size: 13px;
    color: var(--bs-gray);
}
.shop-toolbar .per-page a.active,
.shop-toolbar .per-page a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
    border-color: var(--bs-primary);
}
.shop-toolbar .view-switcher {
    display: flex;
    gap: 5px;
}
.shop-toolbar .view-switcher button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius-sm);
    color: var(--bs-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-toolbar .view-switcher button.active,
.shop-toolbar .view-switcher button:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
    border-color: var(--bs-primary);
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--bs-gap);
    margin-bottom: 30px;
}

.category-card {
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    overflow: hidden;
    text-align: center;
    transition: all var(--bs-transition);
    background: var(--bs-white);
    display: flex;
    flex-direction: column;
}
.category-card:hover {
    box-shadow: var(--bs-shadow-hover);
    transform: translateY(-3px);
    border-color: var(--bs-primary);
}
.category-card-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bs-bg-light);
}
.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bs-transition-slow);
}
.category-card:hover .category-card-image img { transform: scale(1.05); }
.category-card-body {
    padding: 12px;
}
.category-card-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--bs-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}
.category-card-count {
    font-size: 12px;
    color: var(--bs-gray-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--bs-gap);
}
.products-grid.list-view {
    grid-template-columns: 1fr;
}
.products-grid.list-view .product-card {
    flex-direction: row;
}
.products-grid.list-view .product-card-image {
    width: 200px;
    flex-shrink: 0;
}
.products-grid.list-view .product-card-body {
    flex: 1;
}

.product-card {
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    overflow: hidden;
    transition: all var(--bs-transition);
    background: var(--bs-white);
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover {
    border-color: var(--bs-primary);
    box-shadow: var(--bs-shadow-hover);
    transform: translateY(-3px);
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bs-bg-light);
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bs-transition-slow);
}
.product-card:hover .product-card-image img { transform: scale(1.05); }

.product-card-image .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--bs-transition);
    z-index: 2;
}
.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}
.product-actions a,
.product-actions button {
    width: 36px;
    height: 36px;
    border-radius: var(--bs-radius-round);
    background: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-dark);
    box-shadow: var(--bs-shadow-sm);
    transition: all var(--bs-transition);
    font-size: 14px;
}
.product-actions a:hover,
.product-actions button:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
    transform: scale(1.1);
}
.product-actions .added {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.product-card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 39px;
}
.product-card-title a { color: var(--bs-dark); }
.product-card-title a:hover { color: var(--bs-primary); }

.product-card-desc {
    font-size: 12px;
    color: var(--bs-gray-light);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.product-card-meta .brand {
    color: var(--bs-gray-light);
    font-size: 11px;
}

.product-card-cta {
    margin-top: 10px;
}
.product-card-cta .btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
}

.my-hidden-archive .product-card-image img,
.my-hidden-archive .product-gallery-main img {
    filter: grayscale(1) opacity(0.5);
}
.my-hidden-archive .product-card-image::after,
.my-hidden-archive .product-gallery-wrapper::after {
    content: 'Наличие уточняйте';
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--bs-primary-soft);
    padding: 4px 10px;
    border-radius: var(--bs-radius-sm);
    color: var(--bs-white);
    font-size: 12px;
    font-weight: 500;
    z-index: 3;
}

.load-more-wrap {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--bs-border);
}
.load-more-btn {
    background: var(--bs-primary);
    color: var(--bs-white);
    padding: 14px 40px;
    border-radius: var(--bs-radius);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--bs-transition);
    border: 2px solid var(--bs-primary);
}
.load-more-btn:hover {
    background: var(--bs-primary-hover);
    border-color: var(--bs-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--bs-shadow);
}
.load-more-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}
.pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    color: var(--bs-dark);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--bs-transition);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
    border-color: var(--bs-primary);
}

.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px 0;
}

.product-gallery {
    position: sticky;
    top: 20px;
}
.product-gallery-main {
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 1;
    background: var(--bs-bg-light);
    position: relative;
}
.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}
.product-gallery-main .zoom-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--bs-white);
    border-radius: var(--bs-radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-dark);
    box-shadow: var(--bs-shadow);
    cursor: pointer;
    transition: all var(--bs-transition);
}
.product-gallery-main .zoom-btn:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.product-gallery-thumbs img {
    border: 2px solid var(--bs-border);
    border-radius: var(--bs-radius);
    cursor: pointer;
    aspect-ratio: 1;
    object-fit: cover;
    transition: border-color var(--bs-transition);
}
.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active {
    border-color: var(--bs-primary);
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-short-desc {
    font-weight: 500;
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    background: var(--bs-bg-light);
    border-radius: var(--bs-radius);
    margin-bottom: 20px;
    border: 1px solid var(--bs-border);
    font-size: 14px;
    line-height: 1.6;
}
.product-short-desc::-webkit-scrollbar { width: 3px; }
.product-short-desc::-webkit-scrollbar-thumb {
    background: var(--bs-primary-soft);
    border-radius: 4px;
}
.product-short-desc::-webkit-scrollbar-track {
    background: var(--bs-border-dark);
    border-radius: 4px;
}

.product-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}
.product-info-row .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--bs-gray);
}
.product-info-row .info-item i {
    font-size: 20px;
    color: var(--bs-primary);
}

.product-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.product-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bs-bg-light);
    border-radius: var(--bs-radius);
    font-size: 13px;
}
.product-feature i {
    font-size: 18px;
    color: var(--bs-primary);
    flex-shrink: 0;
}

.product-cta {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--bs-border);
}
.product-cta .btn { margin-bottom: 10px; }

.product-contact-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bs-border);
}
.product-contact-row .contact-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-dark);
}

.product-tabs {
    margin-top: 50px;
}
.product-tabs .tabs {
    display: flex;
    border-bottom: 2px solid var(--bs-border);
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.product-tabs .tabs a {
    padding: 12px 24px;
    font-weight: 600;
    color: var(--bs-gray-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--bs-transition);
    font-size: 14px;
}
.product-tabs .tabs a:hover,
.product-tabs .tabs a.active {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.product-tabs .tab-content { display: none; }
.product-tabs .tab-content.active { display: block; }

.product-attributes {
    width: 100%;
    border-collapse: collapse;
}
.product-attributes th,
.product-attributes td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--bs-border);
    text-align: left;
    font-size: 14px;
}
.product-attributes th {
    width: 40%;
    color: var(--bs-gray);
    font-weight: 500;
    background: var(--bs-bg-light);
}
.product-attributes td { color: var(--bs-dark); }
.product-attributes tr:last-child th,
.product-attributes tr:last-child td { border-bottom: none; }

.product-documents {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.product-document {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    transition: all var(--bs-transition);
}
.product-document:hover {
    border-color: var(--bs-primary);
    box-shadow: var(--bs-shadow-sm);
}
.product-document i {
    font-size: 24px;
    color: var(--bs-danger);
    flex-shrink: 0;
}
.product-document .doc-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--bs-dark);
}
.product-document .doc-size {
    font-size: 12px;
    color: var(--bs-gray-light);
}

.related-products {
    margin-top: 50px;
}
.related-products h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.hero-section {
    height: 450px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(248,248,248,0.95) 0%, rgba(245,248,252,0.85) 50%, rgba(250,250,252,0.75) 100%),
                url('https://bonasort.by/wp-content/uploads/2021/06/sadasda34jpg-3.jpg') right center / cover;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 50%;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(252,254,255,0.8) 60%, rgba(248,252,255,0.4) 85%, transparent 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
    padding: 0 20px;
}
.hero-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--bs-dark);
    line-height: 1.2;
}
.hero-content p {
    font-size: 18px;
    color: var(--bs-gray);
    margin-bottom: 25px;
    line-height: 1.5;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}
.section-title .subtitle {
    color: var(--bs-gray-light);
    font-size: 14px;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-title h2 {
    font-size: 28px;
    margin: 0;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px 15px;
    margin-bottom: 40px;
}
.about-section h2 { font-size: 26px; margin-bottom: 20px; }
.about-section h3 { font-size: 20px; margin: 20px 0 10px; }
.about-section ul {
    margin: 15px 0;
    line-height: 2;
    padding-left: 5px;
}
.about-section ul li {
    position: relative;
    padding-left: 25px;
}
.about-section ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--bs-primary);
    font-size: 14px;
}

.clients-section {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
    align-items: center;
    padding: 20px;
    background: var(--bs-bg-light);
    border-radius: var(--bs-radius);
    margin-bottom: 40px;
    border: 1px solid var(--bs-border);
}
.clients-section h3 {
    margin: 0;
    font-size: 20px;
}
.clients-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.clients-logos img {
    max-height: 50px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(1);
    transition: all var(--bs-transition);
}
.clients-logos img:hover {
    opacity: 1;
    filter: none;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.blog-card {
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    overflow: hidden;
    transition: all var(--bs-transition);
    background: var(--bs-white);
}
.blog-card:hover {
    box-shadow: var(--bs-shadow-hover);
    transform: translateY(-3px);
}
.blog-card-image {
    aspect-ratio: 3/2;
    overflow: hidden;
    position: relative;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bs-transition-slow);
}
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 15px; }
.blog-card-date {
    font-size: 12px;
    color: var(--bs-gray-light);
    margin-bottom: 8px;
}
.blog-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}
.blog-card-title a { color: var(--bs-dark); }
.blog-card-title a:hover { color: var(--bs-primary); }
.blog-card-excerpt {
    font-size: 13px;
    color: var(--bs-gray);
    line-height: 1.5;
}

.site-footer {
    background: var(--bs-dark);
    color: var(--bs-white);
    padding: 30px 0;
    margin-top: 50px;
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-copyright {
    font-size: 12px;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 700px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--bs-radius-round);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-white);
    font-size: 16px;
    transition: all var(--bs-transition);
}
.footer-social a:hover {
    background: var(--bs-primary);
    transform: scale(1.1);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: var(--bs-radius-round);
    background: var(--bs-primary);
    color: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--bs-transition);
    z-index: var(--bs-z-sticky);
    box-shadow: var(--bs-shadow);
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    background: var(--bs-primary-hover);
    transform: translateY(-3px);
}

.mobile-toolbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bs-white);
    border-top: 1px solid var(--bs-border);
    z-index: var(--bs-z-sticky);
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.mobile-toolbar .container {
    display: flex;
    justify-content: space-around;
}
.mobile-toolbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--bs-gray);
    padding: 5px;
}
.mobile-toolbar a:hover,
.mobile-toolbar a.active { color: var(--bs-primary); }
.mobile-toolbar i { font-size: 20px; }

.wpcf7-form {
    max-width: 500px;
}
.wpcf7-form p { margin-bottom: 15px; }
.wpcf7-form label {
    display: block;
    font-size: 13px;
    color: var(--bs-gray);
    margin-bottom: 5px;
    font-weight: 500;
}
.wpcf7-form input,
.wpcf7-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    font-size: 14px;
}
.wpcf7-form .wpcf7-submit {
    background: var(--bs-primary);
    color: var(--bs-white);
    border: none;
    padding: 12px 30px;
    border-radius: var(--bs-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--bs-transition);
}
.wpcf7-form .wpcf7-submit:hover { background: var(--bs-primary-hover); }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: var(--bs-radius);
    font-size: 14px;
}
.woocommerce-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.woocommerce-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
.woocommerce-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.placeholder-box {
    background: var(--bs-bg-gray);
    border: 2px dashed var(--bs-border-dark);
    border-radius: var(--bs-radius);
    padding: 40px 20px;
    text-align: center;
    color: var(--bs-gray-light);
}
.placeholder-box i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--bs-border-dark);
}

@media (max-width: 1200px) {
    .header-main .container { gap: 20px; }
    .header-search { max-width: 500px; }
    .header-tools { gap: 15px; }
    .header-tools .header-social { padding-left: 15px; }
}

@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .subcategories-grid { grid-template-columns: repeat(3, 1fr); }
    .shop-layout { grid-template-columns: 220px 1fr; gap: 20px; }
    .hero-content h1 { font-size: 36px; }
    .about-section { grid-template-columns: 1fr; gap: 30px; }
    .header-search .search-cat { display: none; }
}

@media (max-width: 768px) {
    .header-topbar,
    .header-main,
    .header-bottom { display: none; }

    .mobile-header { display: block; }
    .mobile-toolbar { display: block; }
    body { padding-bottom: 70px; }

    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        height: 100vh;
        background: var(--bs-white);
        z-index: var(--bs-z-modal);
        padding: 60px 20px 20px;
        overflow-y: auto;
    }
    .shop-sidebar.open { display: block; }
    .shop-sidebar .sidebar-close {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
    }

    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .subcategories-grid { grid-template-columns: repeat(2, 1fr); }
    .single-product-layout { grid-template-columns: 1fr; gap: 20px; }
    .product-gallery { position: static; }

    .hero-section { height: 320px; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 14px; }

    .page-header-section h1 { font-size: 24px; }
    .product-info h1 { font-size: 22px; }
    .product-features-grid { grid-template-columns: 1fr; }

    .blog-grid { grid-template-columns: 1fr; }
    .about-section { grid-template-columns: 1fr; }

    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .shop-toolbar { flex-direction: column; align-items: stretch; }
    .shop-toolbar .toolbar-right { justify-content: space-between; }

    .product-tabs .tabs a { padding: 10px 15px; font-size: 13px; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .subcategories-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 24px; }
    .product-card-body { padding: 10px; }
    .product-card-title { font-size: 13px; }
    .product-gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
    .clients-section { grid-template-columns: 1fr; }
}

@media print {
    .site-header,
    .site-footer,
    .mobile-toolbar,
    .mobile-header,
    .scroll-top,
    .product-actions,
    .shop-sidebar,
    .shop-toolbar { display: none !important; }
    body { padding: 0; }
    .single-product-layout { grid-template-columns: 1fr; }
}

:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

::selection {
    background: var(--bs-primary);
    color: var(--bs-white);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bs-bg-gray); }
::-webkit-scrollbar-thumb {
    background: var(--bs-border-dark);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--bs-gray-light); }

.hero-section {
    background: linear-gradient(135deg, rgba(248,248,248,0.92) 0%, rgba(245,248,252,0.82) 50%, rgba(250,250,252,0.7) 100%);
    background-size: cover;
    background-position: right center;
    padding: 30px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.hero-section .hero-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: stretch;
    width: 100%;
}

.hero-sidebar {
    background: var(--bs-white);
    border-radius: var(--bs-radius);
    box-shadow: var(--bs-shadow);
    overflow: hidden;
    height: fit-content;
}

.hero-cats-title {
    background: var(--bs-primary);
    color: var(--bs-white);
    padding: 14px 18px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-cats-list {
    max-height: 380px;
    overflow-y: auto;
}

.hero-cats-list li {
    border-bottom: 1px solid var(--bs-bg-gray);
}

.hero-cats-list li:last-child {
    border-bottom: none;
}

.hero-cats-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    color: var(--bs-dark);
    font-size: 14px;
    transition: all var(--bs-transition);
}

.hero-cats-list a:hover {
    background: var(--bs-bg-light);
    color: var(--bs-primary);
    padding-left: 22px;
}

.hero-cats-list .cat-icon,
.hero-cats-list i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    font-size: 16px;
    flex-shrink: 0;
}

.hero-cats-list .arrow {
    margin-left: auto;
    font-size: 10px;
    color: var(--bs-gray-lighter);
    transition: transform var(--bs-transition);
}

.hero-cats-list a:hover .arrow {
    transform: translateX(3px);
    color: var(--bs-primary);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--bs-dark);
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    color: var(--bs-gray);
    margin-bottom: 25px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 20px 0;
    margin-bottom: 50px;
    align-items: start;
}

.about-section.has-image {
    grid-template-columns: 1fr 1fr 1fr;
}

.about-col-text h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

.about-col-text ul {
    margin: 15px 0;
    line-height: 2;
}

.about-col-text ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
}

.about-col-text ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--bs-primary);
    font-size: 14px;
}

.about-col-text .about-content {
    line-height: 1.7;
}

.about-col-text .about-content p {
    margin-bottom: 1em;
}

.about-col-advantages h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.advantages-grid {
    display: grid;
    gap: 15px;
}

.advantage-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bs-bg-light);
    border-radius: var(--bs-radius);
    border: 1px solid var(--bs-border);
    transition: all var(--bs-transition);
}

.advantage-item:hover {
    border-color: var(--bs-primary);
    box-shadow: var(--bs-shadow-sm);
}

.advantage-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--bs-radius);
    background: var(--bs-primary);
    color: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.advantage-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.advantage-text {
    font-size: 13px;
    color: var(--bs-gray);
    line-height: 1.5;
}

.about-col-image img {
    border-radius: var(--bs-radius);
    box-shadow: var(--bs-shadow);
}

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

.section-title .subtitle {
    color: var(--bs-gray-light);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 28px;
    margin: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.blog-card {
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    overflow: hidden;
    transition: all var(--bs-transition);
    background: var(--bs-white);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--bs-shadow-hover);
    transform: translateY(-3px);
}

.blog-card-image {
    aspect-ratio: 3/2;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bs-transition-slow);
}

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

.blog-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-date {
    font-size: 12px;
    color: var(--bs-gray-light);
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.blog-card-title a {
    color: var(--bs-dark);
}

.blog-card-title a:hover {
    color: var(--bs-primary);
}

.blog-card-excerpt {
    font-size: 13px;
    color: var(--bs-gray);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 12px;
}

.blog-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-primary);
    align-self: flex-start;
}

.blog-card-link:hover {
    color: var(--bs-primary-hover);
}

.clients-section-wrapper {
    background: var(--bs-bg-light);
    padding: 40px 0;
    margin-bottom: 40px;
    border-top: 1px solid var(--bs-border);
    border-bottom: 1px solid var(--bs-border);
}

.clients-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.clients-track {
    display: flex;
    gap: 40px;
    align-items: center;
    transition: transform 0.5s ease;
}

.client-logo {
    flex-shrink: 0;
    min-width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.client-logo img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(1);
    transition: all var(--bs-transition);
}

.client-logo:hover img {
    opacity: 1;
    filter: none;
    transform: scale(1.05);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bs-white);
    box-shadow: var(--bs-shadow);
    color: var(--bs-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--bs-transition);
    z-index: 2;
}

.carousel-arrow:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.extra-content-wrapper {
    padding: 30px 0;
}

.extra-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 15px;
}

.extra-content h2,
.extra-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.extra-content p {
    margin-bottom: 1em;
}

.extra-content ul,
.extra-content ol {
    margin: 1em 0;
    padding-left: 20px;
}

.extra-content ul li {
    list-style: disc;
    margin-bottom: 0.5em;
}

.extra-content ol li {
    list-style: decimal;
    margin-bottom: 0.5em;
}

@media (max-width: 1024px) {
    .hero-section .hero-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-sidebar {
        display: none;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .about-section,
    .about-section.has-image {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-col-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 25px 0;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .clients-carousel {
        padding: 0 40px;
    }

    .client-logo {
        min-width: 120px;
        height: 60px;
    }

    .section-title h2 {
        font-size: 22px;
    }
}

.category-card-image img {
    filter: grayscale(0.7);
}

.category-card:hover .category-card-image img {
	filter: grayscale(0);
}

/* =========================================================
   HOME HERO v2 — минималистичный первый экран
   ========================================================= */
.home-hero {
    position: relative;
    padding: clamp(36px, 5vw, 84px) 0 clamp(32px, 4.5vw, 76px);
    background: linear-gradient(180deg, var(--bs-white) 0%, var(--bs-bg-light) 100%);
    overflow: hidden;
}

/* очень мягкий акцент вместо ярких плашек */
.home-hero::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -140px;
    width: 540px;
    height: 540px;
    border-radius: var(--bs-radius-round);
    background: radial-gradient(circle, rgba(136, 34, 47, 0.07) 0%, rgba(136, 34, 47, 0) 70%);
    pointer-events: none;
}

.home-hero__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
}

.home-hero--without-media .home-hero__layout {
    grid-template-columns: minmax(0, 720px);
}

.home-hero__content {
    max-width: 620px;
}

.home-hero__overline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-family: var(--bs-font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bs-primary);
}
.home-hero__overline::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--bs-primary);
}

.home-hero__title {
    margin: 0 0 18px;
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    max-width: 620px;
}

.home-hero__description {
    margin: 0 0 clamp(24px, 3vw, 34px);
    max-width: 480px;
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.55;
    color: var(--bs-gray);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
}

.home-hero__primary {
    box-shadow: 0 6px 18px rgba(136, 34, 47, 0.18);
}

.home-hero__contact {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}
.home-hero__contact-label {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bs-gray-light);
}
.home-hero__contact-value {
    font-family: var(--bs-font-head);
    font-size: 18px;
    font-weight: 600;
    color: var(--bs-dark);
    transition: color var(--bs-transition);
}
.home-hero__contact:hover .home-hero__contact-value {
    color: var(--bs-primary);
}

/* подсказка перехода на второй экран */
.home-hero__scroll {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: clamp(28px, 3.5vw, 48px);
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-gray-light);
}
.home-hero__scroll:hover { color: var(--bs-primary); }
.home-hero__scroll span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--bs-border-dark);
    border-radius: var(--bs-radius-round);
    font-size: 11px;
    animation: bsHeroCue 2.2s ease-in-out infinite;
}
@keyframes bsHeroCue {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(3px); }
}

.home-hero__media { margin: 0; }

.home-hero__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius-lg);
    background: var(--bs-bg-gray);
    box-shadow: var(--bs-shadow-sm);
}
.home-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   FACTS STRIP — второй экран
   ========================================================= */
.home-facts {
    border-top: 1px solid var(--bs-border);
    border-bottom: 1px solid var(--bs-border);
    background: var(--bs-white);
}

.home-facts__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-facts__item {
    padding: 22px 24px;
    border-left: 1px solid var(--bs-border);
}
.home-facts__item:first-child {
    border-left: none;

}
.home-facts__item:last-child { padding-right: 0; }

.home-facts__value {
    display: block;
    margin-bottom: 5px;
    font-family: var(--bs-font-head);
    font-size: 15px;
    font-weight: 600;
    color: var(--bs-dark);
}
.home-facts__label {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: var(--bs-gray-light);
}

/* якорь с учётом sticky-шапки */
#napravleniya { scroll-margin-top: 90px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .home-hero__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .home-hero__content { max-width: 100%; }
    .home-hero__image-wrap { aspect-ratio: 16 / 9; }
    .home-facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-facts__item { padding: 18px 20px; }
    .home-facts__item:nth-child(2n + 1) { border-left: none; padding-left: 0; }
    .home-facts__item:nth-child(n + 3) { border-top: 1px solid var(--bs-border); }
}

@media (max-width: 768px) {
    .home-hero { padding: 28px 0 34px; }
    .home-hero::before { display: none; }
    .home-hero__title { font-size: clamp(26px, 7vw, 34px); }
    .home-hero__description { margin-bottom: 24px; }
    .home-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }
    .home-hero__primary { width: 100%; }
    .home-hero__contact { align-items: flex-start; }
    .home-hero__scroll { display: none; }
    #napravleniya { scroll-margin-top: 70px; }
}

@media (max-width: 480px) {
    .home-facts__list { grid-template-columns: 1fr; }
    .home-facts__item {
        padding: 16px 0;
        border-left: none;
        border-top: 1px solid var(--bs-border);
    }
    .home-facts__item:first-child { border-top: none; }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__scroll span { animation: none; }
}

/* =========================================================
   HOME HERO v2
   ========================================================= */
.home-hero {
    position: relative;
    padding: clamp(36px, 5vw, 84px) 0 clamp(32px, 4.5vw, 76px);
    background: linear-gradient(180deg, var(--bs-white) 0%, var(--bs-bg-light) 100%);
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -140px;
    width: 540px;
    height: 540px;
    border-radius: var(--bs-radius-round);
    background: radial-gradient(circle, rgba(136, 34, 47, 0.07) 0%, rgba(136, 34, 47, 0) 70%);
    pointer-events: none;
}
.home-hero__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
}
.home-hero--without-media .home-hero__layout { grid-template-columns: minmax(0, 720px); }
.home-hero__content { max-width: 620px; }

.home-hero__overline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-family: var(--bs-font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bs-primary);
}
.home-hero__overline::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--bs-primary);
}

.home-hero__title {
    margin: 0 0 18px;
    max-width: 620px;
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.home-hero__description {
    margin: 0 0 clamp(24px, 3vw, 34px);
    max-width: 480px;
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.55;
    color: var(--bs-gray);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
}
.home-hero__primary { box-shadow: 0 6px 18px rgba(136, 34, 47, 0.18); }

.home-hero__contact { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.home-hero__contact-label {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bs-gray-light);
}
.home-hero__contact-value {
    font-family: var(--bs-font-head);
    font-size: 18px;
    font-weight: 600;
    color: var(--bs-dark);
    transition: color var(--bs-transition);
}
.home-hero__contact:hover .home-hero__contact-value { color: var(--bs-primary); }

.home-hero__scroll {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: clamp(28px, 3.5vw, 48px);
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-gray-light);
}
.home-hero__scroll:hover { color: var(--bs-primary); }
.home-hero__scroll span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--bs-border-dark);
    border-radius: var(--bs-radius-round);
    font-size: 11px;
    animation: bsHeroCue 2.2s ease-in-out infinite;
}
@keyframes bsHeroCue {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(3px); }
}

.home-hero__media { margin: 0; }
.home-hero__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius-lg);
    background: var(--bs-bg-gray);
    box-shadow: var(--bs-shadow-sm);
}
.home-hero__image { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   FACTS STRIP
   ========================================================= */
.home-facts {
    border-top: 1px solid var(--bs-border);
    border-bottom: 1px solid var(--bs-border);
    background: var(--bs-white);
}
.home-facts__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-facts__item { padding: 22px 24px; border-left: 1px solid var(--bs-border); }
.home-facts__item:first-child { border-left: none; padding-left: 0; }
.home-facts__item:last-child { padding-right: 0; }
.home-facts__value {
    display: block;
    margin-bottom: 5px;
    font-family: var(--bs-font-head);
    font-size: 15px;
    font-weight: 600;
    color: var(--bs-dark);
}
.home-facts__label { display: block; font-size: 13px; line-height: 1.45; color: var(--bs-gray-light); }

#napravleniya { scroll-margin-top: 90px; }

/* =========================================================
   CATEGORY CARDS ON HOME
   ========================================================= */
.home-category-card { display: flex; flex-direction: column; }
.home-category-card__link-area { display: flex; flex-direction: column; flex: 1; color: inherit; }

.home-category-card__count {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--bs-gray-light);
}

.home-category-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--bs-bg-gray);
}
.home-category-card__placeholder span {
    font-family: var(--bs-font-head);
    font-size: 40px;
    font-weight: 600;
    color: var(--bs-border-dark);
}

.home-category-card__children {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding: 0 12px 12px;
}
.home-category-card__children a {
    display: inline-flex;
    padding: 4px 10px;
    border: 1px solid var(--bs-border);
    border-radius: 999px;
    background: var(--bs-bg-light);
    font-size: 12px;
    line-height: 1.3;
    color: var(--bs-gray);
    transition: all var(--bs-transition);
}
.home-category-card__children a:hover {
    border-color: var(--bs-primary);
    background: var(--bs-white);
    color: var(--bs-primary);
}
.home-category-card__children .is-more a { border-style: dashed; font-weight: 600; }

/* =========================================================
   CATALOG DIRECTORY TREE
   ========================================================= */
.catalog-section-card__count em {
    font-style: normal;
    color: var(--bs-gray-lighter);
}

.catalog-tree {
    columns: 2;
    column-gap: 24px;
    padding: 14px 16px 16px;
    border-top: 1px solid var(--bs-border);
}
.catalog-tree__item { break-inside: avoid; margin-bottom: 10px; }
.catalog-tree__link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    color: var(--bs-dark);
}
.catalog-tree__link:hover { color: var(--bs-primary); }
.catalog-tree__link em {
    flex-shrink: 0;
    font-style: normal;
    font-size: 12px;
    color: var(--bs-gray-lighter);
}
.catalog-tree--sub {
    columns: 1;
    padding: 6px 0 0 12px;
    border-top: none;
    border-left: 2px solid var(--bs-bg-gray);
}
.catalog-tree--sub li { margin-bottom: 4px; }
.catalog-tree--sub a { font-size: 13px; color: var(--bs-gray-light); }
.catalog-tree--sub a:hover { color: var(--bs-primary); }
.catalog-tree__rest a { font-weight: 600; color: var(--bs-primary); }

/* =========================================================
   SUBCATEGORIES ON ARCHIVE
   ========================================================= */
.catalog-subcats { margin-bottom: 24px; }
.catalog-subcats__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.catalog-subcats__title { margin: 0; font-size: 18px; }
.catalog-subcats__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--bs-primary-light);
    color: var(--bs-primary);
    font-size: 12px;
    font-weight: 700;
}
.catalog-subcat-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--bs-bg-gray);
    font-family: var(--bs-font-head);
    font-size: 32px;
    font-weight: 600;
    color: var(--bs-border-dark);
}
.catalog-subcat-card__nested {
    margin-top: 4px;
    font-size: 11px;
    color: var(--bs-gray-lighter);
}

.catalog-siblings {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    background: var(--bs-bg-light);
}
.catalog-siblings__label { font-size: 13px; font-weight: 600; color: var(--bs-gray); }
.catalog-siblings__list { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-siblings__list a {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--bs-border-dark);
    border-radius: 999px;
    background: var(--bs-white);
    font-size: 13px;
    color: var(--bs-gray);
    transition: all var(--bs-transition);
}
.catalog-siblings__list a:hover { border-color: var(--bs-primary); color: var(--bs-primary); }
.catalog-siblings__list em { font-style: normal; font-size: 11px; color: var(--bs-gray-lighter); }
.catalog-siblings__up a { border-style: dashed; font-weight: 600; }

/* =========================================================
   ACTIVE FILTERS
   ========================================================= */
.catalog-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    background: var(--bs-bg-light);
}
.catalog-active-filters__label { font-size: 13px; font-weight: 600; color: var(--bs-gray); }
.catalog-active-filters__items { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid var(--bs-primary);
    border-radius: 999px;
    background: var(--bs-white);
    font-size: 13px;
    color: var(--bs-dark);
    transition: all var(--bs-transition);
}
.catalog-active-filter:hover { background: var(--bs-primary); color: var(--bs-white); }
.catalog-active-filter__label { color: var(--bs-gray-light); font-size: 12px; }
.catalog-active-filter:hover .catalog-active-filter__label { color: rgba(255, 255, 255, 0.8); }
.catalog-active-filter__remove { font-size: 15px; line-height: 1; opacity: 0.7; }
.catalog-active-filters__reset {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
}
.catalog-archive__filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--bs-primary);
    color: var(--bs-white);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

/* =========================================================
   ARCHIVE MISC
   ========================================================= */
.catalog-archive__description {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--bs-gray);
}
.catalog-empty {
    padding: 48px 24px;
    border: 2px dashed var(--bs-border-dark);
    border-radius: var(--bs-radius);
    background: var(--bs-bg-light);
    text-align: center;
}
.catalog-empty i { margin-bottom: 14px; font-size: 42px; color: var(--bs-border-dark); }
.catalog-empty h2 { margin-bottom: 8px; font-size: 20px; }
.catalog-empty p { margin-bottom: 18px; color: var(--bs-gray-light); }
.catalog-empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.catalog-archive--directory .shop-overlay { display: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .home-hero__layout { grid-template-columns: 1fr; gap: 32px; }
    .home-hero__content { max-width: 100%; }
    .home-hero__image-wrap { aspect-ratio: 16 / 9; }

    .home-facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-facts__item { padding: 18px 20px; }
    .home-facts__item:nth-child(2n + 1) { border-left: none; padding-left: 0; }
    .home-facts__item:nth-child(n + 3) { border-top: 1px solid var(--bs-border); }
}

@media (max-width: 768px) {
    .home-hero { padding: 28px 0 34px; }
    .home-hero::before { display: none; }
    .home-hero__title { font-size: clamp(26px, 7vw, 34px); }
    .home-hero__description { margin-bottom: 24px; }
    .home-hero__actions { flex-direction: column; align-items: stretch; gap: 18px; }
    .home-hero__primary { width: 100%; }
    .home-hero__contact { align-items: flex-start; }
    .home-hero__scroll { display: none; }

    #napravleniya { scroll-margin-top: 70px; }

    .catalog-tree { columns: 1; }
    .catalog-active-filters__reset { margin-left: 0; }
}

@media (max-width: 480px) {
    .home-facts__list { grid-template-columns: 1fr; }
    .home-facts__item {
        padding: 16px 0;
        border-left: none;
        border-top: 1px solid var(--bs-border);
    }
    .home-facts__item:first-child { border-top: none; }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__scroll span { animation: none; }
}

/* =========================================================
   SUBCATEGORIES ON CATEGORY PAGE (как на главной)
   ========================================================= */
.catalog-subcats {
    margin-bottom: clamp(24px, 3vw, 36px);
}

.catalog-subcats--hub {
    padding: clamp(18px, 2.4vw, 28px);
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius-lg);
    background: linear-gradient(180deg, var(--bs-white) 0%, var(--bs-bg-light) 100%);
}

.catalog-subcats__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bs-border);
}

.catalog-subcats__kicker {
    margin-bottom: 5px;
    font-family: var(--bs-font-head);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.catalog-subcats__title {
    margin: 0;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.2;
}

.catalog-subcats__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--bs-primary-light);
    color: var(--bs-primary);
    font-family: var(--bs-font-head);
    font-size: 13px;
    font-weight: 700;
}

.catalog-subcats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--bs-gap);
}

/* ---- карточка раздела ---- */
.catalog-subcat-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius-lg);
    background: var(--bs-white);
    transition: border-color var(--bs-transition), box-shadow var(--bs-transition), transform var(--bs-transition);
}

.catalog-subcat-card:hover {
    border-color: var(--bs-primary);
    box-shadow: var(--bs-shadow-hover);
    transform: translateY(-3px);
}

.catalog-subcat-card__link-area {
    display: flex;
    flex: 1;
    flex-direction: column;
    color: inherit;
}

.catalog-subcat-card__media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bs-bg-light);
}

.catalog-subcat-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.7);
    transition: transform var(--bs-transition-slow), filter var(--bs-transition);
}

.catalog-subcat-card:hover .catalog-subcat-card__media img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.catalog-subcat-card__image--icon {
    padding: 22%;
    object-fit: contain;
    filter: none;
}

.catalog-subcat-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--bs-bg-gray);
}

.catalog-subcat-card__placeholder span {
    font-family: var(--bs-font-head);
    font-size: 40px;
    font-weight: 600;
    color: var(--bs-border-dark);
}

.catalog-subcat-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px;
}

.catalog-subcat-card__title {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--bs-dark);
    transition: color var(--bs-transition);
}

.catalog-subcat-card:hover .catalog-subcat-card__title {
    color: var(--bs-primary);
}

.catalog-subcat-card__count {
    display: block;
    font-size: 12px;
    color: var(--bs-gray-light);
}

.catalog-subcat-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bs-primary);
    opacity: 0;
    transform: translateX(-4px);
    transition: all var(--bs-transition);
}

.catalog-subcat-card:hover .catalog-subcat-card__cta {
    opacity: 1;
    transform: translateX(0);
}

/* ---- чипсы вложенных разделов ---- */
.catalog-subcat-card__children {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding: 0 14px 14px;
}

.catalog-subcat-card__children a {
    display: inline-flex;
    padding: 4px 10px;
    border: 1px solid var(--bs-border);
    border-radius: 999px;
    background: var(--bs-bg-light);
    font-size: 11px;
    line-height: 1.3;
    color: var(--bs-gray);
    transition: all var(--bs-transition);
}

.catalog-subcat-card__children a:hover {
    border-color: var(--bs-primary);
    background: var(--bs-white);
    color: var(--bs-primary);
}

.catalog-subcat-card__children .is-more a {
    border-style: dashed;
    font-weight: 600;
}

/* =========================================================
   CATEGORY HIGHLIGHTS (популярное в разделе)
   ========================================================= */
.catalog-highlights {
    margin-bottom: clamp(24px, 3vw, 36px);
}

.catalog-highlights__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bs-border);
}

.catalog-highlights__title {
    margin: 0;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.2;
}

.catalog-highlights__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
}

.catalog-highlights__link span {
    transition: transform var(--bs-transition);
}

.catalog-highlights__link:hover span {
    transform: translateX(3px);
}

.catalog-highlights__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* =========================================================
   HUB NOTE
   ========================================================= */
.catalog-hub-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border: 1px dashed var(--bs-border-dark);
    border-radius: var(--bs-radius-lg);
    background: var(--bs-bg-light);
}

.catalog-hub-note p {
    margin: 0;
    max-width: 620px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--bs-gray);
}

/* =========================================================
   EMPTY STATE
   ========================================================= */
.catalog-empty--compact {
    padding: 26px 20px;
    border-style: solid;
    border-color: var(--bs-border);
    background: var(--bs-bg-light);
}

.catalog-empty--compact h2 {
    font-size: 17px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
    .catalog-subcats__grid,
    .catalog-highlights__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .catalog-subcats__grid,
    .catalog-highlights__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .catalog-subcats--hub {
        padding: 16px 14px;
    }

    .catalog-subcats__head,
    .catalog-highlights__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .catalog-subcat-card__cta {
        opacity: 1;
        transform: none;
    }

    .catalog-subcat-card__body {
        padding: 11px;
    }

    .catalog-subcat-card__children {
        padding: 0 11px 11px;
    }

    .catalog-hub-note {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .catalog-subcats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-highlights__grid {
        grid-template-columns: 1fr;
    }

    .catalog-subcat-card__media {
        aspect-ratio: 4 / 3;
    }

    .catalog-subcat-card__title {
        font-size: 13px;
    }
}