.cases__inner,
.ways__inner,
.reviews__inner,
.creditors__inner {
    width: min(68.125rem, 100%);
    margin: 0 auto;
}

.process__title,
.cases__title,
.ways__title,
.reviews__title,
.creditors__title,
.home-useful h2 {
    margin: 0;
    color: #303030;
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.process__subtitle,
.cases__subtitle {
    color: #202020;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.process__card,
.case__card,
.way__card,
.review__card,
.creditor__card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    text-align: center;
}

.cases__grid,
.ways__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.875rem;
}

.process__image,
.case__image,
.way__image,
.creditor__image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.process__image img,
.case__image img,
.creditor__image img {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}

.process__button,
.case__button,
.way__button,
.review__button {
    border: 0;
    background: var(--color-primary, #3FA2F7);
    color: #FFFFFF;
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
}

.case__button,
.way__button,
.review__button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 2rem;
    box-shadow: 0 0.375rem 0.625rem rgba(65, 159, 243, 0.28);
    font-size: 1.25rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.way__button,
.review__button {
    width: min(23.125rem, 100%);
    min-height: 3.6875rem;
}

.process__button:hover,
.case__button:hover,
.way__button:hover,
.review__button:hover {
    background: var(--color-primary-hover, #258DE9);
}

.process__button:active,
.case__button:active,
.way__button:active,
.review__button:active {
    transform: translateY(0.0625rem);
}

.process__button:focus-visible,
.case__button:focus-visible,
.way__button:focus-visible,
.review__button:focus-visible,
.home-useful__links a:focus-visible {
    outline: 0.1875rem solid rgba(63, 162, 247, 0.3);
    outline-offset: 0.1875rem;
}

.process__card:hover,
.case__card:hover {
    transform: scale(1.1);
}

/* Sections */
.site-page-home {
    background: #F7F7F7;
}

.hero {
    display: flex;
    align-items: stretch;
    padding: 4.0625rem 0;
    background: #F7F7F7;
}

.hero__inner .row {
    align-items: center;
    justify-content: start;
}

.hero__content {
    align-self: center;
    padding-bottom: 0.0625rem;
}

.hero__content h1 {
    max-width: 33.75rem;
    margin: 0 0 1.25rem;
    color: #303030;
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.35;
}

.hero__content p {
    max-width: 32.5rem;
    margin: 0;
    color: #202020;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
}

.process {
    padding: 4.5rem 0 6rem;
    background: #F7F7F7;
}

.process__subtitle {
    margin: 1.5625rem 0 3.125rem;
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
}

.process__card {
    min-height: 25.625rem;
    align-items: stretch;
    padding: 2.25rem 1.25rem 1.875rem;
    background: #FFFFFF;
    color: #202020;
    border-radius: 0.5rem;
    transition: transform 0.3s;
}

.process__image {
    height: 8.375rem;
    margin: 0 0 1.125rem;
}

.process__image img {
    max-width: 8.75rem;
    max-height: 7.75rem;
}

.process__card h3 {
    display: flex;
    min-height: 2.625rem;
    align-items: center;
    justify-content: center;
    margin: 0 0 1rem;
    color: #202020;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.1;
}

.process__card p {
    margin: 0 0 1.375rem;
    color: #202020;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.4;
}

.process__button {
    width: 100%;
    min-height: 3.125rem;
    margin: auto 0 0;
    padding: 0.75rem 1.125rem;
    border-radius: 62.4375rem;
    font-size: 0.9375rem;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cases {
    padding: 4.25rem 0 5rem;
    background: #FFFFFF;
}

.cases__subtitle {
    margin: 1.75rem 0 2.875rem;
}

.cases__grid {
    align-items: stretch;
}

.case__card {
    min-height: 31.875rem;
    padding: 2.125rem 1.9375rem 1.875rem;
    border: 0.25rem solid #D0D0D0;
    background: #FFFFFF;
    color: #303030;
    transition: transform 0.3s;
}

.case__card.featured {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #FFFFFF;
}

.case__card h3 {
    display: flex;
    min-height: 1.25rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #898989;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: 1.25;
    text-transform: uppercase;
}

.case__card.featured h3 {
    color: #FFFFFF;
}

.case__image {
    height: 6.5rem;
    margin: 0.625rem 0 0.25rem;
}

.case__image img {
    max-width: 4.75rem;
    max-height: 4.5rem;
}

.case__sum {
    margin: 0;
    color: inherit;
    font-size: 2.625rem;
    font-weight: 400;
    line-height: 1.15;
    white-space: nowrap;
}

.case__sum_subtitle {
    margin: 0.625rem 0 0;
    color: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.3;
}

.case__advantage {
    display: flex;
    min-height: 2.6875rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.625rem 0.25rem;
    border-bottom: 0.0625rem solid #D1D1D1;
    color: inherit;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.3;
}

.case__card.featured .case__advantage {
    border-bottom-color: rgba(255, 255, 255, 0.72);
}

.case__card .case__advantage:last-child {
    border-bottom: none;
}

.case__button {
    width: 100%;
    margin: 2rem 0 0;
}

.case__card.featured .case__button {
    background: #FFFFFF;
    box-shadow: none;
    color: var(--color-primary);
}

.case__card.featured .case__button:hover {
    background: #F7F7F7;
}

.ways {
    padding: 3.5rem 0 5.5rem;
    background: #F7F7F7;
}

.ways__grid {
    align-items: start;
    margin-top: 3.25rem;
}

.way__card {
    align-items: center;
    color: #202020;
}

.way__card h3 {
    order: 2;
    margin: 1.375rem 0 0;
    color: inherit;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.25;
}

.way__image {
    width: 100%;
    height: 7.5rem;
    order: 1;
}

.way__image img {
    display: block;
    width: 8rem;
    height: 8rem;
    object-fit: contain;
}

.way__button {
    margin: 3rem auto 0;
}

.reviews {
    padding: 4.75rem 0 5.5rem;
    background: #FFFFFF;
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 3.75rem;
    margin-top: 3rem;
}

.review__card {
    align-items: center;
    color: #707070;
}

.review__image {
    width: 9.375rem;
    height: 9.375rem;
    overflow: hidden;
    border-radius: 50%;
    background: #E8E8E8;
}

.review__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review__text {
    padding: 1.875rem 0.3125rem 0;
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0;
    opacity: 0.74;
    color: #333333;
}

.review__button {
    margin: 4rem auto 0;
}

.creditors {
    padding: 3.5rem 0 5rem;
    background: #F2F2F2;
}

.creditors__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.875rem;
    margin-top: 2rem;
}

.creditor__card {
    min-height: 17.8125rem;
    align-items: stretch;
    padding: 1.5rem 1.25rem;
    border-radius: 0.25rem;
    background: #FFFFFF;
    box-shadow: 0 0.25rem 0.875rem rgba(35, 35, 35, 0.1);
    color: #696969;
}

.creditor__image {
    width: 100%;
    height: 3.75rem;
    flex: 0 0 auto;
}

.creditor__image img {
    max-width: 100%;
    max-height: 3.25rem;
}

.creditor__text {
    margin: 0.75rem 0 0;
    color: inherit;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.home-useful {
    padding: 4rem 0 5rem;
    background: #FFFFFF;
}

.home-useful .container {
    width: min(68.125rem, calc(100% - 2rem));
}

.home-useful h2 {
    font-size: 2rem;
}

.home-useful__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.375rem 0.625rem;
    margin: 1.5rem auto 0;
}

.home-useful__links a {
    display: inline-flex;
    max-width: 100%;
    min-height: 2.375rem;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 0.125rem solid var(--color-primary);
    border-radius: 0.3125rem;
    background: #FFFFFF;
    color: #111111;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.home-useful__links a:hover {
    background: var(--color-primary);
    color: #FFFFFF;
}

.home-scroll-loan {
    position: fixed;
    right: 1.5rem;
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(15.625rem, calc(100% - 3rem));
    min-height: 3.5rem;
    gap: 0.875rem;
    padding: 0.5rem 1rem 0.5rem 1.25rem;
    border: 0;
    border-radius: 0.5rem;
    background: #FFC700;
    box-shadow: 0 0.375rem 1rem rgba(44, 44, 44, 0.2);
    color: #ffffff;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(100% + 2rem));
    pointer-events: none;
    cursor: pointer;
    transition: background-color 150ms ease,
            box-shadow 150ms ease;
}

.home-scroll-loan.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.home-scroll-loan:hover,
.home-scroll-loan:focus-visible {
    background: #ff9330;
    box-shadow: 0 0.5rem 1.125rem rgba(44, 44, 44, 0.25);
}

.home-scroll-loan:focus-visible {
    outline: 0.1875rem solid rgba(246, 123, 9, 0.35);
    outline-offset: 0.1875rem;
}

.home-scroll-loan img {
    display: block;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

@media (max-width: 70rem) {
    .hero {
        padding: 3.625rem 0 5.125rem;
    }

    .hero__content h1 {
        font-size: clamp(2.5rem, 4.5vw, 3.125rem);
    }

    .process__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.875rem;
    }

    .cases__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case__card:last-child:nth-child(odd) {
        width: calc(50% - 0.9375rem);
        grid-column: 1 / -1;
        justify-self: center;
    }

    .ways__grid {
        gap: 1.5rem;
    }

    .reviews__grid {
        gap: 2.5rem;
    }

    .creditors__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 56.25rem) {
    .hero {
        min-height: calc(100svh - 4.625rem);
        padding: 3rem 0 4rem;
    }

    .hero__content {
        text-align: center;
        margin-bottom: 1rem;
    }

    .hero__content h1,
    .hero__content p {
        max-width: 40rem;
        margin-right: auto;
        margin-left: auto;
    }

    .hero__content h1 {
        margin-bottom: 1rem;
        font-size: 2.75rem;
        line-height: 1.25;
    }

    .hero__content p {
        font-size: 1.125rem;
        line-height: 1.5;
    }

    .process {
        padding: 4rem 0 5rem;
    }

    .process__title,
    .cases__title,
    .ways__title,
    .reviews__title,
    .creditors__title {
        font-size: 2.125rem;
    }

    .cases,
    .ways,
    .reviews,
    .creditors,
    .home-useful {
        padding: 4rem 0 4.5rem;
    }

    .cases__grid {
        width: min(27rem, 100%);
        grid-template-columns: 1fr;
        margin: 0 auto;
    }

    .case__card:last-child:nth-child(odd) {
        width: 100%;
        grid-column: auto;
    }

    .ways__grid {
        width: 100%;
        gap: 1.25rem;
        margin: 2.75rem auto 0;
    }

    .way__card h3 {
        font-size: 1rem;
    }

    .reviews__grid {
        gap: 2rem;
        margin-top: 2.75rem;
    }

    .review__button {
        margin-top: 3.25rem;
    }

    .home-scroll-loan {
        right: 0.75rem;
        bottom: max(0.75rem, env(safe-area-inset-bottom));
        width: min(13.75rem, calc(100% - 1.5rem));
        min-height: 3.25rem;
        gap: 0.625rem;
        padding: 0.375rem 0.75rem 0.375rem 1rem;
    }
}

@media (max-width: 40rem) {
    .hero {
        min-height: calc(100vh - 4.25rem);
        min-height: calc(100svh - 4.25rem);
        padding: 2.125rem 0 3rem;
    }

    .hero__content h1 {
        font-size: clamp(2rem, 10vw, 2.5rem);
        line-height: 1.22;
    }

    .hero__content p {
        font-size: 1rem;
        line-height: 1.45;
    }

    .process,
    .cases,
    .ways,
    .reviews,
    .creditors,
    .home-useful {
        padding: 2.75rem 0 3.25rem;
    }

    .process__title,
    .cases__title,
    .ways__title,
    .reviews__title,
    .creditors__title {
        font-size: 1.875rem;
    }

    .process__subtitle,
    .cases__subtitle {
        margin: 1.125rem 0 2.125rem;
        font-size: 1rem;
    }

    .process__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .process__card {
        min-height: 0;
        padding: 1.5rem 1rem 1.25rem;
    }

    .process__image {
        height: 7rem;
        margin-bottom: 0.875rem;
    }

    .process__image img {
        max-height: 6.5rem;
    }

    .process__card h3 {
        min-height: 0;
        margin-bottom: 0.75rem;
    }

    .process__card p {
        margin-bottom: 1.125rem;
    }

    .case__card {
        min-height: 0;
        padding: 1.875rem 1.25rem 1.5rem;
    }

    .case__sum {
        font-size: 2.25rem;
    }

    .case__button {
        min-height: 3.375rem;
        font-size: 1.125rem;
    }

    .ways__grid {
        width: min(22rem, 100%);
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin: 2.25rem auto 0;
    }

    .way__card h3 {
        margin-top: 1rem;
        font-size: 1.125rem;
    }

    .way__image {
        height: 6.5rem;
    }

    .way__image img {
        width: 6.5rem;
        height: 6.5rem;
    }

    .way__button {
        min-height: 3.375rem;
        margin-top: 2.5rem;
        font-size: 1.125rem;
    }

    .reviews__grid {
        width: min(22rem, 100%);
        grid-template-columns: 1fr;
        gap: 3rem;
        margin: 2.25rem auto 0;
    }

    .review__image {
        width: 8.5rem;
        height: 8.5rem;
    }

    .review__button {
        min-height: 3.375rem;
        margin-top: 2.75rem;
        font-size: 1.125rem;
    }

    .review__text {
        padding-top: 1.25rem;
    }

    .creditors__grid {
        width: min(22rem, 100%);
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin: 2.25rem auto 0;
    }

    .creditor__card {
        min-height: 0;
        padding: 1.25rem 1rem;
    }

    .home-useful h2 {
        font-size: 1.75rem;
    }

    .home-useful__links {
        width: 100%;
        gap: 0.625rem;
        margin-top: 1.75rem;
    }

    .home-useful__links a {
        width: 100%;
        min-height: 3rem;
        padding: 0.625rem 0.875rem;
    }
}

@media (max-width: 24.375rem) {
    .hero__content h1 {
        font-size: 1.875rem;
    }

    .process__title,
    .cases__title,
    .ways__title,
    .reviews__title,
    .creditors__title,
    .home-useful h2 {
        font-size: 1.625rem;
        overflow-wrap: anywhere;
    }

    .case__sum {
        font-size: 2rem;
    }

    .home-scroll-loan {
        width: min(12.5rem, calc(100% - 1.25rem));
        min-height: 3rem;
    }
}

@media (hover: none) {
    .process__card:hover,
    .case__card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-scroll-loan {
        transition: none;
    }
}
