/* УНИВЕРСАЛЬНЫЕ СТИЛИ ДЛЯ ПОДМЕНЮ - ПРИОРИТЕТ НАД ВСЕМИ ОСТАЛЬНЫМИ */
.has-submenu.active .submenu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  transition: all 0.15s ease !important; /* Быстрая анимация */
}

/* Быстрое открытие при наведении на десктопе */
@media (min-width: 769px) {
  .has-submenu:hover .submenu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: all 0.15s ease !important; /* Быстрая анимация */
  }
}

/* Для мобильных устройств - flex layout */
@media (max-width: 768px) {
  .has-submenu.active .submenu {
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.15s ease !important; /* Быстрая анимация */
  }
}

/* Стили для международного офиса */
.international-office {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 42px;
    color: #005baa;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
    font-size: 20px;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.office-info-section {
    margin-bottom: 60px;
}

/* Контейнер для двух колонок */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.office-info-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.office-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f8f9fa;
}

.office-title {
    color: #005baa;
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: bold;
}

.university-name {
    font-size: 20px;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 5px solid #005baa;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    background: #005baa;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-content h4 {
    color: #005baa;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-content p {
    color: #333;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

.lunch-break {
    color: #666 !important;
    font-size: 14px !important;
    font-style: italic;
    margin-top: 5px !important;
}

.staff-section {
    background: white;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.section-title {
    color: #005baa;
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    font-weight: bold;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #005baa, #007bff);
    border-radius: 2px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.staff-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #005baa, #007bff);
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.staff-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* Стили для фотографии сотрудника */
.staff-photo {
    text-align: center;
    margin-bottom: 20px;
}

.staff-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.staff-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.staff-avatar {
    background: linear-gradient(135deg, #005baa, #007bff);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 91, 170, 0.3);
}

.staff-info {
    flex: 1;
}

.staff-name {
    color: #005baa;
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: bold;
    line-height: 1.3;
}

.staff-degree {
    color: #666;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.staff-degree-translation {
    color: #666;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.staff-position {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 91, 170, 0.05);
    border-radius: 8px;
    border-left: 4px solid #005baa;
}

.staff-position i {
    color: #005baa;
    font-size: 16px;
}

.staff-position span {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .international-office {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 18px;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .office-info-card,
    .staff-section {
        padding: 25px 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .staff-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .staff-name {
        font-size: 18px;
    }
    
    .staff-position {
        justify-content: center;
    }
}

/* Стили для подменю на десктопе */
@media (min-width: 769px) {
  .has-submenu:hover > .submenu-toggle .submenu-arrow {
    transform: rotate(180deg);
  }
  
  .menu__pages .has-submenu.active .submenu {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #222 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    z-index: 1000 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .has-submenu.active .submenu-arrow {
    transform: rotate(180deg);
  }
  
  .has-submenu.active .submenu li a {
    display: block !important;
    padding: 12px 20px !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    white-space: nowrap !important;
  }
  
  .has-submenu.active .submenu li a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
  }
}

/* Мобильная адаптация для фотографии сотрудника */
@media (max-width: 768px) {
  .staff-image {
    width: 100%;
    height: auto;
  }
}
