/* Основные стили для статьи о ремонте Realme */
.article-intro {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid green;
}

.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    border-radius: 4px;
}

.warning-box i {
    color: #ffc107;
    font-size: 24px;
    margin-right: 15px;
}

.diagnostic-steps {
    margin-top: 40px;
}

.step {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: green;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-right: 10px;
    font-weight: bold;
}

.step-result {
    margin-top: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
    text-align: center;
}

.result-btn {
    padding: 8px 15px;
    margin: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.yes-btn {
    background-color: #4CAF50;
    color: white;
}

.no-btn {
    background-color: #f44336;
    color: white;
}

.result-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hidden-step {
    display: none;
}

.problem-causes {
    margin: 30px 0;
}

.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.cause-item {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.cause-item:hover {
    background-color: #f1f1f1;
    transform: translateY(-5px);
}

.cause-item i {
    font-size: 24px;
    color: green;
    margin-bottom: 10px;
}

.urgent-help {
    background-color: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #4CAF50;
}

.reviews-section {
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.review {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.review-author {
    font-weight: bold;
    margin-right: 10px;
}

.review-date {
    color: #777;
    font-size: 14px;
}

.review-rating {
    color: #ffc107;
    width: 100%;
    margin-top: 5px;
}

.review-content {
    line-height: 1.6;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .causes-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        padding: 15px;
    }
    
    .result-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}
.urgent-repair {
    background-color: #fff8e1;
    border-left: 4px solid #ffb300;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}
.urgent-repair h3 {
    color: #d84315;
}
.price-table {
    margin: 40px auto;
    overflow-x: auto;
}
.price-table table {
    width: 100%;
    border-collapse: collapse;
}
.price-table th, .price-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.price-table th {
    background-color: green;
    color: white;
}
.price-table tr:nth-child(even) {
    background-color: #f2f2f2;
}
.price-note {
    font-size: 14px;
    color: #777;
    margin-top: 10px;
}
.repair-process {
    background-color: #f5f5f5;
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
}
.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.process-step {
    flex: 1 1 200px;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
}
.process-step .step-number {
    background: green;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 15px;
}
.faq-section {
    margin: 50px 0;
}
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 15px;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}
.faq-question:hover {
    background: #f1f1f1;
}
.faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.active .faq-answer {
    padding: 15px;
    max-height: 300px;
}
