/* Стили для отзывов */
.reviews-section {
    margin: 40px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.review {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-author {
    font-weight: bold;
    color: #333;
}

.review-rating {
    color: #FFD700;
}

.review-model {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.review-text {
    line-height: 1.5;
    margin-bottom: 10px;
}

.review-date {
    font-size: 12px;
    color: #999;
    text-align: right;
}

.load-more-btn {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: green;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.load-more-btn:hover {
    background-color: darkgreen;
}

/* Стили для FAQ */
.faq-section {
    margin: 40px 0;
}

.faq-container {
    margin-top: 20px;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background-color: #f5f5f5;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #e9e9e9;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: white;
}

.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 500px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        padding: 12px 15px;
    }
    
    .faq-answer {
        padding: 0 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 12px 15px;
    }
}

/* Дополнительные стили для статьи */
.warning-box {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 30px 0;
}

.step {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.step:last-child {
    border-bottom: none;
}

code {
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

/* Стили для новых блоков */

/* Типичные неисправности по брендам */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.brand-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 3px solid green;
}

.brand-card h3 {
    color: green;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-card h3 i {
    font-size: 1.2em;
}

.brands-note {
    background: #f0f8f0;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid green;
}

/* Таблица стоимости */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: green;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

.price-notice {
    background: #fff8e1;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.price-notice i {
    color: #ffc107;
    font-size: 1.5em;
    margin-top: 2px;
}

/* Процесс ремонта */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.process-step {
    position: relative;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: green;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.repair-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    padding: 10px 20px;
    border-radius: 50px;
}

.feature i {
    color: green;
    font-size: 1.2em;
}

/* Когда покупать новый */
.decision-criteria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.criteria-left h3 {
    color: green;
}

.criteria-right h3 {
    color: #d32f2f;
}

.criteria-left h3 i {
    color: green;
}

.criteria-right h3 i {
    color: #d32f2f;
}

.consultation-block {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .brands-grid, .process-steps {
        grid-template-columns: 1fr;
    }
    
    .decision-criteria {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    th, td {
        padding: 8px 10px;
    }
}
/* Сравнение ремонтов */
.comparison-table {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin: 25px 0;
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: green;
    color: white;
    font-weight: bold;
}

.header-item {
    padding: 15px;
    text-align: center;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-row:last-child {
    border-bottom: none;
}

.row-title {
    padding: 15px;
    background: #f9f9f9;
    font-weight: bold;
}

.row-item {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.row-item i.yes {
    color: green;
    font-size: 1.2em;
}

.row-item i.no {
    color: #d32f2f;
    font-size: 1.2em;
}

.comparison-cta {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

/* Мифы */
.myths-container {
    margin: 30px 0;
}

.myth {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.myth-header {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 15px;
    cursor: pointer;
}

.myth-number {
    width: 30px;
    height: 30px;
    background: green;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.myth-content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.myth.active .myth-content {
    padding: 15px;
    max-height: 500px;
}

/* Кейсы */
.cases-container {
    margin: 30px 0;
}

.case {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.case-image {
    position: relative;
    min-height: 200px;
    background: #f5f5f5;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-label {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0,100,0,0.8);
    color: white;
    padding: 5px 15px;
    font-weight: bold;
}

.case-content {
    padding: 20px;
}

.case-result {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.result-item {
    display: flex;
    flex-direction: column;
}

.result-item span {
    font-size: 0.9em;
    color: #666;
}

.result-item strong {
    color: green;
    font-size: 1.1em;
}

.cases-cta {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

/* FAQ по моделям */
.model-tabs {
    margin: 30px 0;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button.active {
    background: green;
    color: white;
}

.tab-content {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tab-content.show {
    display: block;
}

.model-question {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e0e0e0;
}

.model-question:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.model-advice {
    background: #fff8e1;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

/* Подготовка к ремонту */
.preparation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.preparation-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: green;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
}

.preparation-map {
    margin-top: 40px;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
}

/* Адаптация */
@media (max-width: 768px) {
    .comparison-header, .comparison-row {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    
    .case {
        grid-template-columns: 1fr;
    }
    
    .case-result {
        grid-template-columns: 1fr;
    }
    
    .preparation-steps {
        grid-template-columns: 1fr;
    }
}