h1 {
    color: #ffffff;
    margin-bottom: 0;
}
h2{
    text-align: center;
    margin-bottom: 2.8rem;
    margin-top: 0.62rem;
}
h1 span {
    color: #333333;
}

section, section.container {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
}

.home-hero .sub-title {
    line-height: 1.2;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: underline;
    color: #333333;
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 1.25rem;
}
.home-hero .sub-title:after {
    content: "";
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background: url(/frontend/theme/assets/images/right-arrow.svg) no-repeat center center;
    line-height: 1;
    margin: 0 0 0 0.625rem;
    transform: translateY(0.625rem);

}
.free-banner {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.free-banner .banner{
    background: #F5F4BF;
    padding: 1rem 1rem;
    margin: 1.8rem auto 1.8rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 0.5rem;
}
.free-banner .banner .icon{
    width: 10rem;
    flex: 10rem;
    margin: -2rem auto -2rem;
}
.free-banner .banner .text {
    line-height: 1.8;
    font-size: 16px;
    flex: 100%;
}
.free-banner .banner .text b{
    font-size: 18px;
}
.loan-types {
    padding-top: 0;
}
.loan-types-row{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}
.loan-types-row .loan{
    flex: 1 1 0;
    background: #FFFFFF;
    box-shadow: 0 0 14px rgba(102, 111, 116, 0.2);
    border-radius: 1rem;
    padding: 2.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.loan-types-row .loan h3 {
    font-weight: 600;
    font-size: 1.4rem;
    margin-top: 0;
    line-height: 1;
}
.loan-types-row .loan .amount {
    font-weight: 600;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.loan-types-row .loan .marked {
    font-weight: 600;
    font-size: 22px;
    color: #828282;
}
.loan-types-row .loan .description {
    font-weight: 500;
    font-size: 1rem;
    color: #828282;
}
.loan-types-row .loan img{
    width: 8.75rem;
    display: block;
    margin: 0 auto 1rem;
}
.loan-types-row .loan .button{
    margin-top: auto;
}
.loan-types-row .loan.highlight {
    background: #46CB58;
    box-shadow: 0 0 14px 0 rgba(18, 204, 92, 0.30);
    color: #fff;
}
.loan-types-row .loan.highlight *{
    color: #fff;
}
.loan-types-row .loan.highlight .button{
    background: #ffffff;
    box-shadow: 0 0 14px rgba(18, 204, 92, 0.3);
    color: #333333;
}
.loan-types-row .loan.highlight .button:hover{
    color: #828282;
}
.process{
    background: #F5F5F5;
}
.process .process-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.85rem;
}
.process .process-row .stage{
    flex: 1 1 0;
    background: #FFFFFF;
    border-radius: 0.625rem;
    padding: 1.85rem 1.25rem;
    display: flex;
    flex-direction: column;
    height: auto;
}
.process .stage h3{
    font-size: 1.12rem;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
    margin: 0 0 1.25rem;
}
.process .stage h3 span{
    font-size: 3.25rem;
    font-weight: 700;
    color: #3EBF1F;
    display: block;
}
.process .stage p{
    font-size: 0.9rem;
    font-weight: 500;
    color: #4F4F4F;
    line-height: 1.3;
    margin: 0;
}
.process .button{
    margin: 3.75rem auto 0;
    font-size: 1.15rem;
}
.first-loan{
    background: #4FC35B;
}
.first-loan .row{
    justify-content: space-between;
}
.first-loan .infoBlock{
    max-width: 493px;
}
.first-loan h2 {
    font-size: 35px;
    line-height: 1.4;
    text-align: left;
    color: #fff;
    margin: 0 0 16px;
}
.first-loan p {
    font-size: 20px;
    line-height: 1.3;
    text-align: left;
    color: #2C2C2C;
    font-weight: 500;
    margin: 0 0 30px;
}
.first-loan button.outline {
    border-radius: 6px;
    background: #F67B09;
    box-shadow: 0 6px 10px 0 rgba(130, 130, 130, 0.20);
    color: #FFF;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: 0;
    display: flex;
    padding: 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 100ms;
}
.first-loan button.outline svg{
    width: 20px;
    height: 20px;
}
.first-loan button.outline:hover {
    background: #FF9330;
    box-shadow: 0 6px 10px 0 rgba(130, 130, 130, 0.20);
}
.questions {
    background-color: #F5F5F5;
}
.questions h2 {
    color: var(--color-primary);
}

.creditors {
    background: #ffffff;
}
.creditors .creditors-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.creditors .creditors-grid .creditor{
    background: #FFFFFF;
    border-radius: 10px;
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    height: auto;
    box-shadow: 0 0 14px rgba(102, 111, 116, 0.2);
}
.creditors .creditors-grid .creditor img {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    display: block;
    margin: auto;
}
.creditors .creditors-grid .creditor p {
    font-size: 14px;
    line-height: 1.3;
    color: #828282;
}
.about {
    background: #F5F5F5;
}

.home-useful {
    background: #ffffff;
    border-top: 1px solid #eeeeee;
}

.home-useful h2 {
    color: #2c2c2c;
}

.home-useful__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    max-width: 1120px;
    margin: 0 auto;
}

.home-useful__links a {
    display: block;
    padding: 8px 16px;
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    color: #2c2c2c;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: color 150ms ease, background-color 150ms ease;
}

.home-useful__links a:hover,
.home-useful__links a:focus-visible {
    color: #ffffff;
    background: var(--color-primary);
}

.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: #f67b09;
    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: 768px) {
    .home-useful__links {
        align-items: stretch;
        flex-direction: column;
    }

    .home-useful__links a {
        width: 100%;
    }

    .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: 768px) {
    section,
    section.container {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    h2 {
        margin-top: 0;
        margin-bottom: 1.75rem;
        font-size: 1.75rem;
    }

    .home-hero .sub-title {
        margin-bottom: 2rem;
        font-size: 1.0625rem;
    }

    .home-hero .sub-title::after {
        width: 1.5rem;
        height: 1.5rem;
        margin-left: 0.5rem;
    }

    .free-banner {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .free-banner .banner {
        gap: 0.75rem;
        margin: 1.25rem 0;
        padding: 0.875rem;
    }

    .free-banner .banner .icon {
        width: 6.5rem;
        margin: -0.75rem 0;
    }

    .free-banner .banner .text {
        font-size: 0.875rem;
        line-height: 150%;
    }

    .free-banner .banner .text b {
        font-size: 1rem;
    }

    .free-banner.mobile-only {
        padding-top: 0;
        padding-bottom: 0;
    }

    .free-banner.mobile-only > .container {
        margin: 0;
        width: 100%;
    }

    .loan-types {
        padding-top: 2rem;
    }

    .loan-types-row {
        gap: 1rem;
    }

    .loan-types-row .loan {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem 1rem;
    }

    .loan-types-row .loan h3 {
        margin-bottom: 0.75rem;
        font-size: 1.125rem;
    }

    .loan-types-row .loan .amount {
        margin-bottom: 0.75rem;
        font-size: 1.75rem;
    }

    .loan-types-row .loan .marked {
        font-size: 1.125rem;
    }

    .loan-types-row .loan .description {
        font-size: 0.875rem;
    }

    .loan-types-row .loan img {
        width: 6.5rem;
        margin-bottom: 0.75rem;
    }

    .process .process-row {
        gap: 1rem;
    }

    .process .process-row .stage {
        padding: 1.25rem 1rem;
    }

    .process .stage h3 {
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    .process .stage h3 span {
        font-size: 2.5rem;
    }

    .process .stage p {
        font-size: 0.875rem;
    }

    .process .button {
        margin-top: 2rem;
        font-size: 1rem;
    }

    .first-loan .row {
        margin-right: 0;
        margin-left: 0;
        flex-direction: column-reverse;
    }

    .first-loan .calculator-holder {
        padding: 2rem 0;
    }

    .first-loan .infoBlock {
        max-width: 100%;
    }

    .first-loan h2 {
        margin-bottom: 1rem;
        font-size: 1.75rem;
    }

    .first-loan p {
        margin-bottom: 1.25rem;
        font-size: 1rem;
    }

    .first-loan button.outline {
        width: 100%;
        min-height: 3rem;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .first-loan button.outline svg {
        width: 1.125rem;
        height: 1.125rem;
    }

    .creditors .creditors-grid {
        gap: 1rem;
    }

    .creditors .creditors-grid .creditor {
        padding: 1rem;
    }

    .creditors .creditors-grid .creditor img {
        max-height: 2.75rem;
    }

    .creditors .creditors-grid .creditor p {
        font-size: 0.8125rem;
    }

    .about {
        font-size: 0.9375rem;
        line-height: 160%;
    }

    .home-useful__links {
        gap: 0.5rem;
        max-width: 100%;
    }

    .home-useful__links a {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    section,
    section.container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    h2 {
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }

    .home-hero .sub-title {
        font-size: 1rem;
    }

    .loan-types-row .loan {
        padding: 1.25rem 0.875rem;
    }

    .loan-types-row .loan .amount {
        font-size: 1.5rem;
    }

    .loan-types-row .loan .marked {
        font-size: 1rem;
    }

    .process .process-row .stage {
        padding: 1rem 0.875rem;
    }

    .process .stage h3 span {
        font-size: 2.25rem;
    }

    .first-loan h2 {
        font-size: 1.5rem;
    }
}

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