

/* Start:/bitrix/templates/aspro-allcorp3/components/bitrix/news.list/service-sale_work/style.css?174670874610640*/
.services-tabs {
    position: sticky;
    top: 82px;
    z-index: 99;
    background-color: #fff;
}

.section-services-wrap {
    margin-bottom: 20px;
    width: 100%;
}

.section-title {
    background-color: #f8f8f8;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border: 1px solid #e5e5e5;
    transition: background-color 0.3s;
}

.section-title:hover {
    background-color: #f0f0f0;
}

.section-title.active {
    background-color: #eaeaea;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
}

.section-name {
    flex: 1;
}

.section-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
}

.section-link:hover {
    color: #126853;
}

.section-toggle {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.section-opened {
    display: none;
}

.section-closed {
    display: block;
}

.section-title.active .section-opened {
    display: block;
}

.section-title.active .section-closed {
    display: none;
}

.subsection-link {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.subsection-link:hover {
    color: #4CAF50;
}

/* Важно! Принудительно скрываем контейнеры при загрузке страницы */
.services-cards-container {
    display: none !important;
}

/* Исключение для активных разделов */
.services-cards-container.active,
.section-title.active + .services-cards-container {
    display: flex !important;
}

.services-cards-container {
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background-color: #fff;
    margin-bottom: 30px;
}

.subsection-container {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.subsection-title {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    padding: 12px 15px;
    background-color: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subsection-toggle {
    display: flex;
    align-items: center;
}

.subsection-container.section-closed .section-opened {
    display: none;
}

.subsection-container.section-closed .section-closed {
    display: block;
}

.subsection-container.section-active .section-opened {
    display: block;
}

.subsection-container.section-active .section-closed {
    display: none;
}

.services-subcards {
    display: none;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
    background-color: #fff;
}

.subsection-container.section-active .services-subcards {
    display: flex;
}

.service-card {
    width: 100%;
    max-width: 100%;
    padding: 24px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}

.service-complex {
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
    font-weight: 500;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.service-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.service-title a:hover {
    color: #126853;
}

.service-description {
    margin-bottom: 20px;
    color: #555;
    font-size: 14px;
    flex-grow: 1;
}

.description-item {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.service-days {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.service-days .icon-clock {
    position: relative;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
}

.service-days .icon-clock:before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.service-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.service-order {
    text-align: right;
}

/* Базовые стили аккордеона */
.accordion-section-title {
    background-color: #f8f8f8;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 5px;
    border: 1px solid #e5e5e5;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.accordion-section-title:hover {
    background-color: #f0f0f0;
}

.accordion-section-title.active {
    background-color: #eaeaea;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
}

.accordion-section-content {
    display: none !important; /* Гарантированно скрыто */
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background-color: #fff;
    margin-bottom: 15px;
}

.accordion-section-title.active + .accordion-section-content {
    display: flex !important; /* Гарантированно показано когда активно */
}

/* Иконки + и - */
.accordion-icon-plus {
    display: block;
}
.accordion-icon-minus {
    display: none;
}
.accordion-section-title.active .accordion-icon-plus {
    display: none;
}
.accordion-section-title.active .accordion-icon-minus {
    display: block;
}

/* Основные стили табов */
.services-tabs {
    margin-bottom: 30px;
}

/* Навигация табов для десктопов */
.services-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.services-tab-btn {
    padding: 10px 15px;
    margin-right: 5px;
    margin-bottom: 5px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.services-tab-btn.active {
    background: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    color: #3c8c74;
}

/* Выпадающий список для мобильных */
.services-tabs-select {
    display: none;
    width: 100%;
    margin-bottom: 20px;
}

.services-tabs-select select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
}

/* Содержимое табов */
.services-tab-pane {
    display: none;
}

.services-tab-pane.active {
    display: block;
}

/* Стили для карточек услуг */
.service-card {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.service-title {
    margin: 0;
    padding: 0;
    font-size: 18px;
    flex: 1;
}

.service-price {
    font-weight: bold;
    color: #3c8c74;
    font-size: 18px;
    white-space: nowrap;
    margin-left: 15px;
}

.service-description {
    margin: 10px 0;
    color: #666;
}

.service-complex {
    display: inline-block;
    background: #f8f8f8;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.service-days {
    color: #666;
    display: flex;
    align-items: center;
}

.service-days i {
    margin-right: 5px;
}

.service-order .btn {
    transition: all 0.3s ease;
}

/* Индикатор загрузки */
.tab-loading-indicator, .load-more-spinner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3c8c74;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    color: #666;
    font-size: 16px;
    text-align: center;
}

.tab-placeholder, .empty-message {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.error-message {
    padding: 20px;
    color: #e74c3c;
    text-align: center;
    background: #fdf0ed;
    border-radius: 4px;
    border: 1px solid #f8d9d3;
}

/* Триггер для загрузки следующей страницы */
.load-more-trigger {
    height: 20px;
    width: 100%;
    visibility: hidden;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивные стили */
@media (max-width: 768px) {
    /* Скрываем кнопки табов на мобильных */
    .services-tabs-nav {
        display: none;
    }
    
    /* Показываем выпадающий список на мобильных */
    .services-tabs-select {
        display: block;
    }
    
    /* Адаптивные стили для карточек */
    .service-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-price {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .service-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .service-days {
        margin-bottom: 10px;
    }
    
    .service-order {
        width: 100%;
    }
    
    .service-order .btn {
        width: 100%;
        display: block;
        text-align: center;
    }
}
/* End */
/* /bitrix/templates/aspro-allcorp3/components/bitrix/news.list/service-sale_work/style.css?174670874610640 */
