
.calculator-inner {
    box-shadow: 0 26px 70px 0 rgba(8, 9, 11, 0.08);
    background: #fff;
    border: 1px solid #dbdde3;
    border-radius: 36px;
    min-height: 860px;

}

.calculator-top {
    display: flex;
    padding: 12px 12px 12px 12px;
    box-shadow: inset 0 -1px 0 0 #eceef2;
    width: 100%;
    align-items: center;
    align-content: center;
    justify-content: center;
    justify-items: center;
}

.calculator-top-logo {
    width: 170px;
    padding-left: 35px;
}

.calculator-top-center {
    margin: 0px auto;
}

.calculator-top-center .prev-text-style-site {
    margin: 0px;
    border: 1px solid #e4e6ea;
    border-radius: 999px;
    padding: 10px 14px;
}

.calculator-close {
    opacity: 0;

    width: 170px;
    text-align: right;
}
.calculator-middle{
    min-height: 635px;
    display: flex;
    align-items: center;
    align-content: center;
    gap:50px;
}
.calculator-middle{padding: 0px 50px;}
.calculator-step-name{
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #e30613;
    margin-bottom: 18px;
    margin-top: 18px;
}

.calculator-step-title{
    font-weight: 700;
    font-size: 56px;
    line-height: 89%;
    color: #08090b;
    margin-bottom: 24px;
}
.calculator-step-info{
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: #626671;
}
.calculator-step-tags{
    margin-top:32px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}
.calculator-step-tags span{
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: #626671;
    border: 1px solid #e4e6ea;
    border-radius: 999px;
    padding: 8px 12px;
}
.calculator-step-start{
    margin-top: 50px
}
.calculator-step-start button{
}
.calculator-step-start button:hover{
    box-shadow: none;
}

.active-calculator .calculator-right{

    background-image: url(/calculator/images/sale-small.png);
    background-position: top 115px right 31px;
    background-repeat: no-repeat;
}
.calculator-right{
    background: #f7f7f5;
    border: 1px solid #e8e8e8;
    border-radius: 24px;
    padding: 40px;
    width: 600px;
    flex: 0 0 600px;

    background-image: url(/calculator/images/sale.png);
    background-position: right bottom;
    background-repeat: no-repeat;
}
.calculator-right b{
    font-weight: 600;
    font-size: 32px;
    line-height: 170%;
    color: #171717;
    margin-bottom: 20px;
    display: block;
}


.calculator-right ul {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

.calculator-right ul li {
    padding-left: 26px;
    font-weight: 500;

    font-size: 16px;
    line-height: 170%;
    text-align: left;
    color: #171717;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 1C4.13438 1 1 4.13438 1 8C1 11.8656 4.13438 15 8 15C11.8656 15 15 11.8656 15 8C15 4.13438 11.8656 1 8 1ZM11.0234 5.71406L7.73281 10.2766C7.68682 10.3408 7.62619 10.3931 7.55595 10.4291C7.48571 10.4652 7.40787 10.4841 7.32891 10.4841C7.24994 10.4841 7.17211 10.4652 7.10186 10.4291C7.03162 10.3931 6.97099 10.3408 6.925 10.2766L4.97656 7.57656C4.91719 7.49375 4.97656 7.37813 5.07812 7.37813H5.81094C5.97031 7.37813 6.12187 7.45469 6.21562 7.58594L7.32812 9.12969L9.78438 5.72344C9.87813 5.59375 10.0281 5.51562 10.1891 5.51562H10.9219C11.0234 5.51562 11.0828 5.63125 11.0234 5.71406Z' fill='%23171717' /%3E%3C/svg%3E");
    background-position: left center;
    background-repeat: no-repeat;
    margin-bottom: 10px;
}

.calculator-right ul li:last-child {
    margin-bottom: 0px;
}


/* сетка карточек */
.rl-types,
.rl-items {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.rl-group { display: contents; }
.rl-group h4 {
    grid-column: 1 / -1;
    margin: 0px;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 26px;
    color: #08090b;
}

/* карточка */
.rl-type-card,
.rl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    background: #fafafa;
    border: 1px solid #e4e6ea;
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s, background .18s;
    font: inherit;
    justify-content: center;
    color: inherit;
}
.rl-type-card:hover,
.rl-card:hover {
    border: 1px solid rgba(227, 6, 19, 0.35);
    background: #fafafa;

}
.rl-type-card.is-selected,
.rl-card.is-selected {
    border-color: #e30613;
    background: #fff5f5;
    box-shadow: 0 8px 24px rgba(227,6,19,.08);
}

.is-selected .rl-type-card__price{
    color: #e30613;
}

.is-selected.is-selected-default .rl-card__check{
    border: 1px solid #bebcd4!important;
}
.is-selected-default{
    border: 1px solid #bebcd4!important;
    border-color: #bebcd4!important;
    background: #fafafa!important;
    box-shadow: none!important;
}



.is-template-2 .is-selected-default .rl-card__check::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='17' viewBox='0 0 20 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.2941 2L6.77941 14.2353L2 8.6738' stroke='%23777b86' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' /%3E%3C/svg%3E")!important;
    background-position: center;

    background-repeat: no-repeat;
    transform: none;
    background-size: contain;
    border: 0px;

}

