* {
    box-sizing: border-box;
}

:root {
    --primary-color-desc: #696d76;
    --primary-color-label: #696d77;
    --primary-color: #212832;
}

html {
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-family: "Open Sans", sans-serif;
}

/* ====== Common ====== */
input,
textarea,
select,
button {
    font-size: inherit;
    font-family: inherit;
}

.container {
    width: 1170px;
    max-width: calc(100% - 48px);
    margin: 0 auto;
}

a {
    text-decoration: none;
}

.btn {
    display: inline-block;
    min-width: 149px;
    line-height: 58px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
}

.btn:hover {
    opacity: 0.9;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color-label);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 2.8rem; /* 175% */
}

.section-label::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--primary-color-label);
}

.section-heading {
    color: var(--primary-color);
    font-size: 4rem;
    font-weight: 700;
    line-height: 5rem; /* 125% */
}

.section-desc {
    color: var(--primary-color-desc);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 3rem; /* 166.667% */
}

.line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: var(--line-clamp, 2);
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ====== Header ====== */
.header {
    padding-top: 42px;
}

.header__inner {
    display: flex;
    align-items: center;
}

.navbar__list {
    margin-left: 46px;
    display: flex;
}

.navbar__item {
    padding: 12px 24px;
}

.navbar__link {
    color: #696d76;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 2.8rem; /* 175% */
}

.navbar__link:not(.active):hover {
    text-shadow: 1px 0 0 currentColor;
    color: #3f4c5f;
}

.navbar__link.active {
    position: relative;
    color: var(--primary-color);
    font-weight: 600;
}

.navbar__link.active::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    border-radius: 0.5px;
    background: #7264d6;
}

.header__action {
    margin-left: auto;
}

.header__login {
    margin-right: 28px;
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 2.8rem; /* 175% */
}

.header__signup {
    min-width: 113px;
    border-radius: 6px;
    line-height: 52px;
}

/* ====== Hero ====== */
.hero {
    margin-top: 76px;
}

.hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero__content {
    width: 46%;
}

.hero__heading {
    margin-top: 12px;
    color: var(--primary-color);
    font-size: 6rem;
    font-weight: 700;
    line-height: 7rem; /* 116.667% */
}

.heading__highlight {
    color: #7264d6;
}

.hero__desc {
    margin-top: 20px;
}

.hero__form {
    position: relative;
    margin-top: 40px;
}

.hero__input-email {
    width: 540px;
    height: 74px;
    padding: 23px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0px 16px 42px 0px rgba(0, 0, 0, 0.07);
    outline: none;
    border: none;
}

.hero__input-email::placeholder {
    color: #696d76;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 2.8rem; /* 175% */
}

.hero__submit {
    position: absolute;
    right: 8px;
    top: 50%;
    translate: 0 -50%;
    border: none;
    background: #7264d6;
    cursor: pointer;
}

.hero__attention {
    margin-top: 20px;
    color: var(--primary-color-desc);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 2.4rem; /* 171.429% */
}

.hero__media {
    display: flex;
    gap: 44px;
}

.hero__img-wrap {
    position: relative;
}

.hero__deposit {
    position: absolute;
    top: 113px;
    left: -100px;
    display: flex;
    align-items: center;
    padding: 14px 10px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.07);
}

.hero__deposit-title {
    margin: 0 19px 0 8px;
    color: #31456a;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1; /* 100% */
}

.hero__deposit-value {
    color: #4ab5e3;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1; /* 100% */
}

.hero__secured-funds {
    position: absolute;
    bottom: 61px;
    right: -74px;
    display: flex;
    gap: 11px;
    padding: 20px 14px;
    border-radius: 10px;
    background: #439f90;
}

.hero__secured-funds-value {
    display: block;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1; /* 100% */
}

.hero__secured-funds-title {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1; /* 100% */
}

.hero__interest {
    margin-top: 127px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #da6464;
}

.hero__interest-percent {
    color: #fff;
    font-size: 4.4rem;
    font-weight: 600;
}

