@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

/* ==================== WRAP ==================== */
.rd-wrap {
    font-family: 'Inter', sans-serif;
    color: #fff;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 20px 0;
}

.rd-wrap * {
    box-sizing: border-box;
}

/* ==================== TITLES ==================== */
.rd-wrap .rd-title {
    margin: 0 0 20px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 29px;
    text-transform: uppercase;
}

.rd-wrap .rd-section {
    margin-bottom: 40px;
}

/* ==================== GOALS ==================== */
.rd-wrap .rd-goals-section {
    margin-bottom: 50px;
}

.rd-wrap .rd-goal {
    margin-bottom: 20px;
    border: 1px solid #434343;
    padding: 22px 24px;
}

.rd-wrap .rd-goal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rd-wrap .rd-goal-head--no-sum {
    justify-content: flex-start;
}

.rd-wrap .rd-goal-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 19px;
}

.rd-wrap .rd-goal-sum {
    font-size: 16px;
    line-height: 19px;
    color: #fff;
}

.rd-wrap .rd-progress {
    position: relative;
    width: 100%;
    height: 29px;
    overflow: hidden;
    background: #fff;
}

.rd-wrap .rd-progress-bar {
    height: 100%;
    min-width: 0;
    background: linear-gradient(90deg, #bc0909 -0.46%, #fb0303 99.54%);
    transition: width 0.8s ease;
}

.rd-wrap .rd-progress-percent {
    position: absolute;
    top: 50%;
    left: calc(var(--rd-p, 0) * 1%);
    transform: translate(calc(-100% - 10px), -50%);
    z-index: 1;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    white-space: nowrap;
    pointer-events: none;
}

.rd-wrap .rd-progress--zero .rd-progress-percent {
    left: 0;
    transform: translate(10px, -50%);
}

.rd-wrap .rd-updated {
    margin-top: 12px;
    color: #9c9c9c;
    font-size: 15px;
    line-height: 18px;
}

/* ==================== COLUMNS ==================== */
.rd-wrap .rd-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.rd-wrap .rd-col {
    min-width: 0;
}

/* ==================== LIST/CARDS ==================== */
.rd-wrap .rd-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rd-wrap .rd-empty {
    margin: 0;
    color: #808080;
    font-size: 16px;
    line-height: 19px;
}

.rd-wrap .rd-card {
    position: relative;
    border: none;
    background: #131313;
    min-height: 77px;
    padding: 14px 16px;
}

.rd-wrap .rd-card-arrow {
    display: none;
}

.rd-wrap .rd-card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.rd-wrap .rd-card-name {
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    word-break: break-word;
    margin-top: 2px;
}

.rd-wrap .rd-card-amount {
    color: #fa0303;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    white-space: nowrap;
}

.rd-wrap .rd-card-date {
    color: #808080;
    font-size: 16px;
    line-height: 19px;
}

.rd-wrap .rd-card-comment {
    margin-top: 10px;
    color: #CCCCCC;
    font-size: 16px;
    line-height: 19px;
    word-break: break-word;
}

/* Кнопка «Показать еще» (как в Rock News) */
.rd-wrap .rd-load-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
}

.rd-wrap .rd-load-more-btn {
    box-sizing: border-box;
    width: 158px;
    height: 39px;
    margin: 0;
    padding: 0;
    border: 1px solid #858585;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 18px;
    color: #9c9c9c;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.rd-wrap .rd-load-more-btn:hover,
.rd-wrap .rd-load-more-btn:focus-visible {
    color: #ffffff;
    border-color: #ffffff;
    outline: none;
}

.rd-wrap .rd-load-more-btn.is-loading,
.rd-wrap .rd-load-more-btn:disabled {
    pointer-events: none;
    opacity: 0.6;
}

.rd-wrap .rd-hidden {
    display: none !important;
}

/* ==================== ADAPTIVE ==================== */
@media (max-width: 900px) {
    .rd-wrap .rd-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .rd-wrap {
        padding: 12px 0;
    }

    .rd-wrap .rd-title {
        font-size: 20px;
        line-height: 1.2;
    }

    .rd-wrap .rd-goal-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .rd-wrap .rd-card-row {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}