body {
    color: #663a2a;
}

.header__descr {
    background: #f5ebe1;
    min-height: 600px;
    color: inherit;
    padding-top: 69px;
    padding-bottom: 33px;
    padding-left: 0;
    padding-right: 0;
}

.header__address {
    font-size: 18px;
    line-height: 30px;
    display: block;
}

.header__address strong {
    color: #e94a38;
}

.header__nav {
    padding-top: 15px;
    padding-bottom: 5px;
}

.header__logo {
    font-size: 0;
    line-height: 0;
    padding-top: 7px;
}

.header__title {
    text-transform: uppercase;
    max-width: 700px;
    font-size: 54px;
    line-height: 64px;
}

.header__descr-top-text {
    font-size: 18px;
    line-height: 30px;
}


.tags__item {
    color: #fff;
    background-color: #3773E1;
}

.text--accent {
    color: #663a2a;
}

.progressbar__complete {
    background: #e94a38;
}

.form-switch input:checked+i {
    background-color: #e94a38;
}

.input__item {
    width: 100%;
}

.inputs input[type=submit] {
    background: #e94a38;
}

.inputs .submit-btn {
    background: #e94a38;
    color: #fff;

    -webkit-transition: .4s;
    -o-transition: .4s;
    transition: .4s;
    white-space: normal;
}

.inputs .submit-btn:hover {
    opacity: 0.8;
}

.header__img {
    width: 383px;
    top: 33px;
    left: -53px
}

.hero-img__shape {
    position: absolute;
    top: -35px;
    right: 92px;
    z-index: 1;
    width: 330px;
}

.hero-img__main {
    position: relative;
    z-index: 2;
}

.thanks-page {
    min-height: 100%;
    background-color: #EAF1FF;
    padding-top: 60px;
    padding-bottom: 134px;
    position: relative;
}

/*.thanks-page .footer {
    height: 134px;
    position: absolute;
    left: 0;
    right: 0;   
    bottom: 0;
}*/