/* чекбокс скрываем, но оставляем доступным */
.rl-card input[type="radio"],
.rl-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rl-card__title {
    font-weight: 600;
    font-size: 16px;
    color: #08090b;
}
.rl-card__desc {
    font-size: 13px;
    color: #626671;
    line-height: 1.45;
    height: 33px;
}
.rl-card__price {
    font-family: 'Montserrat', sans-serif;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 400;
    color: #08090b;
}
.rl-type-card__price {
    margin-top: auto;
    padding-top: 14px;
    font-size: 14px;
    font-weight: 400;
    color: #08090b;
    font-family: 'Montserrat', sans-serif;
}
.rl-type-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.rl-type-card__head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #08090b;
}
.rl-type-card p {
    margin: 0;
    font-size: 13px;
    color: #626671;
    line-height: 1.45;
    height: 33px;
}

/* галочка выбора */
.rl-type-card__check,
.rl-card__check {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #e4e6ea;
    background: #fff;
    position: relative;
    transition: all .18s;
    display: none;
    position: absolute;
    right: 10px;
    top:10px;
}
.is-selected .rl-type-card__check,
.is-selected .rl-card__check {
    display: block;
}
.rl-card__check {
    position: absolute;
    top: 16px;
    right: 16px;
}
.rl-type-card.is-selected .rl-type-card__check,
.rl-card.is-selected .rl-card__check {
    border-color: #e30613;
    background: #e30613;
}
.rl-type-card.is-selected .rl-type-card__check::after,
.rl-card.is-selected .rl-card__check::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* прогресс */
.rl-progress-wrap {
    margin-top: 32px;
}
.rl-progress-head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #626671;
    margin-bottom: 8px;
}
.rl-progress-bar {
    height: 6px;
    background: #eceef2;
    border-radius: 999px;
    overflow: hidden;
}
.rl-progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: #e30613;
    border-radius: 999px;
    transition: width .3s ease;
}
.rl-progress-message {
    flex-wrap: wrap;
    font-weight: 500;
    font-size: 24px;
    text-align: center;
    color: #777b86;
    padding: 50px 0px 26px;
    height: 200px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content:center;
    justify-items: center;
}

/* кнопки навигации */
.rl-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.rl-nav button{width: 50%!important;}
.rl-btn {
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 14px 18px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}
.rl-btn--ghost {
    background: #fff;
    border: 1px solid #e4e6ea;
    color: #08090b;
}
.rl-btn--ghost:hover { border-color: #c7c7c7; }

.rl-btn--primary {
    background: #e30613;
    color: #fff;
    box-shadow: 0 14px 34px rgba(227,6,19,.24);
}
#fb_close_FID100{font-weight: 400;}
.rl-btn--primary:hover { box-shadow: none; }
.rl-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    box-shadow: none;
}

