.currency-home {
    width: 100%;
    max-width: 1240px;
    margin: 26px auto;
    padding: 30px 36px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 4px;

    box-sizing: border-box;
}


/* LEFT */

.currency-home__main {
    flex: 1;

    display: flex;
    align-items: center;
    gap: 28px;

    min-width: 0;
}


.currency-home__icon {
    width: 82px;
    height: 82px;

    flex: 0 0 82px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ff3157;
    color: #ffffff;

    font-size: 36px;
}


.currency-home__icon i {
    line-height: 1;
}


.currency-home__content {
    min-width: 0;
}


.currency-home__title {
    margin: 0 0 10px;

    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;

    color: #222222;
}


.currency-home__text {
    max-width: 420px;

    margin-bottom: 18px;

    font-size: 15px;
    line-height: 1.55;

    color: #666666;
}


.currency-home__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 22px;

    border-radius: 3px;

    background: #ff3157;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background .2s ease,
        transform .2s ease;
}


.currency-home__button:hover {
    background: #e9274a;
    color: #ffffff;

    text-decoration: none;

    transform: translateY(-1px);
}


/* RIGHT */

.currency-home__rates {
    width: 360px;

    flex: 0 0 360px;

    padding-left: 42px;

    border-left: 1px solid #e5e5e5;
}


.currency-home__rates-title {
    margin-bottom: 16px;

    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;

    color: #222222;
}


.currency-home__rate {
    display: grid;

    grid-template-columns:
        56px
        1fr
        72px;

    align-items: center;

    gap: 12px;

    min-height: 31px;

    font-size: 14px;
}


.currency-home__rate-code {
    font-weight: 600;

    color: #333333;
}


.currency-home__rate-value {
    text-align: right;

    font-weight: 500;

    color: #333333;
}


.currency-home__rate-change {
    text-align: right;

    font-weight: 500;
}


.currency-home__rate-change--up {
    color: #23b26d;
}


.currency-home__rate-change--down {
    color: #ff3157;
}


.currency-home__rates-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;

    margin-top: 13px;

    color: #ff3157;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;
}


.currency-home__rates-link:hover {
    color: #e9274a;

    text-decoration: none;
}


/* TABLET */

@media (max-width: 1100px) {

    .currency-home {
        padding:
            26px
            28px;

        gap: 28px;
    }


    .currency-home__rates {
        width: 320px;

        flex-basis: 320px;

        padding-left: 30px;
    }

}


/* MOBILE */

@media (max-width: 800px) {

    .currency-home {
        flex-direction: column;
        align-items: stretch;

        padding:
            24px
            20px;

        margin:
            20px
            auto;

        gap: 28px;
    }


    .currency-home__main {
        align-items: flex-start;
    }


    .currency-home__rates {
        width: auto;

        flex: none;

        padding:
            24px
            0
            0;

        border-left: 0;

        border-top:
            1px
            solid
            #e5e5e5;
    }

}


/* SMALL MOBILE */

@media (max-width: 520px) {

    .currency-home__main {
        flex-direction: column;

        gap: 18px;
    }


    .currency-home__icon {
        width: 66px;
        height: 66px;

        flex-basis: 66px;

        font-size: 29px;
    }


    .currency-home__title {
        font-size: 21px;
    }


    .currency-home__button {
        width: 100%;

        box-sizing: border-box;
    }


    .currency-home__rate {
        grid-template-columns:
            50px
            1fr
            65px;
    }

}