/* campaign-hero-final */
.campaign-hero-final {
    background: #FFF4F4;
    padding: 60px 0 30px 0;
    position: relative;
}

.campaign-hero-final::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(224,104,120,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid-final {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    z-index: 5;
    position: relative;
}

.hero-photo-final {
    flex: 1.2;
    min-width: 350px;
    position: relative;
}

.photo-frame-final {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
    background: #fff;
    padding: 8px;
}

.photo-frame-final img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    transition: transform 0.3s ease;
}

.photo-frame-final:hover img {
    transform: scale(1.02);
}

.photo-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'MontserratMedium', sans-serif;
    font-size: 14px;
    color: #80001C;
    z-index: 2;
}

.hero-info-final {
    flex: 1;
    min-width: 320px;
}

.hero-info-final h1 {
    font-size: 52px;
    font-weight: 700;
    color: #80001C;
    font-family: 'MontserratBold', sans-serif;
    line-height: 1.2;
    margin-bottom: 30px;
}

.info-card-final {
    background: #fff;
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(224,104,120,0.1);
}

.info-row-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.info-row-final:first-child {
    border-bottom: 1px solid #f0e6e6;
}

.info-label-final {
    font-size: 15px;
    font-family: 'MontserratMedium', sans-serif;
    color: #80001C;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-value-final {
    font-size: 16px;
    font-family: 'MontserratSemiBold', sans-serif;
    color: #A44056;
}

