/* Страница закрытого сбора: плашка «Сбор закрыт», приглушённое фото
   и карточка открытого сбора, которому можно помочь */

/* --- Плашка «Сбор закрыт» --- */
.campaign-closed-banner {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: -0.25rem 0 1.5rem;
    padding: 0.95rem 1.2rem;
    background: #2c3a33;
    color: #f7f8f4;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(44, 58, 51, 0.18);
}

.ccb-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: #f7f8f4;
    color: #2c3a33;
}

.ccb-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.ccb-title { font-size: 1.15rem; font-weight: 700; line-height: 1.25; color: #fff; }
.ccb-sub { font-size: 0.92rem; line-height: 1.4; color: rgba(247, 248, 244, 0.85); }
.ccb-sub a { color: #fff; text-decoration: underline; white-space: nowrap; }

/* --- Фото закрытого сбора: приглушённое, с меткой --- */
.project-detail-image-container.is-closed .project-detail-image {
    filter: grayscale(0.9);
    opacity: 0.75;
}

.closed-photo-label {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(44, 58, 51, 0.88);
    color: #f7f8f4;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --- Открытый сбор --- */
.campaign-closed-next {
    background: #fff;
    border: 2px solid #2c3a33;
    border-radius: 20px;
    padding: 1.1rem;
    color: #2c3a33;
    box-shadow: 0 10px 30px rgba(44, 58, 51, 0.14);
}

/* На компьютере карточка в правой колонке, на телефоне — под плашкой */
.ccn--main { display: none; margin: 0 0 1.75rem; }

@media (max-width: 48rem) {
    .ccn--main { display: block; }
    .ccn--side { display: none; }
}

.ccn-head { margin: 0.1rem 0.2rem 0.9rem; }

.ccn-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3f7d4f;
}

.ccn-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #3f9d58;
    box-shadow: 0 0 0 3px rgba(63, 157, 88, 0.2);
}

.ccn-title {
    margin: 0.35rem 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3a33;
}

.ccn-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #f7f8f4;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ccn-card:hover,
.ccn-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 58, 51, 0.14);
    text-decoration: none;
    color: inherit;
}

.ccn-photo {
    position: relative;
    aspect-ratio: 7 / 4;
    background: #dfe4dd;
    overflow: hidden;
}

.ccn-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ccn-urgent {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d9534f;
    color: #fff;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(217, 83, 79, 0.35);
}

.ccn-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1rem 1rem 1.1rem;
}

.ccn-name { margin: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.3; color: #2c3a33; }

.ccn-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #5b6660;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ccn-progress {
    height: 0.5rem;
    background: #dfe4dd;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.15rem;
}

.ccn-progress-fill { height: 100%; background: #2c3a33; border-radius: 999px; }

.ccn-stats { display: flex; justify-content: space-between; gap: 0.75rem; }
.ccn-stat { display: flex; flex-direction: column; }
.ccn-stat--right { text-align: right; }
.ccn-stat-value { font-size: 1rem; font-weight: 700; color: #2c3a33; white-space: nowrap; }
.ccn-stat-label { font-size: 0.72rem; color: #7a847e; }

.ccn-date { margin: 0; font-size: 0.82rem; color: #5b6660; }

.ccn-btn {
    display: block;
    margin-top: 0.25rem;
    padding: 0.8rem 1rem;
    background: #2c3a33;
    color: #f7f8f4;
    border-radius: 25rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 48rem) {
    .campaign-closed-banner { padding: 0.85rem 1rem; gap: 0.75rem; }
    .ccb-title { font-size: 1.05rem; }
    .ccb-sub { font-size: 0.85rem; }
    .campaign-closed-next { padding: 0.9rem; border-radius: 16px; }
}
