.dnone { display: none }
.squares-cards button {
  border: none;
  background: none;
  transition: 0.4s;
  cursor: pointer;
  opacity: 0.6;
  display: none;
}

.squares-cards button:hover {
  opacity: 1;
}

.squares-cards svg {
  width: 20px;
}
.squares-cards-box {
  display: flex;
  justify-content: space-around;
  margin: 0 -10px;
  height: 500px;
}

/*.down .squares-cards{
width: 100% !important;
}*/
@media (min-width: 1281px) {

  .squares-cards .overflow {
  width: calc(20% - 20px);
}
.squares-cards .overflow.qtt3 {
  width: calc(33% - 20px);
}

.squares-cards .overflow.qtt4 {
  width: calc(25% - 20px);
}

.squares-cards .overflow.qtt6 {
  width: calc(16% - 20px);
}

}

.squares-cards .overflow {
  height: 350px;
  overflow: hidden;
  transition: 0.4s;
  margin: 0 10px;
}

.squares-cards .card {
  /*width: calc(20% - 20px);*/
  width: 100%;
  text-align: center;
  padding: 15px;
  /*height: 350px;*/
  height: 100%;
  transition: 0.4s;
  position: relative;
  cursor: pointer;
  border-radius: 4px;
}

.squares-cards .overflow:hover {
  height: 500px;
}

.squares-cards .overflow:hover .card {
  transform: scale(1.1);
}

.whitebox {
  position: absolute;
  top: 290px;
  padding: 10px;
  background: #fff;
  width: 85%;
  left: 7.5%;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .15);
  min-height: 150px;
}

a .whitebox, a:hover .whitebox {
  color: #6a6d77;
}


.squares-cards h3 {
  margin: 0;
  padding: 5px;
}

@media (max-width: 1280px) {
    .squares-cards {
    position: relative;
  }
  .squares-cards button {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .squares-cards button:first-child {
    left: 0;
    right: auto;
  }
  .squares-cards {
    width: calc(100vw - 80px);
    overflow-x: hidden;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  .squares-cards-box {
    flex-wrap: wrap;
    height: 500px;
  }
  .slider-menu {
    display: none;
    opacity: 0;
    transition: 0.4s;
  }

  .slider-menu.menu-active {
    display: block;
    opacity: 1;
    animation: opacityFromZero 0.6s ease-in-out;
  }
  
  .squares-cards .overflow {
    height: 500px;
    margin-bottom: 0;
    width: 290px;
  }
  .squares-cards .overflow:hover {
    height: 500px;
    margin-bottom: 0;
  }
  
  .whitebox {
    top: 290px;
  }
}

/*@media (max-width: 999px) {
  .squares-cards-box h3 {
    padding: 0;
    font-size: 20px;
    line-height: 32px;
  }
}*/


@media (max-width: 767px) {
  .squares-cards-box {
    /*flex-direction: column;
    height: 300px;
    align-items: center;
    gap: 10px;*/
    min-width: 850px;
  }
  
  .squares-cards-box h3 {
    /*font-size: 14px;*/
    line-height: 33px;
  }
  
   /* .squares-cards .overflow {
    width: calc(100% - 20px);
  }
  .squares-cards .overflow:hover {
    width: calc(100% - 20px);
  }*/
}

@media (max-width: 450px) {
  .squares-cards .overflow {
    width: 300px;
  }
  .squares-cards button:first-child {
    display: none;
  }
  /*.squares-cards-box h3 {
    /*font-size: 10px;*/
    /*line-height: 45px;
  }
  
  .squares-cards-box .whitebox {
    font-size: 15px;
    padding: 0;
  }
}*/

@keyframes opacityFromZero {
  0% { opacity: 0 }
  100% { opacity: 1 }
}