/* Стили для блока каталога с аккордеоном */

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

.main-catalog__card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.main-catalog__card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #f0cf4c;
}

.main-catalog__card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.main-catalog__card-head:hover {
    background-color: #f8f9fa;
}

.main-catalog__card-head .svg-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
}

.main-catalog__card-head .svg-icon.placeholder {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 8px;
}

.main-catalog__card-head a {
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.main-catalog__card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.main-catalog__card-head:hover .main-catalog__card-title {
    color: #f0cf4c;
}

.main-catalog__card-head .arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.main-catalog__card.open .arrow {
    transform: rotate(180deg);
}

.main-catalog__card.open .arrow path {
    fill: #f0cf4c;
}

.main-catalog__card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
    background: #f8f9fa;
}

.main-catalog__card.open .main-catalog__card-body {
    max-height: 1000px;
    padding: 12px 16px;
}

.main-catalog__card-link {
    display: block;
    padding: 6px 0;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #e8e8e8;
    transition: color 0.3s ease, padding-left 0.3s ease;
    line-height: 1.3;
}

.main-catalog__card-link:last-child {
    border-bottom: none;
}

.main-catalog__card-link:hover {
    color: #f0cf4c;
    padding-left: 8px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .cards-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .main-catalog__card-head {
        padding: 16px;
    }
    
    .main-catalog__card-title {
        font-size: 16px;
    }
    
    .main-catalog__card.open .main-catalog__card-body {
        padding: 10px 14px;
    }
    
    .main-catalog__card-link {
        padding: 5px 0;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .cards-wrapper {
        gap: 12px;
    }
    
    .main-catalog__card-head {
        padding: 14px;
        gap: 10px;
    }
    
    .main-catalog__card-head .svg-icon {
        width: 35px;
        height: 35px;
    }
    
    .main-catalog__card-title {
        font-size: 15px;
    }
    
    .main-catalog__card-link {
        font-size: 13px;
        padding: 8px 0;
    }
    
    .main-catalog__card.open .main-catalog__card-body {
        padding: 10px 12px;
    }
    
    .main-catalog__card-link {
        padding: 4px 0;
        font-size: 12px;
    }
}

