.calc {
    padding: 80px 0;
}
.calc__title {
    font-size: 45px;
    line-height: 1.2;
    font-weight: 300;
    text-align: center;
    margin-bottom: 40px;
    padding: 0;
    color: #000;
}
.calc-step__title {
    font-size: 22px;
    line-height: 36px;
    color: #000000;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}
.calc-step__row {
    margin-bottom: 60px;
}
.calc-step__row select {
    outline: none !important;
    width: 100%;
    height: 50px;
    line-height: 50px;
    padding: 0 15px;
}
.calc__img img {
    max-width: 100%;
    height: auto;
}
.calc-checkbox {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 20px;
}
.calc-checkbox label {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
}
.tooltip-button {
    outline: none;
    -webkit-box-shadow: none;
            box-shadow: none;
    border: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dadada;
    cursor: pointer;
}
.tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: #fff;
    color: #000;
    text-align: left;
    border-radius: 0;
    padding: 9px;
    position: absolute;
    z-index: 1;
    bottom: 52px;
    left: 0;
    opacity: 0;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
    -webkit-filter: drop-shadow(6.71px 9.948px 12px rgba(0,0,0,0.44));
            filter: drop-shadow(6.71px 9.948px 12px rgba(0,0,0,0.44));
}
.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%; 
    right: 20px; 
    margin-left: -5px; 
    border-width: 5px;
    border-style: solid;
    border-color: #fff transparent transparent transparent; 
}
.tooltip-container:hover .tooltip-text {
    visibility: visible; 
    opacity: 1; 
}
.calc__total-details {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
.calc-step {
    margin-bottom: 40px;
}
.calc__details {
    width: 50%;
    height: auto;
    background: #ffc82f;
}
.calc__total {
    width: 50%;
    height: auto;
    background: #fff7e0;
}
.calc-checkboxes {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 40px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.calc-checkboxes .calc-checkbox label {
    font-size: 14px;
}
.calc__details {
    padding: 40px;
}
.calc-detail {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    max-width: 290px;
    margin-bottom: 10px;
}
.calc-detail__value {
    margin-left: auto;
}
.calc-detail {
    position: relative;
}
.calc-detail:before {
    content: '';
    position: absolute;
    top: 18px;
    left: 0;
    border: 1px dashed #000;
    width: 100%;
}
.calc-detail span {
    position: relative;
    z-index: 2;
    background: #ffc82f;
    font-size: 16px;
    padding: 0 4px;
    display: inline-block;
    font-weight: 600;
    color: #000;
    line-height: 25px;
}
.calc__total .calc-detail span {
    background: #fff7e0;
}
.calc__total {
    padding: 40px;
}
.calc-total__sum.calc-detail:before {
    content: none;
}
.calc-total__sum.calc-detail span {
    font-size: 22px;
}
.calc-total__sum.calc-detail .calc-detail__value span {
    font-weight: bold;
}
.calc-total__sum.calc-detail {
    margin: 25px 0 50px;
}
.calc-total__btn .bottom-box-price-zakaz-btn {
    height: 65px;
    line-height: 65px;
    padding: 0 10px;
    width: 290px;
    border-radius: 33px;
    white-space: nowrap;
}
.calc-item img {
    width: 100%;
    height: 177px;
    -o-object-fit: cover;
       object-fit: cover;
}
.calc-item.calc-item_large img {
    height: 235px;
}
.calc-item a {
    position: relative;
    display: block;
}
.calc-item a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.5);
    width: 100%;
    height: 100%;
    -webkit-transition: .4s;
    transition: .4s;
}
.calc-item a:hover:before {
    -webkit-transition: .4s;
    transition: .4s;
    background: rgba(0,0,0,.8);
}
.calc-item__title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    z-index: 2;
    color: #fff;
    font-size: 24px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}
