/* Страница «Доставка и оплата» (/shipping-and-payment, контент в БД): steps, pay-grid, chips, delivery-box, timeline */

/* ===== STEPS ===== */
.rf-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    counter-reset: rf-step;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rf-step {
    position: relative;
    padding: 22px 18px 18px;
    background: var(--rf-surface-2);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    counter-increment: rf-step;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.rf-step:hover {
    transform: translateY(-2px);
    border-color: var(--rf-accent);
    box-shadow: var(--rf-shadow-hover);
}

.rf-step::before {
    content: counter(rf-step, decimal-leading-zero);
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--rf-accent);
    letter-spacing: .05em;
    opacity: .6;
}

.rf-step__title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--rf-text);
}

.rf-step__desc {
    font-size: 13px;
    color: var(--rf-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ===== PAYMENT CARDS ===== */
.rf-pay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.rf-card {
    position: relative;
    padding: 26px 24px;
    background: var(--rf-surface-2);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    overflow: hidden;
}

.rf-card:hover {
    transform: translateY(-3px);
    border-color: var(--rf-accent);
    box-shadow: var(--rf-shadow-hover);
}

.rf-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--rf-accent-soft);
    color: var(--rf-accent);
    margin-bottom: 16px;
}

.rf-card__icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.rf-card__title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--rf-text);
}

.rf-card__desc {
    font-size: 14px;
    color: var(--rf-text-muted);
    margin: 0 0 14px;
    line-height: 1.55;
}

.rf-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rf-card__list li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    color: var(--rf-text);
    margin-bottom: 8px;
    line-height: 1.5;
}

.rf-card__list li:last-child {
    margin-bottom: 0;
}

.rf-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 6px;
    border-left: 2px solid var(--rf-accent);
    border-bottom: 2px solid var(--rf-accent);
    transform: rotate(-45deg);
}

/* Crypto chips */
.rf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.rf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--rf-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}

.rf-chip__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    opacity: .8;
}

/* Manager link inline */
.rf-link {
    color: var(--rf-accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
    transition: color .2s;
}

.rf-link:hover {
    color: var(--rf-accent-dark);
}

/* ===== DELIVERY HIGHLIGHT ===== */
.rf-delivery-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--rf-radius);
    overflow: hidden;
    border: 1px solid var(--rf-border);
    background: var(--rf-surface-2);
}

.rf-delivery-box__price {
    padding: 32px 28px;
    background: linear-gradient(135deg, var(--rf-accent) 0%, var(--rf-accent-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.rf-delivery-box__price::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .1), transparent 40%);
    pointer-events: none;
}

.rf-delivery-box__label {
    position: relative;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .75;
    margin-bottom: 8px;
}

.rf-delivery-box__amount {
    position: relative;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: 6px;
}

.rf-delivery-box__amount sup {
    font-size: 18px;
    font-weight: 600;
    vertical-align: super;
    margin-left: 4px;
    opacity: .85;
}

.rf-delivery-box__sub {
    position: relative;
    font-size: 14px;
    opacity: .9;
    margin: 0;
}

.rf-delivery-box__options {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.rf-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rf-option__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--rf-accent-soft);
    color: var(--rf-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rf-option__icon svg {
    width: 18px;
    height: 18px;
}

.rf-option__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px;
    color: var(--rf-text);
}

.rf-option__desc {
    font-size: 13px;
    color: var(--rf-text-muted);
    margin: 0;
    line-height: 1.45;
}

/* ===== TIMELINE ===== */
.rf-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    position: relative;
}

.rf-tl-item {
    position: relative;
    padding: 20px 18px 18px;
    background: var(--rf-surface-2);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    border-left: 3px solid var(--rf-accent);
}

.rf-tl-item__when {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rf-accent);
    margin-bottom: 6px;
}

.rf-tl-item__what {
    font-size: 15px;
    font-weight: 600;
    color: var(--rf-text);
    margin: 0 0 4px;
    line-height: 1.35;
}

.rf-tl-item__note {
    font-size: 13px;
    color: var(--rf-text-muted);
    margin: 0;
    line-height: 1.45;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {

    .rf-delivery-box {
        grid-template-columns: 1fr;
    }

    .rf-delivery-box__amount {
        font-size: 38px;
    }

}

@media (max-width: 480px) {

    .rf-card {
        padding: 22px 20px;
    }
}
