/* Общие стили страницы О нас */
.about-page {
    padding: 20px 15px;
    background-color: #f8f9fa;
  }
  
  /* Главный баннер */
  .about-hero {
    background: linear-gradient(135deg, #2d113f, #4a1c68);
    color: #ffffff;
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .about-hero h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #ffd700;
  }
  
  .about-hero p {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
  }
  
  /* Информация о миссии */
  .about-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
  }
  
  .info-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 12px;
    border-left: 5px solid #d4af37;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .info-card h3 {
    margin-top: 0;
    color: #2d113f;
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .info-card p {
    color: #444;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  /* Блок статистики */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }
  
  .stat-card {
    background: #ffffff;
    padding: 18px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }
  
  .stat-num {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #2d113f;
  }
  
  .stat-desc {
    font-size: 13px;
    color: #666;
  }
  
  /* Секционные заголовки */
  .section-block {
    margin-bottom: 40px;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .section-header h3 {
    font-size: 22px;
    color: #2d113f;
    margin: 8px 0 5px 0;
  }
  
  .section-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
  }
  
  .gold-badge {
    background: #ffd700;
    color: #2d113f;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
  }
  
  /* Карточки людей (Преподаватели и Ученики) */
  .person-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
  }
  
  .person-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  }
  
  .person-img-box {
    position: relative;
    width: 100%;
    height: 200px;
    background: #2d113f;
    overflow: hidden;
  }
  
  .person-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .person-details {
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
  }
  
  .person-details h4 {
    margin: 0;
    font-size: 16px;
    color: #1a1a1a;
  }
  
  .person-details p {
    margin: 0;
    font-size: 13px;
    color: #666;
  }
  
  /* Сетка преподавателей */
  .teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
  
  .role-badge {
    background: #f0e6f5;
    color: #2d113f;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    align-self: center;
  }
  
  /* Сетка учеников года */
  .students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
  }
  
  .student-card .person-img-box {
    height: 180px;
  }
  
  .rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ffd700;
    color: #2d113f;
    font-weight: bold;
    font-size: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .course-tag {
    background: #2d113f;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    align-self: center;
  }
  
  .achievement {
    font-weight: 600;
    color: #d4af37 !important;
    font-size: 12px !important;
  }
  
  
  /* =========================================================
     НОВЫЙ УДОБНЫЙ СЛАЙДЕР С МОТКЕЙ ПАЛЬЦЕМ И СТРЕЛКАМИ
     ========================================================= */
  
  .slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .photo-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 5px;
    width: 100%;
    
    /* Полностью скрываем полосу прокрутки */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE / Edge */
    touch-action: pan-x; /* Плавный свайп пальцем на смартфонах */
    cursor: grab;
  }
  
  /* Скрываем полосу прокрутки в Chrome / Safari / Opera */
  .photo-slider::-webkit-scrollbar {
    display: none;
  }
  
  .photo-slider.active {
    cursor: grabbing;
  }
  
  /* Карточка в слайдере */
  .slider-card {
    flex: 0 0 290px;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    user-select: none;
  }
  
  .slider-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    pointer-events: none; /* Чтобы картинка не мешала свайпу */
  }
  
  .card-caption {
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #2d113f;
    text-align: center;
    background: #fff;
    border-top: 1px solid #f0f0f0;
  }
  
  /* Кнопки-стрелки слева и справа */
  .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(45, 17, 63, 0.85);
    color: #ffd700;
    border: 2px solid #ffd700;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
  }
  
  .slider-btn:hover {
    background: #2d113f;
    transform: translateY(-50%) scale(1.1);
  }
  
  .prev-btn {
    left: 5px;
  }
  
  .next-btn {
    right: 5px;
  }
  
  /* Для мобильных экранов делаем стрелки компактнее */
  @media (max-width: 600px) {
    .slider-btn {
      width: 36px;
      height: 36px;
      font-size: 16px;
    }
    .slider-card {
      flex: 0 0 260px;
    }
  }