.custom-text-block-section {
    background-color: var(--bg-light);
    color: var(--text-color);
    padding: 40px 0;
}

.custom-text-block .container {
    max-width: 1200px;
    margin: 0 auto;
}

.custom-text-block h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
}

.custom-text-block .custom-content {
    line-height: 1.6;
}

.custom-text-block .custom-content h1,
.custom-text-block .custom-content h2,
.custom-text-block .custom-content h3,
.custom-text-block .custom-content h4,
.custom-text-block .custom-content h5,
.custom-text-block .custom-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.custom-text-block .custom-content p {
    margin-bottom: 1rem;
}

.custom-text-block .custom-content ul,
.custom-text-block .custom-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.custom-text-block .custom-content li {
    margin-bottom: 0.5rem;
}

.custom-text-block .custom-content blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}

.custom-text-block .custom-content code {
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.custom-text-block .custom-content pre {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.custom-text-block .custom-content pre code {
    background-color: transparent;
    padding: 0;
}

.custom-text-block .custom-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.custom-text-block .custom-content th,
.custom-text-block .custom-content td {
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    text-align: left;
}

.custom-text-block .custom-content th {
    background-color: #f9fafb;
    font-weight: bold;
}

.custom-text-block .custom-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.custom-text-block .custom-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.custom-text-block .custom-content a:hover {
    color: #1d4ed8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .custom-text-block {
        padding: 1rem 0;
    }
    
    .custom-text-block h2 {
        font-size: 2rem;
    }
    
    .custom-text-block .custom-content {
        font-size: 0.95rem;
    }
} 