@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-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 {
    width: 100%;
    height: 29px;
    overflow: hidden;
    background: #fff;
}

.rd-wrap .rd-progress-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 34px;
    padding-right: 10px;
    background: linear-gradient(90deg, #bc0909 -0.46%, #fb0303 99.54%);
    transition: width 0.8s ease;
}

.rd-wrap .rd-progress-percent {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
}

.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-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: 700;
    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: #fff;
    font-size: 16px;
    line-height: 19px;
    word-break: break-word;
}

/* ==================== BUTTON ==================== */
.rd-wrap .rd-more {
    margin-top: 14px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 208px;
    min-height: 59px;
    padding: 10px 16px;
    border: 1px solid #747474;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 19px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.rd-wrap .rd-more:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rd-wrap .rd-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.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-more {
        width: 100%;
    }

    .rd-wrap .rd-card-row {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}