.goal-card-final {
    background: linear-gradient(135deg, #E06878 0%, #c45464 100%);
    border-radius: 20px;
    padding: 20px 25px;
    margin-bottom: 0px;
    display: flex;
    gap: 15px;
    align-items: flex-start;

}

.goal-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.goal-content {
    flex: 1;
}

.goal-label-final {
    font-size: 12px;
    font-family: 'MontserratMedium', sans-serif;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.goal-text-final {
    font-size: 16px;
    font-family: 'MontserratRegular', sans-serif;
    color: #fff;
    line-height: 1.45;
    margin: 0;
}

.btn-wrapper-final {
    text-align: center;
    margin-top: 10px;
}

.donate-btn-final {
    font-family: 'MontserratSemiBold', sans-serif;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    border: 2px solid #F3474E;
    background: none;
    width: auto;
    min-width: 200px;
    color: #F3474E;
    padding: 14px 32px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.donate-btn-final::after {
    content: "♥";
    font-size: 16px;
    transition: transform 0.3s ease;
}

.donate-btn-final:hover {
    background: none;
    border: 2px solid #ff0008;
    color: #ff0008;
    box-shadow: 0 6px 20px rgba(255, 0, 85, 0.25);
    transform: translateY(-2px);
}

/* Табы */
.tabs-main-wrapper {
    margin: 0 0 60px 0;
}

.tabs-white-block {
    position: relative;
    background: #fff;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(224,104,120,0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-white-block .tab-buttons {
    display: flex;
    gap: 15px;
    padding: 0 0 30px 0;
    margin-bottom: 30px;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    font-family: 'MontserratSemiBold', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 32px;
    background: transparent;
    border: 2px solid #F3474E;
    border-radius: 50px;
    color: #F3474E;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border: 2px solid #ff0008;
    color: #ff0008;
    box-shadow: 0 6px 20px rgba(255, 0, 85, 0.25);
    transform: translateY(-2px);
}

.tab-btn.active {
    background-image: linear-gradient(45deg, #ff0055, #ff5e62, #ff0055);
    background-size: 200% auto;
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* История */
.history-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.history-text {
    flex: 2;
    min-width: 300px;
    font-size: 18px;
    line-height: 1.8;
    color: #4a4a4a;
    font-family: 'MontserratRegular', sans-serif;
    overflow-wrap: break-word;
    
}

.history-text-header {
    margin-bottom: 30px;
}

.history-text-header h2 {
    font-size: 32px;
    color: #80001C;
    font-family: 'MontserratBold', sans-serif;
    margin-bottom: 12px;
}

.history-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #F3474E, #ff8a8a);
    border-radius: 3px;
}

.history-subtitle {
    font-size: 24px;
    color: #80001C;
    margin: 30px 0 15px 0;
    font-family: 'MontserratSemiBold', sans-serif;
}

.history-text-block {
    margin-bottom: 20px;
    line-height: 1.8;
}

.history-quote-block {
    margin: 25px 0;
    padding-left: 20px;
    border-left: 4px solid #F3474E;
}

.history-quote {
    font-style: italic;
    font-size: 18px;
    color: #A44056;
    margin: 0;
    font-family: 'MontserratMedium', sans-serif;
}

.history-sidebar {
    flex: 1;
    min-width: 280px;
    position: sticky;
    top: 100px;
    text-align: center;
}

.history-photo {
    background: linear-gradient(135deg, #fff 0%, #fef7f0 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.history-photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Слайдер */
.story-gallery-slider {
    margin-bottom: 24px;
    width: 100%;
    position: relative;
}

.gallery-swiper,
.swiper-container {
    width: 100%;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: none;
}

.swiper-slide {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swiper-button-prev,
.swiper-button-next {
    width: 40px !important;
    height: 40px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    color: white !important;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 18px !important;
}

.swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 15px;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc !important;
    opacity: 1 !important;
    margin: 0 5px !important;
}

.swiper-pagination-bullet-active {
    background: #F3474E !important;
}

/* Прогресс-бар */
.sidebar-progress {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 16px;
    margin: 20px 0;
}

.sidebar-progress .fund-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.sidebar-progress .collected {
    color: #2b7e3a;
    font-weight: 600;
    font-size: 13px;
}

.sidebar-progress .goal {
    color: #E06878;
    font-weight: 600;
    font-size: 13px;
}

.progress-bar-bg {
    background-color: #e9edf2;
    border-radius: 60px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #3ba85a, #64c47c);
    height: 100%;
    border-radius: 60px;
}

.progress-percent {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

/* Кнопки "Помочь" в сайдбаре */
.history-sidebar .donate-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid var(--btn-color);
    background: none;
    color: var(--btn-color);
    border-radius: 50px;
    cursor: pointer;
}

.donate-btn2{
    border: 2px solid rgb(248, 228, 228);
    color: rgb(248, 228, 228);   
    margin: 0;
}

.history-sidebar .donate-btn::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('../img/heart-ico.svg') no-repeat center;
    background-size: contain;
    vertical-align: middle;
}

/* Документы */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.document-link:hover {
    background: #fef7f0;
    transform: translateX(5px);
}

.document-icon {
    width: 32px;
    height: 32px;
}

.document-link span {
    font-family: 'MontserratMedium', sans-serif;
    font-size: 14px;
    color: #80001C;
    flex: 1;
}

/* Новости - картинка слева, текст справа */
#tab-news .news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#tab-news .news-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(224,104,120,0.1);
}

#tab-news .news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#tab-news .news-image {
    flex-shrink: 0;
    width: 140px;
    height: 110px;
    overflow: hidden;
    border-radius: 12px;
}

#tab-news .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#tab-news .news-item:hover .news-image img {
    transform: scale(1.05);
}

#tab-news .news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#tab-news .news-date {
    font-size: 12px;
    color: #E06878;
    margin-bottom: 8px;
    font-family: 'MontserratMedium', sans-serif;
}

#tab-news .news-content h3 {
    margin: 0 0 8px 0;
}

#tab-news .news-content h3 a {
    font-size: 18px;
    font-weight: 600;
    color: #80001C;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'MontserratSemiBold', sans-serif;
}

#tab-news .news-content h3 a:hover {
    color: #F3474E;
}

