/* START PAGE REFERRAL */

.new-top-cover {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding: 80px 0;
}

.top-cover_referral {
    background-image: url('/wp-content/themes/ecos-m/assets/img/cover_referral.webp');
}

.new-top-header {
    color: #fff;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 15px;
}

.new-top-text {
    color: #fff;
    font-size: 20px;
    margin-bottom: 32px;
}

.new-button-style {
    display: inline-block;
    background: #F9FAFB;
    border-radius: 8px;
    font-size: 14px;
    padding: 13px 50px;
    color: #344054;
    cursor: pointer;
    text-decoration: none;
    border: none;
    text-align: center;
}

.new-button-style_orange {
    background: #FF731E;
    color: #fff;
}

.new-button-style_white {
    background: #fff;
    border: 1px solid #D0D5DD;
    color: #111;
}

.new-button-style_blue {
    background: #1570EF;
    color: #fff;
}

.referral-your-part {
    max-width: 768px;
    margin: 75px auto 55px auto;

    text-align: center;
}

.new-style-sub-header {
    font-size: 24px;
    font-weight: 600;
    color: #101828;
    margin: 0 auto;
    margin-bottom: 24px;
}

.referral-your-part p {
    color: #475467;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}

.referral-video {
    height: 455px;
    background: #2BA0D9;
    border-radius: 12px;
    margin: 0 auto;
}

.how-get-ref-link {
    border: 1px solid #EAECF0;
    border-radius: 12px;
    margin: 65px 0;
    padding: 65px 48px;
}

.how-get-ref-link p {
    color: #475467;
    font-size: 16px;
    margin: 25px 0 40px 0;
    opacity: 0.9;
}

.how-get-ref-link__subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #475467;
}

.how-get-ref-link__blocks {
    display: flex;
    justify-content: space-between;
}

ul.art-li {
    margin: 26px 0;
    display: flex;
    gap: 20px;
    flex-direction: column;
}

ul.art-li li {
    display: flex;
    align-items: center;
    color: #475467;
    gap: 12px;
}

ul.art-li li:before {
    content: '';
    display: block;
    width: 23px;
    height: 23px;
    background: url('/wp-content/themes/ecos-m/assets/img/new-calc/new-icon-ok.svg') center center no-repeat;
    background-size: 100% 100%;
    min-width: 28px;
}

.how-get-ref-link__left-block, .how-get-ref-link__right-block {
    width: 100%;
}

.how-get-ref-link__left-block {
    border-right: 1px solid #EAECF0;
    padding-right: 32px;
}

.how-get-ref-link__right-block {
    padding-left: 32px;
}

.how-ref-calc {
    display: flex;
    align-items: center;
    color: #475467;
}

.how-ref-calc__left-block {
    background: #F9FAFB;
    border: 1px solid #EAECF0;
    padding: 48px 48px 0 48px;
    border-radius: 12px;
}

.how-ref-calc__left-block p {
    line-height: 24px;
    margin-bottom: 25px;
}

.how-ref-calc__left-block img {
    margin: 0 auto;
    display: block;
    max-width: 90%;
}

.how-ref-calc__right-block {
    padding-left: 45px;
}

.how-ref-calc__right-block__title {
    font-size: 16px;
    font-weight: 600;
}

.how-ref-calc__left-block, .how-ref-calc__right-block {
    width: 100%;
}

.table-ref-bonus {
    background: linear-gradient(63.44deg, #1849A9 16.72%, #1570EF 83.39%);
    color: #fff;
    padding: 65px 80px 80px 80px;
    border-radius: 12px;
    margin: 65px 0;
    text-align: center;
}

.table-ref-bonus .new-style-sub-header {
    color: #fff;
    margin-bottom: 40px;
}

.table-ref-bonus__blocks {
    display: flex;
    gap: 55px;
}

.table-ref-bonus__block {
    width: 100%;
    padding: 24px 10px;
    border:  1px solid #fff;
    border-radius: 12px;
}

.table-ref-bonus__block__title {
    margin: 20px 0 5px 0;
    font-size: 20px;
    font-weight: 600;
}

.how-its-work-ref {
    text-align: center;
    color: #475467;
}

.how-its-work-ref__title {
    font-size: 24px;
    color: #101828;
}

.how-its-work-ref p {
    max-width: 750px;
    margin: 15px auto 35px auto;
    font-size: 18px;
    line-height: 28px;
}

.how-its-work-ref__blocks {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    justify-content: space-between;
    margin-top: 50px;
    width: 100%;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.how-its-work-ref__blocks::-webkit-scrollbar {
    display: none;
}

.how-its-work-ref__block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #F2F4F7;
    border: 1px solid #EAECF0;
    border-radius: 12px;
    width: 100%;
    min-width: 210px;
    padding: 24px 20px;
    box-shadow: 0 1px 3px 0 #1018281A;
}

.how-its-work-ref__block img {
    margin-bottom: 20px;
}

.how-its-work-ref__block__title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.how-its-work-ref__block p {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin: 0 0 10px 0;
}

.how-its-work-ref__block-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
    width: 100%;
}

