.mainpage-first {
    background-color: #F3F3F3;
    position: relative;
    padding: 0 0 70px 0;
	overflow: hidden;
}
.mainpage-first * {
    font-family: sftext, Arial;
    line-height: normal;
}
.mainpage-first::before {
    content: '';
    position: absolute;
    background: url(/images/mainpage-first__block.png) no-repeat center / cover;
    width: 1040px;
    height: 783px;
    right: 0;
    bottom: 0;
}
.mainpage-first__body {
    display: flex;
    justify-content: space-between;
}
.mainpage-first__content {
	position: relative;
    width: 495px;
    min-width: 0;
}
.mainpage-first__content-title {
    color: #252d34;
    font-size: 38px;
    margin: 12px 0 45px 0;
    line-height: 45px;
    font-weight: 700;
}
.mainpage-first__content-title span {
    color: #FFD600;
}
.mainpage-first__content-subtitle {
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 32px 0;
}
.mainpage-first__content-link {
	border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to left, #FDEC21, #FDD921);
    font-weight: 700;
    color: #151514;
    width: 243px;
    height: 50px;
    margin: 0 0 35px 0;
}
.mainpage-first__content-services {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.mainpage-first__content-service {
    font-size: 13px;
    color: #252D34;
    line-height: 19px;
    font-weight: 400;
    padding: 15px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    width: calc((100% - 20px) / 2);
}
.mainpage-first__block {
    position: relative;
}
.mainpage-first__block-wrapper {
    display: flex;
    justify-content: center;
}
.mainpage-first__block-info {
    background-color: #112234;
    width: 329px;
    height: 154px;
    border-radius: 5px;
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    position: absolute;
    right: 486px;
    top: 145px;
    z-index: 1;
}
.mainpage-first__block-info span {
    width: 200px;
    line-height: 19px;
    font-weight: 500;
}
.mainpage-first__block-image {
    background: url(/images/mainpage-first-block-image.png) no-repeat center / cover;
    width: 492px;
    height: 695px;
    position: absolute;
    right: 205px;
    bottom: -70px;
    z-index: 2;
}
.mainpage-first__block-about {
    background-color: #fff;
    width: 252px;
    height: 107px;
    border-radius: 5px;
    border: 1px solid #fdd921;
    color: #fff;
    padding: 14px;
    color: #252D34;
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 580px;
    bottom: 10px;
    z-index: 3;
}
.mainpage-first__block-about-experience {
    color: #959595;
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 5px;
}
.mainpage-first__block-about-name {
    font-weight: 600;
    font-size: 15px;
}
.mainpage-first__block-about-clients {
    font-weight: 400;
    font-size: 14px;
    margin-top: auto;
}
@media (max-width: 1799px) {
    .mainpage-first::before {
		right: -100px;
    }

    .mainpage-first__block-image {
        right: 0;
    }

    .mainpage-first__block-about {
        right: 375px;
    }

    .mainpage-first__block-info {
        right: 370px;
        width: 260px;
        padding: 15px;
        height: 135px;
    }

    .mainpage-first__content {
        width: 420px;
    }
}

@media (max-width: 1699px) {
    .mainpage-first::before {
		right: -200px;
    }
}

@media (max-width: 1399px) {
    .mainpage-first::before {
		right: -300px;
    }
}

@media (max-width: 1200px) {
	.mainpage-first::before {
		right: -400px;
    }

    .mainpage-first__content {
        width: 100%;
    }

    .mainpage-first__body {
        flex-direction: column;
    }

    .mainpage-first__block-image {
        position: relative;
        right: -50%;
    }

    .mainpage-first__block-about {
        right: 268px;
        bottom: 40px;
    }

    .mainpage-first__block-info {
        width: 100%;
        right: auto;
        left: 0;
    }

    .mainpage-first__block-info span {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .mainpage-first__block-info span {
        width: 200px;
    }

    .mainpage-first__block-image {
        right: -40%;
    }
}

@media (max-width: 576px) {
	.mainpage-first {
		padding-bottom: 40px;
	}

	.mainpage-first::before {
		display: none;
    }

    .mainpage-first__content-title {
        font-size: clamp(28px, 9vw, 36px);
        line-height: 1.18;
        overflow-wrap: anywhere;
    }

    .mainpage-first__content-subtitle {
        max-width: 100%;
        font-size: 18px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .mainpage-first__content-subtitle br {
        display: none;
    }

    .mainpage-first__content-services {
        width: 100%;
        gap: 12px;
    }

    .mainpage-first__content-service {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .mainpage-first__block-image {
		width: min(492px, 130vw);
		height: auto;
		aspect-ratio: 492 / 695;
		right: -20vw;
    }

    .mainpage-first__block-about {
        right: auto;
		max-width: calc(100vw - 30px);
    }

	.mainpage-first__block-info {
		max-width: calc(100vw - 30px);
	}
}

@media (max-width: 480px) {
    .mainpage-first__content-services {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .mainpage-first__content-service {
        width: 100%;
    }

    .mainpage-first__content-link {
        width: 100%;
        max-width: 243px;
    }
}
@media screen and (min-width: 1440px) {
    .mainpage-first__block-info {
        right: 350px !important;
    }
}