.hero__interest-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 400;
}

/* ====== Work ====== */
.work {
    margin-top: 160px;
}

.work__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.work__media,
.transfer__media {
    position: relative;
}

.work__img-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.work__img-wrap::before {
    content: url(../img/bg-img-work.svg);
    position: absolute;
    bottom: -3px;
    z-index: -1;
}

.work__img {
    position: relative;
    bottom: -1px;
    display: block;
    width: 456px;
}

.work__bank {
    position: absolute;
    top: 76px;
    right: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #7264d6;
}

.work__bank::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #f8fbfe;
}

.work__bank-icon {
    position: relative;
    z-index: 1;
}

.work__congratulation {
    position: absolute;
    right: -107px;
    bottom: 96px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px 15px 15px;
    border-radius: 8px;
    background: #fffdfa;
    box-shadow: 0px 14px 34px 0px rgba(0, 0, 0, 0.07);
}

.work__icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #4ab5e3;
}

.work__icon-wrap::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
}

.work__icon-tick {
    position: relative;
    z-index: 1;
}

.work__congratulation-title {
    display: block;
    color: #212832;
    font-family: Inter;
    font-size: 1.4rem;
    font-weight: 600;
}

.work__congratulation-desc {
    margin-top: 5px;
    color: #696d76;
    font-family: Inter;
    font-size: 1.2rem;
    font-weight: 400;
}

.work__content {
    width: 40%;
}

.work__heading {
    margin-top: 12px;
}

.work__list {
    margin-top: 70px;
}

.work-item {
    margin-top: 29px;
}

.work-item__title {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-style: normal;
    font-weight: 600;
    line-height: 3.2rem; /* 145.455% */
}

.work-item__desc {
    margin-top: 16px;
    color: var(--primary-color-desc);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.75; /* 175% */
}

/* ====== Card ====== */
.card,
.transfer {
    margin-top: 160px;
}

.card__inner,
.transfer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.card__content,
.transfer__content {
    width: 40%;
}

.card__heading,
.transfer__heading {
    margin-top: 12px;
}

.card__desc,
.transfer__desc {
    margin-top: 20px;
}

.card__list,
.transfer__list {
    margin-top: 28px;
}

.card-item,
.transfer-item {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-item__dot,
.transfer-item__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #7264d6;
}

.card-item__title,
.transfer-item__title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 3rem; /* 166.667% */
}

.card__btn,
.transfer__btn {
    margin-top: 38px;
}

.card__media {
    position: relative;
    margin-right: 88px;
    margin-bottom: 10px;
}

.card__send {
    position: absolute;
    top: -48px;
    right: -88px;
    display: flex;
    align-items: center;
    padding: 23px 13px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0px 14px 38px 0px rgba(0, 0, 0, 0.07);
}

.card__wrap-plane {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(218, 100, 100, 0.1);
}

.card__send-column:nth-of-type(2) {
    margin: 0 67px 0 14px;
}

.card__send-title {
    display: block;
    color: var(--primary-color);
    font-family: Inter;
    font-size: 1.2rem;
    font-weight: 500;
}

.card__send-desc {
    margin-top: 4px;
    color: #696d76;
    font-family: Inter;
    font-size: 1rem;
    font-weight: 400;
}

.card__send-column:nth-of-type(3) {
    text-align: right;
}

.card__send-price {
    display: block;
    color: var(--primary-color);
    font-family: Inter;
    font-family: Inter;
    font-size: 1.6rem;
    font-weight: 400;
}

.card__send-date {
    margin-top: 3px;
    color: #696d76;
    font-family: Inter;
    font-size: 1rem;
    font-weight: 400;
}

.card__income {
    position: absolute;
    bottom: -55px;
    right: -88px;
    width: 120px;
    height: 120px;
    padding: 15px;
    background: #439f90;
    border-radius: 16px;
    background: #439f90;
}

.card__wrap-income {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #ffffff;
}