.how-its-work-ref__block-footer span {
    font-size: 18px;
    font-weight: 500;
    color: #1570EF;
}

.how-its-work-ref__block-footer .new-button-style {
    padding: 9px 14px;
}

.adv-ref {
    background: #F9FAFB;
    border: 1px solid #EAECF0;
    padding: 64px 96px;
    margin: 72px 0;
    border-radius: 12px;
}

.adv-ref p {
    margin: 15px 0 65px 0;
    font-size: 18px;
}

.adv-ref p, .adv-ref h3 {
    text-align: center;
}

.adv-ref__blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.adv-ref__block {
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 4px -2px #1018280F, 0 4px 8px -2px #1018281A;
    border-radius: 8px;
    background: #fff;
}

.adv-ref__block-icon {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #53B1FD;
    border-radius: 8px;
    height: 100px;
}

.adv-ref__block:after {
    content: '';
    display: block;
    width: 23px;
    height: 23px;
    background: url('/wp-content/themes/ecos-m/assets/img/new-calc/new-icon-ok.svg') center center no-repeat;
    background-size: 100% 100%;
    min-width: 28px;
    margin-right: 15px;
    margin-left: auto;
}

.ref-black {
    border: 1px solid #EAECF0;
    border-radius: 12px;
    padding: 65px;
    margin-bottom: 65px;
}

.ref-black .new-style-sub-header {
    text-align: center;
    margin-bottom: 25px;
}

.ref-black__blocks {
    display: flex;
    border: 1px solid #EAECF0;
    border-left: 0;
    border-right: 0;
    padding: 45px 0;
    margin-bottom: 32px;
}

.ref-black__block {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.ref-black__block:first-child {
    border-right: 1px solid #EAECF0;
    padding-right: 70px;
}

.ref-black__block:last-child {
    padding-left: 70px;
}

.ref-black__content {
    position: relative;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px
}

.ref-black__content__title {
    font-size: 16px;
    font-weight: 600;
}

.ref-black__content p {
    margin: 0;
    font-size: 14px;
}

.ref-black__content::before {
    content: '';
    width: 28px;
    height: 28px;
    background: url('/wp-content/themes/ecos-m/assets/img/icon-arrow-right.svg') center center no-repeat;
    background-size: 100% 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.ref-black__button {
    text-align: center;
}

@media screen and (max-width: 1220px) {
    .adv-ref__blocks {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media screen and (max-width: 900px) {
    .how-ref-calc {
        flex-direction: column;
        margin: 32px 0;
    }

    .how-ref-calc__right-block {
        padding-left: 0;
        margin-top: 25px;
    }

    .how-ref-calc__right-block .new-button-style_white {
        width: 100%;
    }

    .ref-black {
        margin-bottom: 25px;
        padding: 0;
        border: none;
    }

    .ref-black__blocks {
        flex-direction: column;
        gap: 30px;
        border: none;
        padding: 0;
    }

    .ref-black__block:first-child {
        padding-right: 0;
        border-right: 0;
    }

    .ref-black__block:last-child {
        padding-left: 0;
    }

    .ref-black .new-style-sub-header br {
        display: none;
    }

    .ref-black .new-style-sub-header {
        margin-bottom: 25px;
    }
}

@media screen and (max-width: 800px) {
    .table-ref-bonus__blocks {
        flex-direction: column;
        gap: 15px;
    }
}

@media screen and (max-width: 720px) {
    .new-top-cover {
        padding: 25px 0;
    }


    .adv-ref {
        padding: 32px 15px;
        margin: 32px -16px;
        border-radius: 0;
    }

    .adv-ref__blocks {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .adv-ref p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .new-top-header {
        font-size: 24px;
    }

    .new-top-text {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .referral-your-part {
        margin: 25px 0;
    }

    .new-style-sub-header {
        font-size: 20px;
        font-weight: 500;
        margin-bottom: 10px;
    }

    .referral-your-part p {
        line-height: 24px;
        font-size: 14px;
        margin: 0 15px;
    }

    .referral-video {
        height: 190px;
    }

    .how-get-ref-link {
        margin: 24px 0;
        border: none;
        padding: 0;
        font-size: 14px;
    }

    .how-get-ref-link p, .how-get-ref-link .new-style-sub-header {
        text-align: center;
    }

    .how-get-ref-link .new-button-style {
        width: 100%;
    }

    .how-get-ref-link__blocks {
        flex-direction: column;
    }

    .how-get-ref-link__left-block {
        border-right: none;
        border-bottom: 1px solid #EAECF0;
        padding-right: 0;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .how-get-ref-link__right-block {
        padding-left: 0;
        margin-top: 15px;
    }

    ul.art-li li:before {
        width: 20px;
        height: 20px;
    }

    .table-ref-bonus {
        margin: 24px -16px;
        padding: 30px 15px;
        border-radius: 0;
    }

    .table-ref-bonus__block h5 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .how-its-work-ref p {
        font-size: 14px;
        line-height: 24px;
    }

    .how-its-work-ref .new-button-style {
        width: 100%;
    }
}

.block-space {
    height: 1000px;
}

/* END PAGE REFERRAL */