.home-main{
    display: flex;
    flex-direction: column;
}

.hm-cont-1{
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* margin: 10px 0 20px 0; */
    margin: 10px 0 40px 0;
    display: none;
}
.hmc1-left > img{
    width: 150px;
}
.hmc1-left{
    display: flex;
    align-items: center;
    
}
.hmc1-text{
    margin: 0 0 0 16px;
    font-size: 14px;
    color: var(--gray-text-3);
    font-weight: 300;
    margin: 20px 0 0 16px;

}
.hmc1t-text{
    margin: 4px 0 0 0;
    font-size: 24px;
    color: var(--black-2);
    /* text-transform: uppercase; */
    /* font-family: 'Oswald'; */
    color: var(--blue-black);
    font-weight: 500;
}
.hm-cont-2{
    display: grid;
    grid-template-columns: 3fr 1.25fr;
    margin: 24px 0 0 0;
    margin: 12px 0 0 0;
    gap: 16px;
}
.lac-item{
    aspect-ratio: 16/9;
    background-color: var(--bg-gray-logo);

    /* background-color: var(--blue-bg); */
    /* background-color: var(--gray-text-1); */
    background-position: center ;
    background-size: 100%;
    background-repeat: no-repeat;
    border-radius: 20px;
    display: flex;
    cursor: pointer;
    transition: 0.2s ease;
}
.lac-item:hover{
    opacity: 0.95;
    /* transform: scale(1.0025); */
}
.lac-item-wrap{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 20px;
    padding: 20px;

    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%,rgba(0,0,0,0) 50%);
}

.lac-item {
    position: relative;
    overflow: hidden;
  }
  
  .lac-item-photo {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease;
    opacity: 1;
    z-index: 1;
  }
  
  .lac-item-wrap {
    position: relative; /* над фото */
    z-index: 2;
  }

  


.laci-img{
    width: 100%;
    max-width: 100vw;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
}


.hmc2-right{
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}



.hmc2r-item{

    background-position: center TOP;
    background-size: 100%;
    background-repeat: no-repeat;
    border-radius: 20px;
    transition: 0.2s ease;
}
.hmc2r-item-top{
    background-image: url('../imgs/home/mufti.jpg');
}
.hmc2-logo-img{
    width: 50px;
    height: 50px;
}
.hmc2r-item > .hmc2r-item-wrap{
    /* position: absolute; */   
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%,rgba(0,0,0,0) 80%);
}
.hmc2r-item:hover{
    opacity: 0.95;
    /* transform: scale(1.005); */
}
.hmc2-text{
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}
.hmc2-notify-main-txt{

    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.35;
}
.hmc2r-item-bottom{
    background-position: center;
    background-size: 110%;
}
.hmc2r-item-bottom > .hmc2r-item-wrap{
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%,rgba(0,0,0,0) 85%);
}

.liw-img{
 margin: 0 0 auto 0 ;   
}
.liw-img > img{
    width: 40px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.04)) opacity(0.6);

}

.hmc2-notify-txt{

    background-color: var(--halaldamu-green);
    text-transform: uppercase;
    display: inline;
    margin: 0 auto 0 0;
    color: var(--white);
    border-radius: 4px;

    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
}
.hmc2-notify-txt-2{
    background-color: var(--blue);
    transition: 0.25s ease;
    display: none;

}

.laci-bottom{
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 100px;
    margin: auto 0 0 0;
}







.ll-date{
    font-size: 12px;
    /* text-transform: uppercase; */
    font-weight: 300;
    opacity: 0.8;
    transition: 0.5s ease;
    color: var(--gray-text-light);
}
.ll-title{
    font-size: 20px;
    font-weight: 500;
    margin: 4px 0;
    transition: 0.5s ease;
}






.ll-cont-slider-dots{
    display: flex;
    /* margin: 8px 0 -4px 0; */
    margin: 12px 0 0px 0;
}
.llcsd-cont{
    display: flex;
    background-color: rgba(255,255,255,0.5);
    padding: 0 4px;
    border-radius: 10px;

}
.llcsdc-item{
    width: 4px;
    height: 4px;
    margin: 3px 4px;
    border-radius: 4px;
    background-color: var(--blue);
    background-color: var(--gray-text-3);
}
.llcsdc-item.llcsdc-item-chosen{
    background-color: var(--blue);
}
.lacib-right{
    display: flex;
    align-items: center;
    gap: 8px;
}
.lacibr-item{
    padding: 10px;
    width: 10px;box-sizing: content-box;
    height: 10px;
    color: var(--gray-text-3);
    border-radius: 6px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

}
.lacibr-item:hover{
    color: var(--blue);
}












