/* Стили для страницы ДМС */
.dms-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

.dms-section {
    margin-bottom: 60px;
    padding: 30px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dms-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.dms-title {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    position: relative;
}

.dms-title:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: #e74c3c;
}

/* Блок преимуществ с иконками */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.advantage-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.advantage-card:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left-color: #e74c3c;
    transform: scale(1.03);
}

.advantage-icon {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 15px;
}

.advantage-card h3 {
    color: #2c3e50;
    font-size: 18px;
    margin: 10px 0;
    font-weight: 600;
}

.advantage-card p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Иконки Font Awesome */
.fa-stethoscope { color: #3498db; }
.fa-clipboard-list { color: #2ecc71; }
.fa-couch { color: #9b59b6; }
.fa-calendar-alt { color: #e74c3c; }
.fa-flask { color: #f39c12; }
.fa-child { color: #1abc9c; }
.fa-file-medical { color: #e74c3c; }
.fa-clock { color: #3498db; }
.fa-headset { color: #2ecc71; }
.fa-comments { color: #9b59b6; }

/* Блок шагов */
.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.step-card {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    background: white;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    border: 2px solid #3498db;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: #e74c3c;
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.1);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.step-icon {
    font-size: 35px;
    margin: 15px 0;
    color: #3498db;
}

.step-card h3 {
    color: #2c3e50;
    font-size: 16px;
    margin: 10px 0;
    font-weight: 600;
}

/* Исправленный блок преимуществ ДМС */
.dms-advantages {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #3498db;
}

.advantage-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.advantage-col {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 20px; /* одинаковый отступ между элементами */
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    padding: 20px; /* Увеличил padding для одинаковых отступов */
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%; /* Растягиваем на всю доступную высоту */
    min-height: 140px; /* Минимальная высота, чтобы блоки не становились слишком маленькими */
    box-sizing: border-box;
}

.advantage-item:hover {
    background: white;
    transform: translateX(5px);
}

.advantage-item i {
    font-size: 28px; /* Немного увеличил иконки */
    color: #3498db;
    margin-right: 20px;
    min-width: 35px;
    flex-shrink: 0; /* Запрещаем сжиматься иконке */
}

.advantage-item div {
    flex: 1; /* Занимаем все оставшееся пространство */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Выравниваем содержимое по центру по вертикали */
}

.advantage-item h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 18px;
}

.advantage-item p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Для мобильной версии */
@media (max-width: 768px) {
    .advantage-item {
        min-height: auto; /* Убираем минимальную высоту на мобильных */
        padding: 15px;
    }
    
    .advantage-col {
        gap: 15px;
    }
}

/* Блок FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

.faq-question {
    background: #f8f9fa;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question i {
    color: #3498db;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-answer.show {
    padding: 20px;
    max-height: 500px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .dms-section {
        padding: 20px 15px;
        margin-bottom: 40px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    .step-card {
        min-width: 100%;
        max-width: 100%;
    }
    
    .advantage-row {
        flex-direction: column;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}