.error-details {
    margin: 12px 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: none !important;
    outline: none !important;
}

.error-details:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.error-details > summary {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecef 100%);
    color: #2c3e50;
    padding: 14px 50px 14px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    font-size: 17px;
    transition: all 0.3s ease;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-left: 4px solid #e0e6ed;
}

.error-details > summary::-webkit-details-marker {
    display: none;
}

.error-details > summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.error-details[open] > summary::after {
    content: '−';
    color: #7f8c8d;
    transform: translateY(-50%) rotate(180deg);
}

.error-details[open] > summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border-left: 4px solid #2980b9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.error-details > summary:hover {
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e7eb 100%);
    color: #1a252f;
}

.error-details-content {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #f1f3f5;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-code {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 18px;
    font-size: 15px;
    margin-right: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(192, 57, 43, 0.2);
}

.error-cause {
    font-weight: 600;
    color: #2c3e50;
    margin: 12px 0 16px 0;
    padding-left: 8px;
    border-left: 3px solid #2980b9;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 15px;
}

.error-actions {
    margin-top: 15px;
}

.error-actions ol,
.error-actions ul {
    margin-left: 24px;
    padding-left: 10px;
    color: #34495e;
}

.error-actions li {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 15px;
}

.error-actions p {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #34495e;
}

.error-actions p strong {
    font-size: 17px;
    color: #2c3e50;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.model-specific {
    background: #fff5f5;
    border-left: 4px solid #e74c3c;
    padding: 16px;
    margin: 16px 0;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(231, 76, 60, 0.1);
}

.model-specific h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50; /* чёрный текст */
    font-size: 16px;
    font-weight: 600;
}

.model-specific h5::before {
    content: '';
}

.error-details[open] {
    animation: expand 0.35s ease;
}

@keyframes expand {
    from {
        transform: scale(0.99);
        opacity: 0.95;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.error-details[open] .error-details-content {
    animation: slideDown 0.35s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

details {
    border: none !important;
    outline: none !important;
    margin: 0;
    padding: 0;
}

summary {
    border: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.error-details > summary::before {
    content: '';
}

.error-details[open] > summary::before {
    content: '';
}