.container_calc {  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: auto auto auto;
  grid-auto-rows: 1fr;
  gap: 10px 10px;
  grid-auto-flow: row;
  justify-content: center;
  align-content: center;
  align-items: center;
}

.container_all_calc{
  background-color: #fff;
  width: 100%;
  display: inline-block;
}

.pics_area { grid-area: 1 / 2 / 2 / 3; }

.Sum_selects { grid-area: 2 / 1 / 3 / 2; }

.Some-text { grid-area: 2 / 2 / 3 / 3; }

.desc_text { grid-area: 3 / 1 / 4 / 3; }

.selects { grid-area: 1 / 1 / 2 / 2; }

.select_area { grid-area: 1 / 1 / 2 / 2; }

.select_area{
  display: block;
  width: 100%;
  text-align: center;
}

.resultdiv {
  display: flex;
  justify-content: center;
  align-items: center;
}

div#result {
  width: 100%;
}

.all_block_calc {
  display: block;
  width: auto;
  padding: 5px;
  margin: 5px;
}

.calc_header{
  display: block;
  margin: 10px;
  padding: 5px;
  text-align: center;
}

.calc_span{
  display: block;
  margin: 10px;
  padding: 5px;
  text-align: center;
}



/* Стили для мобильных устройств */
@media (max-width: 600px) {
  /* Задаем новые стили для контейнера */
  .container_calc {
    display: block;
  }
  
  /* Задаем новые стили для каждого блока */
  .Sum_selects,
  .Some-text,
  .desc_text,
  .selects,
  .pics_area,
  .resultdiv {
    width: 100%;
    margin: 10px;
  }

}








.select_area_div{
  margin: 15px;
  width: auto;
  display: flex;
}


















/* Таблица */


.waffle {
  border-collapse: collapse;
  margin-bottom: 20px;
  margin-top: 20px;
  font-size: initial;
  width: 100%;
  box-shadow: 0px 3px 1px #85CE83;
  overflow: auto;

}

.waffle td {
    padding: 11px;
    word-wrap: break-word;
}

.waffle tbody tr:hover {
    border-left: #85ce83;
    border-left-style: none;
  border-left-style: solid;
  background: #f9f9f9;
}

.waffle tbody tr:nth-child(1), 
.waffle tbody tr:nth-child(2) {
  font-weight: bold;
  font-size: initial;
}

.waffle tbody tr:last-child {
  font-weight: bold;
  font-size: initial;
}

.waffle tbody tr td:not(:first-of-type):not(:nth-of-type(2)) {
  text-align: center;
}

/* Таблица */


/*Таблица моблиьный*/
@media screen and (max-width: 600px) {

  .waffle{
  font-size: 14px; /* уменьшение размера шрифта на маленьких экранах */
  overflow: auto;
  display: block;
  width: 100%;
}
  
  .waffle td {
    padding: 5px; /* уменьшение отступов для ячеек на маленьких экранах */
  }
  
  .waffle tbody tr td:not(:first-of-type):not(:nth-of-type(2)) {
    width: auto; /* установка автоматической ширины для ячеек на маленьких экранах */
  }

/* результат  */
div.result {
  max-width: 80%;
  margin: auto;
  padding: auto;
}

}


/*Таблица моблиьный*/


/* результат  */
div.result {
  max-width: 90%;
  margin: auto;
  padding: auto;
}




/* карточка  */
  .card-header {
  padding-left: 3rem;
}
.card-title {
  margin: 10px;
  font-size: initial;
  padding: 10px;
}
  .card-block {
  margin: 20px;
  box-shadow: 0px 3px 1px #85CE83;
}
  .list-group-item {
    padding: 0.25rem;
    font-weight: lighter;
  }





/*.стили суммы*/

.list-group{
  list-style-type: none;
  padding: 0;
}

.list-group-item {
  padding: 10px;
  font-weight: lighter;
}

