/* Основные стили для статей сайта vnesenie-v-reestr.ru */

.custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.custom-main-content {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 30px;
}

/* Заголовки */
.custom-header {
    color: #1c1814;
    font-size: 2.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
    text-align: center;
}

.custom-section-title {
    color: #1c1814;
    font-size: 1.8rem;
    margin: 40px 0 20px 0;
    border-bottom: 3px solid #b07d2e;
    padding-bottom: 10px;
}

.custom-subsection {
    color: #1c1814;
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
}

.custom-subheading {
    color: #374151;
    font-size: 1.2rem;
    margin: 25px 0 10px 0;
}

/* Текстовые элементы */
.custom-paragraph {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #555;
    text-align: justify;
}

.custom-list {
    margin: 20px 0;
    padding-left: 30px;
}

.custom-list-item {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #374151;
}

.custom-highlight {
    color: #1c1814;
    font-weight: 600;
}

/* Сетки и карточки */
.custom-challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Карточка: тёмный фон — только светлый текст (контраст) */
.custom-challenge-card {
    background: linear-gradient(135deg, #1c1814 0%, #2d2620 100%) !important;
    color: #ffffff !important;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.custom-challenge-card *,
.custom-challenge-card h4,
.custom-challenge-card p,
.custom-challenge-card span,
.custom-challenge-card a {
    color: #ffffff !important;
}

.custom-challenge-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: #d4a853 !important; /* золотой акцент для иконки */
}

.custom-challenge-card h4 {
    color: #ffffff !important;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.custom-challenge-card p {
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.custom-approaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.custom-approach-item {
    background: #fff;
    border: 2px solid #b07d2e;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.custom-approach-item:hover {
    border-color: #8a6914;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.custom-approach-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: #b07d2e;
}

.custom-approach-item h5 {
    color: #1c1814;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.custom-approach-item p {
    color: #374151;
    margin: 0;
    font-size: 0.9rem;
}

/* Блоки предупреждений и информации */
.custom-warning-block {
    background: linear-gradient(135deg, #d4a853 0%, #b07d2e 100%);
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #8a6914;
}

.custom-warning-block h3 {
    color: #1c1814;
    margin: 0 0 15px 0;
}

.custom-warning-block p {
    color: #1c1814;
    margin: 0;
}

.custom-info-block {
    background: linear-gradient(135deg, #8a6914 0%, #6d5410 100%);
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #b07d2e;
}

.custom-info-block h3 {
    color: #ffffff;
    margin: 0 0 15px 0;
}

.custom-info-block p {
    color: rgba(255,255,255,0.95);
    margin: 0;
}

.custom-success-box {
    background: linear-gradient(135deg, #b07d2e 0%, #8a6914 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: center;
}

.custom-success-box h3 {
    color: #ffffff;
    margin: 0 0 15px 0;
}

.custom-success-box p {
    color: rgba(255,255,255,0.95);
    margin: 0;
}

/* Процессы и шаги */
.custom-process-steps {
    margin: 30px 0;
}

.custom-process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 25px;
    background: #f7f3ee;
    border-radius: 10px;
    border-left: 4px solid #b07d2e;
}

.custom-step-number {
    background: #b07d2e;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.custom-step-content h4 {
    margin: 0 0 10px 0;
    color: #1c1814;
}

.custom-step-content p {
    margin: 0;
    color: #374151;
}

/* Примеры и статистика */
.custom-examples-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.custom-example-item {
    background: #f7f3ee;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #8a6914;
    font-weight: 600;
}

.custom-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.custom-stat-item {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #b07d2e 0%, #8a6914 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.custom-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.custom-stat-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

/* Таблицы: заголовки — тёмный фон и белый текст для читаемости */
.custom-documentation-table {
    background: #f0f2f5;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    overflow-x: auto;
}

.custom-documentation-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.custom-documentation-table th {
    background: #1c1814 !important;
    color: #ffffff !important;
    padding: 14px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
}

.custom-documentation-table thead th {
    background: #1c1814 !important;
    color: #ffffff !important;
}

.custom-documentation-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.custom-documentation-table tbody tr:hover {
    background: #f8fafc;
}

/* Мобильная вёрстка таблицы: карточки по строкам для удобного чтения */
@media (max-width: 640px) {
    .custom-documentation-table {
        padding: 12px 10px;
        margin: 20px 0;
        background: transparent;
    }

    .custom-documentation-table table {
        min-width: 100%;
        box-shadow: none;
        background: transparent;
    }

    .custom-documentation-table thead {
        display: none;
    }

    .custom-documentation-table tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }

    .custom-documentation-table tbody tr:hover {
        background: #fff;
    }

    .custom-documentation-table tbody td {
        display: block;
        padding: 12px 14px;
        border-bottom: 1px solid #f0f2f5;
        text-align: left;
        font-size: 0.9375rem;
    }

    .custom-documentation-table tbody td:last-child {
        border-bottom: none;
    }

    /* Первая ячейка строки — как заголовок карточки */
    .custom-documentation-table tbody td:first-child {
        font-weight: 600;
        color: #1c1814;
        background: #f4f6f9;
        padding: 12px 14px;
        font-size: 1rem;
    }

    /* Подпись к ячейкам через data-label, если есть в разметке */
    .custom-documentation-table tbody td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        color: #6b7280;
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }
}

/* Планшеты: при необходимости горизонтальный скролл с читаемыми колонками */
@media (min-width: 641px) and (max-width: 900px) {
    .custom-documentation-table {
        padding: 16px 12px;
        -webkit-overflow-scrolling: touch;
    }

    .custom-documentation-table table {
        min-width: 560px;
    }

    .custom-documentation-table th,
    .custom-documentation-table td {
        padding: 12px 14px;
        font-size: 0.9375rem;
    }
}

/* Карточки шаблонов */
.custom-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.custom-template-card {
    background: linear-gradient(135deg, #b07d2e 0%, #8a6914 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: left;
}

.custom-template-card h4 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 1.3rem;
}

.custom-template-card p {
    color: rgba(255,255,255,0.9);
    margin: 0 0 15px 0;
    font-size: 0.95rem;
}

.custom-template-card ul {
    list-style: none;
    padding: 0;
}

.custom-template-card li {
    color: rgba(255,255,255,0.9);
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.custom-template-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: bold;
}

/* Блок контактов */
.custom-contacts-block {
    background: #1c1814;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    color: white;
}

.custom-contacts-block h3 {
    color: #ffffff !important;
    margin: 0 0 20px 0;
}

.custom-contacts-block .custom-section-title,
.custom-contacts-block h2 {
    color: #ffffff !important;
}

.custom-contacts-block p {
    margin: 10px 0;
    color: rgba(255,255,255,0.9);
}

.custom-contacts-block strong {
    color: white;
}

.custom-contacts-block a {
    color: #d4a853;
    text-decoration: none;
}

.custom-contacts-block a:hover {
    text-decoration: underline;
}

/* Блок сравнения */
.custom-comparison-block {
    background: #ecf0f1;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.custom-comparison-block h3 {
    color: #1c1814;
    margin: 0 0 20px 0;
    text-align: center;
}

.custom-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.custom-comparison-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #b07d2e;
}

.custom-comparison-item h4 {
    color: #8a6914;
    margin: 0 0 15px 0;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .custom-main-content {
        padding: 25px;
    }
    
    .custom-header {
        font-size: 2rem;
    }
    
    .custom-section-title {
        font-size: 1.5rem;
    }
    
    .custom-approaches-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .custom-comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-templates-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-examples-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .custom-container {
        padding: 10px;
    }
    
    .custom-main-content {
        padding: 20px;
    }
    
    .custom-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-approach-item,
    .custom-challenge-card,
    .custom-template-card {
        padding: 20px;
    }
}