   :root {
        --primary-color: #0077b6;
        --primary-dark: #005a8c;
        --primary-light: #4da8da;
        --accent-color: #00a8cc;
        --text-dark: #2c3e50;
        --text-gray: #6c757d;
        --bg-light: #f4f7fa;
        --bg-white: #ffffff;
        --border-color: #e1e8ed;
        --shadow-sm: 0 2px 4px rgba(0, 119, 182, 0.08);
        --shadow-md: 0 4px 12px rgba(0, 119, 182, 0.12);
        --radius-sm: 6px;
        --radius-md: 10px;
        --transition: all 0.3s ease;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }


    /* Универсальный класс для всех SVG иконок */
    .icon-svg {
        width: 1em;
        height: 1em;
        display: block;
        flex-shrink: 0;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    /* Search */
    .search-block {
        background: var(--bg-white);
        padding: 20px;
        border-radius: var(--radius-md);
        /*box-shadow: var(--shadow-sm);*/
		border: 1px solid #eee;
        margin-bottom: 25px;
        display: flex;
        gap: 15px;
        align-items: center;
        flex-wrap: wrap;
    }

    .search-input-wrapper {
        flex: 1;
        min-width: 250px;
        position: relative;
    }

    .search-input {
        width: 100%;
        padding: 12px 45px 12px 20px;
        border: 2px solid var(--border-color);
        border-radius: var(--radius-sm);
        font-size: 15px;
        font-family: inherit;
        transition: var(--transition);
    }

    .search-input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
    }

    .search-icon {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-gray);
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
    }

    .expand-all-btn {
        padding: 12px 24px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: var(--radius-sm);
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .expand-all-btn .icon-svg {
        width: 16px;
        height: 16px;
    }

    .expand-all-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

    /* Accordion */
    .accordion {
        background: var(--bg-white);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        overflow: hidden;
    }

    .accordion-item { border-bottom: 1px solid var(--border-color); }
    .accordion-item:last-child { border-bottom: none; }

    .accordion-header {
        background: var(--bg-white);
        padding: 20px 25px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: var(--transition);
        user-select: none;
    }

    .accordion-header:hover { background: var(--bg-light); }

    .accordion-header-left {
        display: flex;
        align-items: center;
        gap: 15px;
        flex: 1;
    }

    .department-icon {
        color: var(--primary-color);
        font-size: 26px; /* Размер иконки отдела */
        flex-shrink: 0;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .department-icon .icon-svg {
        width: 1em;
        height: 1em;
    }

    .accordion-header:hover .department-icon {
        color: var(--primary-dark);
        transform: translateX(4px);
    }

    .department-info { 
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .department-name {
        font-family: 'Montserrat', sans-serif;
        font-size: 18px;
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .department-count { 
        font-size: 13px; 
        color: var(--text-gray);
        line-height: 1.3;
    }

    /* СТРЕЛКА АККОРДЕОНА: Идеальная центровка через SVG */
    .accordion-arrow {
        width: 32px;
        height: 32px;
        background: var(--bg-light);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background 0.3s ease;
    }

    .accordion-arrow .icon-svg {
        width: 14px;
        height: 14px;
        color: var(--primary-color);
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .accordion-header.active {
        background: linear-gradient(90deg, rgba(0, 119, 182, 0.05) 0%, transparent 100%);
        border-left: 4px solid var(--primary-color);
        padding-left: 21px;
    }

    .accordion-header.active .accordion-arrow {
        background: var(--primary-color);
    }

    .accordion-header.active .accordion-arrow .icon-svg {
        color: white;
        transform: rotate(90deg);
    }

    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        background: var(--bg-light);
    }

    .accordion-content.active {
        max-height: 200000px;
        transition: max-height 0.6s ease-in;
    }

    /* Subcategory */
    .subcategory {
        margin: 15px 20px;
        background: var(--bg-white);
        border-radius: var(--radius-md);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }

    .subcategory-header {
        background: var(--bg-white);
        padding: 15px 20px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: var(--transition);
        border-left: 3px solid var(--accent-color);
    }

    .subcategory-header:hover { background: rgba(0, 168, 204, 0.05); }

    .subcategory-header-left {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
    }

    .specialty-name {
        font-family: 'Montserrat', sans-serif;
        font-size: 15px;
        font-weight: 600;
        color: var(--text-dark);
        line-height: 1.3;
    }

    .specialty-count {
        background: var(--bg-light);
        color: var(--primary-color);
        padding: 3px 10px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.3;
    }

    /* СТРЕЛКА ПОДКАТЕГОРИИ: Идеальная центровка через SVG */
    .subcategory-arrow {
        width: 26px;
        height: 26px;
        background: var(--bg-light);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background 0.3s ease;
    }

    .subcategory-arrow .icon-svg {
        width: 12px;
        height: 12px;
        color: var(--accent-color);
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .subcategory-header.active { background: rgba(0, 168, 204, 0.08); }

    .subcategory-header.active .subcategory-arrow {
        background: var(--accent-color);
    }

    .subcategory-header.active .subcategory-arrow .icon-svg {
        color: white;
        transform: rotate(90deg);
    }

    .subcategory-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    .subcategory-content.active {
        max-height: 100000px;
        transition: max-height 0.6s ease-in;
    }

    /* Table */
    .table-wrapper { overflow-x: auto; }

    table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    thead {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
    }

    th {
        padding: 14px 12px;
        text-align: left;
        font-weight: 600;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    th:first-child { padding-left: 20px; }

    tbody tr {
        transition: var(--transition);
        border-bottom: 1px solid var(--border-color);
    }

    tbody tr:last-child { border-bottom: none; }
    tbody tr:hover { background: rgba(0, 119, 182, 0.03); }

    td {
        padding: 14px 12px;
        vertical-align: top;
    }

    td:first-child { padding-left: 20px; }

    .article {
        color: var(--text-gray);
        font-size: 12px;
        font-family: 'Courier New', monospace;
        white-space: nowrap;
        padding-top: 18px !important;
    }

    .service-name {
        color: var(--text-dark);
        font-weight: 500;
        padding-top: 18px !important;
    }

    .price-cell {
        white-space: nowrap;
        font-family: 'Montserrat', sans-serif;
        padding-top: 18px !important;
    }

    .price-single {
        font-size: 14px;
        font-weight: 700;
        color: var(--primary-color);
    }

    .price-multi {
        display: flex;
        flex-direction: column;
        gap: 6px;
        white-space: normal;
    }

    .price-line {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 10px;
        font-size: 13px;
    }

    .branch-name {
        color: var(--text-gray);
        font-weight: 500;
        flex-shrink: 0;
    }

    .price-val {
        font-weight: 700;
        color: var(--primary-color);
        text-align: right;
    }

    .price-empty {
        color: var(--text-gray);
        font-weight: 500;
    }

    /* Loading & Error */
    .loading, .error {
        text-align: center;
        padding: 60px 20px;
        background: var(--bg-white);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }

    .loading-icon {
        width: 50px;
        height: 50px;
        border: 4px solid var(--border-color);
        border-top-color: var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 20px;
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    .loading-text { color: var(--text-gray); font-size: 16px; }
    .error { color: #dc3545; }
    .error-icon { 
        width: 48px; 
        height: 48px; 
        margin: 0 auto 15px; 
        color: var(--primary-color); 
    }

    .no-results {
        padding: 40px 20px;
        text-align: center;
        color: var(--text-gray);
        background: var(--bg-white);
        border-radius: var(--radius-md);
    }

    .no-results-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto 15px;
        color: var(--primary-color);
    }

    .highlight {
        background: #fff3cd;
        padding: 2px 4px;
        border-radius: 3px;
        font-weight: 600;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .accordion-header { padding: 15px; }
        .department-icon { font-size: 22px; }
        .department-name { font-size: 15px; }
        .subcategory { margin: 10px; }
        
        th, td { padding: 10px 8px; font-size: 13px; }
        th:first-child, td:first-child { padding-left: 12px; }
        
        .search-block { flex-direction: column; align-items: stretch; }
        .expand-all-btn { justify-content: center; }
        
        .price-line {
            flex-direction: column;
            gap: 2px;
        }
        .price-val { text-align: left; }
    }