@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Roboto:wght@300&display=swap');


* {
    margin: 0;
}

:root {
    --text_white: #FFFFFF;
    --text_gray: #BBBBCB;
    --background_dark_blue: #1C1E53;
    --background_yellow: #FCD980;
    --background_accent: #F4F6FC;
    --padding_all_block: 120px 150px;
    --margin_bottom: 30px;
}

body {
    font-family: 'Roboto', sans-serif;
}


/* общие */
.yellow_button {
    background-color: var(--background_yellow);
    color: black;
    padding: 15px 30px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0);
}

.yellow_button:hover{
    background-color: #25286e;
    border: 1px solid rgba(244,246,252, 0.2);
    color: var(--text_white);
}

a {
    text-decoration: none;
    color: var(--text_white);
}

.h2 {
    color: var(--text_white);
    font-size: 45px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px;
}

.h2--black {
    color: black;
}

.empty {
    flex: 1;
}




/* header */
header {
    background-color: var(--background_dark_blue);
    padding: 20px 100px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

header p {
    color: var(--text_white);
    font-size: 30px;
}

nav a {
    color: var(--text_gray);
    font-size: 16px;

    margin: 0 20px;
}

nav a:hover {
    color: var(--text_white);
}

.nav__button {
    border: 1px solid rgba(244,246,252, 0.2);
    padding: 10px 30px;
    border-radius: 20px;
    color: var(--text_white);

    margin-left: 50px;
}

.nav__button:hover {
    background-color: var(--background_yellow);
    color: black;
}



/* main */
main > *{
    padding: var(--padding_all_block);
}


/* первый тёмный блок */
.section_1 {
    background-color: var(--background_dark_blue);
    
    display: flex;
    justify-content: space-between;
    gap: 50px;

    padding-bottom: 100px;
}

.s1__left {
    width: 50%;
}


.s1__left p {
    color: var(--text_gray);
    margin-bottom: 50px;
}

.section_1 .yellow_button {
    margin-right: 30px;
}

.s1__right img {
    width: 100%;
}




/* How we work - второй блок */
.section_2 {
    background-color: var(--background_accent);
    display: flex;
}

.s2__left {
    width: 40%;
    min-width: 350px;
}


.s2__left p {
    color: #282938;
    margin-bottom: 30px;
}

.s2__left a {
    color: blue;
    font-weight: 700;
}

.s2__right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 30px;
}

.s2__right .card {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}




/* section 3 */
.s3__header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 50px;
}

.s3__header > a {
    color: black;
}

.blocks {
    display: flex;
    gap: 30px;
}

.blocks h2 {
    font-size: 20px;
}

.blocks a{
    color: var(--background_yellow);
}

.blocks__left {
    width: 60%;
    background-image: url(images/3\ Card_1.png);
    background-size: cover;
}

.blocks__left__content {
    width: 50%;
    height: 100%;
    
    background-color: rgba(28,30,83, 0.8);
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 30px;
}

.blocks__left__content > * {
    width: 80%;
    margin-left: 30px;
}



.blocks__right__top_box {
    background-image: url(images/3\ Card_2.png);
    background-size: cover;
    height: 200px;

    margin-bottom: 30px;
}

.blocks__right__top_box {
    position: relative;    
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 30px;

    padding-left: 30px;
}

.blocks__right__top_box > * {
    position: relative;
    z-index: 1;
}

.blocks__right__top_box::after { /*  синий фон между фоном и текстом */
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(28,30,83, 0.8);
}

.blocks__right__bot_box img {
    width: 100%;
}


/* 4 */
/* Features */