.home-header-conts{
    font-size: 24px;
    font-weight: 500;
    margin: 16px 0 20px;
    color: var(--black-2);
}
.home-header-conts-topmargin{
    margin-top: 32px;
}
.hmc-services-cont{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 0 0 32px 0;
}
.hsc-item{
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: var(--white);
    /* background-color: var(--blue-bg-light); */
    border-radius: 16px;
    border: 1px solid var(--white);
    padding: 16px;
    color: var(--black-2);
    cursor: pointer;
    transition: 0.2s ease;
}
.hsc-item:hover{
    color: var(--blue-more);
    border: 1px solid var(--gray-line-light);
    opacity: 0.9;
}
.hsc-item > img{
    width: 40px;
    height: 40px;
}
.hsci-text{
    font-size: 16px;
    font-weight: 500;

    padding: 2px 0 8px 0;
    border-bottom: 1px solid var(--gray-line-light);
}
.hsci-text-short{
    font-size: 12px;
    font-weight: 400;
    color: var(--blue-more);
    color: var(--gray-text-2);
    line-height: 1.35;
}

.gray-main{
    background-color: var(--main-gray-bg);
    margin: 24px 0;
}
.gray-main > .main{
    min-height: 0;
    padding: 16px 0 40px 0;
}





.home-header-conts-elems{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.carousel-grid-container {
    position: relative;
    overflow: hidden;
  }
  .carousel-grid-track {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(12, calc(100%/4));
margin: 0 -8px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .carousel-grid-track::-webkit-scrollbar {
    display: none;
  }
  .carousel-grid-item {
    scroll-snap-align: start;
    user-select: none;
    padding: 0 8px;

    transition: 0.2s ease;
    cursor: pointer;

  }
  .carousel-grid-item  > img{
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    object-fit: cover;
    object-position: center;
  }

  .carousel-grid-item-other{
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .carousel-grid-item-other>img{
    width: 60%;
    aspect-ratio: 1/1;
    border-radius: 0;
    padding: 10%;
  }
  .pi-title{
    font-size: 14px;
    font-weight: 500;
    color: var(--black-2);
    transition: 0.2s ease;
}

.pi-info{
    padding: 6px 10px;
}
.pii-info{
    display: flex;
    align-items: center;
    margin: 8px 0 8px 0;
    gap: 16px;
}
.pii-info-featured{
    margin: 8px 0 0 0;
}

.pi-date{
    display: flex;
    align-items: center;
    color: var(--gray-text-2);
    font-size: 12px;
    gap: 4px;
}

.pi-date > svg{
    width: 14px;
    height: 14px;
    color: var(--gray-text-1);
}

.carousel-grid-item:hover{
    opacity: 0.9;
}
.carousel-grid-item:hover .pi-title{
    color: var(--blue-more);
    }
    










  .carousel-grid-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
  }
  .carousel-grid-nav .carousel-btn {
    color: var(--blue-more);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: none;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--gray-line);
    transition: 0.3s;
  }
  .carousel-btn > svg{
    width: 16px;
    height: 16px;
    fill: var(--blue-more);
  }
  .carousel-btn:hover {
    border: 1px solid var(--blue);
  }
  @media (max-width:756px) {
    /* .carousel-grid-nav { display: none; } */
  }














.home-grid-3-cont{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* grid-template-columns: 1fr 1fr ; */
    gap: 16px;
}
.hg3-item{
    background-color: var(--white);
    padding: 12px;
    border-radius: 20px;
    /* box-shadow: 0 0 12px rgba(0,0,0,0.075); */
    /* border: 1px solid var(--gray-line-light); */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: 0.2s ease;
    color: var(--black-2s);
}
.hg3-item:hover{
    opacity: 0.9;
    color: var(--blue-more);
}
.hg3-item:hover {
    opacity: 0.9;
}
.hg3-item > img{
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    object-fit: cover;
    /* object-position: center calc(40%); */
}
.hg3i-head{
    font-size: 20px;
    font-weight: 500;
    padding: 12px 8px 4px 8px;
    margin: 0 0 auto 0;
}
.hg3i-bottom{
    margin: 8px 4px 4px 4px;
    padding:12px 0 0 0;
    border-top: 1px solid var(--gray-line-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hg3ib-left{
    font-size: 10px;
    background-color: var(--blue-bg-light);
    background-color: var(--blue-bg);
    font-weight: 500;
    border-radius: 4px;
    padding: 4px 8px;
    color: var(--blue-more);
    
    
    background-color: var(--gray-bg-item);
    color: var(--black-2);
}
.hg3ib-right{
    padding: 0 4px 0 0 ;
    color: var(--gray-text-1);
}
.hg3ib-right > svg{
    width: 10px;
    height: 10px;
}






.home-info-block{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 16px;
    margin: 0 0  48px 0;
    background-color: var(--white);
    border-radius: 24px;
    padding: 20px;
}
.home-info-block-2{
    margin: 20px 0;
    /* border: 1px solid var(--gray-line-light); */
    box-shadow: 0 0 24px rgba(0,0,0,0.065);
}
.hib-right > img{
    width: 100%;
    aspect-ratio: 16/8;
    object-fit: cover;
    border-radius: 12px;
    object-position: center;
}


.hibl-head{
    font-size: 24px;
    font-weight: 500;
    margin: 0 12px;
}
.hibl-text{
    font-size: 12px;
    font-weight: 300;
    color: var(--gray-text-2);
    margin: 12px 24px 16px 12px;
    
}
.hibl-btns{
    display: flex;
    margin: 0 12px;
    gap: 12px;
}
.hiblb-item{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--blue-bg);
    color: var(--blue-more);
    font-size: 12px;
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid var(--blue-bg);
    transition: 0.2s ease;
}
.hiblb-item:hover{
    border: 1px solid var(--blue);
}
.hiblb-item-blue{
    background-color: var(--blue);
    color: var(--white);
}
.hiblb-item > svg{
    width: 16px;
    height: 16px;
}








@media (max-width: 1080px) {

    .carousel-grid-track {
        grid-template-columns: repeat(12, calc(100%/3));
    }
    .hmc-services-cont{
        grid-template-columns: 1fr 1fr;
    }
    .home-info-block{
        grid-template-columns: 1fr;
    }
    .hibl-head{
        margin-top: 12px;
    }
    .hibl-btns{
        margin-bottom: 12px;
    }
.gray-main{
    margin-top: 0;
}

.hm-cont-2{
    gap: 16px;
    grid-template-columns: 1fr;
}
.hmc2-right {
    gap: 16px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows:  1fr;
}

.hm-cont-2{
    margin-bottom: 8px;
}
.hmc2r-item{
    aspect-ratio: 16/11;

}
}




@media (max-width: 920px) {

    .carousel-grid-track {
        grid-template-columns: repeat(12, calc(100%/2));
    }
    .home-grid-3-cont{
        grid-template-columns: 1fr 1fr;
    }
    .laci-bottom{
        gap: 30px;
    }
}

@media (max-width: 920px) {

    .carousel-grid-track {
        grid-template-columns: repeat(12, calc(100%/2));
    }
    .carousel-grid-container > .carousel-grid-track-logos{
        grid-template-columns: repeat(12, calc(100%/2));

    }
}
@media (max-width: 610px) {

    .carousel-grid-track {
        grid-template-columns: repeat(12, calc(100%/1));
    }
.hmc-services-cont{
    gap: 8px;
}
.home-grid-3-cont{
    gap: 8px;
}
.hg3-item{
    padding: 6px;
}
.hibl-head{
    margin: 4px;
}
.hibl-text{
    margin: 8px 4px;
}
.hibl-btns{
    margin: 4px ;
}
.hg3i-head{
    font-size: 16px;
}

.home-header-conts-topmargin{
    margin-top: 20px;
}
.home-info-block{
    margin-bottom: 24px;
}
.hmc-services-cont{
    padding-bottom: 24px;
}
.gray-main > .main{
    padding: 0 0 8px 0;
}
.gray-main{
    margin-bottom: 0;
}
.home-info-block-2{
    margin-top: 0;
}
.carousel-grid-item-other>img{
    padding: 0;
}
.carousel-grid-track-logos{
    margin: 24px  0;
}

.home-header-conts{
    margin: 12px 0 ;
    font-size: 20px;
}
.home-header-conts-elems{
    margin-top: 16px;
}

}



@media (max-width: 456px) {
    .hg3i-head{
        font-size: 14px;
        padding:8px 2px 0 2px;
    }
    .hg3i-bottom{
        padding: 4px 0 0 0;
        margin: 4px 2px 2px 2px;
        border: none;
    }
    .hg3ib-left{
        font-size: 9px;
        border-radius: 8px;
        color: var(--blue-more);
    }
    .hg3-item{
        border-radius: 16px;
    }
    .hg3-item > img{
        border-radius: 10px;
    }
    .hibl-head{
        font-size: 20px;
    }
    .hsci-text{
        font-size: 12px;
    }
    .hsci-text-short{
        font-size: 10px;
    }
    .hsc-item{
        padding: 12px;
    }
}


@media (max-width: 350px) {

    .hmc-services-cont{
        grid-template-columns: 1fr;
    }
}



@media (max-width:710px) {
    .hm-cont-2{
        margin: 0;
    }
    .last-articles-cont{
        margin: -10px -16px 0 -16px;
        
    }
    .laci-bottom{

    }
    .lacib-right{
        display: none;
    }
    .lac-item{
        border-radius: 0;
        aspect-ratio: 4/3;
    }
    .lac-item-wrap{
        border-radius: 0;
    }
    .ll-title{
        font-size: 14px;
    }
    .hmc2-notify-txt-2{
font-size: 8px;
    }
    .laci-bottom{
        margin: auto 0 0 0;
    }
    .ll-date{
        font-size: 10px;

    }
    .ll-cont-slider-dots{
        /* margin:  0 0 -30px 0; */
    }
    .hmc2r-item{
        border-radius: 16px;
    }
    .hmc2r-item > .hmc2r-item-wrap{
        border-radius: 16px;
        padding: 16px;
    }
}

@media (max-width:550px) {
    
    .last-articles-cont{
        margin: -10px -12px 0 -12px;
        
    }

    .lac-item-wrap{
        padding: 16px ;
    }
    .ll-cont-slider-dots{
        margin: 8px 0 0 0;
    }
}

@media (max-width:610px) {
    .hm-cont-2{
        gap: 16px;
    }
    .hmc2-right {
        gap: 8px;
    }
    .hm-cont-2{
        margin-bottom: 8px;
    }
    .hmc2r-item{
        aspect-ratio: 4/3;
    }
    .hmc2r-item{
        border-radius: 12px;
    }
    .hmc2r-item > .hmc2r-item-wrap{
        border-radius: 12px;
        padding: 12px;
    }
    .hmc2-logo-img{
        width: 30px;
        height: 30px;
    }
    .hmc2-text{
        font-size: 12px;
    }
    .hmc2-notify-txt-3{
        /* display: none; */
        font-size: 8px;
        padding: 2px 4px;
    }
    .hmc2-notify-main-txt{
        margin: auto 0 0 0;
        font-size: 10px;
    }
}








.home-featured-cont {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 24px;

  }
  /* по умолчанию скрываем 4-й */
  .home-featured-cont .home-featured-item:nth-child(4) {
    display: none;
  }


  .home-featured-item{
    color: var(--black-2);
    cursor: pointer;
    transition: 0.2s ease;
  }
  .home-featured-item:hover{
    opacity: 0.9;
  }

  
  .home-featured-item:hover .hfi-title{
    color: var(--blue-more);
  }
  .hfi-photo{
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    object-position: center;
  }

  .hfi-info-cont{
    padding: 8px;
}
.hfi-title{
    font-size: 16px;
    font-weight: 500;
    color: var(--black-2);
    transition: 0.2s ease;
}

  
  /* <= 910px: две колонки, показываем все 4 */
  @media (max-width: 910px) {
    .home-featured-cont {
      grid-template-columns: repeat(2, 1fr);

    }
    .home-featured-cont .home-featured-item:nth-child(4) {
      display: block;
    }
    .hfi-title{
        font-size: 14px;
    }
    .pii-info-featured{
        font-size: 12px;
        margin: 4px 0 0 0;
    }
  } 
  
  /* <= 710px: одна колонка, снова скрываем 4-й */
  @media (max-width: 710px) {
    .home-featured-cont {
      grid-template-columns: 1fr;

      padding: 12px;
      border-radius: 16px;
    }
    .hfi-photo{
      border-radius: 8px;
    }
    .home-featured-cont .home-featured-item:nth-child(4) {
      display: none;
    }
  }
  @media (max-width: 610px) {
    .home-featured-cont{
        margin:  0 0 32px 0 ;
    }
    .pii-info-featured{
        font-size: 10px;
    }

  }



  





