/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 900px;
    overflow: hidden;
    margin-bottom: 60px;
    background: radial-gradient(
        48.2% 50.82% at 30.04% 53.27%,
        #fff 0%,
        #eaeaea 100%
    );
}

.hero__bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__bg-pattern {
    position: absolute;
    right: -300px;
    top: 100px;
    width: 50%;
    height: auto;
    transform: rotate(-90deg);
    z-index: 0;
}

.hero__bg-image {
    position: absolute;
    right: -150px;
    top: 50px;
    height: calc(100% - 50px);
    object-fit: contain;
    object-position: right top;
    transform: scaleX(-1);
    z-index: 1;
}

.hero__form-wrapper {
    position: relative;
    z-index: 2;
    padding-top: 120px;
}

.hero__form {
    background: var(--solana-color-bg);
    border-radius: var(--solana-radius-form);
    padding: 30px 35px 35px;
    width: 555px;
}

.hero__form-title {
    font-family: var(--solana-font-display);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.37;
    color: var(--solana-color-black);
    margin-bottom: 0;
}

/* ==================== FEATURES SECTION ==================== */
.features {
    margin-bottom: 60px;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 237px;
    gap: 27px;
}

.features__card {
    background-color: var(--solana-color-bg-card);
    border-radius: var(--solana-radius-card);
    padding: 35px 27px;
    position: relative;
    overflow: hidden;
}

.features__card-title {
    font-family: var(--solana-font-heading);
    font-weight: 500;
    font-size: 28px;
    line-height: 1.36;
    color: var(--solana-color-text);
    position: relative;
    z-index: 1;
}

.features__card-image {
    position: absolute;
    z-index: 0;
}

/* Card 1 — Моментальное одобрение: row1 col1 */
.features__card--approval {
    grid-column: 1;
    grid-row: 1;
}
.features__card--approval .features__card-image {
    right: -50px;
    bottom: -15px;
    width: 233px;
}

/* Card 2 — Самое высокое одобрение: row1 col2 */
.features__card--high-approval {
    grid-column: 2;
    grid-row: 1;
}
.features__card--high-approval .features__card-image {
    right: 30px;
    bottom: 20px;
    width: 140px;
    transform: rotate(-7deg);
}

/* Card 3 — Минимум документов: row1 col3 */
.features__card--documents {
    grid-column: 3;
    grid-row: 1;
}
.features__card--documents .features__card-image {
    right: -40px;
    bottom: -150px;
    width: 300px;
    transform: rotate(-18deg);
}

@media (max-width: 991px) {
    .features__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
        justify-items: center;
    }
    .features__card {
        width: 100%;
        height: 192px;
        min-height: unset;
        border-radius: 20px;
        padding: 25px 20px;
    }
    .features__card-title {
        font-size: 20px;
        line-height: 27px;
        max-width: 177px;
    }
    .features__card--approval {
        grid-column: auto;
        grid-row: auto;
    }
    .features__card--approval .features__card-image {
        right: -20px;
        bottom: -10px;
        width: 160px;
    }
    .features__card--high-approval {
        grid-column: auto;
        grid-row: auto;
    }
    .features__card--high-approval .features__card-image {
        right: 20px;
        bottom: 10px;
        width: 110px;
    }
    .features__card--documents {
        grid-column: auto;
        grid-row: auto;
    }
    .features__card--documents .features__card-image {
        right: -20px;
        bottom: -100px;
        width: 200px;
    }
}

@media (max-width: 991px) {
    .features > .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ==================== RESPONSIVE: HERO ==================== */
@media (max-width: 1300px) {
    .hero__bg-image {
        right: -200px;
    }
}

@media (max-width: 991px) {
    .hero {
        min-height: auto;
        background: var(--solana-color-bg-hero);
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }
    .hero > .container {
        order: 1;
        position: relative;
        z-index: 2;
    }
    .hero__bg {
        position: relative;
        display: flex;
        justify-content: center;
        width: 100%;
        height: auto;
        top: auto;
        right: auto;
        order: 2;
        overflow: hidden;
        margin-top: 0;
        z-index: 3;
    }
    .hero__bg-pattern {
        display: none;
    }
    .hero__bg-image {
        position: relative;
        right: auto;
        width: 100%;
        object-fit: cover;
        object-position: top center;
        transform: scaleX(-1);
        display: block;
    }
    .hero__form-wrapper {
        padding-top: 80px;
        padding-bottom: 20px;
        display: flex;
        justify-content: center;
    }
    .hero__form {
        width: 100%;
        height: auto;
        padding: 15px;
        border-radius: 20px;
        background: var(--solana-color-bg);
    }
    .hero__form-title {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 0;
        white-space: normal;
        text-align: center;
    }
}
