/* ===== СТРАНИЦА ПОДРАЗДЕЛЕНИЙ ===== */
.departments-page,
.department-page {
  flex: 1 0 auto;
  padding: 40px 0 60px;
  background: #F5F7FA;
  min-height: calc(100vh - 200px);
}

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

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

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #1E3A8A;
  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;
  margin-top: 10px;
}

/* ===== ГРУППЫ ПОДРАЗДЕЛЕНИЙ ===== */
.department-group {
  margin-bottom: 50px;
}

.group-title {
  font-size: 22px;
  font-weight: 700;
  color: #1E3A8A;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E5E7EB;
  display: flex;
  align-items: center;
  gap: 10px;
}

.group-title i {
  color: #F59E0B;
}

/* ===== СЕТКА КАРТОЧЕК ===== */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ===== КАРТОЧКА ПОДРАЗДЕЛЕНИЯ ===== */
.department-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.department-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.department-name {
  font-size: 20px;
  font-weight: 700;
  color: #1E3A8A;
  margin-bottom: 6px;
}

.department-fullname {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.department-desc {
  color: #4B5563;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

/* Информация под карточкой */
.department-info {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-top: 12px;
  border-top: 1px solid #F0F0F0;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6B7280;
}

.info-item i {
  color: #F59E0B;
  font-size: 12px;
}

/* Кнопка подробнее */
.btn-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #1E3A8A;
  padding: 8px 0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-details:hover {
  color: #F59E0B;
  gap: 12px;
}

.btn-details i {
  font-size: 12px;
  transition: transform 0.2s;
}

.btn-details:hover i {
  transform: translateX(4px);
}

/* ===== СТРАНИЦА ПОДРАЗДЕЛЕНИЯ ===== */
.department-page {
  flex: 1 0 auto;
  padding: 40px 0 60px;
  background: #F5F7FA;
}

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

/* Хлебные крошки */
.breadcrumbs {
  margin-bottom: 30px;
  font-size: 14px;
  color: #6B7280;
}

.breadcrumbs a {
  color: #1E3A8A;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: #F59E0B;
}

.breadcrumbs i {
  margin: 0 8px;
  font-size: 12px;
  color: #9CA3AF;
}

/* Шапка подразделения (без иконки) */
.dept-header {
  background: linear-gradient(135deg, #1E3A8A 0%, #0F2B6E 100%);
  border-radius: 24px;
  padding: 50px 40px;
  margin-bottom: 40px;
  text-align: center;
}

.dept-header-pulkovoair {
  background: linear-gradient(135deg, #1E3A8A 0%, #0F2B6E 100%);
}

.dept-header-vnukovoairlines {
  background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
}

.dept-header-vimavia {
  background: linear-gradient(135deg, #E65100 0%, #BF360C 100%);
}

.dept-header-pulkovo-cargo {
  background: linear-gradient(135deg, #0F2B6E 0%, #1E3A8A 100%);
}

.dept-header-pulkovo-travel {
  background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
}

.dept-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.dept-title {
  font-size: 42px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.dept-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.dept-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.meta-item i {
  color: #F59E0B;
}

/* Контент */
.dept-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Информационные карточки */
.info-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid #E5E7EB;
}

.info-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1E3A8A;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F59E0B;
}

.info-card h2 i {
  color: #F59E0B;
}

.info-card p {
  color: #4B5563;
  line-height: 1.8;
  font-size: 15px;
  white-space: pre-line;
}

/* Галерея */
.gallery-section {
  margin-bottom: 30px;
}

.gallery-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1E3A8A;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F59E0B;
}

.gallery-section h2 i {
  color: #F59E0B;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
  background: #E5E7EB;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 58, 138, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 32px;
  color: white;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Кнопка назад */
.back-link {
  text-align: center;
  margin-top: 20px;
}

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

.btn-back:hover {
  background: #1E3A8A;
  color: white;
  transform: translateX(-5px);
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: 0.3s;
}

.modal-close:hover {
  color: #F59E0B;
}

/* Адаптивность */
@media (max-width: 768px) {
  .department-page {
    padding: 30px 0 40px;
  }
  
  .dept-header {
    padding: 35px 25px;
  }
  
  .dept-title {
    font-size: 32px;
  }
  
  .dept-subtitle {
    font-size: 16px;
  }
  
  .dept-meta {
    gap: 20px;
  }
  
  .info-card {
    padding: 20px;
  }
  
  .info-card h2 {
    font-size: 20px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .dept-title {
    font-size: 24px;
  }
  
  .dept-subtitle {
    font-size: 14px;
  }
  
  .dept-meta {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .info-card p {
    font-size: 13px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-back {
    padding: 10px 20px;
    font-size: 12px;
  }
}
/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}

.modal-close:hover {
  color: #F59E0B;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .departments-page,
  .department-page {
    padding: 30px 0 40px;
  }
  
  .page-title {
    font-size: 26px;
  }
  
  .departments-grid {
    grid-template-columns: 1fr;
  }
  
  .card-body {
    padding: 20px;
  }
  
  .department-name {
    font-size: 18px;
  }
  
  .dept-header {
    padding: 30px 20px;
  }
  
  .dept-title {
    font-size: 28px;
  }
  
  .dept-subtitle {
    font-size: 14px;
  }
  
  .dept-icon {
    width: 55px;
    height: 55px;
  }
  
  .dept-icon i {
    font-size: 26px;
  }
  
  .info-card {
    padding: 20px;
  }
  
  .info-card h2 {
    font-size: 18px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 22px;
  }
  
  .page-title i {
    font-size: 22px;
  }
  
  .page-description {
    font-size: 13px;
  }
  
  .group-title {
    font-size: 18px;
  }
  
  .dept-title {
    font-size: 24px;
  }
  
  .dept-meta {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .info-card p {
    font-size: 13px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .btn-back {
    padding: 8px 20px;
    font-size: 12px;
  }
}
/* ===== ПАРТНЁРЫ - ГОРИЗОНТАЛЬНЫЕ КАРТОЧКИ ===== */
.partners-block {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid #E5E7EB;
}

.partners-block .section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1E3A8A;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #F59E0B;
  display: flex;
  align-items: center;
  gap: 10px;
}

.partners-block .section-title i {
  color: #F59E0B;
}

/* Список партнёров */
.partners-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Карточка партнёра */
.partner-card {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 20px;
  background: #F8FAFC;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
}

.partner-card:hover {
  transform: translateX(5px);
  border-color: #F59E0B;
  background: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Логотип слева */
.partner-logo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-logo.placeholder {
  background: linear-gradient(135deg, #1E3A8A 0%, #0F2B6E 100%);
  color: white;
}

.partner-logo.placeholder i {
  font-size: 50px;
}

/* Информация справа */
.partner-info {
  flex: 1;
}

.partner-name {
  font-size: 18px;
  font-weight: 700;
  color: #1E3A8A;
  margin-bottom: 8px;
}

.partner-desc {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.5;
  margin-bottom: 12px;
}

.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1E3A8A;
  color: white;
  padding: 6px 14px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.partner-link:hover {
  background: #F59E0B;
  color: #1E3A8A;
  transform: translateY(-2px);
}

.no-partners {
  text-align: center;
  padding: 40px;
  color: #9CA3AF;
}

.no-partners i {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .partner-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .partner-logo {
    width: 80px;
    height: 80px;
  }
  
  .partner-name {
    font-size: 16px;
  }
  
  .partner-desc {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .partners-block {
    padding: 20px;
  }
  
  .partner-card {
    padding: 15px;
  }
  
  .partner-logo {
    width: 70px;
    height: 70px;
  }
  
  .partner-logo.placeholder i {
    font-size: 35px;
  }
  
  .partner-name {
    font-size: 15px;
  }
  
  .partner-desc {
    font-size: 11px;
  }
}

/* ===== ШАПКА С ГЛАВНЫМ ФОТО ===== */
.dept-header {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 40px;
  min-height: 300px;
}

.dept-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.dept-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Улучшенный оверлей - более светлый */
.dept-cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55); /* Более светлый, чем был */
  z-index: 1;
}

/* Или градиентный вариант (более современный) */
.dept-cover-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.7) 0%,
    rgba(15, 43, 110, 0.75) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.dept-header-content {
  position: relative;
  z-index: 2;
  padding: 60px 40px;
  text-align: center;
}

.dept-title {
  font-size: 42px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.dept-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.dept-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  background: rgba(0, 0, 0, 0.3);
  padding: 5px 12px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
}

.meta-item i {
  color: #F59E0B;
}

/* Адаптивность */
@media (max-width: 768px) {
  .dept-header {
    min-height: 250px;
  }
  
  .dept-header-content {
    padding: 40px 25px;
  }
  
  .dept-title {
    font-size: 32px;
  }
  
  .dept-subtitle {
    font-size: 16px;
  }
  
  .meta-item {
    padding: 4px 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .dept-header {
    min-height: 220px;
  }
  
  .dept-header-content {
    padding: 30px 20px;
  }
  
  .dept-title {
    font-size: 24px;
  }
  
  .dept-meta {
    gap: 15px;
  }
  
  .meta-item {
    font-size: 11px;
  }
}