.page-container {
    min-height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.thanks-page .footer-thanks {
    top: auto;
}

.thanks-page .header {
    width: 100%;
    margin-top: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

@media screen and (max-width: 1200px) {
    .thanks-page {
        padding-top: 0;
        padding-bottom: 0;
    }

    .page-container {
        display: block;
        min-height: 1px;
    }   

    .thanks-page .footer {
        position: relative;
        height: auto;
    }

    .thanks-page .header {
        position: static;
    }

    .thanks-page .header__descr-thanks {
        padding-bottom: 2rem;
    }
}

input[type=checkbox]:checked+.radio-item span:before {
    border: 0.05rem solid #4c6cee;
}

input[type=checkbox]:checked+.radio-item span:after {
    display: block;
}

.footer-wrap {
    width: 100%;
    justify-content: space-between;
}

.footer {
    top: 0;
    padding-top: 2.1rem;
    padding-bottom: 2.05rem;
    background: #f5ebe1;
    color: #663a2a;
}

.personal {
    background-color: #f5ebe1;
    margin-top: 80px;
    margin-bottom: 23px;
    padding-bottom: 72px;
}

@media screen and (max-width: 767px) {
    .footer-wrap {
        display: block !important;
    }

    .footer__props {
        align-items: flex-start;
        margin-top: 10px;
    }
    .footer {
        overflow: hidden;
    }
}

@media screen and (max-width: 570px) {
    .footer {
        top: 0;
        padding-top: 25px;
    }
}

@media screen and (max-width: 500px) {
    .header__descr {
        padding-bottom: 2rem;
    }

    .header__img {
        top: -60px;
    }
}

.radio-item span:after {
    background-color: #e94a38;
}

input[type=radio]:checked+.radio-item span:before {
    border-color: #e94a38;
}

.personal__policy a {
    text-decoration: none;
    /*color: #e94a38;*/
    color: currentColor;
}

.footer {
    font-size: 16px;
    line-height: 24px;
}

.prop-text-1 {
    font-size: 18px;
    line-height: 24px;
    text-transform: uppercase;
    font-weight: 400;
    padding-bottom: 3px;
}

.footer a.footer-phone {
    color: #663a2a;
    text-decoration: none;
    font-weight: bold;
    font-size: 21px;
}

.footer-text-gray {
    color: #6f6e6e;
}

.hero-subtitle {
    text-transform: uppercase;
    font-weight: bold;
    color: #e94a38;
    font-size: 34px;
    margin-top: 27px;
}

.hero-text {
    color: #663a2a;
    margin-top: 28px;
    font-size: 26px;
    line-height: 30px;
}

.hero-text p {
    margin: 0 0 30px;
}
.hero-text p:last-child {
    margin-bottom: 0;
}

.hero-text p strong {
    color :#e94a38;
    font-weight: bold;
}

.callback {
    margin-top: 81px;
    margin-bottom: 80px;
    background-color: #F5EBE1;
    border-radius: 20px;
    position: relative;
}

.callback__bookmark {
    width: 1.5rem;
    position: absolute;
    top: 0;
    left: 50px;
}

.callback__content {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding: 73px 90px 60px 50px;
}

.callback__title {
    font-weight: 400;
    font-size: 32px;
    line-height: 1.21875em;
    color: #663A2A;
    margin-bottom: 19px;
}

.callback__text {
    max-width: 381px;
    flex-shrink: 0;
    font-weight: 400;
    font-size: 20px;
    color: #663A2A;
    line-height: 30px;
}

.callback__form {
    width: 485px;
    margin-left: auto;
}

.callback__form input[type='submit'] {
    margin-top: 0;
}

.callback__form .submit-btn {
    margin-top: 0;
}

.hero-img__mobile {
    display: none;
}

.hero-text-bottom {
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    color: #999999;
    margin-top: 75px;
}

.progressbar-header {
    display: flex;
    width: 100%;
    align-items: flex-end;
    justify-content: space-between;
}

.progressbar__status {
    font-size: 32px;
    line-height: 1em;
    font-weight: 400;
    padding-bottom: 4px;
}

.progressbar-header__l {
    font-size: 24px;
    line-height: 1.2em;
    font-weight: 400;
}

@media screen and (max-width: 1350px) {
    .header__descr-container-inner {
        max-width: 600px;
    }    
}

@media screen and (max-width: 1199px) {
    .callback__content {
        padding-right: 50px;
    }

    .callback__form {
        width: 360px;
    }
    
    /*.hero-img__shape {
        display: none;
    }*/

    

    .header__img-container {
        position: absolute;
        bottom: 0;
        right: -15px;
        width: auto;
        max-width: 100%;
        flex-basis: 100%;
    }
    
    .header__img {
        position: static;
    }

    .header__descr {
        position: relative;
        padding-left: 0;
        padding-right: 0;
    }

    .header__nav {
        max-width: 960px;
        flex-basis: 960px;
    }
}

@media screen and (max-width: 991px) {
    .header__nav {
        max-width: 720px;
        flex-basis: 720px;
        padding-bottom: 10px;
    }

    .callback {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    .callback__content {
        display: block;
        padding: 62px 24px 46px 16px;
    }

    .callback__bookmark {
        left: 20px;
    }

    .callback__form {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }

    .callback__title {
        font-size: 24px;
        line-height: 1.2em;
        margin-bottom: 19px;
    }

    .callback__text {
        max-width: 100%;
        padding-left: 4px;
        padding-right: 0;
        font-size: 16px;
        line-height: 20px;
    }

    .callback .personal__policy {
        text-align: left;
        font-size: 13px;
        line-height: 18px;
    }

    .header__descr-top-text {
        font-size: 16px;
        line-height: 22px;
    }

    .header__title {
        font-size: 32px;
        line-height: 38px;
        margin-top: 18px;
    }

    .hero-subtitle {
        font-size: 22px;
        line-height: 26px;
    }

    .hero-text {
        font-size: 18px;
        line-height: 20px;
    }

    .hero-text p {
        margin-bottom: 16px;
    }

    .hero-text p:last-child {
        margin-bottom: 0;
    }

    .header__descr-v-line {
        display: none;
    }
    
    .hero-text-bottom {
        margin-top: 62px;
    }

    .header__descr {
        min-height: 480px;
        padding-top: 18px;
        padding-bottom: 21px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-img__shape {
        display: none;
    }

    .header__title {
        max-width: 450px;
    }

    .header__address {
        font-size: 16px;
        padding-top: 5px;
    }

    h2 {
        font-size: 22px;
        line-height: 30px;
    }

    .question-title {
        font-size: 18px;
        line-height: 20px;
    }

    .question__input {
        font-size: 16px;
        line-height: 20px;
    }

    .progressbar-mobile__title h2 {
        font-size: 24px;
        line-height: 1.2em;
        font-weight: 400;
        width: auto;
    }

    .progressbar-mobile__title h2.progressbar__status {
        font-size: 32px;
        line-height: 1em;
        font-weight: 400;
        width: auto;
        padding-bottom: 2px;
    }

    .progressbar-mobile__title {
        width: 100%;
        justify-content: space-between;
        align-items: flex-end;
    }

    .progressbar__text {
        font-size: 13px;
        line-height: 18px;
    }
    
    .switch-text {
        font-size: 14px;
        line-height: 16px;
    }

    .prop-text-1 {
        font-size: 16px;
        line-height: 20px;
    }

    .personal {
        padding: 59px 20px 41px;
        margin-bottom: 20px;
        box-shadow: none;
        position: relative;
    }

    .personal__bookmark {
        position: absolute;
        top: -15px;
        left: 20px;
    }

    .progressbar__common {
        margin-top: 8px;
    }

    .form-switch {
        margin-top: 9px;
    }

    .progressbar .switch {
        margin-top: 17px;
    }

    .personal__title {
        font-size: 24px;
        line-height: 1.2em;
        margin-bottom: 20px;
    }

    .aboveBtn {
        font-size: 14px;
        line-height: 20px;
    }

    .inputs input[type="text"] {
        margin-bottom: 13px;
    }

    .inputs input[type=submit] {
        margin-top: 12px;
    }

    .personal__policy {
        margin-top: 15px;
    }

    .footer {
        padding-top: 43px;
        padding-bottom: 28px;
    }

    .mobile-props {
        padding-top: 11px;
    }

    .mobile-copyright {
        margin-top: 5px;
    }

    .header__descr-second-line {
        display: block;
    }
}



@media screen and (max-width: 767px) {
    .header__nav {
        max-width: 540px;
        flex-basis: 540px;
    }

    .header__nav-block {
        display: block;
    }

    

    .header__img-container {
        height: 348px;
    }

    .header__img {
        width: 280px;
    }
}

@media screen and (max-width: 575px) {
    .hero-subtitle {
        max-width: calc(100% - 160px);
    }
    
    .hero-text {
        max-width: calc(100% - 160px);
    }
    
    .hero-text p:nth-child(2) {
        max-width: calc(100% - 40px);
    }
    
    .hero-text-bottom {
        max-width: calc(100% - 220px);
    }
}

@media screen and (max-width: 480px) {
    .hero-img__main {
        display: none;
    }
    
    .hero-img__mobile {
        display: block;
    }

    .header__img {
        width: 218px;
    }

    .header__descr-container {
        max-width: 100%;
        flex-basis: 100%;
    }

    .hero-subtitle {
        max-width: calc(100% - 140px);
    }

    .hero-text {
        max-width: calc(100% - 120px);
    }

    .hero-text p:nth-child(2) {
        max-width: calc(100% - 40px);
    }
    
    .hero-text-bottom {
        max-width: calc(100% - 185px);
    }

    .hero-text br {
        display: none;
    }
}