.logo { min-width: auto;
    max-width: 200px;
    height: auto;
    -o-object-fit: contain;
    object-fit: contain;}

.logo-desc {font-size:auto;}

.head-catalog, .head-menu {
    position: relative;
    background: var(--theme-menubar-bg);
}
.head-catalog__menu-btn .head-menu {
    background: var(--theme-primary-light);
    padding: 28px 24px;
    box-shadow: none;
    border-radius: 0px;
}
.head-catalog__list>li:not(.head-catalog__menu-btn) {
    text-wrap-mode: nowrap;
}
.head-catalog__menu-btn {
    padding: 0 16px;
}
.menu-btn-text {padding-left: 16px;}
.zvonok {width: 220px;
    float: right;
    background: #656565;}
.zvonok svg {float:left;}
.zvonok_button {padding-left: 16px;}
@media screen and (max-width: 991.98px) {
    .head {
        height: auto;
    }
}

.catalog-subcategory {
    margin-top: 16px;
    white-space: nowrap;
    display: block;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 700;
    border: none;
    text-decoration: none;
    color: #404147;
    transition: all .3s ease;
    box-sizing: content-box;
    min-width: -webkit-max-content;
    min-width: -moz-max-content;
    min-width: max-content;
    overflow: hidden;
    background: #fff;
    max-width: 250px;
}

.catalog-subcategory:hover {
    background: #F9F9F9;
    border-color: none;
    border: none;
    color: #1B1B1F;
}
.index-category__title {
    max-height: 60px;
    min-height: 60px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.head-catalog-subcategories {text-transform: lowercase;}

.advantage-card {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px 25px;
    height: 100%;
    transition: all 0.3s ease;
    background: #fff;
}

.advantage-card:hover {
    border-color: #28a745;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.15);
}

.advantage-card.highlighted {
    border-color: #28a745;
    background: #f8fff9;
}

.advantage-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.advantage-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.advantage-text:not(:last-child) {
    margin-bottom: 12px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .advantage-card {
        margin-bottom: 20px;
        padding: 25px 20px;
    }

    .advantage-title {
        font-size: 1.1rem;
    }

    .advantage-text {
        font-size: 0.9rem;
    }
}

.bg-light {
    background-color: #f0f0f0 !important;
}

.head-dropdown-catalog__categories {
    list-style: none;
    margin: 0;
    background-color: #F9F9F9;
    height: 100%;
    min-width: 300px;
    max-width: 100%;
}


 .category-block {
     background: #f5f5f5;
     border-radius: 8px;
     width: 100%;
     margin-bottom: 10px;
     position: relative;
     /* Важно для absolute positioning */
     z-index: 1;
 }

.category-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
    user-select: none;
    position: relative;
    z-index: 2;
}

.category-header:hover {
    background: #f0f0f0;
    border-radius: 8px;
}

.category-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img, .category-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-icon svg {
    fill: #4CAF50;
}

.category-title {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    fill: #999;
}

.category-block.active .arrow-icon {
    transform: rotate(180deg);
}

/* Выпадающий контент - ПОВЕРХ других элементов */
.category-content {
    position: absolute;
    top: 100%;
    /* Сразу под заголовком */
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 8px 8px;
    /* box-shadow: 0 10px 40px rgba(0,0,0,0.15); */
    z-index: 1000;
    /* Поверх всех */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: -5px;
    /* Небольшое перекрытие для эффекта */
    background: #f5f5f5;
}

.category-block.active .category-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.subcategory-list {
    list-style: none;
    padding: 15px 25px;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
    /* background: #f5f5f5; */
}

.subcategory-item a {
    display: block;
    padding: 5px 0;
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.subcategory-item:last-child a {
    border-bottom: none;
}

.subcategory-item a:hover {
    color: #4CAF50;
    padding-left: 5px;
}

.subcategory-item.active a {
    color: #4CAF50;
    font-weight: 500;
}

/* Поднимаем активный блок выше остальных */
.category-block.active {
    z-index: 1001;
    /* box-shadow: 0 10px 40px rgba(0,0,0,0.1); */
    border-radius: 8px;
}

/* Скроллбар для списка */
.subcategory-list::-webkit-scrollbar {
    width: 6px;
}

.subcategory-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.subcategory-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.subcategory-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Адаптивность */
@media (max-width: 768px) {
    .category-header {
        padding: 15px 20px;
    }

    .category-icon {
        width: 35px;
        height: 35px;
    }

    .category-title {
        font-size: 0.95rem;
    }

    .category-content {
        box-shadow: none;
        border-radius: 0 0 8px 8px;
        margin-top: 0;
    }

    .subcategory-list {
        padding: 10px 20px 15px 60px;
    }
}

.index-category {
    padding: 15px;}
.index-category__title {
    max-height: 60px;
    min-height: 65px;
    font-size: 0.9rem;
     text-transform: none;
    text-align: left;
}


