.first-img {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 20px;
}
.first-img img {
    width: 100%;
    max-height: 595px;
    object-fit: cover;
}
.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}
.title span {
    font-size: 15px;
    color: #191919;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}
.title span:after {
    content: '\e908';
    font-family: 'icons';
    margin-left: 10px;
    font-size: 25px;
}
.title h1 {
    color: #191919;
    line-height: 33px;
}
.first-block {
    background: #f3f3f3;
    display: grid;
    grid-template-columns: repeat(auto-fill, 340px);
    padding: 70px;
    margin-bottom: 60px;
}
.first-block .item:last-child, .first-block .item:nth-child(2) {
    padding-right: 60px;
}
.first-block .item h2 {
    font-size: 16px;
    line-height: 22px;
    color: #010101;
    margin-bottom: 15px;
    text-transform: uppercase;
    max-width: max-content;
}
.first-block .item:first-child h2 {
    border-bottom: 3px solid #87c34b;
}
.first-block .item:nth-child(2) h2 {
    border-bottom: 3px solid #1e98c0;
}
.first-block .item:last-child h2 {
    border-bottom: 3px solid #ad3572;
}
.first-block .item p {
    line-height: 23px;
}
.project {
    margin-bottom: 190px;
    position: relative;
}
.project::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: #191919;
    right: calc(50% - 30px);
    bottom: -60px;
}
.second-block {
    margin-bottom: 70px;
}
.second-block .text {
    font-size: 16px;
    line-height: 29px;
    padding: 0 0 70px 70px;
}
.second-block .img .top, .second-block .img-3 .top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    margin-bottom: 20px;
}
.second-block .img img {
    width: 100%;
    max-height: 850px;
    min-height: 220px;
    object-fit: cover;
}
.second-block .img .top img {
    max-height: 400px;
}
.second-block .img-2 img {
    width: 50%;
}
.second-block .img-2 {
    display: flex;
}
.second-block .img-2 img:first-child {
    margin-right: 20px;
}
.second-block .img-3 {
    margin-bottom: 60px;
}
.third-block {
    margin-bottom: 100px;
}
.third-block .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 60px;
    margin-bottom: 30px;
}
.third-block .top h2 {
    font-size: 24px;
    line-height: 38px;
    letter-spacing: 2px;
    text-transform: uppercase;
    max-width: 670px;
}
.third-block .top .pagination {
    display: flex;
    align-items: center;
}
.third-block .top .pagination .left, .third-block .top .pagination .right {
    min-width: 45px;
    min-height: 30px;
    border: 1px solid #191919;
    display: flex;
    justify-content: center;
    background: none;
    padding: unset;
}
.third-block .top .pagination .left {
    margin-right: 10px;
}
.third-block .top .pagination .left:after, .third-block .top .pagination .right:after {
    content: '\e904';
    font-family: 'icons';
    font-weight: normal;
    font-size: 22px;
    color: #191919;
    margin-left: 0;
}
.third-block .top .pagination .left:after {
    transform: rotate(180deg);
}
.third-block .slider {
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
}
.third-block .slider .border {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(55% - 10px);
    width: 20px;
    background: #fff;
    z-index: 1;
}
.third-block .slider .slides {
    display: flex;
    position: relative;
    left: 0;
    transition: 1s;
}
.third-block .slider .slide {
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 140px 0 45px;
    width: 55%;
    min-width: 55%;
}
.third-block .slider .slide:hover:before {
    background: rgba(25, 25, 25, 0.3);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    cursor: pointer;
    position: absolute;
    content: '';
    z-index: 0;
}
.third-block .slider .slide .text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.third-block .slider .slide .text h3 {
    font-size: 16px;
    color: #fff;
    border-bottom: 3px solid #fff;
    width: max-content;
    margin-bottom: 20px;
    padding-bottom: 8px;
}
.third-block .slider .slide .text p {
    color: #fff;
    line-height: 23px;
    text-align: center;
    display: none;
}
.third-block .slider .slide:hover .text p {
    display: flex;
}
.third-block .slider .slide span {
    font-size: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    z-index: 1;
}
.third-block .slider .slide span:after {
    content: '\e908';
    font-family: 'icons';
    margin-left: 10px;
    font-size: 25px;
}
.third-block .slider .slide a {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}
.third-block .slider .slide .up-l {
    width: 15px;
    height: 15px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    position: absolute;
    top: 50px;
    left: 50px;
    z-index: 1;
}
.third-block .slider .slide .up-r {
    width: 15px;
    height: 15px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    position: absolute;
    top: 50px;
    right: 50px;
    z-index: 1;
}
.third-block .slider .slide .bottom-l {
    width: 15px;
    height: 15px;
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: 1;
}
.third-block .slider .slide .bottom-r {
    width: 15px;
    height: 15px;
    border-left: 2px solid #fff;
    border-top: 2px solid #fff;
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 1;
}
.third-block .slider .slide .corner {
    display: none;
}
.third-block .slider .slide:hover .corner {
    display: flex;
}
.four-block {
    background: #f3f3f3;
}
.four-block .wrapper-right {
    position: relative;
}
.four-block img {
    width: 100%;
}
.four-block .wrapper {
    position: absolute;
    top: 0;
    left: 0;
}
.four-block .text {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.54);
    padding: 75px 60px 75px;
}
.four-block .text h2 {
    font-size: 24px;
    line-height: 38px;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 50px;
    text-transform: uppercase;
    max-width: 715px;
}
.five-block {
    background: #f3f3f3;
    padding: 60px 0 100px;
    margin-bottom: 70px;
}
.five-block .content {
    padding-left: 60px;
}
.five-block h2 {
    font-size: 24px;
    line-height: 38px;
    letter-spacing: 2px;
    margin-bottom: 60px;
    text-transform: uppercase;
    max-width: 715px;
}
.five-block form {
    display: flex;
    margin-bottom: 40px;
}
.five-block form input {
    margin-right: 20px;
}
.five-block form .btn {
    margin-left: 25px;
    background: #1e98c0;
}
.five-block form input[type=submit] {
    background: #1e98c0;
}
.five-block form .btn:hover, .five-block form input[type=submit]:hover {
    background: #1e89c0;
}
.five-block form .btn:after {
    margin-left: 0;
}
.five-block form input[type=submit] {
    min-width: unset;
}
.five-block p, .five-block p a {
    color: #191919;
    line-height: 20px;
}
.five-block p a {
    text-decoration: underline;
}
@media screen and (max-width: 1200px) {
    .first-block {
        grid-gap: 30px;
        justify-content: flex-start;
    }
    .first-block .item:last-child, .first-block .item:nth-child(2) {
        padding-right: 0;
    }
    .third-block .slider .slide {
        width: 700px;
        min-width: 700px;
    }
    .third-block .slider .border {
        left: 690px;
    }
    .four-block .wrapper-right {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        overflow: hidden;
    }
    .four-block img {
        width: unset;
    }
    .five-block {
        padding-bottom: 70px;
    }
    .five-block .content {
        padding-left: 100px;
    }
    .five-block h2 {
        margin-bottom: 30px;
    }
    .five-block form {
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
    }
    .five-block form input {
        margin-bottom: 15px;
        max-width: 345px;
    }
    .five-block form .btn {
        margin-left: 0;
    }
    .five-block form .btn input {
        margin-bottom: 0;
    }
}
@media screen and (max-width: 750px) {
    .first-img img {
        width: unset;
        max-height: 450px;
    }
    .third-block {
        margin-bottom: 70px;
    }
    .third-block .top {
        flex-direction: column;
    }
    .third-block .top h2 {
        margin-bottom: 30px;
    }
    .third-block .slider .slide {
        width: 400px;
        min-width: 400px;
    }
    .third-block .slider .border {
        left: 390px;
    }
    .third-block .slider .slide:hover:before {
        content: none;
    }
    .third-block .slider .slide:hover .text p {
        display: none;
    }
    .third-block .slider .slide:hover .corner {
        display: none;
    }
    .four-block .text h2, .five-block h2 {
        font-size: 21px;
        line-height: 30px;
    }
}
@media screen and (max-width: 578px) {
    .wrapper {
        padding-left: 10px;
    }
    .title {
        margin-bottom: 30px;
    }
    .first-block {
        grid-template-columns: repeat(1, 1fr);
        padding: 20px 10px 30px 60px;
        margin-bottom: 0;
    }
    .first-block .item h2 {
        font-size: 14px;
    }
    .second-block {
        margin-bottom: 20px;
    }
    .second-block .text {
        padding: 0 0 20px 20px;
        font-size: 14px;
        line-height: 22px;
    }
    .second-block:first-child .text {
        padding-top: 20px;
    }
    .second-block .img {
        margin-bottom: 20px;
    }
    .second-block .img .top, .second-block .img-3 .top {
        grid-template-columns: repeat(1, 1fr);
    }
    .second-block .img-2 {
        flex-direction: column;
        align-items: center;
    }
    .second-block .img-2 img {
        width: 100%;
    }
    .second-block .img-2 img:first-child {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .third-block {
        margin-bottom: 50px;
    }
    .third-block .top h2 {
        font-size: 17px;
    }
    .third-block .slider .slide {
        width: 90%;
        min-width: 90%;
    }
    .third-block .slider .border {
        left: calc(90% - 10px);
    }
    .third-block .slider .slide .text h3 {
        font-size: 13px;
        padding: 0 10px;
    }
    .third-block .slider .slide .text p {
        font-size: 12px;
        padding: 0 10px;
    }
    .third-block .button {
        margin-left: 30px;
        max-width: fit-content;
    }
    .four-block .text h2, .five-block h2 {
        font-size: 17px;
    }
    .four-block img {
        max-height: 450px;
    }
    .four-block .text {
        padding: 40px 20px;
    }
    .five-block .content {
        padding-left: 70px;
    }
    .five-block form input {
        min-width: 100%;
    }
}