.training_videos {
    padding: 0 30px 60px;
}

.faq_item_main_videos {
    display: grid;
    gap: 20px; /* Отступ между элементами */
  }
  
  /* Десктопы - 4 колонки */
  @media (min-width: 1900px) {
    .faq_item_main_videos {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  /* Маленькие десктопы (меньше 1900px) - 3 колонки */
  @media (min-width: 1200px) and (max-width: 1899px) {
    .faq_item_main_videos {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  /* Планшеты - 2 колонки */
  @media (min-width: 768px) and (max-width: 1199px) {
    .faq_item_main_videos {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* Мобильные устройства - 1 колонка */
  @media (max-width: 767px) {
    .faq_item_main_videos {
      grid-template-columns: 1fr;
    }
    .training_videos {
        padding: 0 15px 30px;
    }
  }
  .faq_item.active .faq_item_main {
    padding: 0;
    margin-top: 10px;
    border: none;
  }
  .faq_item_head_title {
    margin: 0;
    font-weight: 600;
    font-size: 24px;
    line-height: 24px;
    color: #005D28;
  }
  .faq_item_main_video {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .faq_item_main_video_title {
    max-width: 90%;
    width: 100%;
    min-height: 70px;
    padding-bottom: 5px;
    font-weight: 600;
    font-size: 18px;
    line-height: 20px;
    color: #1D1D1D;

    /* Свойства для ограничения текста 3 строками */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Количество строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    transition: .3s;
  }

  .faq_item_main_video:hover .faq_item_main_video_title {
    color: #005D28;
  }

  .faq_item_main_video_placeholder {
    border-radius: 12px;
  }

  @media (max-width: 1600px) {
    .faq_item_head_title {
        min-height: 100%;
        font-size: 20px;
    }
    .faq_item_main_video_title {
        font-size: 16px;
        line-height: 18px;
    }
  }

  @media (max-width: 767px) {
    .faq_item_head_title {
        min-height: 100%;
        font-size: 18px;
    }
    .faq_item_main_video_title {
        max-width: 100%;
        font-size: 14px;
        line-height: 18px;
    }
  }



  .video_modal {
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .video_modal_content {
    position: relative;
    padding: 0;
    max-width: 90%;
    max-height: 90%;
  }
  
  .video_modal_iframe_container iframe {
    width: 100%;
    height: 100%;
  }
  
  .video_modal_close {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #fff;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    line-height: 1;
    z-index: 10000;
  }
  