.default-form-grid {
    display: grid;
    grid-template-areas:
            "slogan picture"
            "form picture";
    grid-template-columns: 500px 1fr;
    gap: 30px;
}
.default-form-grid__slogan {
    grid-area: slogan;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
}
.default-form-grid__slogan-badge {
    display: inline-block;
    background-color: #FFB657;
    padding: 0 30px;
    line-height: 36px;
    border-radius: 18px;
    color:#fff;
}
.default-form-grid__slogan-text {
    font-size: 56px;
    line-height: 1.14;
    color: #2F2F2F;
}
.default-form-grid__slogan-text em {
    color: #FFB657;
    font-style: normal;
}
.default-form-grid__form {
    grid-area: form;
    display: flex;
    justify-content: center;
}
.default-form-grid__picture {
    grid-area: picture;
    display: flex;
    justify-content: stretch;
    align-items: center;
    z-index: 1;
}
.default-form-grid__picture-img-wrap {
    border: 15px solid #faf4f4;
    position: relative;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-sizing: border-box;
    margin: 0;
    box-shadow: 0 0 0 5px #fff inset;
}
.default-form-grid__picture-img {
    top: 0;
    left: 0;
    width: 632px;
    height: auto;
    object-position: center top;
    object-fit: cover;
    position: relative;
    z-index: -1;
}
.reg-advantages {
    background-color: #faf4f4;
    display: flex;
    flex-direction: column;
    gap: 0px;
    text-align: center;
    align-items: center;
    justify-content: flex-start;
    margin-top: 158px;
    padding-bottom: 40px;
}
.reg-advantages-text {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 45px;
    line-height: 1.3;
    color: #2f2f2f;
    font-weight: 600;
    max-width: 1165px;
    margin-bottom: 1em;
}
.reg-advantages-text strong {
    color: #FFB657;
    font-weight: inherit;
}
.reg-advantages-text em {
    color: inherit;
    display: inline-block;
    font-style: normal;
    position: relative;
}
.reg-advantages-text em::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.5em;
    background: url(../img/underline.svg) left top no-repeat;
    background-size: 100%;
    transform: translateY(100%);
}
.reg-advantages__slider {
    max-width: 965px;
    width: calc(100% - 30px);
    background: #fff;
    border-radius: 30px;
    filter: drop-shadow(0 15px 34px rgba(166, 27, 36, 0.07));
    margin-top: -74px;
    position: relative;
    margin-bottom: 60px;
}
.reg-advantages__slider .owl-stage-outer::after {
    content: "";
    display: block;
    width: 2px;
    right: 0;
    top: 30px;
    bottom: 30px;
    background: #fff;
    position: absolute;
    z-index: 2;
}

.reg-advantages__slides {
    display: flex;
    overflow: visible;
    padding: 0;
    box-sizing: border-box;
}

.reg-advantages__icon {
    width: 50px;
    height: 50px;
    color: #BA222C;
    box-sizing: content-box;
    background: #fff;
    border-radius: 50%;
    padding: 14px;
    border: 6px solid #FBF4F4;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
}

.reg-advantages__text {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    text-align: left
}

