/* Стилі для Features блоку - компактні горизонтальні картки в один рядок */

.features-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 40px 0;
}

.features-grid {
    display: flex;
    flex-direction: row;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
}

.feature-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(233, 30, 99, 0.08);
    flex: 1;
    min-width: 0;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.12);
    border-color: rgba(233, 30, 99, 0.15);
}

.feature-image {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-image img {
    transform: scale(1.05);
}

.feature-content {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.feature-title {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin: 0 0 3px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.feature-item:hover .feature-title {
    color: #e91e63;
}

.feature-description {
    color: #666;
    font-size: 0.85em;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Анімація появи */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features-section .feature-item.fade-in {
    animation: slideInUp 0.5s ease forwards;
}

.features-section .feature-item.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.features-section .feature-item.fade-in:nth-child(2) {
    animation-delay: 0.15s;
}

.features-section .feature-item.fade-in:nth-child(3) {
    animation-delay: 0.2s;
}

/* Адаптивність */
@media (max-width: 768px) {
    .features-section {
        padding: 30px 0;
    }
    
    .features-grid {
        flex-direction: column;
        gap: 12px;
        padding: 0 15px;
        max-width: 500px;
    }
    
    .feature-item {
        padding: 12px 15px;
        border-radius: 8px;
    }
    
    .feature-image {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .feature-title {
        font-size: 0.95em;
        white-space: normal;
        text-align: center;
    }
    
    .feature-description {
        font-size: 0.8em;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .features-grid {
        gap: 10px;
        padding: 0 10px;
    }
    
    .feature-item {
        padding: 10px 12px;
    }
    
    .feature-image {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    
    .feature-title {
        font-size: 0.9em;
        margin-bottom: 2px;
        text-align: center;
    }
    
    .feature-description {
        font-size: 0.75em;
        text-align: center;
    }
}

/* Спеціальні стилі для iOS Safari */
@supports (-webkit-touch-callout: none) {
    .feature-item {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .feature-item:hover {
        -webkit-transform: translateY(-2px) translateZ(0);
        transform: translateY(-2px) translateZ(0);
    }
}
