.master-events-div {
  grid-template-columns: repeat(3, 1fr) !important; 
}

.item1 {
  grid-row: span 2 !important;
}

.master-photo-div {
  border-radius: 12px;
  border-width: 0px;
  height: 600px !important;
  width: auto !important;
  min-width: auto !important;
  max-width: 300PX !important;
  min-height: auto !important;
  max-height: 100% !important;
  display: flex;
}

.master-photo-div {
  flex-direction: column;
}

.master-photo-div-practice {
  border-radius: 12px;
  border-width: 0px;
  height: 600px !important;
  width: auto !important;
  min-width: auto !important;
  max-width: 300PX !important;
  min-height: auto !important;
  max-height: 100% !important;
  display: flex;
}

.master-photo-div-practice {
  flex-direction: column;
}

.more-pr {
  width: 300px;
}

.pr-card-video-conteiner {
  height: 100%;

}
.practice-video-card  {
  box-shadow: none;
}

.pr-type-img-div .pr-card-video-conteiner {
  min-height: 100%;
  width: 100%;
  align-self: stretch;
}

.pr-type-img-div .practice-video-card {
  height: 100%;
  min-height: 100%;
  min-width: 0;
}


/* masters  */

.masters-container {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.masters-header {
  color: #000;
  font-family: Ledger;
  font-size: 64px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.filter-panel {
  background: #F5F5F5;
  padding-top: 30px;
  margin-bottom: 40px;
  background: transparent;
  display: flex;
  box-shadow: none;
}

.filter-row {
  display: flex;
  padding-top: 20px;
  gap: 20px;
}

  .filter-group {
  position: relative;
  width: 200px;
  margin-bottom: 15px;
}

.filter-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 22px;
  border: 1px solid #909785;
  cursor: pointer;
  display: flex;
  height: 44px;
  padding: 4px 24px;
  align-items: center;
  gap: 8px;
  color: #909785;
  font-family: "AA Stetica";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  background: #F5F5F5;
  }

.filter-checkbox-group {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  background: #F5F5F5;
  border: 1px solid #909785;
  border-radius: 6px;
  padding: 10px;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.filter-group.open .filter-checkbox-group {
  display: block;
}

/* Кастомные чекбоксы */
.filter-checkbox-group {
  max-height: 250px;
  overflow-y: auto;
  border: 2px solid #909785;
  border-radius: 8px;
  padding: 10px;
  background: #fafafa;
}

.filter-group.open .filter-icon {
  transform: rotate(180deg);
}

.filter-checkbox-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 0;
}

.filter-checkbox-item:last-child {
  margin-bottom: 0;
}

.filter-checkbox {
  margin-right: 10px;
  width: 16px;
  height: 16px;
  accent-color: #909785;
}

.filter-checkbox-label {
  font-size: 14px;
  color: black;
  cursor: pointer;
  user-select: none;
}

.filter-checkbox-label:hover {
  color: #909785;
}

.masters-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  row-gap: 48px;
}

.masters-grid .master-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.master-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;    
  object-position: center;
}

.master-photo-div-round {
  width: 205px;         
  height: 205px;
  border-radius: 50%;   
  overflow: hidden;     
  display: flex;
  align-items: center;
  justify-content: center;
}

.master-name {
  color: #000;
  text-align: center;
  font-family: Ledger;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.master-card-div {
  display: flex;
  min-width: 200px;
  max-width: 265px;
  padding: 11px 14px 28px 14px;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-radius: 12px;
}

.hidden {
  display: none !important;
}

.no-results {
  text-align: center;
  color: #666;
  font-size: 18px;
  margin: 50px 0;
}

.loading {
  text-align: center;
  padding: 50px;
  color: #666;
}

#pageNumbers {
  display: flex;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  aspect-ratio: 1/1;
  border-radius: 4px;
  background: #ECE9E7;
  border: none;
  color: var(--Global-Black, #000);
  font-family: "AA Stetica";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: capitalize;
}

#pageNumbers:hover {
  background: #C58C78 !important;
} 

/* .active {
  background: #909785 !important;
} */

.pagination {
  align-self: flex-end;
  gap: 10px;
}

.filter-counter {
  background-color: #909785;
  width: 20px;
  height: 20px;
  color: #fff;
  text-align: center;
  border-radius: 5px;
}

.prbtn {
  width: 200px;
  display: flex;
}

.collect-btn-div {
  display: flex;
  justify-content: center !important;
  width: 100%;
  gap: 12px;
  align-content: center;
}

.send-rev-sec {
  margin-bottom: 72px;
}


@media (max-width: 767px) {

  .master-div {
      flex-direction: column-reverse;
  }

  .master-photo-div-round {
      justify-content: flex-start;
      height: auto !important;
  }

  .masters-grid {
      display: flex;
      flex-direction: column;
  }

  .pagination {
      align-self: center;
  }

  .master-card-div {
      align-self: center;
      flex-direction: row;
      max-width: 100%;
      max-height: 100%;
  }

  .filter-row {
      display: flex;
      flex-direction: column;
      width: 100%;
  }

  .filter-group {
      width: 100%;
      margin-bottom: 0%;
  }

  .master-photo-div-round {
      width: 140px;
      height: 140px;
  }

  .collect-btn-div {
      flex-direction: column;
  }

  .prbtn {
      width: 100%;
  }

  .master-photo-div{
      height: auto !important;
  }

  .master-name {
    font-size: 20px;
  }  

  .masters-header {
    font-size: 54px;
  }  

}

@media (min-width: 768px) and (max-width: 1499px) {
  .masters-grid {
      grid-template-columns: repeat(3, 1fr);  
  }

  .pagination {
      align-self: center;
  }

  .master-photo-div{
      min-width: 250px !important;

  }
  .mobile-hidd {
      display: flex;
  }


  .prbtn {
      height: auto;
  }
}

@media (min-width: 1201px) and (max-width: 1500px) {
.section_standart {
    margin-top: 200px!important;
}
}


@media (min-width: 1500px) and (max-width: 1700px) {
  .masters-grid {
      grid-template-columns: repeat(5, 1fr);  
  }
}