.reg-advantages__slides .owl-nav {
    position: absolute;
    top: 50%;
    left: -24px;
    right: -24px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.reg-advantages__slides.owl-loaded .owl-nav button.reg-advantages__nav-btn {
    width: 47px;
    height: 47px;
    background: #FFFFFF;
    border-radius: 50%;
    appearance: none;
    color: #2f2f2f;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #F6F6F6;
}

.reg-advantages__slides.owl-loaded .owl-nav button.reg-advantages__nav-btn:not(.disabled) {
    border-color: #fff;
    color: #fff;
    background: #FFB657;
}

.reg-advantages__nav-btn svg {
    width: 20px;
    height: 20px;
    position: relative;
    left: -2px;
}

.reg-advantages__nav-btn.owl-next {
    transform: scaleX(-1);
}

.reg-advantages__slides .owl-dots {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    height: 48px;
    transform: translateY(48px);
}

.reg-advantages__slides.owl-loaded .owl-dot span {
    display: block;
    width: 16px;
    height: 16px;
    background: #802B45;
    opacity: 0.3;
    border-radius: 50%
}
.reg-advantages__slides.owl-loaded .owl-dot.active span {
    background: #FFB657;
    opacity: 1;
}

li.reg-advantages__slide {
    display: flex;
    font-size: 20px;
    line-height: 1.3;
    align-items: center;
    gap: 1.3em;
    padding: 0 0 0 2em;
    height: 148px;
    position: relative;
    box-sizing: border-box;
}

li.reg-advantages__slide:not(:last-child)::after, .reg-advantages__slides .owl-item .reg-advantages__slide::after {
    content: "";
    display: block;
    background: url(../img/divider.svg) center top no-repeat;
    background-size: 100% 100%;
    width: 2px;
    height: 3.5em;
    margin-left: auto;
    position: absolute;
    right: 0;
}
.main-testimonials {padding: 0 20px;}
.main-testimonials__title {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    margin: 80px auto 30px;
    max-width: 1165px;
}
.main-testimonials__list {max-width: 1165px;margin: 0 auto;display: flex;flex-wrap: nowrap;overflow: visible;align-items: stretch;}
.main-testimonials__list.owl-loaded .owl-stage-outer {
    overflow: visible;
}
.main-testimonials__list.owl-loaded .owl-stage {
    display: flex;
}
.main-testimonials__list li.main-testimonials__item {
    padding: 30px;
    background: #fff;
    box-sizing: border-box;
    flex: 0 0 32%;
    position: relative;
    z-index: 1;
    display: grid;
    gap: 20px;
    font: normal 15px/1.2 "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 30px;
    grid-template-rows: auto auto 1fr;
}
.main-testimonials__list li.main-testimonials__item:hover {
    box-shadow: 0 25px 50px rgba(110, 35, 40, 0.07);
    z-index: 2;
}
.main-testimonials__list.owl-loaded .owl-item {
    z-index: 1;
    display: flex;
}
.main-testimonials__list.owl-loaded .owl-item:hover {
    z-index: 2;
}
.main-testimonials__list.owl-loaded .owl-item li.main-testimonials__item {
    flex: 1;
}
.main-testimonials__list .owl-nav {
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
    transform: translateY(-250%);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.main-testimonials__list.owl-loaded .owl-nav button.main-testimonials__nav-btn {
    width: 47px;
    height: 47px;
    background: #FFFFFF;
    border-radius: 50%;
    appearance: none;
    color: #D9D9D9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #D9D9D9;
}

.main-testimonials__list.owl-loaded .owl-nav button.main-testimonials__nav-btn:not(.disabled) {
    border-color: #BA222C;
    color: #BA222C;
}

.main-testimonials__nav-btn svg {
    width: 20px;
    height: 20px;
    position: relative;
    left: -2px;
}

.main-testimonials__nav-btn.owl-next {
    transform: scaleX(-1);
}
.main-testimonials__item-meta {
    display: grid;
    gap: 0;
    grid-template-areas: "name rating" "date rating";
    grid-template-columns: 1fr auto;
}
.main-testimonials__item-sender {
    grid-area: name;
    font-size: 1.07em;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.main-testimonials__item-date {
    grid-area: date;
    font-size: 0.93em;
}
.main-testimonials__item-rating {
    grid-area: rating;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.main-testimonials__item-rating-img {
    width: 116px!important;
    height: auto;
}
.main-envelope-bottom-wrap {
    margin-top: 207px;
    padding-bottom: 50px;
    background-color: #faf4f4;
    display: flex;
}
.main-envelope-bottom {
    background: url(../img/envelope-bg.jpg) center top repeat-y;
    background-size: 100% auto;
    max-width: 971px;
    margin: 0 auto;
    margin-top: -109px;
    padding: 0;
    border-radius: 39px;
    box-sizing: border-box;
    border: 3px solid #fff;
    box-shadow: 0 -9px 30px rgba(186, 34, 44, 0.2);
    position: relative;
}
.main-envelope-bottom__letter {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    height: 5em;
    font-size: 44px;
}
.main-envelope-bottom__envelope {
    background: #fff;
    border-radius: 40px;
    border: 2px solid #E8E8E84D;
    margin: 0 -5% -1%;
    padding: 1em 5px;
    display: grid;
    grid-auto-flow: row;
    font-size: 44px;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.2;
    font-weight: 700;
    gap: 0.75em;
    position: relative;
}
.main-envelope-bottom__letter-text {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #fff;
    line-height: 1.32;
    font-weight: 700;
    display: grid;
    justify-content: center;
    align-items: center;
    flex: auto;
}
.main-envelope-bottom__letter-text span {
    max-width: 17ex;
}
.main-envelope-bottom__letter-photo {
    flex: 0 0 376px;
    transform: translateY(-26%);
}
.main-envelope-bottom__letter-photo-img {
    width: 330px;
    height: auto;
    border: 3px solid #FFF;
    border-radius: 330px 330px 0 0;
    box-shadow: 0 -9px 30px rgba(186, 34, 44, 0.2);
}
.main-envelope-bottom__envelope-slogan {
    text-align: center;
    max-width: 45ex;
    margin: 0 auto;
}
.main-envelope-bottom__envelope-buttons {
    display: flex;
    justify-content: center;
    gap: 20px
}
@media (max-width: 1230px) {
    .default-form-grid {
        grid-template-areas:
            "slogan"
            "form"
            "picture";
        grid-template-columns: 1fr;
        background: linear-gradient(to bottom, transparent 0, transparent 36%, #faf4f4 36%, #faf4f4 85%, transparent 85%);
    }
    .main-envelope-bottom__letter {
        flex-direction: column;
        height: auto;
        justify-content: center;
        gap: 0;
        font-size: 21px;
    }
    .default-form-grid__picture {
        justify-content: center;
    }
    .default-form-grid__picture-img-wrap {
        flex: 0 0 auto;
    }
    .default-form-grid__picture-img {
        width: 80vw;
        max-width: 303px;
    }
    .default-form-grid__slogan-text {
        font-size: 34px
    }
    li.reg-advantages__slide {
        flex-direction: column;
        gap:10px;
        justify-content: center;
        padding: 0;
    }
    .reg-advantages__text {
        text-align: center;
        font-size: 15px
    }
    .reg-advantages__icon {
        width: 33px;
        height: 33px
    }
    .reg-advantages-text {
        font-size: 26px
    }
    .container--main {
        margin-top: 20px;
    }
    .default-form-grid__slogan-badge {
        display: none;
    }
    .reg-advantages {
        margin-top: 80px;
    }
    .default-form-grid__form .reg-form {
        padding-bottom: 100px;
        box-shadow: none;
        margin: 0 20px;
        padding-left: 12px;
        padding-right: 12px;
    }
    .default-form-grid__form {
        margin-bottom: -100px;
    }
    .main-envelope-bottom__letter-photo {
        flex: 0 0 220px;
        transform: none;
        text-align: center;
        overflow: hidden;
    }
    .main-envelope-bottom__letter-text {
        margin: 1em auto;
        text-align: center;
    }
    .main-envelope-bottom__letter-photo-img {
        width: 240px;
        transform: none;
    }
    .main-envelope-bottom {
        max-width: 80vw
    }
    .main-envelope-bottom__envelope {
        margin: 0 -10% -1%;
    }
    .main-envelope-bottom__envelope {
        font-size: 21px;
    }
    .main-envelope-bottom__envelope-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 270px;
        margin: 0 auto;
    }
    .social-reg-form {
        width: auto;
    }
    .main-envelope-bottom__envelope-buttons button {
        font-size: 18px;
        font-weight: 600;
    }
}
@media (max-width: 640px) {
    .main-testimonials {
        padding-bottom: 40px;
    }
    .main-testimonials__title {
        font-size: 25px;
        text-align: center;
        margin-top: 1em;
    }
    .main-testimonials__list .owl-nav {
        top: auto;
        bottom: 0;
        left: 50%;
        right: auto;
        transform: translate(-50%, calc(100% + 1em));
    }
    .main-testimonials__item {
        box-shadow: 0 25px 14px rgba(110, 35, 40, 0.07);
    }
}