.calculator-middle.active-calculator .calculator-right{
    width: 508px;
    flex: 0 0 508px;

}
.calculator-step-first{width: 100%;}
.rl-progress-inner{display: none;}
.rl-types {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rl-types__row {
    display: grid;
    gap: 14px;
}

.rl-types__row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rl-types__row--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rl-items.is-template-2 .rl-card__title .rl-card__desc{
    font-weight: 400;
    font-size: 12px;
    line-height: 135%;
    color: #747984;
    position: absolute;
}
.rl-items.is-template-2 .rl-card__body .rl-card__price{
    margin-top: 0px;margin-left: auto;
    display: flex;
    gap:20px;
    align-content: center;
    align-items: center;
}

.rl-website-input,
.rl-items.is-template-2 .rl-card__body .rl-card__price input{
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 16px;
    width: 80px;
    height: 40px;
    font-weight: 400;
    font-size: 16px;
    line-height: 170%;
}
.rl-step-135 .rl-card__price{display: none;}
.rl-website-input{width: 100%;}
.rl-items.is-template-2 .rl-card__body{
    display: flex;
}
.is-template-2 .rl-card__check{
    left:12px;right: auto;
    top:50%;
    transform: translateY(-50%);
    border: 1px solid #e1e3e8;
    border-radius: 6px;
    fill: #fff;
    width: 26px;
    height: 26px;
    display: block;
}
.is-template-2 .rl-card__body{
    padding-left: 46px;
}
.rl-items.is-template-2 .rl-group {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 12px 20px;    grid-column: 1 / -1;
}

.rl-items.is-template-2 .rl-group h4 {
    grid-column: 1 / -1;
}
.is-template-2 .rl-card.is-selected .rl-card__check{
    border: 1px solid #e30613;
    background: #fff;
}
.is-template-2 .rl-card.is-selected .rl-card__check::after{
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='17' viewBox='0 0 20 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.2941 2L6.77941 14.2353L2 8.6738' stroke='%23E30613' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' /%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    transform: none;
    background-size: contain;
    border:0px;
}
.rl-group.rl-group-inner{
    display: flex!important;
    width: 100%;
    flex-wrap: wrap;
}
.rl-group.rl-group-inner .rl-card{
    width: 100%;
}
.rl-group.rl-group-inner h4{
    width: 100%;
    font-weight: 700;
    font-size: 26px;
    color: #08090b;
    margin-bottom: 6px;
}
#rl-items.is-template-2.is-template-3 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
}

#rl-items.is-template-3 .rl-group:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
}

#rl-items.is-template-3 .rl-group:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

#rl-items.is-template-3 .rl-group:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}
.rl-items.is-template-2 .rl-card__body.with-descriptor{
    padding-bottom: 10px;
}
.rl-items.is-template-2 .rl-card__body.with-descriptor .rl-card__desc{
    position: absolute;
    bottom: -8px;
}

#rl-items.is-template-3 .rl-card__body{display: flex;align-items: center;align-content: center;}
#rl-items.is-template-3 .rl-card__body .rl-card__price{margin-left: auto;margin-top: 0px;}
#rl-items.is-template-3 .rl-group.rl-group-inner{gap:10px;}
#rl-items{padding-bottom: 32px;}
.rl-card__price.hiden{
    display: none;
}
.cat-block{
    display: flex;
    align-items: center;
    align-content: center;
    justify-items: center;justify-content: center;
    gap:10px;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: #777b86;
    margin-top: 50px;
    width: 100%;
}
.cat-block a.skip-calc{
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #b4b7be;
}
.cat-block a.finish-calc{
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #777b86;
}


