/* ===== БЛОК КУРСОВ ВАЛЮТ ===== */
.currency-section {
    margin-top: 40px;
}

.currency-section__title {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
}

.currency-widget {
    background-color: var(--color-surface);
    border-radius: 20px;
    padding: 20px 24px;
    min-width: 403px;
    border: 1px solid var(--color-border);
}

.currency-widget__header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.currency-widget__header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.currency-widget__cbr {
    font-weight: 600;
    color: var(--color-text);
}

.currency-widget__divider {
    flex: 1;
    height: 1px;
    background-color: var(--color-border);
    margin: 0 12px;
}

.currency-widget__date {
    color: var(--color-text-secondary);
    font-size: 13px;
}

.currency-widget__rub {
    color: var(--color-text-secondary);
    font-size: 13px;
}

.currency-widget__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-item__icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
}

.currency-item__code {
    font-weight: 600;
    color: var(--color-text);
    min-width: 40px;
}

.currency-item__rate {
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-left: auto;
}

.currency-item__change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    min-width: 60px;
    justify-content: flex-end;
}

.currency-change__arrow::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.currency-item__change--up .currency-change__arrow::before {
    border-bottom: 6px solid #0DD149;
    border-top: none;
}

.currency-item__change--down .currency-change__arrow::before {
    border-top: 6px solid #DB3F3F;
    border-bottom: none;
}

.currency-item__change--up {
    color: #0DD149;
}

.currency-item__change--down {
    color: #DB3F3F;
}

.currency-widget__all {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: opacity var(--transition);
}

.currency-widget__all:hover {
    opacity: 0.8;
}

.currency-item:hover .currency-item__code,
.currency-item:hover .currency-item__rate {
    color: var(--color-primary);
    transition: color 0.2s;
}