.square-pictures-section .square-title {
  font-size: 26px; 
  font-weight: 400;
  line-height: 47.44px;
  text-align: right;
  cursor: default;
}
.square-pictures-section .square-titlle {
  font-size: 42px;
  font-weight: 800;
  line-height: 62px;
  text-align: right;
   cursor: default;
}
.square-pictures-section .square-desc {
  font-size: 28px;
  font-weight: 400;
  line-height: 46px;
  text-align: right;
}
.image-content img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
}  

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px;
   margin-bottom: 60px;
   margin-top:60px;
}


.sq-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;  
  border-radius: 8px;
}
 .text-content {
  flex: 1;
  position: absolute;
  top: 50%; 
  right: 10%;
  transform: translateY(-50%);
  text-align: right;
  z-index: 2;
  width: fit-content;  
}
.sq-cat-title {
    color: var(--warning-color,#FFCF57);
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
}

.sq-text-title {
  font-size: 25px;
  font-weight: 700;
  line-height: 39.2px;
}

.sq-desc-title {
  color: (var--secondary-color-alt0,#6B6B6B);
  font-size: 17px;
  font-weight: 500;
  line-height: 32px;
}

.sq-buttoon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 158px;
  height: 42px;
  padding: 10px 41px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 26.6px;
  text-align: center;
  margin-top: 10px;
  text-decoration: none;
  background-color: var( --primary-color,#6dc750);
 color: var(--white-color,#FFFFFF);
}
.sq-buttoon:hover {opacity: .8 ;}
 .sq-img {
 position: relative;  
  width: fit-content;
  max-height: 300px;          
  overflow: hidden;   
  display: flex;
  justify-content: flex-end; 
  align-items: center;
   border-radius:8px;
   transition: transform 0.3s ease-in-out; 
}

.sq-img img {
  object-fit: cover;
  display: block;
  width: 100%;
  height: auto;
}

.grid-item .offer {
  left: 20%;
  top: 22%;
  position: absolute;
  transform: translate(-50%, -50%); 
  display: flex;
  align-items: center;
  height: fit-content;
   width: fit-content;
}

.grid-item .offer img {
  max-width: 77px; 
  max-height: 77px;
  margin-right: 6px;
  transition: transform 4s ease-in-out; 

}
.sq-img:hover .rotating-image {
  transform: rotate(360deg); 
}

.rotating-image {
  transition: transform 0.4s ease-in-out; 
}


.grid-item .offer span {
  color: var(--white-color);
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  position: absolute;
  top: 29%;
  right: 26%;
}
.grid-item .offer .icon_off {
  color: var(--white-color);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  position: absolute;
  top: 48%;
  right: 23%;
}
.sq-gridss:has(.grid-container.another-style) {
  max-width:90%;
  align-items: center;
  display: flex;
  justify-content: center;
  
}
 
    .grid-container.another-style {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
    .grid-container.another-style .sq-img{
      border:none;
      padding:0;
    }
    .grid-container.another-style .text-content{
      right:4%   
    }
      @media (max-width:1024px) {
      .grid-container.another-style {
        grid-template-columns: repeat(2, 1fr);
        
      }
      
    } 
   
@media screen and (max-width: 950px){
  .grid-container.another-style {
        grid-template-columns: repeat(2, 1fr);
        
      }
  .square-pictures-section .square-title {
    font-size: 23px;
    line-height: 47.44px;
}
.square-pictures-section .square-titlle {
    font-size: 26px;
    line-height: 50px;

}
.square-pictures-section .square-desc {
    font-size: 17px;
    line-height: 46px;
   
}
.sq-cat-title {
    font-size: 18px;
    line-height: 28px;
}
.sq-text-title {
    font-size: 22px;
    line-height: 21.2px;
}
.sq-desc-title {
    font-size: 17px;
    line-height: 32px;
}
.sq-buttoon {  
    width: 130px;
    font-size: 14px;}
   .grid-item .offer img {
    max-width: 60px;
    max-height: 60px;}
   .grid-item .offer span {
    font-size: 18px;
    line-height: 16px;}}
    @media screen and (max-width: 767px) {
       .grid-container.another-style {
        grid-template-columns: repeat(1, 1fr);
        
      }
      .sq-cat-title{
        font-size: 22px;
        line-height: 35px;
      }
      .sq-desc-title {
        font-size: 20px;
        line-height: 32px;
    }   
    .sq-text-title {
      font-size: 30px;
      line-height: 50px;
  }
  .sq-buttoon {
    width: 180px;
    font-size: 16px;
}
      .grid-container{
          grid-template-columns: repeat(1, 1fr);
      }}
    @media screen and (max-width:500px){
      .sq-gridss:has(.grid-container.another-style){
        max-width:100% !important;
      }
          .text-content{
            right:7%;
    }
    .sq-img{
      padding:10px;
    }
      .sq-cat-title {
        font-size: 15.24px;
        font-weight: 500;
        line-height: 24.38px;
        text-align: right;
    }
        .sq-text-title {
          font-size: 21.33px;
          font-weight: 700;
          line-height: 29.87px;
          text-align: right;
    }
    .grid-container.another-style .text-content {
     right: 6% !important;
  }
    .sq-desc-title {
    font-size: 15.24px;
    font-weight: 500;
    line-height: 24.38px;
    text-align: right;
    }
   .grid-item .offer span {
        font-size:14px;
        line-height: 13px;
      }
      .grid-item .offer img {
        max-width: 55px;
        max-height: 55px;}
        .sq-buttoon {
          width: 120.39px;
            height: 32px;
            padding: 7.62px 31.24px 7.62px 31.24px;
            border-radius: 3.05px ;
            font-size: 12.19px;
            font-weight: 700;
            line-height: 19.51px;
            text-align: center;

       }
     
     }