.rl-calculator-result .calculator-middle{
    min-height: auto;
    padding-top: 50px;
}
.rl-calculator-result .calculator-middle{
    flex-wrap: wrap;
    gap:20px;
}
.rl-calculator-result .calculator-step-title{
    width: 100%;
    text-align: center;
}
#rl-calculator-result{padding-bottom: 32px;}
@media (max-width: 1790px) {
    .rl-group.rl-group-inner h4{font-size: 24px;}
    .calculator-step-title{font-size: 46px;line-height: 1}
}
.calculator-inner .btn.btn-red{
    width: auto;
    box-shadow: 0 14px 34px 0 rgba(227, 6, 19, 0.24);

}
.calculator-inner .btn.btn-white{
    width: auto;
    border: 1px solid #777b86;

}
.calculator-inner .btn.btn-white:hover{
    border-color: #e30613;
    color:#fff;
}
.calculator-inner .btn.btn-arrow:hover,
.calculator-inner .btn.btn-arrow{
    box-shadow: 0 14px 34px 0 rgba(227, 6, 19, 0.24);
    background: #e30613;
}
.calculator-inner .btn.btn-arrow:hover svg{
    filter: brightness(1)!important;
}
.calculator-inner .btn.btn-arrow:hover{
    box-shadow: none;
    color:#fff;
}
.afbf_submit_block{padding-bottom: 32px;}
@media (max-width: 1579px) {
    .calculator-right{width: 450px;flex:0 0 450px;}
    .calculator-middle.active-calculator .calculator-right{width: 300px;flex:0 0 300px;}
    .rl-type-card__head h3{padding-right: 25px;}
    .calculator-right b{font-size: 20px;line-height: 1.3;}
    .calculator-right ul li{line-height: 1.2;font-size: 14px;}
    .rl-btn{
        padding: 10px 10px;
    }
    .calculator-right{
        padding: 25px;
    }
    .active-calculator .calculator-right{
        background-position: top 15px right 0px;
    }
    .calculator-step-title{font-size: 48px;}
    .rl-items.is-template-2 .rl-card__body .rl-card__price input{width: 80px;}
    .rl-card__title{padding-right: 15px;}
}
@media (max-width: 1400px) {

    .rl-group.rl-group-inner h4{font-size: 18px;}
    .rl-types__row--4 {
        grid-template-columns: repeat(3, minmax(0, 3fr));
    }
    .calculator-middle{gap: 16px;padding-bottom: 50px;}
    .rl-types{gap: 6px;}
    .card__head{font-size: 16px;}
    .rl-type-card p{overflow: hidden;font-size: 12px;line-height: 1.1;height: 40px;}
}
@media (max-width: 992px) {
    .calculator-inner{min-height: 350px;}
    .rl-group.rl-group-inner h4{margin-top: 20px;}
    .rl-btn--primary{
        background-position: center right 24px;
    }
    .rl-btn--primary.last-step {
        background-position: center right 7px;
    }
    .rl-btn--primary.go-portfolio {
        background-position: center right 15px;
    }
    .rl-type-card p{height: auto;}
    #rl-calculator-result{padding-bottom: 0px;}
    .active-calculator .calculator-right,
    .calculator-right{

        background-image: url(/calculator/images/sale-small.png);background-position: top 55px right 0px;
        background-size: 30%;
    }
    #rl-items.is-template-3 .rl-group:nth-child(2){height: auto;}
    .is-template-2 .rl-card__body{padding-left: 36px;}
    .rl-card__title{padding-right: 10px;}
    .rl-card__title{font-size: 13px;line-height: 1.2;}
    .rl-items.is-template-2 .rl-card__body .rl-card__price input{padding: 5px;width: 60px;}
    .rl-types__row--3, .rl-types__row--4{
        grid-template-columns: repeat(1, minmax(0, 1fr))!important;
    }
    #rl-items.is-template-2.is-template-3,
    .rl-items.is-template-2 .rl-group,
    .rl-types, .rl-items,
    .rl-group{display: flex;flex-wrap: wrap;width: 100%;gap:10px;}
    .rl-type-card, .rl-card{width: 100%;}
    .calculator-middle.active-calculator .calculator-right,
    .calculator-right{flex:0 0 100%;width: 100%;margin-top: 10px;order:3;}
    .calculator-top-center{margin:0px auto;}
    .calculator-close{display: none;}
    .calculator-middle{padding: 0px 15px;flex-wrap: wrap;}
    .calculator-step-title{font-size: 32px;}
    .calculator-top-logo{width: 100px;display: none;}
    .calculator-top-logo{padding-left: 0px;}
    .calculator-close{width: auto;}
    .rl-progress-message{padding: 10px 0px 0px;height: auto;font-size: 18px;}
    .rl-nav{margin-top: 10px;}
    .calculator-inner{min-height: 100px;padding-bottom: 15px;}
    #rl-items{padding-bottom: 0px;}

    .cat-block{margin-top: 10px;margin-bottom: 10px;}
}
@media (max-width: 768px) {
    .rl-items.is-template-2 .rl-card__body.with-descriptor{padding-bottom: 0px;}
    .rl-items.is-template-2 .rl-card__body .rl-card__price{white-space: nowrap}
    .rl-items.is-template-2 .rl-card__body.with-descriptor .rl-card__desc,
    .rl-items.is-template-2 .rl-card__title .rl-card__desc{height: auto;position: static;}/*
    .rl-items.is-template-2 .rl-card__body{display: flex;flex-wrap: wrap;align-items: center;align-content: center;padding-right: 30px;}
    .rl-items.is-template-2 .rl-card__body.with-descriptor .rl-card__desc{position: static;height: auto;}
    .rl-items.is-template-2 .rl-card__body .rl-card__price{position: absolute;top:50%;transform: translateY(-50%);right: 10px;}*/
    .rl-types__row--3,
    .rl-types__row--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
