.first-block {
    margin-top: 100px;
    margin-bottom: 100px;
}
.first-block h1 {
    margin: 0 0 40px 60px;
    max-width: 715px;
    font-size: 24px;
    line-height: 38px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.first-block > .text {
    margin: 0 0 40px 60px;
}
.first-block .items {
    display: grid;
    grid-template-columns: repeat(auto-fill, 370px);
    grid-gap: 20px;
}
.first-block .items .item {
    padding: 70px 0 105px;
    background: #f3f3f3;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.first-block .items .item h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    line-height: 22px;
    text-transform: uppercase;
    color: #191919;
    margin-bottom: 20px;
}
.first-block .items .item h2:before {
    font-family: 'icons';
    font-weight: normal;
    margin-bottom: 40px;
    color: #191919;
}
.first-block .items .item .green {
    border-bottom: 3px solid #87c34b;
}
.first-block .items .item .green:before {
    content: '\e917';
    font-size: 42px;
}
.first-block .items .item .blue {
    border-bottom: 3px solid #1e98c0;
}
.first-block .items .item .blue:before {
    content: '\e916';
    font-size: 42px;
}
.first-block .items .item .red {
    border-bottom: 3px solid #ad3572;
}
.first-block .items .item .red:before {
    content: '\e915';
    font-size: 44px;
}
.first-block .items .item a, .first-block .items .item p {
    font-size: 16px;
    line-height: 23px;
}
.first-block .items .item a:hover {
    text-decoration: underline;
}
.second-block {
    margin-bottom: 50px;
}
.second-block .wrapper-right {
    position: relative;
}
.second-block img {
    width: 100%;
}
.second-block .wrapper {
    position: absolute;
    top: 0;
    left: 0;
}
.second-block .text {
    background: rgba(0, 0, 0, 0.54);
    margin-top: 50px;
    padding: 50px 0 30px 60px;
}
.second-block .text h2 {
    font-size: 24px;
    line-height: 38px;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 50px;
    text-transform: uppercase;
    max-width: 715px;
}
.second-block form {
    display: flex;
    margin-bottom: 40px;
}
.second-block form input {
    margin-right: 20px;
}
.second-block form .btn {
    margin-left: 25px;
    background: #1e98c0;
}
.second-block form input[type=submit] {
    background: #1e98c0;
}
.second-block form input[type=submit]:hover, .second-block form .btn:hover {
    background: #1e89C0;
}
.second-block form .btn:after {
    margin-left: 0;
}
.second-block form input[type=submit] {
    min-width: unset;
}
.second-block p, .second-block p a {
    color: #fff;
    line-height: 20px;
}
.second-block p a {
    text-decoration: underline;
}
@media screen and (max-width: 1200px) {
    .first-block .items {
        justify-content: center;
    }
    .second-block .wrapper-right {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }
    .second-block img {
        width: unset;
    }
    .second-block .text {
        margin-top: 0;
        padding: 20px 40px 20px;
    }
    .second-block .text h2 {
        margin-bottom: 20px;
    }
    .second-block form {
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
    }
    .second-block form input {
        margin-bottom: 15px;
        max-width: 361px;
    }
    .second-block form input[type=submit] {
        margin-bottom: 0;
    }
    .second-block form .btn {
        margin-left: 0;
    }
}
@media screen and (max-width: 750px) {
    .first-block {
        margin-top: 50px;
        margin-bottom: 70px;
    }
    .first-block h1, .second-block .text h2 {
        font-size: 21px;
        line-height: 30px;
    }
    .second-block .text {
        padding: 20px;
    }
}
@media screen and (max-width: 578px) {
    .first-block {
        margin-top: 20px;
        margin-bottom: 50px;
    }
    .first-block h1, .second-block .text h2 {
        font-size: 17px;
        margin-left: 20px;
    }
    .first-block .items {
        grid-template-columns: repeat(1, 1fr);
    }
    .first-block .items .item {
        padding: 40px 0;
    }
    .second-block {
        margin-bottom: 70px;
    }
    .second-block .text h2 {
        line-height: 22px;
        margin-left: 0;
    }
}