/* Кастомные стили */

/* ====== CALCULATOR (price-table / calc-price) ====== */
span.fwb{font-weight:700}

/* общий фон секции калька */
.bg_grey{
  background-color:#373738;
  padding-bottom:40px;
  margin-top:-2px;
}

/* контейнер внутри calc-price */
.calc-price{background-color:#fff;}
.calc-price .container .ovh_block{margin-top:0;width:95%;}

/* шапка таблицы */
.price-table__header > div{font-size:13px;}
.price-table__header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-radius:.7rem .7rem 0 0;
  background-color:#ffaa6b;
  padding:.9rem 2rem;
}
.price-table__cont{background-color:transparent;border-radius:0 0 .7rem .7rem;}

/* скролл таблицы */
.price-table__row{
  overflow-y:scroll;
  height:38rem;
  width:calc(100% + 2rem);
  padding-right:1.5rem;
}
.price-table__row::-webkit-scrollbar{width:.5rem;height:.5rem;border-radius:5px;overflow:hidden;}
.price-table__row::-webkit-scrollbar-button{display:none;}
.price-table__row::-webkit-scrollbar-track,
.price-table__row::-webkit-scrollbar-track-piece{border-radius:5px;background-color:#ececec;}
.price-table__row::-webkit-scrollbar-thumb{border-radius:5px;background-color:#fad442;width:.5rem;}

/* вкладки-аккордеон (заголовки) */
.price-table__tit{
  padding:.9rem 2rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  transition:all .3s;
  background-color:#dedede;
}
.price-table__tit:hover,
.price-table__tit.active{background-color:#ececec;}
.price-table__tit.active .price-table__ar{transform:rotate(180deg);}
.price-table__ar{width:1rem;cursor:pointer;transition:all .3s;}
.price-table__ar svg{width:100%;}
.price-table__ar svg polygon{transition:all .3s;fill:#808080 !important;}
.price-table__ar:hover svg polygon{fill:#282828 !important;}
.price-table__tit.active .price-table__ar svg polygon{fill:#282828 !important;}
.price-table__ar svg polygon{fill:#000 !important;} /* как у тебя в rem_style */

/* контент вкладки */
.price-table__res{
  max-height:0;
  overflow:hidden;
  transition:max-height .5s ease-out;
}
.price-table__resrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 2rem;
  border-bottom:1px solid #e6e6e6;
  transition:all .3s;
  background-color:#f6f6f6;
}
.price-table__resrow:hover{background-color:#ececec;position:relative;}
.price-table__resrow.active{background-color:#fff1bd;position:relative;}
.price-table__resrow:last-child{border-bottom:none;}
.price-table__resrow .price-it-5{
  padding:.25rem .5rem;
  border-radius:2rem;
  background-color:#fff;
  width:5rem;
  font-weight:700;
}
.price-table__resrow .price-it-2,
.price-table__resrow .price-it-4,
.price-table__resrow .price-sum__num{font-weight:700;}

.price-it-1{width:32%;}
.price-it-2,.price-it-3,.price-it-4,.price-it-5{width:7%;text-align:center;}

/* счетчик +/- */
.price-sum{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.5rem;
  border-radius:2rem;
  background-color:#e1dfdf;
  width:auto;
  margin:.5rem;
}
.price-sum__minus,.price-sum__plus{
  border-radius:100%;
  background-color:#fff;
  width:2rem;height:2rem;
  outline:none;border:none;
  cursor:pointer;
  transition:all .3s;
  flex-shrink:0;
}
.price-sum__minus:hover,.price-sum__plus:hover{background-color:#fad442;}
.price-sum__num{
  margin:0 .5rem;
  outline:none;border:none;background:none;
  width:2.5rem;
  text-align:center;
}

/* блок итого */
.price-result{
  padding:2rem;
  padding-bottom:3rem;
  border-radius:1rem;
  overflow:hidden;
}
.price-result.white.rel{
  background:#000;
  color:#fff;
  margin-top:15px;
}
.price-result__bg{
  position:absolute;top:0;left:0;
  width:100%;height:100%;
  z-index:-1;
}
.price-result__bg img{
  position:absolute;top:0;left:0;
  width:100%;height:100%;
  object-fit:cover;
  z-index:-1;
}
.price-result__top{
  display:flex;
  justify-content:space-between;
}
.price-result__lef{width:47%;}
.price-result__dw{display:flex;align-items:center;}
.price-result__dwim{width:1rem;}
.price-result__dwim img{width:100%;}
.price-result__dw a{color:#fff;text-decoration:underline!important;}

.price-result__su2{display:flex;align-items:center;}
.price-result__su2 .t30{white-space:nowrap;width:10rem;text-align:right;}

.price-result__bot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:25px;
  border-radius:10px;
  margin-top:15px;
  color:#fff;
  background:#000;
  padding-bottom:55px;
}
.price-result__bot .t30{width:38%;}



/* предупреждение снизу */
.warn_box_tac{text-align:center;}
.warn_box{
  padding:20px 50px;
  background-color:#ffaa6b;
  border-radius:10px;
  position:relative;
  width:95%;
  margin:15px 0;
  top:-50%;
}
.warn_box p{font-size:20px;}
.warn_box p b{font-weight:700;}

/* ====== из style.min.css: базовые отступы секции calc-price ====== */
.calc-price{padding-top:30px;}
.calc-price__bottom{
  padding-top:50px;
  padding-bottom:55px;
  background-color:#373738;
}

/* ====== mobile правки (то, что видно в rem_style) ====== */
@media (max-width: 768px){
  button.btn.max.price__btn.mbm{width:100%;}
  .price-result__lef{width:100%;}
  .price-result__bot{flex-wrap:wrap;}
  .price-result__bot .t30{width:100%;}
  .calc-price .ovh_block form .wr2 span{
    width:100%;
    padding-left:0;
    padding-right:0;
    margin-top:15px;
  }
}

/* Цвет текста в калькуляторе (таблица) */
.price-table,
.price-table * {
    color: #000 !important;
    font-weight:700;
}


/* Базовый вид текста в калькуляторе */
.price-table {
    color: #000 !important;
    font-weight: 400;
}

/* Оранжевая шапка таблицы (Вид работ / Ед. изм. / Кол-во / Цена / Сумма) */
.price-table__header,
.price-table__header * {
    font-weight: 700;
}

/* Заголовки разделов (серые строки "Демонтаж стен цена за м2" и т.п.) */
.price-table__tit,
.price-table__tit.t24,
.price-table__tit .prc-name-js {
    font-weight: 700;
}

/* Строки внутри раскрытого раздела – обычный вес */
.price-table__resrow,
.price-table__resrow * {
    font-weight: 400;
}

/* Скролл в блоке с позициями калькулятора */
.price-table__row {
    overflow-y: scroll !important;
    overflow-x: hidden;
    height: 38rem;
    width: calc(100% + 2rem);
    padding-right: 1.5rem;
}

/* Кастомизация полосы прокрутки (как было на старом сайте) */
.price-table__row::-webkit-scrollbar {
    width: 6px;
}
.price-table__row::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.price-table__row::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}
.price-table__row::-webkit-scrollbar-thumb:hover {
    background: #555;
}
