/* Стили для детальной страницы услуг - блоки */
.catalog-services-detail-blocks {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.catalog-services-detail-block {
    transition: all 0.3s ease;
    position: relative;
}



.catalog-services-detail-block-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    position: relative;
    line-height: 1.3;
    margin: 0 0 20px 0;
}


/*.catalog-services-detail-block-title::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    bottom: 0;*/
/*    left: 0;*/
/*    width: 100px;*/
/*    top: 45px;*/
/*    height: 3px;*/
/*    background: linear-gradient(90deg, #0cb28b, #0cb28b80);*/
/*    border-radius: 2px;*/
/*}*/

/* Стили для текстовых блоков */

.catalog-services-detail-block-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.catalog-services-detail-block-text h1,
.catalog-services-detail-block-text h2,
.catalog-services-detail-block-text h3,
.catalog-services-detail-block-text h4,
.catalog-services-detail-block-text h5,
.catalog-services-detail-block-text h6 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.catalog-services-detail-block-text h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #0cb28b;
    padding-bottom: 10px;
}

.catalog-services-detail-block-text h3 {
    font-size: 1.3rem;
    color: #0cb28b;
}

.catalog-services-detail-block-text p {
    margin-bottom: 16px;
}

.catalog-services-detail-block-text ul,
.catalog-services-detail-block-text ol {
    margin: 16px 0;
    padding-left: 25px;
}

.catalog-services-detail-block-text li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.catalog-services-detail-block-text ul li {
    position: relative;
}

.catalog-services-detail-block-text ul li::before {
    content: '•';
    color: #0cb28b;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.catalog-services-detail-block-text blockquote {
    border-left: 4px solid #0cb28b;
    background: #f8f9fa;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #666;
}

.catalog-services-detail-block-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.catalog-services-detail-block-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.catalog-services-detail-block-text th,
.catalog-services-detail-block-text td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.catalog-services-detail-block-text th {
    background: #0cb28b;
    color: white;
    font-weight: 600;
}

.catalog-services-detail-block-text tr:hover {
    background: #f8f9fa;
}

.catalog-services-detail-block[data-block-type="FAQ"] {
    border-left: 4px solid #0cb28b;
    padding: 0 0 0 20px;
}

/* Стили для блока SAMPLE с фоновой картинкой */
.catalog-services-detail-sample-block {
    position: relative;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.catalog-services-detail-sample-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.catalog-services-detail-sample-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(135deg, rgba(12, 178, 139, 0.8), rgba(12, 178, 139, 0.6));*/
    z-index: 2;
}

.catalog-services-detail-sample-content {
    position: relative;
    z-index: 3;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.catalog-services-detail-sample-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    max-width: 800px;
    text-align: center;
}

.catalog-services-detail-sample-text h1,
.catalog-services-detail-sample-text h2,
.catalog-services-detail-sample-text h3,
.catalog-services-detail-sample-text h4,
.catalog-services-detail-sample-text h5,
.catalog-services-detail-sample-text h6 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.catalog-services-detail-sample-text h2 {
    font-size: 2rem;
    color: #0cb28b;
    margin-bottom: 25px;
}

.catalog-services-detail-sample-text h3 {
    font-size: 1.5rem;
    color: #0cb28b;
    margin-bottom: 20px;
}

.catalog-services-detail-sample-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.catalog-services-detail-sample-text ul,
.catalog-services-detail-sample-text ol {
    text-align: left;
    margin: 20px 0;
    padding-left: 25px;
}

.catalog-services-detail-sample-text li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

.catalog-services-detail-sample-text ul li {
    position: relative;
}

.catalog-services-detail-sample-text ul li::before {
    content: '•';
    color: #0cb28b;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.catalog-services-detail-sample-text strong {
    color: #333;
    font-weight: 600;
}

.catalog-services-detail-sample-text em {
    color: #0cb28b;
    font-style: italic;
}

.catalog-services-detail-sample-text a {
    color: #0cb28b;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.catalog-services-detail-sample-text a:hover {
    border-bottom-color: #0cb28b;
    color: #0a9a7a;
}

/* Адаптивность для блока SAMPLE */
@media (max-width: 768px) {
    .catalog-services-detail-sample-block {
        min-height: 300px;
        margin: 15px 0;
    }
    
    .catalog-services-detail-sample-content {
        padding: 40px 20px;
        min-height: 300px;
    }
    
    .catalog-services-detail-sample-text {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .catalog-services-detail-sample-text h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .catalog-services-detail-sample-text h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .catalog-services-detail-sample-text p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .catalog-services-detail-sample-block {
        min-height: 250px;
        margin: 10px 0;
        border-radius: 12px;
    }
    
    .catalog-services-detail-sample-content {
        padding: 30px 15px;
        min-height: 250px;
    }
    
    .catalog-services-detail-sample-text {
        padding: 25px 15px;
    }
    
    .catalog-services-detail-sample-text h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .catalog-services-detail-sample-text h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .catalog-services-detail-sample-text p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .catalog-services-detail-sample-text ul,
    .catalog-services-detail-sample-text ol {
        margin: 15px 0;
        padding-left: 20px;
    }
}

/* Стили для пустого состояния */
.catalog-services-detail-not-found {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    font-size: 1.2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

/* Дополнительные стили для контента */
.catalog-services-detail-block-text a {
    color: #0cb28b;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.catalog-services-detail-block-text a:hover {
    border-bottom-color: #0cb28b;
    color: #0a9a7a;
}

.catalog-services-detail-block-text strong {
    color: #333;
    font-weight: 600;
}

.catalog-services-detail-block-text em {
    color: #0cb28b;
    font-style: italic;
}

.catalog-services-detail-block-text code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #0cb28b;
    font-size: 0.9em;
}

.catalog-services-detail-block-text pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 4px solid #0cb28b;
}

.catalog-services-detail-block-text pre code {
    background: none;
    padding: 0;
    color: #333;
}