#tab-news .news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Форма пожертвования */
.donation-section-bottom {
    background: linear-gradient(135deg, #E04F66 0%, #CE3859 100%);
    padding: 60px 0;
    margin: 40px 0 0;
}

.donation-section {
    background: #fff;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
}

.donation-section h2 {
    font-size: 28px;
    color: #80001C;
    margin-bottom: 25px;
    text-align: center;
    font-family: 'MontserratBold', sans-serif;
}

/* Leyka */
:root {
    --leyka-color-main: #E04F66;
    --leyka-font-main: 'MontserratRegular', sans-serif;
}

/* Общие */
.container {
    width: 1140px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

body {
    -webkit-text-size-adjust: 100%;
}

/* Иконки */
.info-icon {
    width: 23px;
    height: 23px;
    vertical-align: middle;
    filter: brightness(0) saturate(100%) invert(18%) sepia(67%) saturate(2555%) hue-rotate(345deg) brightness(94%) contrast(94%);
}

.goal-heart-icon {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* Мобильная версия */
@media (max-width: 992px) {
    .container {
        width: 720px;
    }
    .hero-info-final h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
    }
    .hero-grid-final {
        flex-direction: column;
        gap: 30px;
        z-index: 5;
        position: relative;
    }
    .hero-photo-final {
        min-width: auto;
        width: 100%;
    }
    .hero-info-final h1 {
        font-size: 36px;
        text-align: center;
    }
    .history-layout {
        flex-direction: column;
    }
    .history-sidebar {
        position: static;
        width: 100%;
    }
    .tabs-white-block {
        padding: 20px;
    }
    .tab-buttons {
        flex-direction: row;
        align-items: center;
    }
    .tab-btn {
        width: 100%;
        max-width: 300px;
        
    }
    #tab-news .news-item {
        flex-direction: column;
    }
    #tab-news .news-image {
        width: 100%;
        height: 180px;
    }
    .donation-section {
        padding: 25px;
        margin: 0 15px;
    }
    .fund-stats .collected,
    .fund-stats .goal {
        font-size: 11px;
        white-space: normal;
    }
}

/* Новости: на десктопе картинка слева, текст справа */
#tab-news .news-list-horizontal {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#tab-news .news-horizontal-item {
    display: flex;
    gap: 24px;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(224,104,120,0.1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

#tab-news .news-horizontal-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #F3474E, #E06878);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#tab-news .news-horizontal-item:hover::before {
    opacity: 1;
}

#tab-news .news-horizontal-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(224,104,120,0.3);
}

#tab-news .news-horizontal-image {
    flex-shrink: 0;
    width: 160px;
    height: 120px;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

#tab-news .news-horizontal-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

#tab-news .news-horizontal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

#tab-news .news-horizontal-item:hover .news-horizontal-image img {
    transform: scale(1.08);
}

#tab-news .news-horizontal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#tab-news .news-horizontal-date {
    font-size: 12px;
    color: #E06878;
    margin-bottom: 10px;
    font-family: 'MontserratMedium', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

#tab-news .news-horizontal-date::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../img/news-ico.svg') no-repeat center;
    background-size: contain;
    opacity: 0.7;
}

#tab-news .news-horizontal-title {
    font-size: 19px;
    font-weight: 600;
    color: #80001C;
    margin: 0 0 10px 0;
    font-family: 'MontserratSemiBold', sans-serif;
    line-height: 1.4;
    transition: color 0.3s ease;
}

#tab-news .news-horizontal-item:hover .news-horizontal-title {
    color: #F3474E;
}

#tab-news .news-horizontal-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#tab-news .news-horizontal-link {
    font-size: 13px;
    font-weight: 600;
    color: #F3474E;
    text-decoration: none;
    font-family: 'MontserratSemiBold', sans-serif;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#tab-news .news-horizontal-link:hover {
    gap: 10px;
    color: #ff0008;
}

#tab-news .news-horizontal-link:hover::after {
    transform: translateX(3px);
}

