/**
 * Financing Block Styles
 * Loaded automatically only when this block is present on the page.
 */

/* ==========================================================================
   SECTION
   ========================================================================== */

.financing-block {
    position: relative;
    background-color: #fff;
    padding: 80px 0 100px;
    overflow: hidden;
}

/* Dot grid background pattern */
.financing-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}


.financing-block .container {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   INNER LAYOUT — 2 columns
   ========================================================================== */

.financing-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* ==========================================================================
   LEFT COLUMN
   ========================================================================== */

.financing-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.75rem, 3vw, 2.625rem);
    line-height: 1.2;
    color: var(--color-blue);
    margin-bottom: 24px;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
}

.financing-content {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: #364153;
    margin-bottom: 32px;
}

.financing-content p {
    margin-bottom: 1em;
}

.financing-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   BENEFITS GRID
   ========================================================================== */

.financing-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.benefit-card {
    background: #fff;
    border: 1px solid #f9fafb;
    border-radius: 14px;
    padding: 20px;
    box-shadow:
        0px 4px 6px rgba(0, 0, 0, 0.1),
        0px 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benefit-card__icon-wrap {
    width: 40px;
    height: 40px;
    background-color: rgba(64, 195, 247, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 4px;
}

.benefit-card__icon-wrap img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.benefit-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-dark-blue);
    margin: 0;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
}

.benefit-card__desc {
    font-family: var(--font-body);
    font-size: 0.75rem;
    line-height: 1.5;
    color: #6a7282;
}

.benefit-card__desc p {
    margin: 0;
}

/* ==========================================================================
   RIGHT COLUMN
   ========================================================================== */

.financing-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Partners card */
.financing-partners-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow:
        0px 10px 15px rgba(0, 0, 0, 0.1),
        0px 4px 6px rgba(0, 0, 0, 0.1);
}

.financing-partners-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #99a1af;
    text-align: center;
    margin-bottom: 20px;
}

.financing-partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.financing-partner-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 64px;
}

.financing-partner-logo img {
    max-height: 64px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.financing-partners-divider {
    width: 1px;
    height: 48px;
    background-color: #e5e7eb;
    flex-shrink: 0;
}

/* Special offer card */
.financing-offer-card {
    position: relative;
    background: linear-gradient(to bottom, var(--color-dark-blue), var(--color-blue));
    border-radius: 16px;
    padding: 32px;
    overflow: hidden;
}

/* Decorative circles */
.financing-offer__deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.financing-offer__deco--tr {
    width: 128px;
    height: 128px;
    background-color: rgba(255, 255, 255, 0.05);
    top: -64px;
    right: -8px;
}

.financing-offer__deco--bl {
    width: 96px;
    height: 96px;
    background-color: rgba(64, 195, 247, 0.1);
    bottom: -24px;
    left: -24px;
}

.financing-offer__label {
    font-family: 'Inter', var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-light-blue);
    margin-bottom: 12px;
}

.financing-offer__number {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2rem, 3vw, 2.25rem);
    line-height: 1;
    color: #fff;
    margin-bottom: 8px;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
}

.financing-offer__subtitle {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    font-variation-settings: 'CRSV' 0, 'SHRP' 0;
}

.financing-offer__content {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

.financing-offer__content p {
    margin: 0;
}

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

@media (max-width: 991.98px) {
    .financing-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .financing-benefits {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575.98px) {
    .financing-block {
        padding: 60px 0 80px;
    }

    .financing-benefits {
        grid-template-columns: 1fr;
    }

    .financing-partners-logos {
        flex-direction: column;
        gap: 20px;
    }

    .financing-partners-divider {
        width: 80px;
        height: 1px;
    }
}