.calc__bottom {
    margin-top: 20px;
}
.calc__bottom .row {
    margin: 0 -10px;
}
.calc__bottom .row .col-lg-6 {
    margin: 0 0 20px;
    padding: 0 10px;
}
.calc-detail {
    position: relative;
}
.calc-detail .tooltip-container {
    position: absolute;
    top: 2px;
    left: 300px;
}
.calc-detail .tooltip-container .tooltip-button {
    background: #fff;
    border: 1px solid #000;
}
.calc-detail .tooltip-container .tooltip-text {
    bottom: 35px;
    left: -260px;
    z-index: 100;
}   
input[type="checkbox"].ios8-switch {
    position: absolute;
    margin: 8px 0 0 16px;
}
input[type="checkbox"].ios8-switch + label {
    position: relative;
    padding: 5px 0 0 50px;
    line-height: 2em;
}
input[type="checkbox"].ios8-switch + label:before {
    content: "";
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    width: 40px; /* x*5 */
    height: 24px; /* x*3 */
    border-radius: 16px; /* x*2 */
    background: #fff;
    border: 1px solid #d9d9d9;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}
input[type="checkbox"].ios8-switch + label:after {
    content: "";
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    width: 24px; /* x*3 */
    height: 24px; /* x*3 */
    border-radius: 16px; /* x*2 */
    background: #fff;
    border: 1px solid #d9d9d9;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}
input[type="checkbox"].ios8-switch + label:hover:after {
    -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
input[type="checkbox"].ios8-switch:checked + label:after {
    margin-left: 16px;
}
input[type="checkbox"].ios8-switch:checked + label:before {
    background: #ffc82f;
}
input[type="checkbox"].ios8-switch[disabled=""] + label {
  opacity: 0.5;
}
input[type="checkbox"].ios8-switch-sm {
    margin: 5px 0 0 10px;
    visibility: hidden;
}
input[type="checkbox"].ios8-switch-sm + label {
    position: relative;
    padding: 0 0 0 42px;
    line-height: 1.3em;
}
input[type="checkbox"].ios8-switch-sm + label:before {
    width: 32px; /* x*5 */
    height: 18px; /* x*3 */
    border-radius: 10px; /* x*2 */
}
input[type="checkbox"].ios8-switch-sm + label:after {
    width: 18px; /* x*3 */
    height: 18px; /* x*3 */
    border-radius: 10px; /* x*2 */
}
input[type="checkbox"].ios8-switch-sm + label:hover:after {
    -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
            box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}
input[type="checkbox"].ios8-switch-sm:checked + label:after {
    margin-right: 14px; /* x*2 */
}
.main-checkbox input[type="checkbox"].ios8-switch + label:before {
    top: 10px;
}
.main-checkbox input[type="checkbox"].ios8-switch + label:after {
    top: 10px;
}
.main-checkbox input[type="checkbox"].ios8-switch-sm + label {
    padding: 0 0 0 55px;
}
.main-checkbox {
    padding-top: 55px;
}
.custom-select {
  position: relative;
  width: 100%;
  border: 1px solid #000;
  border-radius: 0;
  padding: 0 8px;
  cursor: pointer;
  height: 50px;
  line-height: 50px;
  z-index: 3;
  margin-bottom: 20px;
}
.custom-select[disabled=""] {
  opacity: 0.5;
}
.custom-select__placeholder {
  color: #000;
}
.custom-select__options {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  max-height: 120px;
  overflow-y: auto;
}
#marka-select {
    z-index: 5;
}
.custom-select__option {
  padding: 8px;
  cursor: pointer;
}
.custom-select__option:hover {
  background: #f0f0f0;
}
.custom-select__options {
  display: none;
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #000;
  border-radius:0;
  width: 100%;
  max-height: 0;
  overflow: auto;
  transition: max-height 0.3s ease-in-out;
}
.custom-select.open .custom-select__options {
    display: block;
    max-height: 450px;
    z-index: 2;
    background: #fff;
}
.custom-select__option.selected {
  background: #f0f8ff;
}
.custom-select::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #888; 
  transform: translateY(-50%);
}
.custom-select__option p {
    margin-bottom: 0;
}
@media (max-width: 991px) {
    .calc-step__row select {
        margin-bottom: 20px;
    }
    .calc__img {
        text-align: center;
    }
    .main-checkbox.calc-checkbox {
        justify-content: center;
    }
    .calc-checkboxes {
        flex-wrap: wrap;
        gap: 10px;
    }
    input[type="checkbox"].ios8-switch-sm + label {
        white-space: nowrap;
    }
    .calc__title {
        font-size: 30px;
    }
    .calc-step__title {
        font-size: 18px;
    }
    .calc__details,
    .calc__total {
        padding: 20px;
    }
    .calc__details,
    .calc__total {
        width: 100%;
    }
    .calc__total-details {
        flex-wrap: wrap;
    }
    .calc-item.calc-item_large img {
        height: 177px;
    }
}
@media (max-width: 768px) {
    .calc-checkbox {
        width: 46%;
    }
    .main-checkbox.calc-checkbox {
        width: 100%;
    }
    .calc-total__btn .bottom-box-price-zakaz-btn {
        width: 100%;
    }
}



@media (max-width: 768px) {
    .calc {
        padding: 5px 0 80px 0;
    }
}
