.dotted-line {
    position: relative;
    margin: 60px 0 50px 0;
    border: 4px dashed #D78866;
    border-radius: 40px 0 40px 40px;
    padding: 40px;
}

.dotted-line:before {
    content: '';
    display: block;
    width: 49px;
    height: 72px;
    border-radius: 49px;
    border: 10px solid #fff;
    position: absolute;
    top: -34px;
    right: -27px;
    background: url(img/ico-dotted-line-block.svg) 0 0 / 29px 52px no-repeat;
}

.dotted-line__title {
    font-style: normal;
    font-weight: 600;
    font-size: 30px;
    line-height: 36px;
    color: #1C1C1C;
    margin: 0;
    padding: 0 16px;
    background-color: #fff;
    position: absolute;
    top: -21px;
    left: 24px;
}

.dotted-line__accent {
    margin-top: 30px;
    background: #FAF4ED;
    border-radius: 40px;
    padding: 35px 40px;
    font-size: 18px;
    font-style: normal;
    font-weight: normal;
    line-height: 30px;
    color: rgba(0,0,0,0.5);
    position: relative;
}

.dotted-line__accent:first-child {
    margin-top: 0;
}

.dotted-line__accent:before {
    content: '';
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    opacity: 0.7;
    border: 1px solid #dfd9d1;
    border-radius: 30px;
}

.dotted-line__accent > * {
    position: relative;
    z-index: 5;
}

@media (max-width: 767px) {
    .dotted-line {
        border-width: 3px;
        padding: 30px;
    }

    .dotted-line:before {
        right: -24px;
    }

    .dotted-line__title {
        font-size: 24px;
        padding: 0 10px;
        left: 30px;
    }

    .dotted-line__accent {
        margin-top: 30px;
        padding: 25px 30px;
    }
}

@media (max-width: 425px) {
    .dotted-line {
        padding-left: 15px;
        padding-right: 15px;
        border-radius: 15px;
    }

    .dotted-line__title {
        left: 5px;
        font-size: 21px;
    }
}