.card__income-title {
    margin-top: 14px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
}

.card__income-price {
    margin-top: 6px;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
}

/* ====== Transfer ====== */
.transfer__inner {
    flex-direction: row;
}

.transfer__img-wrap {
    position: relative;
}

.transfer__img-wrap::before {
    content: url(../img/bg-img-transfer.svg);
    position: absolute;
    bottom: 0;
    z-index: -1;
}

.transfer__img {
    position: relative;
    left: 56%;
    translate: -50%;
    width: 413px;
}

.transfer__payment-method {
    position: absolute;
    left: 263px;
    bottom: 57px;
    width: 281px;
    padding: 28px;
    background: #fff;
    border-radius: 10px;
    filter: drop-shadow(0px 44px 48px rgba(0, 0, 0, 0.1));
}

.transfer__payment-title {
    color: #212832;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 3rem; /* 166.667% */
}

.transfer__method-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.transfer__method-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 4px;
    background: #f2f2fa;
}

.transfer__method-item:last-child {
    background: #f9ea63;
}

.transfer__wrap-money {
    position: absolute;
    top: -35px;
    right: -26px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #7264d6;
    box-shadow: 0px 15px 40px 0px rgba(0, 0, 0, 0.1);
}

/* ====== Client ====== */
.client {
    margin-top: 160px;
}

.client__top {
    text-align: center;
}

.client__label {
    justify-content: center;
}

.client__heading {
    margin-top: 12px;
}

.client__desc {
    margin: 18px auto 0;
    font-size: 1.6rem;
    line-height: 1.75;
    width: 435px;
}

.client__list {
    margin-top: 70px;
    display: flex;
    gap: 30px;
}

.client-item {
    flex: 1;
}

.client__speech {
    position: relative;
    padding: 42px 28px;
    background: #fff;
    border: 1px solid #dfe2e8;
    border-radius: 10px;
    transition: filter 0.25s;
}

.client__speech::before {
    content: "";
    position: absolute;
    bottom: -40px;
    left: 50%;
    translate: -50%;
    transform: rotate(45deg) skew(7deg, 7deg);
    width: 80px;
    height: 80px;
    background: inherit;
    border: inherit;
    border-width: 2px;
    border-top: transparent;
    border-left: transparent;
    border-radius: 4px;
}

.client__speech:hover {
    filter: drop-shadow(0px 22px 54px rgba(0, 0, 0, 0.07));
}

.client__comment {
    position: relative;
    z-index: 1;
    width: 514px;
    color: var(--primary-color-desc);
    font-size: 2.2rem;
    text-align: center;
    font-style: italic;
    font-weight: 400;
    line-height: 3.4rem; /* 154.545% */
}

.client__info {
    margin-top: 96px;
    text-align: center;
}

.client__avatar-wrap {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
}