/* Мобильная версия - картинка сверху, текст снизу */
@media (max-width: 768px) {
    #tab-news .news-list-horizontal {
        gap: 16px;
    }
    
    #tab-news .news-horizontal-item {
        flex-direction: column;
        padding: 16px;
        gap: 14px;
    }
    
    #tab-news .news-horizontal-image {
        width: 100%;
        height: 200px;
    }
    
    #tab-news .news-horizontal-title {
        font-size: 17px;
    }
    
    #tab-news .news-horizontal-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
    
    #tab-news .news-horizontal-date {
        font-size: 11px;
    }
}

/* Сетка для изображений документов */
.documents-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(224,104,120,0.2);
}

.document-image-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.document-image-item:hover {
    transform: scale(1.03);
}

.document-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.document-image-item:hover img {
    transform: scale(1.05);
}
/* Смешанные документы */
.documents-mixed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Изображения - горизонтальный ряд */
.documents-mixed {
    display: block;
}

.document-image-item {
    display: inline-block;
    width: calc(25% - 16px);
    margin: 0 8px 16px;
    vertical-align: top;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.document-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.document-image-item a {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.document-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.document-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.document-image-item:hover .document-image-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 32px;
    color: #fff;
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* Обычные документы - на всю ширину */
.document-item {
    width: 100%;
    margin-bottom: 10px;
}

/* Форма и список донаторов как на главной */
.donation-section-bottom .donation-section-main-block {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 50px;
}

.donation-section-bottom .donation-block {
    flex: 1.5;
}

.donation-section-bottom .recent-donations {
    flex: 1;
    margin-top: 0;
}



.flowers-bg{
    position: absolute;
    pointer-events: none;
    height: auto;
}

.flowers-bg-left{
    top: 0;
    left: -20%;
    
}

.flowers-bg-right{
    top: 0;
    right: -20%;
    
}

/* Переопределяем скрытие цветов на мобилке - оставляем видимыми на странице ребёнка */
@media (max-width: 1200px) {
    .campaign-hero-final .flowers-bg-left,
    .campaign-hero-final .flowers-bg-right,
    .tabs-main-wrapper .flowers-bg-left,
    .tabs-main-wrapper .flowers-bg-right {
        display: block !important;
    }
}


.site-main {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.site-main .container {
    position: relative;
        z-index: 2;
}

/* Адаптация для разных размеров экрана */
@media (max-width: 1200px) {
    .document-image-item {
        width: calc(33.333% - 16px);
    }
}

@media (max-width: 992px) {
    .document-image-item {
        width: calc(33.333% - 16px);
    }
}

@media (max-width: 768px) {
    .document-image-item {
        width: calc(50% - 16px);
    }
}

@media (max-width: 480px) {
    .document-image-item {
        width: calc(100% - 16px);
        margin: 0 8px 16px;
    }
}

@media (max-width: 992px) {
    .donation-section-bottom .donation-section-main-block {
        flex-direction: column;
    }
}

/* Кнопки табов - адаптивная ширина */
.tabs-white-block .tab-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important; /* Перенос на новую строку если не помещаются */
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0 0 30px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    white-space: nowrap !important;
    padding: 10px 20px;
    font-size: 14px;
}

/* Для маленьких экранов - кнопки уже */
@media (max-width: 768px) {
    .tab-btn {
        padding: 8px 14px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .tab-btn {
        padding: 6px 12px;
        font-size: 16px;
    }
}

@media (max-width: 450px) {
    .tab-btn {
        padding: 5px 10px;
        font-size: 14px;
    }
}

/* Для мобильной версии */
@media (max-width: 768px) {
    .hero-grid-final {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-photo-final,
    .hero-info-final {
        flex: none;
        width: 100%;
        min-width: auto;
    }
    
    .photo-frame-final {
        width: 100%;
    }
    
    .hero-info-final {
        width: 100%;
    }
    
    .info-card-final,
    .goal-card-final {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Кнопки табов - увеличенные на мобилке */
.tab-btn {
    white-space: nowrap !important;
    padding: 10px 20px;
    font-size: 14px;
}

/* Для мобильной версии - кнопки крупнее */
@media (max-width: 768px) {
    .tab-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Кнопка "Помочь" в мобильной версии */
@media (max-width: 768px) {
    .donate-btn-final,
    .donate-btn {
        padding: 14px 28px !important;
        font-size: 16px !important;
    }
    
    .history-sidebar .donate-btn {
        padding: 14px 20px !important;
        font-size: 16px !important;
    }
}

/* Для всей страницы на мобилке */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
        
    }
    
    .hero-info-final {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .info-card-final {
        padding: 15px 18px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .info-row-final {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 10px 0;
        width: 100%;
    }
    
    .info-label-final,
    .info-value-final {
        width: 100%;
        word-break: break-word;
        white-space: normal;
    }
    
    .goal-card-final {
        padding: 15px 18px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .goal-text-final {
        font-size: 18px;
        line-height: 1.4;
        word-break: break-word;
        white-space: normal;
    }
    
    .history-text {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        word-break: break-word;
        white-space: normal;
    }
    
    .history-text p,
    .history-text-block {
        word-break: break-word;
        white-space: normal;
        overflow-wrap: break-word;
    }
}

/* Увеличение кнопок табов в обычной версии */
.tab-btn {
    padding: 13px 34px !important;
    font-size: 16px !important;
}

@media (max-width: 768px) {
    .tab-buttons {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px;
    }
    
    .tab-btn {
        width: auto !important;  /* Убираем растягивание */
        min-width: auto !important;
        max-width: none !important;
        padding: 13px 20px !important;
        font-size: 14px !important;
        flex-shrink: 0 !important;
    }
}

/* @media (max-width: 576px) {
    .tab-btn {
        padding: 8px 18px !important;
        font-size: 12px !important;
    }
} */

/* Блок goal-card-final - делаем флексом для вертикального выравнивания */
.goal-card-final {
    background: linear-gradient(135deg, #E06878 0%, #c45464 100%);
    border-radius: 20px;
    padding: 20px 25px;
    margin-bottom: 0px;
    display: flex;
    gap: 15px;
    align-items: center; 
    justify-content: space-between;
    box-shadow: 0 8px 20px rgba(224,104,120,0.2);
}

.goal-card-final .donate-btn2 {
    background: #fff !important;
    color: #F3474E !important;
    border: 2px solid #F3474E !important;
    padding: 15px 30px !important;
    font-size: 14px !important;
    border-radius: 50px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.goal-card-final .donate-btn2:hover {
    background: #fff !important;
    border-color: #ff0008 !important;
    color: #ff0008 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 85, 0.25);
}

/* Мобильная версия - карточки детей на всю ширину */
@media (max-width: 800px) {
    
    .fundraiser-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
        
    }
    
    .fundraiser-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 16px !important;
        width: 100% !important;
        background: #fff !important;
        border-radius: 16px !important;
        padding: 16px !important;
        border: 1px solid rgba(224,104,120,0.15) !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        box-shadow: none;
    }
    
    /* Фото */
    .fundraiser-card .cards-cover {
        flex-shrink: 0 !important;
        width: 200px !important;
        height: 200px !important;
        margin: 0 !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }
    
    .fundraiser-card .card-avatar {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Контент */
    .fundraiser-card .card-content {
        flex: 1 !important;
        padding: 0 !important;
        text-align: left !important;
    }
    
    .fundraiser-card .person-name {
        font-size: 16px !important;
        margin: 0 0 4px 0 !important;
        color: #80001C !important;
    }
    
    .fundraiser-card .diagnos {
        font-size: 12px !important;
        margin: 0 0 8px 0 !important;
        color: #A44056 !important;
    }
    
    .fundraiser-card .progress-section {
        margin: 4px 0 !important;
    }
    
    .fundraiser-card .fund-stats {
        font-size: 10px !important;
        display: flex !important;
        justify-content: space-between !important;
    }
    
    .fundraiser-card .progress-bar-bg {
        height: 6px !important;
        margin: 4px 0 !important;
    }
    
    .fundraiser-card .amount-row {
        font-size: 10px !important;
        display: flex !important;
        justify-content: space-between !important;
        margin-top: 4px !important;
    }
    
    .fundraiser-card-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        margin-top: 8px !important;
    }
    
    /* Оставляем кнопки как были */
    .fundraiser-card-actions .donate-btn,
    .fundraiser-card-actions .card-more-details {
        padding: 15px 22px !important;
        font-size: 11px !important;
    }
    .fundraiser-card {

        max-width: none;

    }
}

/* Исправление ширины карточек на мобилке */
@media (max-width: 768px) {
    .help-section {
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .help-section .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    
    .fundraiser-cards.flex-row {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .fundraiser-card.flex-column.aic {
        width: 100% !important;
        margin: 0 0 16px 0 !important;
        box-sizing: border-box !important;
    }
}

.fundraiser-card-actions{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.help-section-title::after {
    display: none !important;
}

@media (max-width: 768px) {
    .goal-text-final {
        font-size: 18px !important;
        line-height: 1.4;
    }
    
    .goal-label-final {
        font-size: 14px !important;
    }
}

@media (max-width: 455px) {
    .goal-text-final {
        font-size: 14px !important;
        line-height: 1.4;
    }
}

/* Для экранов меньше 455px - уменьшаем размеры, но оставляем горизонтальное расположение */
@media (max-width: 455px) {
    /* Карточки детей - горизонтально, но компактно */
    .fundraiser-card {
        display: flex !important;
        flex-direction: row !important;  /* Оставляем горизонтально */
        align-items: center !important;
        gap: 10px !important;
        padding: 10px !important;
    }
    
    /* Уменьшаем фото */
    .fundraiser-card .cards-cover {
        width: 130px !important;
        height: 130px !important;
        flex-shrink: 0 !important;
    }
    
    /* Уменьшаем всё внутри */
    .fundraiser-card .card-content {
        flex: 1 !important;
        padding: 0 !important;
    }
    
    .fundraiser-card .person-name {
        font-size: 13px !important;
        margin: 0 0 2px 0 !important;
    }
    
    .fundraiser-card .diagnos {
        font-size: 10px !important;
        margin: 0 0 4px 0 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }
    
    .fundraiser-card .fund-stats {
        font-size: 9px !important;
    }
    
    .fundraiser-card .progress-bar-bg {
        height: 4px !important;
    }
    
    .fundraiser-card .amount-row {
        font-size: 9px !important;
        margin-top: 2px !important;
    }
    
    .fundraiser-card .current-amount,
    .fundraiser-card .total-goal {
        font-size: 9px !important;
    }
    
    /* Кнопки рядом, но компактные */
    .fundraiser-card-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 6px !important;
        margin-top: 6px !important;
    }
    
    .fundraiser-card-actions .donate-btn,
    .fundraiser-card-actions .card-more-details {
        padding: 8px 10px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    
    /* Если совсем мало места — кнопки друг под другом */
    @media (max-width: 380px) {
        .fundraiser-card {
            gap: 8px !important;
            padding: 8px !important;
        }
        
        .fundraiser-card .cards-cover {
            width: 100px !important;
            height: 100px !important;
        }
        
        .fundraiser-card .person-name {
            font-size: 12px !important;
        }
        
        .fundraiser-card .diagnos {
            font-size: 9px !important;
        }
        
        .fundraiser-card-actions {
            flex-direction: column !important;
            gap: 4px !important;
        }
        
        .fundraiser-card-actions .donate-btn,
        .fundraiser-card-actions .card-more-details {
            white-space: normal !important;
            text-align: center !important;
        }
    }
}

/* Для экранов меньше 355px — супер компактная версия */
@media (max-width: 355px) {
    /* Карточка детей — делаем вертикальной, чтобы всё помещалось */
    .fundraiser-card {
        display: flex !important;
        flex-direction: column !important;  /* Вертикально, а не горизонтально */
        align-items: center !important;
        text-align: center !important;
        padding: 12px !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Фото сверху, поменьше */
    .fundraiser-card .cards-cover {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto !important;
    }

    /* .fundraiser-card .cards-avatar {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto !important;
    } */
    
    /* Контент — на всю ширину */
    .fundraiser-card .card-content {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Кнопки — одна под другой */
    .fundraiser-card-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .fundraiser-card-actions .donate-btn,
    .fundraiser-card-actions .card-more-details {
        display: block !important;

        text-align: center !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        box-sizing: border-box !important;
    }
    
    /* Прогресс-бар — нормально отображается */
    .progress-section {
        width: 100% !important;
    }
    
    .fund-stats {
        display: flex !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }
    
    .amount-row {
        display: flex !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }
}

/* Для экранов меньше 360px — исправляем все вылезания */
@media (max-width: 355px) {
    /* Главный контейнер — запрещаем вылезать */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Все блоки — не вылезают */
    .campaign-hero-final,
    .tabs-main-wrapper,
    .donation-section-bottom,
    .help-section {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* Герой-секция */
    .campaign-hero-final {
        padding: 20px 0 15px 0;
    }
    
    .hero-grid-final {
        gap: 20px;
    }
    
    .hero-photo-final {
        min-width: auto;
        width: 100%;
    }
    
    .photo-frame-final {
        padding: 4px;
        border-radius: 16px;
    }
    
    /* Бейдж с именем */
    .photo-badge {
        bottom: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .photo-badge i {
        font-size: 9px !important;
    }
    
    /* Заголовок */
    .hero-info-final h1 {
        font-size: 22px !important;
        word-break: break-word;
        margin-bottom: 12px;
        text-align: center;
    }
    
    /* Карточка с информацией */
    .info-card-final {
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    
    .info-row-final {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 0;
    }
    
    .info-label-final {
        font-size: 11px;
        gap: 6px;
    }
    
    .info-icon {
        width: 16px;
        height: 16px;
    }
    
    .info-value-final {
        font-size: 12px;
        word-break: break-word;
    }
    
    /* Блок "Собираем на" */
    .goal-card-final {
        padding: 12px;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .goal-icon {
        width: 20px;
        height: 20px;
    }
    
    .goal-label-final {
        font-size: 10px;
    }
    
    .goal-text-final {
        font-size: 13px !important;
        word-break: break-word;
    }
    
    .goal-card-final .donate-btn2 {
        padding: 8px 20px !important;
        font-size: 13px !important;
        align-self: center;
        white-space: nowrap;
    }
    
    /* Блок с табами */
    .tabs-white-block {
        padding: 12px;
        border-radius: 20px;
    }
    
    .tabs-white-block .tab-buttons {
        gap: 8px;
        padding-bottom: 15px;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    /* История — текст не вылезает */
    .history-layout {
        gap: 20px;
    }
    
    .history-text {
        width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .history-text-header h2 {
        font-size: 20px;
    }
    
    .history-subtitle {
        font-size: 18px;
        margin: 15px 0 10px 0;
    }
    
    .history-text-block {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .history-quote {
        font-size: 14px;
    }
    
    /* Галерея — главное исправление */
    .history-sidebar {
        width: 100%;
        overflow-x: hidden;
    }
    
    .story-gallery-slider {
        width: 100%;
        overflow: hidden;
    }
    
    .swiper-container {
        width: 100%;
        overflow: hidden;
    }
    
    .swiper-slide {
        aspect-ratio: 1 / 1;
    }
    
    .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 24px !important;
        height: 24px !important;
    }
    
    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 12px !important;
    }
    
    /* Прогресс-бар */
    .sidebar-progress {
        padding: 10px;
        margin: 12px 0;
    }
    
    .sidebar-progress .fund-stats {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-align: center;
    }
    
    .sidebar-progress .collected,
    .sidebar-progress .goal {
        font-size: 12px;
    }
    
    .progress-percent {
        font-size: 11px;
    }
    
    /* Кнопка "Помочь" в сайдбаре */
    .history-sidebar .donate-btn {
        width: 100%;
        padding: 10px 16px !important;
        font-size: 14px !important;
        text-align: center;
    }
    
    /* Форма пожертвования */
    .donation-section-bottom .donation-section-main-block {
        gap: 15px;
    }
    
    .donation-section-title {
        font-size: 18px !important;
        text-align: center;
    }
    
    /* Новости — текст не вылезает */
    .news-horizontal-item {
        padding: 12px !important;
        gap: 10px !important;
    }
    
    .news-horizontal-image {
        height: 150px !important;
    }
    
    .news-horizontal-title {
        font-size: 15px !important;
    }
    
    .news-horizontal-excerpt {
        font-size: 12px !important;
    }
    
    /* Карточки других детей */
    .fundraiser-card {
        padding: 8px !important;
        gap: 8px !important;
    }
    
    .fundraiser-card .cards-cover {
        width: 150px !important;
        height: 150px !important;
    }
    
    .fundraiser-card .person-name {
        font-size: 15px !important;
    }
    
    .fundraiser-card .diagnos {
        font-size: 12px !important;
    }
    
    .fundraiser-card .fund-stats span {
        font-size: 12px !important;
    }
    
    .fundraiser-card .current-amount,
    .fundraiser-card .total-goal {
        font-size: 12px !important;
    }
    
    .fundraiser-card-actions {
        gap: 4px !important;
    }
    
    .fundraiser-card-actions .donate-btn,
    .fundraiser-card-actions .card-more-details {
        padding: 6px 10px !important;
        font-size: 15px !important;
    }

    /* Выравнивание кнопки "Помочь" по центру на маленьких экранах */
    .fundraiser-card-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .fundraiser-card-actions .donate-btn {
        display: block !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

}

/* Для экранов ниже 455px — кнопки табов всегда в ряд */
@media (max-width: 455px) {
    .tabs-white-block .tab-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 0 0 15px 0 !important;
        margin-bottom: 15px !important;
    }
    
    .tab-btn {
        display: inline-flex !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

/* Для совсем маленьких экранов — кнопки поменьше, но всё ещё в ряд */
@media (max-width: 380px) {
    .tab-btn {
        padding: 5px 8px !important;
        font-size: 11px !important;
    }
    
    .tabs-white-block .tab-buttons {
        gap: 6px !important;
    }
}

@media (max-width: 320px) {
    .tab-btn {
        padding: 4px 6px !important;
        font-size: 10px !important;
    }
}

/* Пропорциональное уменьшение goal-card-final на маленьких экранах */
@media (max-width: 400px) {
    .goal-card-final {
        padding: 12px 15px !important;
        gap: 10px !important;
    }
    
    .goal-icon {
        width: 20px !important;
        height: 20px !important;
    }
    
    .goal-label-final {
        font-size: 10px !important;
        letter-spacing: 1px !important;
    }
    
    .goal-text-final {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }
    
    .goal-card-final .donate-btn2 {
        padding: 8px 16px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 355px) {
    .goal-card-final {
        padding: 8px 12px !important;
        gap: 8px !important;
    }
    
    .goal-icon {
        width: 18px !important;
        height: 18px !important;
    }
    
    .goal-label-final {
        font-size: 9px !important;
    }
    
    .goal-text-final {
        font-size: 11px !important;
    }
    
    .goal-card-final .donate-btn2 {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 295px) {
    .goal-card-final {
        padding: 6px 10px !important;
        gap: 6px !important;
    }
    
    .goal-icon {
        width: 16px !important;
        height: 16px !important;
    }
    
    .goal-label-final {
        font-size: 8px !important;
    }
    
    .goal-text-final {
        font-size: 10px !important;
    }
    
    .goal-card-final .donate-btn2 {
        padding: 5px 10px !important;
        font-size: 10px !important;
    }
}

