/* ── Card Hero — single tarjeta page ────────────────────────────────────── */

.finance-card-hero {
    background: #ffffff;
    padding: 80px 0;
    border-bottom: 1px solid #eef1f6;
}

.finance-card-hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
    align-items: center;
}

/* ── Left: visual card ───────────────────────────────────────────────────── */

.finance-card-hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.finance-card-hero__card-wrap {
    position: relative;
    width: 420px;
    max-width: 100%;
}

/* ── CSS credit card ─────────────────────────────────────────────────────── */

.finance-card-hero__card {
    width: 100%;
    aspect-ratio: 1.586 / 1;
    border-radius: 22px;
    background:
        radial-gradient(circle at 78% 18%, rgba(242, 106, 33, 0.38), transparent 28%),
        radial-gradient(circle at 15% 85%, rgba(37, 99, 235, 0.22), transparent 32%),
        linear-gradient(135deg, #0b1c3f 0%, #1e3a8a 58%, #172554 100%);
    box-shadow:
        0 35px 70px rgba(11, 28, 63, 0.22),
        0 8px 20px rgba(11, 28, 63, 0.12);
    padding: 28px 30px 24px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    user-select: none;
}

/* Декоративные кольца-круги на фоне карты */
.finance-card-hero__card-deco { pointer-events: none; }

.finance-card-hero__card-deco-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.finance-card-hero__card-deco-ring--1 {
    width: 260px;
    height: 260px;
    top: -90px;
    right: -60px;
}

.finance-card-hero__card-deco-ring--2 {
    width: 380px;
    height: 380px;
    bottom: -180px;
    left: -100px;
    border-color: rgba(255, 255, 255, 0.04);
}

/* ── Card top: brand + chip ──────────────────────────────────────────────── */

.finance-card-hero__card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.finance-card-hero__card-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1;
}

/* Чип */
.finance-card-hero__card-chip {
    width: 42px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #c9893a, #f0c060 40%, #d4a040 70%, #b87d18);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.finance-card-hero__card-chip-inner {
    position: absolute;
    inset: 5px 6px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
}

.finance-card-hero__card-chip-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
}

.finance-card-hero__card-chip-inner::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
}

/* ── Card number ─────────────────────────────────────────────────────────── */

.finance-card-hero__card-number {
    display: flex;
    gap: 14px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 19px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.88);
    position: relative;
    z-index: 1;
    line-height: 1;
}

/* ── Card bottom: holder + valid + dots ──────────────────────────────────── */

.finance-card-hero__card-bottom {
    display: flex;
    align-items: flex-end;
    gap: 0;
    position: relative;
    z-index: 1;
}

.finance-card-hero__card-info {
    flex: 1;
}

.finance-card-hero__card-label {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin: 0 0 3px;
    line-height: 1;
}

.finance-card-hero__card-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1;
}

/* Декоративные кружки (Mastercard-стиль) */
.finance-card-hero__card-dots {
    position: relative;
    width: 52px;
    height: 32px;
    flex-shrink: 0;
}

.finance-card-hero__card-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    opacity: 0.85;
}

.finance-card-hero__card-dot--a {
    left: 0;
    background: #eb001b;
    opacity: 0.9;
}

.finance-card-hero__card-dot--b {
    right: 0;
    background: #f79e1b;
    opacity: 0.9;
    mix-blend-mode: lighten;
}

/* Тень-отражение под картой */
.finance-card-hero__card-shadow {
    position: absolute;
    bottom: -18px;
    left: 10%;
    right: 10%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(11, 28, 63, 0.28), transparent 70%);
    filter: blur(6px);
    pointer-events: none;
}

/* ── Right: content ──────────────────────────────────────────────────────── */

.finance-card-hero__content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Eyebrow */
.finance-card-hero__eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #2563eb;
    margin: 0 0 12px;
}

/* H1 */
.finance-card-hero__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -1.2px;
    color: #0b1c3f;
    margin: 0 0 16px;
}

/* Description */
.finance-card-hero__description {
    font-size: 16px;
    line-height: 1.75;
    color: #51607d;
    max-width: 560px;
    margin: 0 0 16px;
}

/* ── Stars rating ────────────────────────────────────────────────────────── */

.finance-card-hero__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.finance-card-hero__stars {
    position: relative;
    display: inline-block;
    font-size: 18px;
    line-height: 1;
}

.finance-card-hero__stars-bg {
    color: #e0e6f0;
    display: block;
    letter-spacing: 3px;
}

.finance-card-hero__stars-fg {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #f5a623;
    letter-spacing: 3px;
}

.finance-card-hero__rating-value {
    font-size: 14px;
    font-weight: 700;
    color: #45506b;
}

/* ── Benefits grid ───────────────────────────────────────────────────────── */

.finance-card-hero__benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 36px;
    margin-bottom: 36px;
}

.finance-card-hero__benefit {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: flex-start;
}

.finance-card-hero__benefit-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eef4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.finance-card-hero__benefit-body {
    min-width: 0;
}

.finance-card-hero__benefit-title {
    font-weight: 700;
    font-size: 15px;
    color: #0b1c3f;
    margin: 0 0 4px;
    line-height: 1.3;
}

.finance-card-hero__benefit-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: #51607d;
    margin: 0;
}

/* ── CTA actions ─────────────────────────────────────────────────────────── */

.finance-card-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.finance-card-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 30px;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 220ms ease;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

/* Основная кнопка */
.finance-card-hero__btn--primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
    min-width: 210px;
}

.finance-card-hero__btn--primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.36);
    color: #ffffff;
    text-decoration: none;
}

/* Вторичная кнопка */
.finance-card-hero__btn--secondary {
    background: transparent;
    color: #2563eb;
    border: 1.5px solid #c5d5f7;
    min-width: 185px;
}

.finance-card-hero__btn--secondary:hover {
    background: #eef4ff;
    border-color: #2563eb;
    color: #1d4ed8;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ── Responsive: Tablet (≤ 1024px) ──────────────────────────────────────── */

@media (max-width: 1024px) {
    .finance-card-hero__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .finance-card-hero__visual {
        order: 2;
    }

    .finance-card-hero__content {
        order: 1;
    }

    .finance-card-hero__card-wrap {
        width: 380px;
        margin: 0 auto;
    }
}

/* ── Responsive: Mobile (≤ 640px) ───────────────────────────────────────── */

@media (max-width: 640px) {
    .finance-card-hero {
        padding: 56px 0;
    }

    .finance-card-hero__container {
        padding: 0 20px;
        gap: 36px;
    }

    .finance-card-hero__title {
        font-size: 32px;
        letter-spacing: -0.8px;
    }

    .finance-card-hero__description {
        font-size: 15px;
    }

    .finance-card-hero__benefits {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .finance-card-hero__card-wrap {
        width: 100%;
    }

    .finance-card-hero__card-number {
        font-size: 16px;
        gap: 10px;
    }

    .finance-card-hero__card-brand {
        font-size: 15px;
    }

    .finance-card-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .finance-card-hero__btn {
        text-align: center;
        min-width: 0;
    }
}