.list-group-item:hover{
  border-left: #85ce83;
    border-left-style: none;
  border-left-style: solid;
  background: #f9f9f9;
  padding: 15px;
}


#sum_val:before{
  content: "₴";
  position: inherit;
  font-size: small;
}




#sum_val{
  font-size: 30px;
  letter-spacing: -2px;
  display: block;
  padding: 15px;
}


#sum_val:hover{
  font-size: 35px;
  letter-spacing: -1px;
  border-left: #85ce83;
    border-left-style: none;
  border-left-style: solid;
  background: #f9f9f9;
  padding: 15px;

}


.vals_p{
  font-weight: bold;
}
/*.стили суммы*/



/*.стили изображения*/
.showprev{
  width: 50%;
}

.picture_imgs {  
    display: grid;  
    grid-gap: 5px;  
    grid-template-columns: repeat(auto-fit, minmax(33%, 1fr));
    grid-template-rows: repeat(2, 33%);  
}


.picture_imgs > div > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.amazing_prev {
  text-align: center;
  margin: 10px;
  padding: 10px;
}

.amazing_prev > img {
  width: 100%;
  object-fit: contain;
  height: 100%;
  border-radius: 35px;
  transition: all 0.5s ease-in-out;
}

/*.стили изображения*/








/*.Увеличение*/
.zoomedsrc{
  cursor: pointer;
}

.zoomedsrc {
  -webkit-filter: drop-shadow(0px 0px 0px rgba(255,255,255,0.80));
  -webkit-transition: all 0.3s linear;
  -o-transition: all 0.3s linear;
  transition: all 0.3s linear;
  
}

.zoomedsrc:hover {
  -webkit-filter: drop-shadow(0px 0px 15px rgba(45, 45, 45, 0.85));
}

.zoomedpic{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
/*  background-color: #00000085;*/
  backdrop-filter: blur(15px);
  z-index: 999;
  display: block;
  border-radius: 0px;
}
/*.Увеличение*/

/*.Скрыть цену, смету и кнопку проект при открытии*/

#generated_prev_id{
text-align: center;
padding: 10px;
}

#card_id{
  display: none;
}

#pre_price{
  display: none;
}

/* --- */




.blur_start{
  animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/*Стиль начала таблицы*/
#pre_price{
  
  text-align: center;
  padding: 5px;
  margin: 10px;
}


/* базовые стили для select */
.select_area select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0.5rem;
  border: 1px solid #ccc;
  font-size: 16px;
  line-height: 1;
  min-width: 60%;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  background-color: #fff;
  color: #444;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right center/20px;
  transition: all 0.3s ease-in-out;
  background-color: #f2f2f2;
  text-align: center;
  display: block;
  margin: auto;

  }


/* Стилизация элемента input */
.select_area input[type="text"],
input[type="number"] {
  padding: 0.5rem;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  background-color: #fff;
  color: #333;
  box-sizing: border-box;
  line-height: 1;
}

.select_area select:hover,
.select_area select:focus {
  border-color: #85ce83;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  outline: none;
}


/* Стилизация выключенного select */
.select_area select:disabled {
  background-color: #f5f5f5;
  color: #a0a0a0;
  cursor: not-allowed;
}





/*Кнопа*/

#generated_prev {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  background-color: #85ce83;
  color: #fff;
  border-radius: 0.25rem;
  border: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

#generated_prev:hover{
  background-color: #3e823c;
}

.picture_imgs{
  display: none;
}

#generated_prev_id{
  display: none;
}

#show_select_after{
  display: none;
}


/*Footer text*/

.foot_text{
  
  text-align: center;
  padding: 5px;
  margin: 10px;
}

/*Стили кнопки селект и лабел*/


.select_area label {
  font-weight: bold;
  text-align: center;
  display: block;
  width: 100%;
  margin: 5px;
  padding: 5px;
}


.select_area_div_sqm{
  text-align: center;
}



