/* ===== СТРАНИЦА "НАШ ФЛОТ" ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Comfortaa', cursive;
  background: #F5F7FA;
  overflow-x: hidden;
  width: 100%;
}

.fleet-overview-page {
  flex: 1 0 auto;
  padding: 40px 0 60px;
  background: #F5F7FA;
  width: 100%;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

/* ===== ЗАГОЛОВОК ===== */
.fleet-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #1E3A8A;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.page-title i {
  color: #F59E0B;
  font-size: 32px;
}

.page-description {
  color: #6B7280;
  font-size: 16px;
}

/* ===== СТАТИСТИКА ===== */
.stats-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat-card {
  text-align: center;
  background: white;
  padding: 15px 25px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid #E5E7EB;
  min-width: 120px;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #1E3A8A;
}

.stat-label {
  font-size: 11px;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ===== ФИЛЬТРЫ ===== */
.filters-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-size: 14px;
  font-weight: 600;
  color: #1E3A8A;
}

.filter-select, .filter-input {
  padding: 8px 15px;
  border: 2px solid #E5E7EB;
  border-radius: 30px;
  font-family: 'Comfortaa', cursive;
  font-size: 14px;
  background: white;
  transition: all 0.3s ease;
}

.filter-select:focus, .filter-input:focus {
  outline: none;
  border-color: #F59E0B;
}

.filter-input {
  min-width: 200px;
}

/* ===== ГРУППЫ ТИПОВ ВС ===== */
.aircraft-type-group {
  background: white;
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid #E5E7EB;
}

.type-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F59E0B;
  flex-wrap: wrap;
  gap: 10px;
}

.type-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.type-icao-link {
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease;
}

.type-icao-link:hover {
  transform: translateY(-2px);
}

.type-icao-link:hover .type-icao {
  background: #F59E0B;
  color: #1E3A8A;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.type-icao {
  display: inline-block;
  background: #1E3A8A;
  color: white;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  font-family: monospace;
  transition: all 0.2s ease;
}

.type-name {
  font-size: 20px;
  font-weight: 700;
  color: #1F2937;
}

.type-count {
  background: #F3F4F6;
  color: #1E3A8A;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
}

/* ===== СЕТКА САМОЛЕТОВ ===== */
.aircraft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

/* ===== КАРТОЧКА САМОЛЕТА - УЛУЧШЕННАЯ ===== */
.aircraft-card {
  background: #F8FAFC;
  border-radius: 20px;
  padding: 18px;
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aircraft-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  border-color: #F59E0B;
  background: white;
}

/* Регистрационный номер */
.aircraft-reg {
  font-family: monospace;
  font-weight: 800;
  font-size: 18px;
  color: #1E3A8A;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 2px solid #E5E7EB;
}

.aircraft-reg i {
  color: #F59E0B;
  font-size: 18px;
}

/* Именной борт */
.special-badge {
  background: linear-gradient(135deg, #FEF3E8 0%, #FFF5EC 100%);
  color: #F59E0B;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  border: 1px solid #FDE68A;
}

.special-badge i {
  font-size: 11px;
}

/* Подразделение */
.aircraft-department {
  font-size: 13px;
  color: #4B5563;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F3F4F6;
  padding: 6px 12px;
  border-radius: 12px;
}

.aircraft-department i {
  color: #F59E0B;
  font-size: 13px;
}

/* Конфигурация салона */
.aircraft-config {
  background: white;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid #E5E7EB;
}

.seat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.seat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
}

.seat-badge.first {
  background: #F1F0FF;
  color: #8B5CF6;
  border: 1px solid #DDD6FE;
}

.seat-badge.business {
  background: #FEF3E8;
  color: #F59E0B;
  border: 1px solid #FDE68A;
}

.seat-badge.economy {
  background: #EFF6FF;
  color: #1E3A8A;
  border: 1px solid #BFDBFE;
}

