/* ============================================
   CHARITY BLOCK - ОБНОВЛЁННЫЙ СТИЛЬ
   ============================================ */

.charity-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.charity-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.charity-section__title {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.charity-section__title span {
    color: var(--gold);
}

.charity-section__view-all {
    background: rgba(197, 165, 94, 0.15);
    color: var(--gold);
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-gold);
}

.charity-section__view-all:hover {
    background: rgba(197, 165, 94, 0.25);
    transform: translateY(-2px);
}

.charity-section__container-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.charity-section__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Карточка программы */
.charity-section__post {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.charity-section__post:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
}

.charity-section__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.charity-section__post-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.charity-section__post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--gold);
}

.charity-section__post-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.charity-section__buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.charity-section__help-button {
    display: inline-block;
    padding: 10px 16px;
    background: var(--gold);
    color: var(--bg-deep);
    text-align: center;
    border-radius: 30px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.charity-section__help-button:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

.charity-section__read-more {
    display: inline-block;
    padding: 10px 16px;
    background: transparent;
    color: var(--gold);
    text-align: center;
    border-radius: 30px;
    border: 1px solid var(--border-gold);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    flex: 1;
}

.charity-section__read-more:hover {
    background: rgba(197, 165, 94, 0.1);
    transform: translateY(-2px);
}

/* Индикатор прокрутки (мобильные) */
.charity-section__scroll-indicator {
    display: none;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-bottom: 10px;
}

.charity-section__scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
}

.charity-section__scroll-dot.active {
    background-color: var(--gold);
    width: 24px;
    border-radius: 4px;
}

/* Pop-up стили */
.help-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.help-popup__content {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    padding: 28px;
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 90%;
    position: relative;
    border: 1px solid var(--border-gold);
}

.help-popup__close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.help-popup__close:hover {
    color: var(--gold);
}

.help-popup__title {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--gold);
}

.help-popup__recipient {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.help-popup__details p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.help-popup__details strong {
    color: var(--gold);
}

/* Responsive */
@media (max-width: 1100px) {
    .charity-section__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .charity-section {
        padding: 0 15px;
        margin: 40px auto;
    }
    
    .charity-section__container {
        display: flex;
        grid-template-columns: unset;
        gap: 0;
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .charity-section__container::-webkit-scrollbar {
        display: none;
    }
    
    .charity-section__post {
        min-width: calc(100% - 30px);
        scroll-snap-align: start;
        margin: 0 15px;
    }
    
    .charity-section__post:hover {
        transform: none;
    }
    
    .charity-section__header {
        margin-bottom: 24px;
    }
    
    .charity-section__title {
        font-size: 24px;
    }
    
    .charity-section__scroll-indicator {
        display: flex;
    }
    
    .charity-section__view-all {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .charity-section__post {
        min-width: calc(100% - 20px);
        margin: 0 10px;
    }
    
    .charity-section__image {
        height: 160px;
    }
    
    .charity-section__post-title {
        font-size: 15px;
    }
    
    .charity-section__help-button,
    .charity-section__read-more {
        padding: 8px 12px;
        font-size: 12px;
    }
}