.cal_ref {
    width: 270px !important;
    height: 43px !important;
    font-size: 14px !important;
    margin-top: 0px !important;
    margin-bottom: 23px;

}

.width-cin {
    width: calc(100% - 30px) !important;
}

.floor.attic .calc_input {
    margin-bottom: 20px;
}

.cal_ref_red {
    width: 130px !important;
    height: 23px !important;
    font-size: 11px !important;
    color: #e11120 !important;
    margin-top: 0px !important;
    margin-bottom: 23px;
    border: 1px solid #e11120 !important;
}

.opening .cal_ref_red {
    margin-top: 10px !important;
    margin-bottom: 0px;
}

.floor_name .cal_ref_red {
    margin-bottom: 0px !important;
    margin-left: 10px !important;
}

.floor_name {
    display: flex !important;
}

.cal_ref_red:hover {
    background: #e11120 !important;
    transition: 0.3s ease-in-out;
    color: #fff !important;
}

.dlinna::before {
    content: "";
    background-image: url(/info/img/dli.svg);
    width: 21px;
    height: 21px;
    display: inline-block;
    margin-right: 5px;
    background-size: cover;
    vertical-align: middle;
    position: relative;
    bottom: 1px;
}

.floor_name {
    margin: 15px 5px 15px 5px !important;
}

.floor_img::before {
    content: "";
    background-image: url(/info/img/dom.svg);
    width: 30px;
    height: 30px;
    display: inline-block;
    margin-right: 5px;
    background-size: cover;
    vertical-align: middle;
    position: relative;
    bottom: 3px;
}

.shirina::before {
    content: "";
    background-image: url(/info/img/shi.svg);
    width: 21px;
    height: 21px;
    display: inline-block;
    margin-right: 5px;
    background-size: cover;
    vertical-align: middle;
    position: relative;
    bottom: 1px;
}

.tol::before {
    content: "";
    background-image: url(/info/img/tol.svg);
    width: 23px;
    height: 23px;
    display: inline-block;
    margin-right: 5px;
    background-size: cover;
    vertical-align: middle;
    position: relative;
    bottom: 1px;
}

.per::before {
    content: "";
    background-image: url(/info/img/per.svg);
    width: 21px;
    height: 21px;
    display: inline-block;
    margin-right: 5px;
    background-size: cover;
    vertical-align: middle;
    position: relative;
    bottom: 1px;
}





.text-page ul,
.text-page p {
    float: none;
}

input,
textarea,
select {
    border: 1px solid #99C6DA;
    background: #D6F2FF;
    padding-bottom: 1px;
    padding-top: 1px;
    box-shadow: 1px 1px 2px #d9d9d9;
    border-radius: 3px;
}