.section_4 {
    background-color: var(--background_accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.section_4 > p{
    font-weight: 700;
}

.section_4 > .h2 {
    width: 50%;
    text-align: center;
}

.section_4__cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.s4__card {
    background-color: white;
    width: 25%;
    padding: 60px 40px;

    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}



/* 5 */
/* отзывы */


.section_5 {
    display: flex;
    justify-content: space-between;

    background-color: rgba(244,246,252, 0.5);
}

.s5__right {
    width: 70%;
}

.s5__right > p {
    font-weight: 700;
    font-size: 30px;
    margin-bottom: 50px;;
}

.s5__right__row {
    display: flex;
    gap: 30px;
}

.s5__button {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 35px;
    height: 35px;
    border-radius: 20px;

    font-weight: 900;
}

.s5__button:hover {
    background-color: #5239FA;
    color: white;
}


/* 6 */
.section_6 {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.s6__left {
    width: 35%;
}

.s6__left a{
    color: blue;
    font-weight: 700;
}


.s6__right {
    width: 60%;
}

.s6__right .row {
    display: flex;
    align-items: center;
    gap: 30px;

    padding-bottom: 30px;
    border-bottom: 2px rgba(1, 1, 1, .2) solid;
    margin-bottom: 30px;

    font-size: 25px;
    font-weight: 700;
}

.row__plus {
    color: rgba(1, 1, 1, .2);
}

.row__number {
    color: blue;
}

/* чтобы убрать нижние padding margin в конце 6 секции */
.s6__right .row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}


/* 7 */
/* синий блок */
.section_7 {
    padding-top: 0;
    background-color: white;
    color: white;
}

.s7_content {
    width: 90%;
    margin: auto;

    display: flex;
}

.s7_content > * {
    width: 50%;
}

.s7__left {
    background-image: url(images/7\ back\ human\ writing.png);
    position: relative;
    
    padding-top: 50px;
}

.s7__left::after{   /*  легкое затемнение фона */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(28,30,83, 0.5);
    width: 100%;
    height: 100%;
}

.s7__left .h2,
.s7__left p{
    position: relative;
    z-index: 1;

    width: 80%;
    margin: auto;
}

.s7__left .h2 {
    margin-top: 50px;
    margin-bottom: 30px;
}

.s7__right {
    background-color: rgb(28,30,83);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;

    padding-top: 70px;
    padding-bottom: 50px;
}

.s7__right > * {
    width: 70%;
}

.s7__right > h3 {
    font-size: 30px;
}

.s7__right > p {
    margin-bottom: 20px;
}

.s7__right > input {
    background-color: rgb(28,30,83);
    color: white;
    border: 2px solid rgb(56, 57, 80);
    border-radius: 10px;
    height: 40px;
    padding-left: 15px;
}

.s7__right > input:last-of-type {
    margin-bottom: 20px;
}

.s7__right > a {
    width: 60%;
    text-align: center;
}

.s7__right .yellow_button {
    margin-bottom: 20px;
}



/* 8 */

.section_8 {
    padding-top: 0;
}

.s8_row {
    display: flex;
    justify-content: space-around;
}

.s8_card {
    width: 30%;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.s8_card img {
    width: 100%;
}

.s8_card p {
    color: grey;
}

.s8_card p:last-of-type {
    margin-bottom: 20px;
}

.s8_card a {
    color: black;
    font-weight: 700;
}



/* footer */
footer {
    background-color: var(--background_dark_blue);
    color: white;

    padding: var(--padding_all_block);
    padding-top: 50px;
    padding-bottom: 0;
    
    display: flex;
    justify-content: space-between;
}

footer > * {
    width: 40%;
}



.footer__left > p {
    margin-bottom: 50px;
}

.footer__yellow_block {
    background-color: #FCD980;
    color: black;
    padding: 20px 30px;

    display: flex;
    gap: 30px;
}

.yellow_block__item h6 {
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 10px;
}

.yellow_block__item p {
    font-size: 17px;
}

.footer__right > * {
    margin-bottom: 30px;
}






@media (max-width: 1500px) {
    .section_4 {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (max-width: 1500px) {
    .section_4 {
        padding-left: 0;
        padding-right: 0;
    } 

    .s4__card {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 1200px) {
    :root {
        --padding_all_block: 70px 50px;
    }

    .h2 {
        font-size: 40px;
    }

    .section_1 {
        gap: 3%;
    }

    .s1__left {
        width: 60%;
    }

    .s1__left p {
        width: 90%;
    }
    
    .s1__right {
        width: 40%;
    }

    .blocks__left {
        width: 80%;
    }

}

@media (max-width: 1100px) {
    header {
        padding-left: 35px;
        padding-right: 35px;
    }

    .nav__button {
        margin-left: 15px;
        margin-right: 0;
    }

    nav a {
        margin: 0 10px;
    }

    .section_1 {
        padding-bottom: 50px;
    }

    .blocks__left {
        border-right: 1px solid rgba(28,30,83, 0.2);
    }

    .section_5 {
        gap: 15px;
    }

    .s7_content {
        width: 100%;
    }

    .footer__yellow_block {
        padding-left: 15px;
        padding-right: 0;
    }

}

@media (max-width: 960px) {
    
    :root {
        --padding_all_block: 70px 50px;
    }

    .yellow_button {
        padding: 10px 30px;
    }

    .h2 {
        font-size: 30px;
    }

    .s2__right .card {
        width: 40%;
    }

    .section_3 .blocks__left__content {
        width: 70%;
    }


    .section_4 > .h2 {
        width: 70%;
    }

    .s4__card {
        width: 40%;
    }

    .s5__right > p {
        font-size: 25px;
    }

    .section_7 {
        padding-left: 0;
        padding-right: 0;
    }

    .section_8 .h2 {
        margin-bottom: 15px;
    }

    .footer__yellow_block {
        display: flex;
        flex-direction: column;
        min-width: 182px;
    }
}

@media (max-width: 850px) {
    header {
        padding-left: 15px;
        padding-right: 15px;   
    }

    .nav__button {
        margin-left: 5px;
    }

    nav a {
        margin: 0 5px;
    }

    .section_1 {
        padding: 30px 30px 50px;
    }

    .s2__right .card {
        width: 45%;
    }

    .section_3 .blocks__right__top_box {
        padding-left: 15px;
    }

    .section_5 {
        flex-direction: column;
        gap: 30px;
    }

    .section_5 .h2 {
        text-align: center;
        margin-bottom: 15px;
    }

    .section_5 p:first-of-type {
        text-align: center;
    }
    
    .s5__right > p {
        margin-bottom: 30px;
    }

    .s5__right {
        width: 100%;
    }

    .section_6 {
        flex-direction: column;
        align-items: center;
    }

    .s6__left {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .s6__right {
        width: 90%;
    }
}

@media (max-width: 760px) {
    :root {
        --padding_all_block: 30px 15px;
    }

    .section_2 {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .s2__left {
        width: 90%;
    }

    .s2__left .h2,
    .s2__left p {
        margin-bottom: 15px;
    }

    .s2__right {
        justify-content: center;
        gap: 15px;
    }

    .section_3 .blocks {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .section_3 .blocks__left {
        width: 100%;
        border-right: none;
    }

    .section_3 .blocks__left__content {
        padding-top: 100px;
        
    }

    .section_3 .blocks__right {
        display: flex;
        gap: 15px;
    }

    .section_3 .blocks__right > * {
        width: 50%;
    }

    .s5__right > p {
        width: 90%;
        font-size: 15px;
    }
}

@media (max-width: 700px) {
    .s1__left .h2 {
        margin-bottom: 15px;
    }

    .section_1 p {
        margin-bottom: 30px;
    }
    
    .section_4__cards {
        gap: 10px;
    }

    .section_6 .row p {
        font-size: 20px;
    }
}

/* 670px для бургер меню */

@media (max-width: 600px) {
    .s4__card {
        width: 80%;
    }
}