/* Common Blocks Styles - Исправленная версия для видимости текста */

/* Общие стили для всех секций */
.section {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

/* Стили для заголовков секций */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #9d99c6, #6c688a);
    border-radius: 2px;
}

.section-title i {
    margin-right: 1rem;
    color: #9d99c6;
}

/* Стили для подзаголовков */
.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Общие стили для карточек */
.modern-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(157, 153, 198, 0.4);
}

/* Стили для иконок */
.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9d99c6, #6c688a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.modern-card:hover .icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Стили для текста в карточках */
.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white !important;
    margin-bottom: 1rem;
}

.card-text {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
    font-size: 1rem;
}

/* Исправления для блоков на светлом фоне */
.bg-light-trans .section-title {
    color: #2c3e50 !important;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.bg-light-trans .section-subtitle {
    color: #2c3e50 !important;
}

.bg-light-trans .card-title {
    color: #2c3e50 !important;
}

.bg-light-trans .card-text {
    color: #2c3e50 !important;
}

.bg-light-trans .modern-card {
    background: rgba(255, 255, 255, 0.8);
    color: #2c3e50;
}

/* Исправления для блоков на темном фоне */
.bg-dark-trans .section-title {
    color: white !important;
}

.bg-dark-trans .section-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bg-dark-trans .card-title {
    color: white !important;
}

.bg-dark-trans .card-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Стили для списков */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
}

.feature-list li::before {
    content: '✓';
    color: #27ae60;
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.bg-light-trans .feature-list li {
    color: #2c3e50 !important;
}

/* Стили для кнопок призыва к действию */
.cta-button {
    background: linear-gradient(135deg, #9d99c6, #7e7a9d);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(157, 153, 198, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #8c88b5, #6d6988);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 153, 198, 0.4);
    color: white !important;
}

.cta-button i {
    margin-right: 0.5rem;
}

/* Стили для цитат */
.quote-block {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-left: 4px solid #9d99c6;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.quote-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.quote-author {
    color: #9d99c6 !important;
    font-weight: 600;
    text-align: right;
}

.bg-light-trans .quote-text {
    color: #2c3e50 !important;
}

.bg-light-trans .quote-author {
    color: #9d99c6 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .modern-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .modern-card {
        padding: 1rem;
    }
}