.client__avatar {
    margin-top: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.client-item:nth-child(1) .client__avatar-wrap {
    background: #4ab5e3;
}

.client-item:nth-child(2) .client__avatar-wrap {
    background: #439f90;
}

.client__name {
    margin-top: 20px;
    color: #070052;
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 3.6rem; /* 138.462% */
}

.client__job {
    margin-top: 2px;
    color: var(--primary-color-desc);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 3rem; /* 166.667% */
}

.client__dots {
    margin-top: 38px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.client__dot {
    width: 22px;
    height: 6px;
    border-radius: 1px;
    border: 1px solid #9b9fab;
    cursor: pointer;
}

.client__dot.active {
    border: none;
    background: #7264d6;
}

/* ====== Blog ====== */
.blog {
    margin-top: 160px;
}

.blog__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.blog__heading {
    margin-top: 6px;
}

.blog__desc {
    margin-top: 18px;
    width: 435px;
    font-size: 1.6rem;
    line-height: 1.75;
}

.blog__top-link {
    margin-top: 50px;
    min-width: 123px;
}

.blog__list {
    margin-top: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.blog-item {
    padding: 28px;
    display: flex;
    gap: 22px;
    border-radius: 12px;
    border: 1px solid #dfe2e8;
    background: #fff;
    transition: box-shadow 0.25s;
}

.blog-item:hover {
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.07);
    border-color: transparent;
}

.blog-item:hover .blog-item__link {
    color: #7264d6;
}

.blog-item__thumb {
    width: 160px;
    height: 160px;
    object-fit: cover;
}

.blog-item__date {
    color: var(--primary-color-desc);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2.4rem; /* 171.429% */
}

.blog-item__desc {
    margin-top: 10px;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 3rem; /* 166.667% */
}

.blog-item__link {
    display: block;
    margin-top: 20px;
    color: var(--primary-color-desc);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 2.6rem; /* 162.5% */
    transition: color 0.25s;
}

/* ====== Download ====== */
.download {
    margin-top: 160px;
}

.download__inner {
    position: relative;
    padding: 100px 0;
    border-radius: 24px;
    background: #7264d6;
    text-align: center;
}

.download__label {
    justify-content: center;
    color: #fff;
}

.download__label::before {
    background: #fff;
}

.download__heading {
    margin-top: 12px;
    color: #fff;
}

.download__desc {
    margin: 18px auto 0;
    width: 435px;
    font-size: 1.6rem;
    line-height: 1.75;
    color: #fff;
}

.download__stores {
    margin-top: 38px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.download__decor-star1,
.download__decor-star2,
.download__decor-star3,
.download__decor-star4 {
    position: absolute;
    animation: spinner 1s, move 3s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.download__decor-star2,
.download__decor-star4 {
    animation-direction: reverse;
}

.download__decor-star1 {
    top: 49px;
    left: 112px;
}

.download__decor-star2 {
    top: 49px;
    right: 112px;
    animation-delay: 1s;
}

.download__decor-star3 {
    bottom: 49px;
    left: 166px;
    animation-delay: 2s;
}

.download__decor-star4 {
    bottom: 49px;
    right: 166px;
    animation-delay: 3s;
}

@keyframes spinner {
    0% {
        rotate: 0deg;
    }
    100% {
        rotate: 360deg;
    }
}

@keyframes move {
    0% {
        translate: 0;
    }
    25% {
        translate: 40px;
    }
    75% {
        translate: -40px;
    }
    100% {
        translate: 0;
    }
}

/* ====== Footer ====== */
.footer {
    margin-top: 200px;
}

.footer__content {
    display: flex;
    justify-content: space-between;
}

.footer__title,
.footer__label {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 3rem; /* 166.667% */
}

.footer__list {
    margin-top: 24px;
}

.footer__item {
    margin-top: 12px;
}

.footer__link,
.footer__address {
    color: var(--primary-color-desc);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 3rem; /* 166.667% */
    opacity: 0.75;
}

.footer__link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer__address {
    margin-top: 24px;
    width: 371px;
}

.footer__label {
    margin-top: 48px;
    color: #0a142f;
}

.footer__form {
    margin-top: 24px;
    display: flex;
    gap: 20px;
}

.footer__input-email {
    padding: 12px;
    width: 270px;
    height: 52px;
    border-radius: 6px;
    border: 1px solid #8e919a;
    outline: none;
}

.footer__input-email::placeholder {
    color: #8e919a;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.75; /* 175% */
}

.footer__submit {
    border: none;
    line-height: 52px;
    min-width: 113px;
    border-radius: 6px;
    background: #7264d6;
    cursor: pointer;
}

.footer__contact {
    margin-top: 54px;
    display: flex;
    gap: 100px;
}

.footer__contact-email,
.footer__contact-tel {
    color: #6a6e78;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 3rem; /* 166.667% */
    text-decoration-skip-ink: none;
    text-underline-position: under;
    text-decoration: underline;
    cursor: pointer;
}

.footer__bottom {
    text-align: center;
    margin-top: 28px;
    padding: 28px 0;
    background: #7264d6;
}

.footer__copyright {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 2.8rem; /* 175% */
}