.cargo-badge {
  background: #F3F4F6;
  color: #6B7280;
  padding: 5px 12px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cargo-badge i {
  color: #F59E0B;
}

.seatmap-name {
  font-size: 11px;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 6px;
  border-top: 1px dashed #E5E7EB;
  margin-top: 4px;
}

.seatmap-name i {
  color: #F59E0B;
}

/* Детали (двигатель, винглеты) */
.aircraft-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.detail-badge {
  background: white;
  color: #4B5563;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #E5E7EB;
  font-weight: 500;
}

.detail-badge i {
  color: #F59E0B;
  font-size: 11px;
}

.detail-badge:hover {
  background: #FEF3E8;
  border-color: #F59E0B;
}

/* ===== НЕТ ДАННЫХ ===== */
.no-data {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 24px;
  border: 1px solid #E5E7EB;
}

.no-data i {
  color: #9CA3AF;
  margin-bottom: 15px;
}

.no-data p {
  color: #6B7280;
  font-size: 16px;
}

.text-muted {
  font-size: 13px;
  color: #9CA3AF;
  margin-top: 5px;
}

/* ===== КНОПКА НАЗАД ===== */
.back-link {
  text-align: center;
  margin-top: 30px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #1E3A8A;
  padding: 12px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid #1E3A8A;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #1E3A8A;
  color: white;
  transform: translateY(-2px);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .fleet-overview-page {
    padding: 30px 0 40px;
  }
  
  .container {
    padding: 0 12px;
  }
  
  .page-title {
    font-size: 28px;
  }
  
  .stats-container {
    gap: 12px;
  }
  
  .stat-card {
    padding: 10px 15px;
    min-width: 90px;
  }
  
  .stat-value {
    font-size: 24px;
  }
  
  .filters-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    justify-content: space-between;
  }
  
  .filter-input {
    flex: 1;
  }
  
  .type-title {
    gap: 8px;
  }
  
  .type-name {
    font-size: 18px;
  }
  
  .type-icao {
    font-size: 12px;
    padding: 4px 10px;
  }
  
  .aircraft-grid {
    grid-template-columns: 1fr;
  }
  
  .aircraft-reg {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .fleet-overview-page {
    padding: 20px 0 30px;
  }
  
  .container {
    padding: 0 10px;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 9px;
  }
  
  .type-name {
    font-size: 16px;
  }
  
  .type-count {
    font-size: 11px;
  }
  
  .aircraft-card {
    padding: 14px;
  }
  
  .aircraft-reg {
    font-size: 14px;
  }
  
  .aircraft-reg i {
    font-size: 14px;
  }
  
  .special-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  .seat-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  .detail-badge {
    font-size: 10px;
    padding: 4px 8px;
  }
}

/* ===== ФУТЕР ===== */
footer {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
  background: #0F2B6E;
  overflow-x: hidden;
}

/* ===== УБИРАЕМ ПОДЧЁРКИВАНИЕ ГИПЕРССЫЛОК ===== */
a,
a:hover,
a:focus,
a:active {
  text-decoration: none;
}

/* Стили для ссылок на карточки самолётов */
.aircraft-card-link {
  text-decoration: none;
  display: block;
}

.aircraft-card-link:hover {
  text-decoration: none;
}

/* Стили для ссылок на ICAO коды */
.type-icao-link {
  text-decoration: none;
}

.type-icao-link:hover {
  text-decoration: none;
}

/* Стили для кнопок */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
  text-decoration: none;
}
.type-family {
  font-size: 13px;
  font-weight: 500;
}

.type-family a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F8FAFC;
  color: #64748B;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid #E2E8F0;
  transition: all 0.2s;
}

.type-family a:hover {
  background: #EFF6FF;
  border-color: #1E3A8A;
  color: #1E3A8A;
}

.type-family i {
  font-size: 11px;
  color: #94A3B8;
}

.type-family a:hover i {
  color: #F59E0B;
}

.type-family {
  font-size: 13px;
  font-weight: 500;
}

.type-family a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F8FAFC;
  color: #64748B;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid #E2E8F0;
  transition: all 0.2s;
}

.type-family a:hover {
  background: #EFF6FF;
  border-color: #1E3A8A;
  color: #1E3A8A;
}

.type-family i {
  font-size: 11px;
  color: #94A3B8;
}

.type-family a:hover i {
  color: #F59E0B;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F8FAFC;
  color: #475569;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  font-weight: 500;
}

.detail-badge i {
  color: #F59E0B;
  font-size: 11px;
}

.aircraft-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}

.seatmap-name {
  font-size: 10px;
  color: #94A3B8;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #E2E8F0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.filters-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}