form,
input,
textarea,
select,
option {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

input,
textarea,
select {
    background: #ffffff;
    color: var(--primary);
    border: 1px solid var(--primary);



    box-shadow: 1px 1px 2px #d9d9d9;
    border-radius: 2px;
}

input[type="text"],
input[type="password"],
textarea,
select {
    outline: none;
}

::-moz-focus-inner {
    padding: 0;
    border: 0;
}

button {
    border: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: none;
    cursor: pointer;
}

#calc button span {
    display: block;
    position: relative;
    color: #fff;
    /*background: url(/img/btn.png) no-repeat 100% -21px;*/
    /*padding: 0 12px;*/
    width: 119px;
    height: 32px;
    line-height: 32px;
    font-size: 12px;
    text-align: center;
    /*text-transform: uppercase;*/
    background: #0379ab;
    background: -webkit-gradient(linear, 0 0, 0 bottom, from(#49c0eb), to(#0379ab));
    background: -webkit-linear-gradient(#49c0eb, #0379ab);
    background: -moz-linear-gradient(#49c0eb, #0379ab);
    background: -ms-linear-gradient(#49c0eb, #0379ab);
    background: -o-linear-gradient(#49c0eb, #0379ab);
    background: linear-gradient(#49c0eb, #0379ab);
    border-radius: 5px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    box-shadow: 1px 1px 2px #B3B3B3;
}

/*button.act span {background-position: 100% -42px;}*/

/*-----------------------------------------------------------------------------*/

ul.justified {
    text-align: justify;
    line-height: 0;
    font-size: 1px;
    margin: 0;
    padding: 0;
}

ul.justified:after {
    width: 100%;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    content: '';
    display: inline-block;
}

ul.justified li {
    display: inline-block;
    text-align: left;
    line-height: normal;
    font-size: 12px;
    vertical-align: top;
    position: relative;
    margin: 0;
    padding: 0;
    background: none;
}

.inlinia {
    letter-spacing: -3px;
    margin: 0;
    padding: 0;
    font-size: 0;
}

.inlinia li {
    display: inline-block;
    list-style-type: none;
    vertical-align: top;
    letter-spacing: 0.2px;
    font-size: 12px;
    padding: 0;
    margin: 0;
    line-height: normal;
    background: none;
}

.inlinia li img {
    vertical-align: bottom;
}


/*-----------------------------------------------------------------------------*/

#calc {
    background-color: #F8F8FB;
    border: 1px solid #ffffff4a;
    border-radius: 3px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    padding: 20px 25px 20px 25px;
}

#calc a:hover {
    color: #fff;
}

#calc .bldng input[type="text"],
#calc select {
    width: calc(100% - 30px);
}

/*@-webkit-keyframes ERROR-PULSE {
	0%   {border-color: #bfb096;}
	80%  {border-color: #ed371c;}
	100% {border-color: #bfb096;}
}
@-moz-keyframes ERROR-PULSE {
	0%   {border-color: #bfb096;}
	80%  {border-color: #ed371c;}
	100% {border-color: #bfb096;}
}
@-o-keyframes ERROR-PULSE {
	0%   {border-color: #bfb096;}
	80%  {border-color: #ed371c;}
	100% {border-color: #bfb096;}
}
@keyframes ERROR-PULSE {
	0%   {border-color: #bfb096;}
	80%  {border-color: #ed371c;}
	100% {border-color: #bfb096;}
}*/

#calc input.error {
    /*-webkit-animation: ERROR-PULSE 1s infinite;
    -moz-animation: ERROR-PULSE 1s infinite;
    -o-animation: ERROR-PULSE 1s infinite;
    animation: ERROR-PULSE 1s infinite;*/
    border-color: #ed371c;
    background: #fff;
    color: #ed371c;
}

#calc select.disabled {
    background: #ebebeb;
    border-color: #c6c6c6;
    color: #8e8e8e;
}


a.calc_act {
    position: relative;
    padding: 0 20px 0 8px;
    font-size: 11px;
    color: #fff;
    display: inline-block;
    background: #0379ab;
    background: -webkit-gradient(linear, 0 0, 0 bottom, from(#49c0eb), to(#0379ab));
    background: -webkit-linear-gradient(#49c0eb, #0379ab);
    background: -moz-linear-gradient(#49c0eb, #0379ab);
    background: -ms-linear-gradient(#49c0eb, #0379ab);
    background: -o-linear-gradient(#49c0eb, #0379ab);
    background: linear-gradient(#49c0eb, #0379ab);
    text-decoration: none;
    height: 18px;
    line-height: 16px;
    border-radius: 3px;
    box-shadow: 1px 1px 2px #B3B3B3;
}

.floor_name a.calc_act,
.opening a.calc_act {
    background: #E67867;
    background: -webkit-gradient(linear, 0 0, 0 bottom, from(#fcaea3), to(#c66152));
    background: -webkit-linear-gradient(#fcaea3, #c66152);
    background: -moz-linear-gradient(#fcaea3, #c66152);
    background: -ms-linear-gradient(#fcaea3, #c66152);
    background: -o-linear-gradient(#fcaea3, #c66152);
    background: linear-gradient(#fcaea3, #c66152);
}

a.calc_act span,
.floor h4 span {
    display: block;
    position: absolute;
    top: 1px;
    right: 5px;
    font-size: 17px;
    /*font-weight: bold;*/
    text-decoration: none;
}

#calc li {
    position: relative;
    vertical-align: middle;
    font-weight: 600;
    color: var(--black);
    padding: 0;
}





#calc .bldng li.calc_input {
    margin: 0 0 8px 0;
    padding: 0
}

#calc .opening li.calc_text {
    width: 132px;
    margin: 0 0 8px 9px;
}

#calc .opening li.calc_input {
    width: 44px;
    margin: 0 0 8px 0;
}

#calc li.calc_input.floor_quant {
    width: 42px;
    margin: 0 0 8px 0;
    padding: 0;
}

#calc li.calc_input.floor_quant input {
    text-align: center;
}

#calc li.calc_text.floor_quant {
    width: 208px;
}

#calc #res li.calc_text {
    width: 571px;
    padding: 0 0 2px 0;
    border-bottom: 1px solid #B4CDE1;
}

#calc #res li.calc_input {
    width: 72px;
    padding: 0 0 2px 0;
    margin: 0 0 8px 0;
    background: #59b84a;
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    font-weight: normal;
}


.opening li {
    margin: 0 0 10px 9px;
}

.floor {
    background: #fff url(/img/calc_back1.png);

    margin: 20px 0px 20px 0px !important;
    padding: 15px;
}

.floor li {
    width: 100%;
}

.floor li.calc_act_block {
    width: 80%;

}

.floor li.opening {
    width: 29.5%;
    border: 2px dashed #bbb;
    margin: 0px 16px 16px 0px;

    padding: 8px 0 4px 0;
    opacity: 0;
    background: #fff;
}



.floor_name h2 {
    display: block;
    margin: 0;
    /*font-weight: normal;*/
    font-size: 20px !important;
    color: #6C7284;
}


.floor h4 {
    font-size: 14px;
    /*font-weight: normal;*/
    position: relative;
    /*color: #279bc2;*/
}

.add_floor {
    padding: 0px 0px 0px 0px;

    /*border-color: #b7dda3;*/
    background: url(/img/calc_back2.png) 0 -9px;
}

.add_floor li {
    width: auto;
    margin: 0 !important;
}

.add_floor li.calc_text {
    text-align: right;
    margin: 0 12px 0 6px !important;
    width: 92px !important;
}

#calc_detail,
.standard,
.attic {
    display: none;
}

#total_btn,
#basket_btn {

    position: relative;
}

#basket_btn {
    margin: -6px 18px 4px 0;
}

#basket_btn button span {
    width: 144px;
}

#total_error {
    color: #ed371c;
    font-size: 14px;
    left: 16px;

    top: 8px;
    text-shadow: 1px 1px #f9e2e2;
}

#res {
    display: none;
}

#res ul {
    padding: 0 0 21px 0;
}

#res b {
    font-size: 14px
}

#res h2 {
    margin: 16px 0;
}

#baffle,
.floor_type {
    display: none;
}

/*-----------------------------------------------------------------------------*/

.form {
    background: #ededed;
    width: 586px;
    padding: 18px 0 0 0;
    clear: both;
}

.form li {
    width: 384px;
    margin: 0 0 18px 0;
}

.form li.form_text {
    width: 168px;
    margin: 0 0 20px 16px;
    font-weight: bold;
}

.form li input {
    width: 100%;
}

.form li.form_captcha input {
    width: 60px;
    font-size: 20px;
    text-align: center;
    vertical-align: top;
    margin: 0 0 0 18px;
}

.form li.form_note {
    width: 550px;
    font-size: 11px;
    font-style: italic;
    margin: 0 0 16px 16px;
    text-align: right;
}

.form li textarea {
    width: 100%;
    resize: none;
    height: 100px;
}

@media (max-width: 768px) {
    .inlinia.bldng {
        grid-template-columns: repeat(1, 1fr)!important;

    }
    .grid-3 {
        grid-template-columns: repeat(1, 1fr)!important;
    }
    .floor li.opening {
        width: 100%;
    }
}